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
I'm having issues in Prime 2.0 when calculating equations that have undefined variables. As seen in the attached, the results of the symbolic manipulation show excessive precision and many like variables and units are not canceling each other out. Is there anyway to make these results more concise?
The symbolic operator doesn't recognize units, it just treats them as undefined variables.
Mike
As Mike already pointed out, units are treated as variables. In case of Your worksheet the "ft" don't cancel because one of them is taken the absolute value from. This can be treated with the "assume" statement.
To avoid those annoying decimals in symboliv results, you have to take care, that all numbers in the expression you evaluate are integers (most of the times hard to accomplish). You can make this in your worksheet by separation of assignment and numeric evaluation, e.g. using "a:=2/3 a=" instead of "a:=2/3=".
If its only the number of digits which disturb you, you can control them using the "float" modifier.
See attached modified sheet
WR