Get Help

Turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Community
- :
- PTC Mathcad
- :
- PTC Mathcad
- :
- Symbolic bug

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

Highlighted

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-03-2018
01:08 PM

07-03-2018
01:08 PM

YASB

Yet Another Symbolics Bug

I don't expect PTC to fix this bug in the near or far future but just out of curiosity - does anybody has an explanation or idea whats going wrong internally in the symbolics here (other than "its a bug").

I did not take the time to convert to Prime but I expect the same error there, too.

MC15 worksheet attached.

Solved! Go to Solution.

1 ACCEPTED SOLUTION

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
09:04 AM

07-04-2018
09:04 AM

Notice how 133-3sqrt(1965) is close to 0.

Taking that to the fourth power (in the third term of the 'expand' result) gets it even closer to 0.

I renamed 133 to a and sqrt(1965) to r.

a-3r=0.015, (1-3r)^4=5e-8

The second term of the numerator of the 'expand-simplfy' result would be:

And that's a real zero. A non-zero number raised to whatever (real) power should never become 0, or am I going crazy?

Luc

10 REPLIES 10

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
05:14 AM

07-04-2018
05:14 AM

Re: Symbolic bug

Here's Mathcad 11 / Maple. Of course without error Might help to clarify...

In the attached file, I've put the simplified, expanded and the expanded-simplified expressions as new variables. Maybe working with those in M15 brings you further in clarifying.

Success!

Luc

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
06:20 AM

07-04-2018
06:20 AM

Re: Symbolic bug

Thanks for the reply, Luc!

I had no doubt that Maple in MC11 would do it correct.

The simplifications done using the various keywords are completely different as our screenshots show - not surprising.

Its well known that Maple is far superior compared to MuPad, but that error in a simple numeric only expression is quite alarming!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
06:59 AM

07-04-2018
06:59 AM

Re: Symbolic bug

Taking a closer look, I'd guess (just guess...) that 'simplify' causes the error. Look at how all answers (except the obviously wrong one) are 2.43342766, except for the numeric result of simplification only: 2.4334276** 8**.

A difference of 2 at position 7, that's too large to simply result from numeric inaccuracy (17 positions!) alone.

Luc

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
07:10 AM

07-04-2018
07:10 AM

Re: Symbolic bug

You may be right about that. I hadn't noticed that small difference so far.

There is also a small difference with the "expand" result.

Not sure if we see numerical inaccuracies here or really wrong symbolic expressions.

As far as i had checked the result of simplify manually, it seems to be correct.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
09:04 AM

07-04-2018
09:04 AM

Notice how 133-3sqrt(1965) is close to 0.

Taking that to the fourth power (in the third term of the 'expand' result) gets it even closer to 0.

I renamed 133 to a and sqrt(1965) to r.

a-3r=0.015, (1-3r)^4=5e-8

The second term of the numerator of the 'expand-simplfy' result would be:

And that's a real zero. A non-zero number raised to whatever (real) power should never become 0, or am I going crazy?

Luc

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

07-04-2018
10:37 AM

07-04-2018
10:37 AM

Re: Symbolic bug

Hmm, here is what it looks like in MC15

But I think I got the "answer" to my initial question now thanks to your pointing out the tiny values involved.

What we experience here is not a bug in the symbolics but are "simple" inaccuracies of the numerics. Even the 2.37 vs. 2.43.

Guess I should have tried the float evaluation sooner

Amazing, but no bug at all.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-22-2018
11:51 AM

08-22-2018
11:51 AM

Re: Symbolic bug

What service release of Mathcad **15**?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-22-2018
12:02 PM

08-22-2018
12:02 PM

Re: Symbolic bug

@VladimirN. wrote:

What service release of Mathcad

15?

There is anecdotal evidence that Prime is using a very old version of MuPad. It's highly improbable that they would have upgraded 15 on service release when the current software is so dated.

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Notify Moderator

08-22-2018
12:16 PM

08-22-2018
12:16 PM

Re: Symbolic bug

Here is a result in Mathcad **15 M045**:

And in Mathcad Prime **3.1**:

Top Tags