Skip to main content
25-Diamond I
June 11, 2017
Solved

Bug in symbolics in combination with floating point numbers

  • June 11, 2017
  • 3 replies
  • 5341 views

Did we already discuss that kind of bug here?

And has anybody an idea what the reason for this strange errror (recursive definition) could be?

The error occurs when the frequency is negative and floating point,

Best answer by LucMeekes

Your memory is still OK. I guess this is where it was seen before:Recursive definition problem when extracting real part of equation.

Luc

3 replies

23-Emerald IV
June 11, 2017

This is Mathcad 11:

How does Prime deal with it?

Luc

Werner_E25-Diamond IAuthor
25-Diamond I
June 12, 2017

Could have bet on that it would work OK with Maple.

Prime suffers from the same bug (at least version 3.0).

23-Emerald IV
June 11, 2017

Check if there's a difference in solving sin(2 x), sin(-2 x), sin(2.0 x) and sin(-2.0 x), to see if Mathcad or Mupad handles those functions differently. Or do a series expansion.

Luc

Werner_E25-Diamond IAuthor
25-Diamond I
June 12, 2017

Positive factors -> no problem. no matter how they are written

neagtive integers written without decimal point -> no problem

But when the factor is negative and is written with a decimal point, whatever I do symbolically with that expression, it will fail with that "recursive definition" error.

I'll try to get hold on a machine with an older release of MC15 or even MC14 to see, if the bug is already present there or was introduced later.

23-Emerald IV
June 12, 2017

The 0 (zero) answer is too simple, what does 'solve fully' do? ( I don't have that in mathcad 11).

Luc

23-Emerald IV
June 11, 2017
Werner_E25-Diamond IAuthor
25-Diamond I
June 12, 2017

LucMeekes wrote:

Is this Symbolic Fourier Transform similar?

Don't think so. Guess it wasn't a bug there. The OP used a wrong syntax for the "fourier" command and was not aware of the annoying effect that the symbolics switch to its "numeric/float" mode whenever just one number is written with a decimal point.

This auto-float mode could be part of the reason for the bug as expressions are dealt with and are evaluated differently when in float mode. But I see no reason why a recursive definition should be diagnosed just because the symbolics work in float mode.

I vaguely remember a thread dealing with a bug/problem concerning symbolics and floating point numbers. Just can't remember, nor find the thread.

1-Visitor
June 12, 2017

Some observations:

sin-2x.png

Viktor