Coder-Spirit / php-bignumbers

A robust library to handle immutable big numbers inside PHP applications
MIT License
131 stars 29 forks source link

Add BigComplex type #29

Closed castarco closed 8 years ago

castarco commented 9 years ago

Complex numbers are very interesting because they have a lot of uses in scientific and engineering computations. They are a MUST in a good numeric computation library.

This new feature must be carefully designed because ideally it have to use the other numeric types internally to reuse code and obtain a clean class. The problem is that we have Decimal, but also we're planning to add BigRational and BigInteger.

Maybe we can't discard using BigInteger, but the first two options should be an option to represent the complex number components, so we need a very flexible class.