Skip to content

Simple Arduino library that speeds up trigonometry functions (Original code © Oscar Liang)

Notifications You must be signed in to change notification settings

ekosynth/SpeedTrig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

SpeedTrig

Simple Arduino library that speeds up trigonometry functions, based on work by Oscar Liang.

Simply drag the main folder into the libraries subdirectory of your Arduino IDE sketch folder.

This is a simple output (via serial) to show accuracy of library compared to the Arduino functions:

Sin 15: 
 - Standard [RAD]: 0.6503
 - Fast [DEG]: 0.2588
Cos 15: 
 - Standard [RAD]: -0.7597
 - Fast [DEG]: 0.9659
Acos .15: 
 - Standard [RAD]: 1.4202
 - Fast [RAD]: 1.4230
Atan2 5, 5: 
 - Standard [RAD]: 0.7854
 - Fast [RAD]: 0.7823

Also useful if you need degrees for sin/cos.

About

Simple Arduino library that speeds up trigonometry functions (Original code © Oscar Liang)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 83.1%
  • Other 16.9%