Hi! When I look at the available mathematical functions in tracker (which uses the OSP parser), the documentation describes atan2(x, y). However, atan2 is conventionally called by atan2(y, x). This line in OSP (https://github.com/OpenSourcePhysics/osp/blob/master/src/org/opensourcephysics/ejs/control/value/ParserSuryono.java#L1093) seems to indicate that it should be atan2(y, x) in the documentation. Thoughts?

Hi, this is an eternal issue... atan2 is a function of 2 arguments, c*sin(alpha) and c*cos(alpha), where c is an arbitrary constant, and it returns alpha in the correct quadrant.

Louis, you are absolutely right. Thanks for finding that error! Doug

> Re: Flipped parameters for atan2 > > Hi! When I look at the available mathematical functions > in tracker (which uses the OSP parser), the documentation > describes atan2(x, y). However, atan2 is conventionally > called by atan2(y, x). This line in OSP (https://github.com/OpenSourcePhysics/osp/blob/master/src/org/opensourcephysics/ejs/control/value/ParserSuryono.java#L1093) > seems to indicate that it should be atan2(y, x) in > the documentation. Thoughts?