<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 14 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Forgot to copy list&#8230;<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Ivica Ico Bukvic [mailto:ico@vt.edu] <br><b>Sent:</b> Tuesday, April 23, 2013 11:15 PM<br><b>To:</b> 'Charles Z Henry'<br><b>Subject:</b> RE: [PD] Negative input numbers for [pow] return 0<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Yes, the proposed patch generates 0 when imaginary numbers are involved and issues warning on the console with ability to track the error.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div style='border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Charles Z Henry [<a href="mailto:czhenry@gmail.com">mailto:czhenry@gmail.com</a>] <br><b>Sent:</b> Tuesday, April 23, 2013 10:39 PM<br><b>To:</b> Ivica Ico Bukvic<br><b>Cc:</b> pd-list; IOhannes m zmoelnig<br><b>Subject:</b> Re: [PD] Negative input numbers for [pow] return 0<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p>&nbsp;</o:p></p><p>Yep.&nbsp; It's damaging to have NaN's propagating around in Pd. [pow] having a single output means that you only want real values.&nbsp; The result is not a real number-I think the result should just be set to 0 (perhaps 1 depending on what the worst usage case is).&nbsp; Would it be better to have pow just output the real part of the complex number, generated from:<o:p></o:p></p><p>(-1*base)^exp*e^(pi*exp*i)<br>Which is (-1*base)^exp*cos(pi*exp)<br>when base is a negative number <o:p></o:p></p><p>this assumes the standard branch cut in complex analysis:<br>-1=e^(pi*i) and not e^(3*pi*i) or any other<o:p></o:p></p><p>Chuck<o:p></o:p></p><div><p class=MsoNormal>On Apr 23, 2013 9:11 PM, &quot;Ivica Ico Bukvic&quot; &lt;<a href="mailto:ico@vt.edu">ico@vt.edu</a>&gt; wrote:<o:p></o:p></p><p class=MsoNormal>It may be a bit more complex since exponent values between -1 and 1 are the<br>ones that generate imaginary numbers from negative values, with the<br>exception of 0 which generates 1. Latest pd-l2ork patch tries to fix this.<br>See:<br><br><a href="https://github.com/pd-l2ork/pd/commit/95d82d33d2580a00e32d725e0f5147d88cdaf3" target="_blank">https://github.com/pd-l2ork/pd/commit/95d82d33d2580a00e32d725e0f5147d88cdaf3</a><br>70<br><br>&gt; -----Original Message-----<br>&gt; From: <a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a> [mailto:<a href="mailto:pd-list-bounces@iem.at">pd-list-bounces@iem.at</a>] On Behalf Of<br>&gt; IOhannes m zmoelnig<br>&gt; Sent: Tuesday, April 23, 2013 6:21 AM<br>&gt; To: <a href="mailto:pd-list@iem.at">pd-list@iem.at</a><br>&gt; Subject: Re: [PD] Negative input numbers for [pow] return 0<br>&gt;<br>&gt; -----BEGIN PGP SIGNED MESSAGE-----<br>&gt; Hash: SHA1<br>&gt;<br>&gt; On 2013-04-23 11:50, Joe White wrote:<br>&gt; &gt; Out of curiosity, are the workarounds suggested more of a result of<br>&gt; &gt; the difficulty of extending the Pd core rather than the<br>&gt; &gt; implications that such a change might have?<br>&gt;<br>&gt; the implementation would be trivial (merely removing the safeguards<br>&gt; that currently clamp the value to 0)<br>&gt;<br>&gt; fgmasdr<br>&gt; IOhannes<br>&gt;<br>&gt; -----BEGIN PGP SIGNATURE-----<br>&gt; Version: GnuPG v1.4.12 (GNU/Linux)<br>&gt; Comment: Using GnuPG with Mozilla - <a href="http://enigmail.mozdev.org/" target="_blank">http://enigmail.mozdev.org/</a><br>&gt;<br>&gt; iEYEARECAAYFAlF2YIEACgkQkX2Xpv6ydvQyoQCgiC95SRoOKaOHu6qkmpX+kD8<br>&gt; 0<br>&gt; /ugAoJymAbmtt6qWkZM5rAlObyhdarRF<br>&gt; =KUIu<br>&gt; -----END PGP SIGNATURE-----<br>&gt;<br>&gt; _______________________________________________<br>&gt; <a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>&gt; UNSUBSCRIBE and account-management -&gt;<br>&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br><br><br>_______________________________________________<br><a href="mailto:Pd-list@iem.at">Pd-list@iem.at</a> mailing list<br>UNSUBSCRIBE and account-management -&gt; <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><o:p></o:p></p></div></div></div></body></html>