Fermat icon indicating copy to clipboard operation
Fermat copied to clipboard

Extend the 'Native' Calculation Mode to Bypass All Functions

Open JordanRL opened this issue 3 years ago • 0 comments

The native calculation mode has been available since v1.1.0, however it only controls the behavior of arithmetical operations. None of the trigonometry or exponential methods take advantage of this setting currently, and these are some of the heaviest functions within the entire library.

Though their would eventually see benefit from the mode setting, once the operation had been reduced to a series of multiply, divide, add, and subtract operations, this is fundamentally unnecessary if the program has indicated it is alright with accepting the limitations of int and floats in PHP. The purpose of this setting is to allow a program to use this library as a common fluent interface for math itself, instead of arbitrary precision.

  • [ ] Make basic trig functions mode aware
  • [ ] Make inverse trig functions mode aware
  • [ ] Make hyperbolic trig functions mode aware
  • [ ] Make logs mode aware
  • [ ] Make exponentials, pow, and sqrt mode aware

JordanRL avatar Jul 02 '21 00:07 JordanRL