Post Reply 
Printing Matrix from program
10-09-2020, 12:26 PM
Post: #4
RE: Printing Matrix from program
This is my current work-around. Since it wont let me print a matrix or really use a matrix I transposed it and made 3 lists for each row. This also helped me because I dont know how to call a column like you would a row. Since they are now in lists I can use the drop-down function in input to choose my desired Tempurature.

Code:

//Steam Table
    export ST_Temp:={"Tempurature[C]",0.01,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100};
    export ST_Liq_Enthalpy:={"Liquid Enthalpy",0,42.02,62.98,83.92,104.84,125.75,146.64,167.54,188.44,209.34,230.24,251.15,272​.08,293.02,313.97,334.95,355.95,376.97,398.2,419.1};
    export ST_Vap_Enthalpy:={"Vapor Enthalpy",2501.4,2519.2,2528.4,2537.5,2546.5,2555.6,2564.6,2573.5,2582.5,2591.3,2600.1,26​08.8,2617.5,2626.1,2634.6,2643,2651.3,2695.5,2667.6,2675.6};
    
    export Steam_Table()
        begin
            print();
            local Sat_Temp;
            Input({{Sat_Temp,ST_Temp,{50,40,2}}});
            print("Liquid Enthalpy "+ST_Liq_Enthalpy(Sat_Temp));Print("Vapor Enthalpy "+ST_Vap_Enthalpy(Sat_Temp));
        end;

I still wish I could use a matrix instead of multiple lists. If anyone can help it would be much appreciated.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Printing Matrix from program - Grayhek - 10-09-2020, 02:52 AM
RE: Printing Matrix from program - Tyann - 10-09-2020, 04:52 AM
RE: Printing Matrix from program - Grayhek - 10-09-2020, 11:17 AM
RE: Printing Matrix from program - Grayhek - 10-09-2020 12:26 PM
RE: Printing Matrix from program - pinkman - 10-10-2020, 02:36 AM



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