[PD] Negative input numbers for [pow] return 0

IOhannes m zmoelnig zmoelnig at iem.at
Wed Apr 24 10:50:33 CEST 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 2013-04-24 04:10, Ivica Ico Bukvic wrote:
> It may be a bit more complex since exponent values between -1 and
> 1 are the ones that generate imaginary numbers from negative
> values,

we call those NaNs.

"the implementation would be trivial" implied "if you are ready to
deal with NaNs".

On 2013-04-24 05:15, Ivica Ico Bukvic wrote:
> 
> Yes, the proposed patch generates 0 when imaginary numbers are 
> involved and issues warning on the console with ability to track 
> the error.

in which the original behaviour is probably "better", as the result
won't start jumping widely between real values and zero.


it seems like i have somehow turned into a defender of the current
behaviour of [pow].
i'd rather not (that is: personally i'd rather not have too many
constructs built into Pd that seemingly make life easier and protect
people from doing stupid things)



rtfgmqawe
IOhannes
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAlF3nNYACgkQkX2Xpv6ydvRlTACePiG5HlLocgfVXtKa/cursSDJ
vwoAnA0vk+WEYN0iDjD1amwaPFciJzRn
=DfXc
-----END PGP SIGNATURE-----



More information about the Pd-list mailing list