ArithmeticSimpleTrait
- namespace
- Samsara\Fermat\Types\Traits
- uses
-
- ArithmeticScaleTrait
- ArithmeticNativeTrait
- ArithmeticSelectionTrat
- satisfies
- SimpleNumberInterface (partially)
The ArithmeticSimpleTrait
provides the implementations for all arithmetic functions that exist on values that implement the SimpleNumberInterface
. The additional imported traits within this trait provide the various calculation modes that are used internally depending on the mode of object executing the method call.
Accepts Complex Numbers as Arguments
While the ArithmeticSimpleTrait
can accept implementations of ComplexNumber
as arguments, it cannot be used in implementations of ComplexNumber
.
See Also
More detailed information on this trait is available on the Arithmetic > Simple Numbers page.