There are some classes and interfases for make calculates in php. It need for my course work in university. I understand that may be C/C++ much better for computing, but it only protoptype, maybe in future I transfer it to C++ or lisp. Also there are my examples of code style and system design.
Sorry if I take name of the existing package. But I do not find anything before I start write. All that I wrote self. You can write me by mail: volkovdanil91@gmail.com
Some description of classes and interfases:
- Interfases:
- INumber - base interfase for all classes.
- ISingle - interfase for Single classes like integer.
- IComposite - interfase for Composite classes like fractions, complex and etc.
- Classes:
- CInteger - class for integers (GMP numbers).
- CFraction - fractions class, for all calculations.
- CVector - array of the some elements.
- CMatrix - CVector of CVector. But it must be rectangle (Vector can be as staircase)
- CSolver - class for some alghoritms.
This is not a complete project, I am still working on it. More problems now with create method of ISingle and IComposite. Also CVector and CMatrix mul. So I think how do it all better.
If you have some ideas of criticism you can write me volkovdanil91@gmail.com
Please write on the subject of mail - "phpMath"
Regards,
Danil