On 2/2/20 9:59 PM, Csaba Láng wrote:
looks like [atan2] works for me better than the expression you gave. indeed i need all 4 quarters, what the expression does not indicate.
how should it?
anyhow, you *can* use [expr atan2($f2,$f1)] which does the same (though of course, if you only want the arctangens, [atan2] is simpler and faster)
gfadsrm IOhannes
On Sun, Feb 2, 2020 at 9:01 PM IOhannes m zmölnig zmoelnig@iem.at wrote:
Am 2. Februar 2020 20:52:14 MEZ schrieb "Csaba Láng" <langcsaba@gmail.com
: thank you gentlemen, this is what I needed. never figured out that atan is arctn.
in general, you might prefer
atan2
overatan
, as this allows for all four quadrants.
[expr]
has both variants.mfg.hft.fsl IOhannes
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
Pd-list@lists.iem.at mailing list UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list