Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X
Dear PTC Mathcad Community,
I want to ask for clarification on the behaviour of units and symbolic substitution in Mathcad Prime (similar topics have already been raised, but I still haven't found an appropriate answer for my issue).
So I try to find a symbolic expression for epsilon_c2, which is a parameter of the equation N.
Solver succeeded with the issue, but with incompatible units (see picture)
So, I have tried to find out the solution in the community, but the advice of @Werner_E with calculation options didn't resolve the issue (see the picture)
So my issues are:
1. How to make the symbolic solving more "seamless" with appropriate units' manipulation in the solutions?
2. Why does Mathcad not see the assigned values of the epsilon_c2 obtained in the previous solution?
After some time, when the file has been refreshed, some magic happened, and now I can use the roots of epsilon c1 and c2 in a "normal" manner.
But the next issue is that it doesn't let me substitute the obtained symbolic solution into the following step calculation for the moment M calculation.
As it can be seen, the factual equation is real, with proper units,
Nevertheless, Mathcad is still not satisfied with...
I am still convinced of Mathcad's power, but each time I get stuck with such a misunderstanding of Mathcad logic, I feel broken, exhausted and unable to continue to the next step - automation of my manual solution.
Any clarification, examples, or references to documentation would be greatly appreciated.
I am trying to align my workflow with my Mathcad Prime 10.0.0.0 internal logic rather than fight against it.
Thank you very much for your time and support.
The file with the manual calculation of M is attached.
Solved! Go to Solution.
i <- 0 is a local assignment!
In a conditional you have to use the comparison equal (Boolean equal)
See modifications in attached sheet.
If you just wanted all values to be zero in front it would have been easier to work from the previous sheet and simple add the zero values on top 😉
According your comments in the sheet - I don't see what you seemed to have seen. I only see errors because ec2 is not defined, etc.
You changed ORIGIN from 1 to it default value 0.
When you had a sum running from 1 to rows(...) it will not work that way, because vector indexing start with 0 now.
You are better of letting the sum run from ORIGIN to last(...). That way you are independent from the setting of ORIGIN.
