Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X
Hello,
I am attempting to program a simple for loop to increment a single variable in an equation and plot the equation as a function of the variable.
I have attached the mathcad worksheet. The issue arises on page 3 of the worksheet. The value I am trying to find is "Sigma_max" as "e" increases from 0 to 1 in 0.01 increments. I'm sure this is easily remedied and due to my own mathcad ineptitude. What am I missing?
Thanks in advance!
-Ryan
Solved! Go to Solution.
The first line of your program (sigma_max(e)) set e to 0 inches in the program.
Change that to set e equal to e. (This sets e in the program to the argument you're passing.
Then (to get it to work) you need to pass an argument with units of length.
I don't think I believe you result, however!
The first line of your program (sigma_max(e)) set e to 0 inches in the program.
Change that to set e equal to e. (This sets e in the program to the argument you're passing.
Then (to get it to work) you need to pass an argument with units of length.
I don't think I believe you result, however!
Thanks Fred,
After looking at your solution, it appears I don't need a loop at all.
I just set e:=0in, 0.01in...1in
and Sigma_max(e):= ..........
And away it plots.
The values from that method look much more believable. I don't trust the results from before either!
Thanks!