Math POP gives unexpected results

Hello,

I’m checking the Math POP and I found that it gives incorrect or unexpected values for certain operations. Did I miss something? Please see attached example.

Best,
Darien

Build 32139

MathBug.tox (8.2 KB)

I’d say it behaves as expected. The cos(A) expects degrees. _pointU is in range 0 to 1. Hence, you have to multiply that by 360 to get the full period of cos(A), not with TAU.

An ‘Angle Units’ parameter like on the functionCHOP would be nice though.

MathBug.tox (8.2 KB)

Josef is correct, the trig functions expect degrees, currently only the trig POP allows you to specify unit for simplification.

Oh, I see! I was doubting indeed if I misunderstood the expected input. I’m used to pass radians for trig functions in code, so that was my first instinct :smile:

+1 for an “Angle units” toggle, which I think will prevent any confusions.

1 Like