Disclaimer: I don't feel too strongly about this because I realised my original calculation was wrong anyway, however...
If you think about it negative exponents require a completely
different algorithm that is discontinuous with the one for
positives. Instead of multiplying you divide n times.
bien sur, it would be easy to add this.
the thing is, do we really want that?
having NaN's somewhere in your computation will have all the results become NaN, including any signals.
NaN-signals don't sound good.
the output is a number of the value NaN (which gets displayed as NaN, but this doesn't mean it a symbol ,just like "1e-8" is not a symbol either...usually)
On 04/22/2013 04:07 PM, Joe White wrote:bien sur, it would be easy to add this.
Would it be possible
to add this to [pow] as well? Something like for negative base values,
non-integer exponent values would return NaN?
the thing is, do we really want that?
having NaN's somewhere in your computation will have all the results become NaN, including any signals.
NaN-signals don't sound good.no. the output is a number of the value NaN (which gets displayed as NaN, but this doesn't mean it a symbol ,just like "1e-8" is not a symbol either...usually)
Additionally for [pow] to output '0' seems wrong, because that is
definitely not the answer. I've never seen NaN output elsewhere so I'm
assuming [expr] outputs a symbol and not some Pd defined NaN type (maybe?).
fmgar
IOhannes
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list