Troubleshooting Mathcad Functions for Thermodynamic Calculations

Click For Summary
SUMMARY

The discussion focuses on troubleshooting function usage in Mathcad for thermodynamic calculations. The user encounters an error related to "too many commas" when attempting to define a function MCPH(T1,T2;A,B,C,D). It is clarified that in Mathcad, functions should not be assigned values on the left-hand side of an assignment; instead, they should only appear on the right-hand side. This principle is consistent across various programming environments, emphasizing the importance of understanding function definitions.

PREREQUISITES
  • Basic understanding of Mathcad functions and syntax
  • Familiarity with thermodynamic properties and calculations
  • Knowledge of iterative solutions in mathematical programming
  • Access to the Mathcad User's Manual for reference
NEXT STEPS
  • Review the Mathcad User's Manual for function definitions and syntax rules
  • Practice defining and using functions in Mathcad with simple examples
  • Explore iterative solution techniques applicable in Mathcad
  • Investigate common errors in Mathcad and their resolutions
USEFUL FOR

This discussion is beneficial for students and professionals in engineering and physics who are using Mathcad for thermodynamic calculations, particularly those new to the software or programming concepts.

gfd43tg
Gold Member
Messages
949
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.
 

Similar threads

  • · Replies 7 ·
Replies
7
Views
5K
Replies
1
Views
8K
  • · Replies 9 ·
Replies
9
Views
7K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
13K
  • · Replies 3 ·
Replies
3
Views
21K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K