Post Reply 
Printing Matrix from program
10-09-2020, 02:52 AM (This post was last modified: 10-09-2020 02:54 AM by Grayhek.)
Post: #1
Printing Matrix from program
I am currently having issues printing my matrix from my program. I made a matrix to hold tabulated steam data and while testing how its working I get an error. I dont understand very much as I tend to not use Matrices as much. I've tried: "Print(ST());", "Print(ST(1,1));", Print(ST{});", "Print(ST[]);", "Print(ST[1,1]);" and a few other things but I can't seem to get it to work.
Code:
//Steam Table
    export ST;
    export Steam_Table()
        begin
            
            ST:=[["Tempurature[C]","Liquid Enthalpy","Vapor Enthalpy"],[0.01,0,2501.4],[10,42.02,2519.2],[15,62.98,2528.4],[20,83.92,2537.5],[25,104.84,2546.5],[30,125.75,2555.6],[35,146.64,2564.6],[40,167.54,2573.5],[45,188.44,2582.5],[50,209.34,2591.3],[55,230.24,2600.1],[60,251.15,2608.8],[65,272.08,2617.5],[70,293.02,2626.1],[75,313.97,2634.6],[80,334.95,2643],[85,355.95,2651.3],[90,376.97,2695.5],[95,398.2,2667.6],[100,419.1,2675.6]];
            print(ST);

        end;


Attached File(s) Thumbnail(s)
   
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: 2 Guest(s)