SynthMaker

Float Pow Bug

Archive · 2005 6 old posts

From the original SynthMaker forum (2004–2014), with its members’ names and dates.

unkargherth ·

Seems that Float pow module has a bug with negative ( integer or fractional) base and fractional exponents

Check the schematic. It's only me or someone can reproduce it?[/img]

malc ·

Hi unkargherth,

It's not a bug as such, although you could argue that it should indicate what's happening in a better way.

Any negative number that you raise to the power of a value whose absolute is less than 1 has no solution in the real numbers. -1 to the power 0.5 is the classic complex number i for example.

Maybe it should say something more useful than -1#IND.

unkargherth ·

As far as my Casio Hand Calculator knows, -0.5^-0.3=-1.231144413, which, in fact is -1*(0.5^-0.3)

I checked it in Scientific Notebook ( a kind of mupad, mapple engine) and gives same result

Sk ·

unkargherth wrote: As far as my Casio Hand Calculator knows, -0.5^-0.3=-1.231144413, which, in fact is -1*(0.5^-0.3)

I checked it in Scientific Notebook ( a kind of mupad, mapple engine) and gives same result

You're wrong, because of the order math must be executed. These two are different: a) (-0.5)^(-0.3) is imaginary: it equals the inverse of the tenth root of (-1/2)^3, therefore it's like j*(2^(0.3)); b) -(0.5^(-0.3)); this equals the opposite of the inverse of the tenth root of (1/2)^3, which is -(2^(.3)).

malc ·

unkargherth wrote: As far as my Casio Hand Calculator knows, -0.5^-0.3=-1.231144413, which, in fact is -1*(0.5^-0.3)

A bug in your Casio? 😉

Seriously though, Sk is right and it does look like your calculator is interpreting the operation differently. I tried it on the Windows XP Calculator accessory and it made the same mistake. However, if you try punching in (-0.5)^-0.3 you'll see that it gives an invalid result.

All good fun 🙂

Sk ·

I think this happens because in SM the module takes the float you give him as the parameter between parenthesis, so if you put -0.5 it solves (-0.5)^(exp). Am I wrong?

Wrote something here? To have a post removed or your name hidden, write to [email protected].

Before your first post

A few rules keep this a friendly place. You agree to them once.

Shown next to what you post, here and in the app. It doesn’t have to be your real name: 3–24 lower-case letters, digits or _ (capitals become lower case, spaces become _).

    Then your post goes up straight away.

    Delete this reply?

    Open it in SynthMaker?

    It goes on the track you’re editing there, in place of that track’s sound, and into My sounds. Your other tracks stay as they are.

    Want to keep that track’s sound? Start a new song in SynthMaker first (Song › New song), then open this.

    Report this reply?

    Only the developer reads reports. The person isn’t told who reported them.

    What’s wrong with it?

    Block this person?

    You won’t see their posts and replies here any more. They aren’t told, and you can unblock them at any time.

    People you’ve blocked

    Their posts and replies are hidden from you. Unblock someone to see them again.

    The community rules

    A few rules keep this a friendly place. Everyone agrees to them once, before their first post.