cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

IF statements and range variable issues

dspence
1-Newbie

IF statements and range variable issues

range variable.JPG

New to MathCAD and running into all kinds of issues regarding if statements and range variables... my first problem is that x never seems to be defined anywhere and I believe I have defined it as a range variable (i could be wrong) and since x is never defined nothing is being evaluated. Any help you can offer would be greatly appreciated 

3 REPLIES 3

Hi,

:= is definition operator, see http://support.ptc.com/help/mathcad/en/#page/Mathcad%2FMprime%2Fdefinition_operator.html%23

To get numerical result, you have to use = this means evaluation operator, see http://support.ptc.com/help/mathcad/en/#page/Mathcad%2FMprime%2Fevaluation_operator.html%23

MH


Martin Hanák
RichardJ
19-Tanzanite
(To:dspence)

As Martin says, if you want to evaluate an expression you need to use the evaluation operator (=). What you have written looks fine to me, as long as R1y, etc, are defined somewhere.

This forum is actually for help with the community. You should post Mathcad questions to the Mathcad forums. Toby Metcalf‌, could you please move this thread.

Rewritten (slightly):

If you do this (and have a ,d, f, and g defined as lengths then

the function q should report force/length

V should report force

M should report moment

Top Tags