APS Excellence in Physics Education Award
November 2019

Education Prize Logo
Science SPORE Prize
November 2011

NSF Logo
The Open Source Physics Project is supported by NSF DUE-0442581.

Issue with atan2 in Tracker

Return to the Tracker forum
Login to post to this thread

Flipped parameters for atan2
Louis S
1 Posts

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?


Current Replies - View all
Re: Flipped parameters fo...   (Jens Biele - )
Re: Flipped parameters fo...   (Douglas Brown - )
OSP Projects:
Open Source Physics - EJS Modeling
Tracker
Physlet Physics
Physlet Quantum Physics
STP Book