Troubleshooting Mathcad Functions for Thermodynamic Calculations

AI Thread Summary
The discussion revolves around using MathCad to calculate thermodynamic properties as outlined in a textbook. The user encounters an error related to "too many commas" when trying to define a function, specifically MCPH(T1,T2;A,B,C,D). It is noted that the user is unfamiliar with MathCad and programming, leading to frustration with iterative solutions. A response emphasizes the importance of understanding function definitions in MathCad, clarifying that functions should not be assigned values on the left-hand side of an assignment. Instead, function calls should only appear on the right-hand side, a principle applicable across various programming contexts.
gfd43tg
Gold Member
Messages
947
Reaction score
48
Hello,

I am trying to use some functions in MathCad given in my thermodynamics textbook to calculate thermodynamic properties. I attached the functions below.

I try using them and then I get an error saying too many commas

I just type in: MCPH(T1,T2;A,B,C,D)=

of course with numerical values, but it gives me that error. I've never touched Mathcad before, nor know how to program, so these problems requiring iterative solutions are becoming overwhelming
 

Attachments

Last edited:
Physics news on Phys.org
Have you touched the Mathcad User's Manual?

A function is one or more mathematical expressions that generate a results given an input...you do NOT assign a value to a function by placing it on the left-hand side of an assignment...function calls should only appear on the right-hand side of an assignment statement...and this is not particular to Mathcad, this applies most everywhere.
 
Back
Top