Monday, May 16, 2016

Classes for numerical data manipulation

For complicated numerical calculation we can use these classes instead of using php built-in functions in which we still write some long lines of codes. These classes can be downloaded from phpclasses.com or from here (9kb).

Files included in the package are:

class.complex.php
Class for manipulating complex numbers
class.hist.php
Class to generate a histogram from an array of data
pkg.arith.php
A set of simple arithmetic functions
pkg.geom.php
Geometrical functions
pkg.stats.php
Statistical functions for unidimensional data arrays
pkg.trig.php
Trigonometric functions to complement the ones in PHP
utils.inc.php
Utility functions (error handling, etc.) to be used by
other packages or classes in numPHP