<div dir="ltr">Well, I'm worried about the bugs in expr and that they get fixed actually, there are more bugs I found by the way. Now Shahrokh doesn't seem to be working on it and making updates anymore. I remember I complained about something in 2009 to him and it never got fixed. I could list them all as well, but I won't make a bug report if it can't be fixed...<div><br></div><div>So, what could we do? Could we just fix it and update it? Or does he have to do it? </div><div><br></div><div>I remember some issues regarding its license as well, but never really understood them, maybe the license issue prevents people from updating it?</div><div><br></div><div>cheers</div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-07 17:51 GMT-03:00 Jan Baumgart <span dir="ltr"><<a href="mailto:raga.raga@gmx.de" target="_blank">raga.raga@gmx.de</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You can substitute the copysign function with this ugly thing:<br>
<br>
[expr $f1*if($f2==0, 1, $f2/abs($f2))]<br>
<br>
cheers,<br>
jan<div class="HOEnZb"><div class="h5"><br>
<br>
On 06/07/2015 10:39 PM, Jan Baumgart wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It's spelled "copysig" in expr.<br>
But I couldn't get it to work.<br>
<br>
copysig in expr only takes one argument, whereas the c math function<br>
takes two arguments:<br>
float copysignf(float x, float y);<br>
<br>
It returns the absolute value of x with the sign of y.<br>
<br>
Smells like a bug to me...<br>
<br>
cheers,<br>
Jan<br>
<br>
On 06/07/2015 09:57 PM, Alexandre Torres Porres wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
hi there, I was checking the source of expr (find it attached) and saw<br>
this "copysign" function that I needed for a formula, but I can't get it<br>
to work/load.<br>
<br>
I'm trying something like [expr copysign($f1)] and it's not happening.<br>
The expr manual page in <a href="http://yadegari.org/expr/expr.html" target="_blank">http://yadegari.org/expr/expr.html</a> tells about<br>
this function as well, here it is:<br>
<br>
copysign()<br>
    1<br>
    copy sign of a number(added in version 0.4)<br>
<br>
<br>
So it seems I'm supposedly doing the right thing... is it a bug? I'm on<br>
extended 0.42 and it says that it's expr version 0.4 when it loads.<br>
<br>
cheers<br>
<br>
<br>
_______________________________________________<br>
<a href="mailto:Pd-list@lists.iem.at" target="_blank">Pd-list@lists.iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -><br>
<a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
<br>
</blockquote>
<br>
</blockquote>
<br>
-- <br>
Jan Baumgart<br>
Technischer Mitarbeiter<br>
Hochschule für Musik und Darstellende Kunst<br>
Eschersheimer Landstr. 29-39<br>
60322 Frankfurt am Main<br>
</div></div></blockquote></div><br></div>