prb-math
prb-math copied to clipboard
Add sinus and cosinus for SD59x18
(work in progress)
Note: https://github.com/mds1/solidity-trigonometry/blob/main/src/Trigonometry.sol should be considered. I don't understand the underlying logic, but if translated to signed integers, it might be cheaper / more accurate ?
Hi @Amxx, thank you for your PR. I just wanted to say that it might take a few weeks (or more) until I'm able to review this.
The lint job appears to be failing. Have you run forge fmt locally? Using VSCode should automatically do this for you.
@PaulRBerg Sure, not rush. There may be otehr implementations that deserves exploring anyway.