[PD] expression with arctn

IOhannes m zmölnig zmoelnig at iem.at
Sun Feb 2 22:44:51 CET 2020


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 at iem.at> wrote:
> 
>> Am 2. Februar 2020 20:52:14 MEZ schrieb "Csaba Láng" <langcsaba at gmail.com
>>> :
>>> thank you gentlemen, this is what I needed. never figured out that atan
>>> is
>>> arctn.
>>
>> in general, you might prefer `atan2` over `atan`, as this allows for all
>> four quadrants.
>>
>> `[expr]` has both variants.
>>
>>
>> mfg.hft.fsl
>> IOhannes
>>
>>
>> _______________________________________________
>> Pd-list at lists.iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> https://lists.puredata.info/listinfo/pd-list
>>
> 
> 
> _______________________________________________
> Pd-list at lists.iem.at mailing list
> UNSUBSCRIBE and account-management -> https://lists.puredata.info/listinfo/pd-list
> 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puredata.info/pipermail/pd-list/attachments/20200202/6143990b/attachment.sig>


More information about the Pd-list mailing list