Disclaimer: I don't feel too strongly about this because I realised my original calculation was wrong anyway, however...<div><br></div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">If you think about it negative exponents require a completely<br></span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">different algorithm that is discontinuous with the one for<br>
</span><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">positives. Instead of multiplying you divide n times.</span></blockquote><div><br></div><div>For sure, but we're talking about negative bases, additionally negative exponents are already handled correctly by [pow].</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">bien sur, it would be easy to add this.<br>
the thing is, do we really want that?<br>having NaN's somewhere in your computation will have all the results become NaN, including any signals.<br>NaN-signals don't sound good.</blockquote><div><br></div><div>There are many things I can do in Pd that don't sound good, I've bust my ears and headphones/speakers too many times to know that :) </div>
<div>I would argue that yes (I personally) would want that. If the calculation is wrong, then it's my fault. Also, this is in reference to a message object that's being </div><div>used for a graph calculation. Receiving '0' was confusing. </div>
<div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">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)</span></blockquote>
<div><br></div>Good to know, thanks!</div><div><br></div><div>Out of curiosity, are the workarounds suggested more of a result of the difficulty of extending the Pd core rather than the implications that such a change might have? Obviously [expr] is a good solution but still the fact that [pow] acts differently feels non-intuitive. </div>
<div><br></div><div>Cheers,</div><div>Joe</div><div><br><div class="gmail_quote">On 22 April 2013 21:43, IOhannes zmölnig <span dir="ltr"><<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 04/22/2013 04:07 PM, Joe White wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Would it be possible<br>
to add this to [pow] as well? Something like for negative base values,<br>
non-integer exponent values would return NaN?<br>
</blockquote>
<br></div>
bien sur, it would be easy to add this.<br>
the thing is, do we really want that?<br>
having NaN's somewhere in your computation will have all the results become NaN, including any signals.<br>
NaN-signals don't sound good.<div class="im"><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Additionally for [pow] to output '0' seems wrong, because that is<br>
definitely not the answer. I've never seen NaN output elsewhere so I'm<br>
assuming [expr] outputs a symbol and not some Pd defined NaN type (maybe?).<br>
<br>
</blockquote></div>
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)<br>
<br>
fmgar<span class="HOEnZb"><font color="#888888"><br>
IOhannes</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
<a href="mailto:Pd-list@iem.at" target="_blank">Pd-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/<u></u>listinfo/pd-list</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>Follow me on Twitter @diplojocus
</div>