Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hi,
I do not understand this error in which root function found a number greater than 10^307, as we can see from the plot that on the interval [0.1,10] the magnitude did not go above -1, nor above 1...
On the other hand if we specify also the interval [0.1, 10] inside the root function then the root gives no more this error, and can calculate.
I do not understand why in the first way root function give that error, as I expected root function to be evaluated between [0.1, 10] interval also in the first way, given only the guess values inside the root function, and not specify explicitly the interval.
Solved! Go to Solution.
Hmm, I always thought the guy was named Muller and not Mueller or Müller ?
The method basically calculates a parabola given three points (ass opposed to two point in the secant method). So it actually would need three initial guess value. Don't know how Prime calculates the necessary two additional guesses based on the one provided.
All values larger than 1.1 (actually 1.059) throw that error.
If we think of the classic Newton method, we could look at the 'next# position, the zero of the tangent. We see that values about 1.1 have a tangent with a zero at about t=-0.65. The function value at this position is quite large, close enough to the numerical limit of an IEEE number.
I sure can imagine that a numerical algorithm jiggling around the guesses may end up at a position (like the -0.66 in the picture) where the numerics has to give up.
We could use the "root" function also symbolically, but then it will not work by just providing a guess value but rather forces us to use the optional range arguments of "root".
Yes, I already know this, that if we limit maximum value of t0 at 1 then root function will give the answer without error even with first way. But even so, still I do not understand at this moment why when t0 is > 1 then this error with magnitude greater than 10^307 is occuring as we can see from the plot that when 0.1<t0<1.1 the plot is not going above -1 and 1 on y axis (thus not greater than +10^307 or -10^307).
The difference is due to you specifying exact values to use as the initial guess. The guess value 1.1 causes the problem when trying to find the root (as do larger values).
However, when root is left to its own devices, it skirts around problematic values by approaching the root from over the entire range, hence avoiding values that cause issues. Provided that solutions can be found, of course.
Stuart
Forgot to add the Mathcad Prime 10 help information (format edited but not the text)...
root(f(var1, var2, ...), var1, [a, b])—Returns the value of var1 to make the function f equal to zero. If a and b are specified, root finds var1 on the interval [a, b]. Otherwise, var1 must be defined with a guess value before root is called.
Let's see if the modified worksheet will attach ...
Success!
Stuart
Hmm, I always thought the guy was named Muller and not Mueller or Müller ?
The method basically calculates a parabola given three points (ass opposed to two point in the secant method). So it actually would need three initial guess value. Don't know how Prime calculates the necessary two additional guesses based on the one provided.
All values larger than 1.1 (actually 1.059) throw that error.
If we think of the classic Newton method, we could look at the 'next# position, the zero of the tangent. We see that values about 1.1 have a tangent with a zero at about t=-0.65. The function value at this position is quite large, close enough to the numerical limit of an IEEE number.
I sure can imagine that a numerical algorithm jiggling around the guesses may end up at a position (like the -0.66 in the picture) where the numerics has to give up.
We could use the "root" function also symbolically, but then it will not work by just providing a guess value but rather forces us to use the optional range arguments of "root".