<div dir="ltr">Hi Alexandre,<div><br></div><div>This seems to be a bug. I am not sure why I missed the 'n' on the name either. As it seems that this function has never worked, we should fix the name as well. The solution is simple as follows:</div><div><br></div><div>







<p class="">extra/expr~/vexp_fun.c</p>
<p class="">188c188</p>
<p class=""><         {"copysign",    ex_copysign,    2},</p>
<p class="">---</p>
<p class="">>         {"copysig",     ex_copysign,    1},</p><p class=""><br></p><p class="">I checked the mailing list (I am sorry that I am not a regular reader) and I see some concerns about the maintenance of the code. I am happy to fix the problems and I thought I sent you a fix for the last problem you had found in 2009. Can somebody point me to a document or a webpage that explains what the best way is to introduce new changes to the pd source base.  Miller, should I pass the fixes to you, or is there another repository?</p><p class="">In the meanwhile, if there are other bugs in expr that anybody else knows, please send them to me and I will fix them as soon as I can.</p><p class="">best,<br>Shahrokh</p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Jun 7, 2015 at 12:57 PM, Alexandre Torres Porres <span dir="ltr"><<a href="mailto:porres@gmail.com" target="_blank">porres@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">hi there, I was checking the source of expr (find it attached) and saw this "copysign" function that I needed for a formula, but I can't get it to work/load.<div><br></div><div>I'm trying something like [expr copysign($f1)] and it's not happening. The expr manual page in <a href="http://yadegari.org/expr/expr.html" target="_blank">http://yadegari.org/expr/expr.html</a> tells about this function as well, here it is:</div><div><br></div><div><table cellpadding="0" cellspacing="0" border="0" width="100%" style="font-family:Times"><tbody><tr><td valign="top" align="left"><small><font face="Helvetica, Arial, sans-serif">copysign()<br></font></small></td><td valign="top" align="center"><small><font face="Helvetica, Arial, sans-serif">1<small><br></small></font></small></td><td valign="top"><small><font face="Helvetica, Arial, sans-serif">copy sign of a number</font><font face="Helvetica, Arial, sans-serif">(added in version 0.4)<br></font></small></td></tr></tbody></table></div><div><br></div><div>So it seems I'm supposedly doing the right thing... is it a bug? I'm on extended 0.42 and it says that it's expr version 0.4 when it loads.</div><div><br></div><div>cheers</div></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Shahrokh Yadegari<br>Professor of Composition and Sound Design,<br>Theatre and Dance Department<br>University of California, San Diego<br>Director, Initiative for Digital Exploration of Arts and Science, (IDEAS)<br>California Institute for Telecommunications and Information Technologies (Calit2)<br>Email: <a href="mailto:sdy@ucsd.edu" target="_blank">sdy@ucsd.edu</a><br>Web: <a href="http://yadegari.org" target="_blank">http://yadegari.org</a><br>Tel: (858) 822-4113<br>Fax: (858) 534-1080<br><br></div></div>
</div>