Trigonometric Integer Math Library

Warning message

The Propeller Object Exchange system is decommissioned and replaced with a GitHub repository to house the same existing and future Propeller objects. As of 12/5/2019, this site is read-only. You can continue to browse and download objects from here for a limited time; however, please begin using the Parallax Propeller repository for future reference.
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0
Request group membership
By: created: 2013-04-17 | updated: 2018-08-06

A trigonometric integer math library. The code has been fully optimized with a super simple spin interface for maximum speed and is also fully commented.

Provides full support for:

  • Taking the SIN of an angle (0-360),
  • Taking the COS of an angle (0-360),
  • Taking the TAN of an angle (0-360),
  • Finding the ARCSIN of a triangle,
  • Finding the ARCCOS of a triangle,
  • Finding the ARCTAN of a triangle,
  • Preforming the ATAN2 calculation,
  • Preforming the DISTANCE calculation,
  • Calculating integer powers,
  • Calculating random numbers,


Original File Upload
Binary Data SL32_INTEngine_2.spin84.84 KB


[originally posted by Anonymous on 2011-03-12 01:21:13] I tested atan2 for an hexapod... it is 4 times slower than float32full...

[originally posted by Kwabena W. Agyeman on 2011-07-30 03:20:28] It's in SPIN. It saves you a cog.