JeremyGrosser / rp2040_hal

Ada drivers for the Raspberry Pi RP2040 SoC
https://pico-doc.synack.me/
BSD 3-Clause "New" or "Revised" License
38 stars 11 forks source link

Wrappers for ROM trigonometry functions #23

Closed JeremyGrosser closed 10 months ago

JeremyGrosser commented 2 years ago

fsin, fcos, ftan, etc... only accept arguments in the range -128.0 .. 128.0, we need to write wrappers that either do an entirely soft math operation or scale the argument to fit the range and accept the loss of precision.

JeremyGrosser commented 10 months ago

See #32