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
I do not use symbolic evaluation very often so I am sure I am doing something wrong. The following expression should equal mu_0 . Why do I keep getting the same thing back? Do I need a different keyword (I tried several) or a modifier?
Solved! Go to Solution.
@JohnRudnicki wrote:
The following expression should equal mu_0 .
No! Why do you think so? Its NOT equal to mu_0, just close for large values of mu_0.
The expression you show "approaches" mu_0 for large mu_0, but is always a bit larger.
Consequently we have
or
For a:=3 we have
@JohnRudnicki wrote:
The following expression should equal mu_0 .
No! Why do you think so? Its NOT equal to mu_0, just close for large values of mu_0.
The expression you show "approaches" mu_0 for large mu_0, but is always a bit larger.
Consequently we have
or
For a:=3 we have
I was actually trying to delete the last post, but could not figure out how to do it quickly enough. But now I get...
ut
You cannot delete your post, you can only edit (and empty if you like) it for about a day after it was posted.
Luc
Thanks, tho it would seem like a good idea to be able to delete your own post, at least before someone replies.
Its not surprising that the numeric evaluation yields zero (the actual difference is around 10^-55).
I am surprised that the symbolic also yields zero.
If you use numbers with decimals, then the symbolic unfortunately automatically switches into some sort of numeric/float/approx mode.
If I use non-float numbers and switch the symbolic manually to float mode, I get more meaningful results. The example shows quite clearly, that the "float" modifier must be used with great care because it does not affect the display only but the whole calculation. Notice the significantly different magnitude of the results with different number of significant digits:
I cannot duplicate your last result:
But it is known that when you play around with symbolic evaluations a lot, creating errors and/or numeric over/underflows, the symbolic may get out of control. In this case its best to start a new worksheet from scratch.
>> Thanks, tho it would seem like a good idea to be able to delete your own post, at least before someone replies.
Fully agreed on!
Thanks for the follow-up, though it gives me more reason to be wary of using symbolic evaluation. I should have recognized analytically that they are not exactly equal or plotted them as you suggested. For my practical purposes, mu_0 about 0.6 and a small, 0 is fine.
It's generally a good idea to plot the function you are dealing with:
I guess for a<<1, and mu0 postive, it wil be hard to tell the difference between f(a,mu0) and mu0...
QED.
Success!
Luc