[Question] Graphing with a List
04-30-2017, 04:31 PM (This post was last modified: 04-30-2017 04:51 PM by Freire.)
Post: #3
 Freire Junior Member Posts: 33 Joined: Apr 2017
RE: [Question] Graphing with a List
The thing is I have the values in list L1, also the values doesn't change.
But I wanted a list inside my program with all the 250 values of L1 without having to type then manually. I mean, I generated the values to L1 one time, then I get somehow these values and copy then to a variable in my program (L1 copied to a LOCAL listx1). Formating all these values one by one seems the wrong way to do it.

Quote:Would it be possible to share your formula for your functions? Perhaps there could be something in the functions that we could help optimize.

The code is below, and the functions sl_t() and sv_t() come from this post: Steam Table IAPWS-IF97

Code:
  FOR k FROM 1 TO 368 STEP 3 DO   y:=k;   x1:= sl_t(y);   x2:= sv_t(y);     ARC_P(G0,30+(x1*28),(220-y*0.31667),0.1,RGB(0,0,255));     ARC_P(G0,30+(x2*28),(220-y*0.31667),0.1,RGB(255,0,0));   END;   FOR k FROM 1 TO 12 STEP 1 DO   y:=368+k*0.4955;   x1:= sl_t(y);   x2:= sv_t(y);     ARC_P(G0,30+(x1*28),(220-y*0.31667),0.1,RGB(0,0,255));     ARC_P(G0,30+(x2*28),(220-y*0.31667),0.1,RGB(255,0,0));   END;

Plotted graph
 « Next Oldest | Next Newest »

 Messages In This Thread [Question] Graphing with a List - Freire - 04-30-2017, 03:46 PM RE: [Question] Graphing with a List - Han - 04-30-2017, 03:59 PM RE: [Question] Graphing with a List - Freire - 04-30-2017 04:31 PM RE: [Question] Graphing with a List - Freire - 05-01-2017, 02:59 AM RE: [Question] Graphing with a List - Giancarlo - 05-01-2017, 11:31 AM RE: [Question] Graphing with a List - Freire - 05-01-2017, 03:30 PM RE: [Question] Graphing with a List - Tim Wessman - 05-01-2017, 04:26 PM

User(s) browsing this thread: 1 Guest(s)