Function of vector gives different (wrong) result, compared with range variable (Prime 2.0)
- November 28, 2013
- 4 replies
- 2841 views
Hello,
I've got a severe issue with Mathcad Prime 2.0, and I'm not sure if it is my fault, or a bug in the program. Attached, you can find the example worksheet. I've cut it out from a more complex sheet and simplified it as much as possible (all units left out etc.).
In the upper area, a function k(T,M) is defined. I now want to cut out one-dimensional slices of this 2-dimensional function: k_hi(T) and k_lo(T), where M is not constant, but depends on the given constant parameter P and T.
I define both a range variable Temp=200, 220 ... 300 and a vector Temp' with the same values.
Now I output both k_hi(Temp), using the range variable, and the vector k'_hi = k_hi(Temp'). (same for lo instead of hi).
As you can see, the results for the vector are different from the range variable result!
They are in the same order of magnitude, though, so it could be a numerical precision issue. (Is there any possibility to play around with internal floating point precision in Mathcad Prime 2.0?) But this does not seem to make any sense.
By the way: "manual" calculation with my calculator favors the results from the range variable method.
Does anybody know what's going on here?

