Bug in symbolic integration?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Bug in symbolic integration?
I try to get formula for ellipse area in polar coordinates. I've got it but symbolic result is wrong. I can`t understand why?
One more example with strange behaviour
Solved! Go to Solution.
- Labels:
-
Other
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The Mupad version licensed by PTC for Mathcad seems to be very old and also quite limited in functionality (compared to whats possible in Matlab).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
No, I'd rather think it's a bug in your formulation of the integral. Why additionally integrate from 0 to 1?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Check my attachment (I've attached the file to my first reply), and see where a difference (if any) occurs.
Success!
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi Luc!
Here's your file displayed in Mathcad 15.
The main difference seems to be Maple vs. Mupad.
Not sure though, why the plot looks different.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I've got the same as Werner
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Before evaluting the definite integral, Mathcads symbolics calculates the indefinite one and I guess that the problem lies here.
The expression MuPad calculates seems not to be valid for the full range of t (or its wrong completely?)
I guess that Lucs MC11 with Maple gives a different result
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
And,so is this Achilles' heel?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
It is quite different,... and wide.
For the curious I've copied the symbolic result to a new equation, stretched over two lines.
(You don't want to see what symplify does):
@WernerExinger wrote:
Before evaluting the definite integral, Mathcads symbolics calculates the indefinite one and I guess that the problem lies here.
Then why is the polar plot already different?
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
unfortunately,assumptions a>0,b>0,t=real don't change situation.
what about MC Prime 4?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Can't check, I'm limited to express.
Luc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Then why is the polar plot already different?
This has nothing to do with the math, the expression and the symbolics.
Its seems that tha way, Mathcad choses the limits if you dont do it yourself has changed since version 11. You set the upper limit for r to 6 but the lower limit was chosen automatically by MC, MC had chosen r=0, MC15 chooses r=3. If change this manually to 0, I get the very same result as seen in your screenshot (see left plot in my pic).
Mupad in Mathcad always had very big problems with indefinite and also definite integrals in the past. It was horrible in MC14 and they changed a lot with MC15, but still we find bugs and errors. This seems to be one of them again.
Not sure if it makes sense to report it to PTC as they seem to have no interest in improving or at least bug fixing Mathcad and when it comes to the symbolics (MuPad) they are dependent on Mathworks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I've checked this integral in matlab.Their MuPAD provide correct result.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
The Mupad version licensed by PTC for Mathcad seems to be very old and also quite limited in functionality (compared to whats possible in Matlab).
