PHP Classes
elePHPant
Icontem

PHP Complex Numbers class: Perform arithmetic operations with complex numbers

Recommend this page to a friend!
  Info   View files Example   View files View files (4)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Last Updated Ratings Unique User Downloads Download Rankings
2017-05-16 (2 months ago) RSS 2.0 feedNot enough user ratingsTotal: 91 This week: 1All time: 8,773 This week: 599Up
Version License PHP version Categories
m2 1.0Custom (specified...5PHP 5, Math
Description Author

This package can perform arithmetic operations with complex numbers.

It can store a complex number value with real and imaginary parts.

The class can perform several types of complex number operation like:

- SQuare Root (sqrt)
- Exponentiation (pow)
- Inversion
- Absolute value (abs)
- Addition, subtraction, multiplication and division

  Performance   Level  
Name: zinsou A.A.E.Moïse <contact>
Classes: 9 packages by
Country: Benin Benin
Innovation award
Innovation award
Nominee: 1x

Details
ArComplex.class.package is a package for handling complex arithmetic on/with PHP Language.
This class allows users to do all human can do on or with complex numbers.
This class is very easy  to use and also very easy to understand. ArComplex.class.package allows
users to specify his complex number just like an array
example:  $a=new Arcomplex(array(-4,6)); where the first element is real and the second imaginary...
or 
example:$a=new Arcomplex(array('Im||im||i||I||imaginary'=>-4,'Re||re||r||R||real'=>6))); here the order doesn't count

or as a numeric for complex number with only real part just as 
example $a=new Arcomplex(-4);

or even more easily as a string:
example: $c=new Arcomplex('0.001+0.6533I'); or $c=new Arcomplex('0.001+0.6533i'); or $c=new Arcomplex('0.001+I'); or $c=new Arcomplex('0.001i');//the last example is
a complex with just an imaginary part..... and so one....

For other examples, see the 'complextest.php' file or read the class declaration to understand...

The package contains two classes: one for basics operations on one complex number and one other for operations between two complex number...  

For more informations or bug reporting or suggestions Please contact me at this e-mail leizmo@gmail.com 
  Files folder image Files  
File Role Description
Plain text file ArComplex.class.php Class ArComplex.class
Accessible without login Plain text file complextest.php Example test
Accessible without login Plain text file license Lic. license
Accessible without login Plain text file readme Doc. readme

 Version Control Unique User Downloads Download Rankings  
 0%
Total:91
This week:1
All time:8,773
This week:599Up