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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How do I get my if/else function to graph properly

GG_10575687
1-Newbie

How do I get my if/else function to graph properly

GG_10575687_0-1675743063229.png

GG_10575687_1-1675743084089.png

I have defined every variable except for Lb. I thought with it being defined as an independent variable in the function, Mathcad would understand to vary it from 0 to basically infinity. If not, how do I define Lb to work like that. Thanks.

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

Primes so called "quickplot" (where you do not define the independent abscissa argument) only works for unit-less variables.
Once you use units you also have to provide your own range for this variable. To define a range with units, you must provide its first, second and last value as ttokoro had shown.

Furthermore on the ordinate you do not just place the function name but you have to write MnA992(Lb). You have to type the parentheses yourself as the parentheses in the plot are for the desired units only.

 

P.S.: In future questions remember to attach your worksheet whenever possible!

View solution in original post

2 REPLIES 2
ttokoro
20-Turquoise
(To:GG_10575687)

Before your plot you should do, 

 

image.png

image.png

Primes so called "quickplot" (where you do not define the independent abscissa argument) only works for unit-less variables.
Once you use units you also have to provide your own range for this variable. To define a range with units, you must provide its first, second and last value as ttokoro had shown.

Furthermore on the ordinate you do not just place the function name but you have to write MnA992(Lb). You have to type the parentheses yourself as the parentheses in the plot are for the desired units only.

 

P.S.: In future questions remember to attach your worksheet whenever possible!

Top Tags