Where is the documentation for math functions?

mkoch

Active member
Hi,

I'd like to know where the math functions are documented.
I found a list here: https://www.arduino.cc/reference/en/
But this list is incomplete. For example atan(), atan2(), log(), asin(), acos() are missing in the list, but they are available. I wonder what else functions exist.

Thanks,
Michael
 
Some math functions beyond the C++ library follow Arduino's documentation. map() and constrain() are the most commonly used.

https://www.arduino.cc/reference/en/language/functions/math/map/

https://www.arduino.cc/reference/en/language/functions/math/constrain/

However, Teensy's map() function has a (more or less undocumented) extension where it will use floating point math if the input variable is float or double. But when the input is an integer, integer math is used as "Notes & Warnings" says on Arduino's documentation.
 
Back
Top