Atan2 is not defined

2 * atan2( sqrt(a), sqrt(1-a) )

atan2 is not in the window scope. Try Math.atan2: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/atan2

1 Like

Also, please google stuff. This is the second question

1 Like
2 Likes