PHP Class MathPHP\Functions\Arithmetic

Show file Open project: markrogoyski/math-php

Public Methods

Method Description
add ( variadic $args ) : callable Adds any number of single variable (callback) functions {f(x)}. Returns the sum as a callback function.
multiply ( variadic $args ) : callable Multiplies any number of single variable (callback) functions {f(x)}.

Method Details

add() public static method

Adds any number of single variable (callback) functions {f(x)}. Returns the sum as a callback function.
public static add ( variadic $args ) : callable
$args variadic
return callable Sum of the input functions

multiply() public static method

Returns the product as a callback function.
public static multiply ( variadic $args ) : callable
$args variadic
return callable Product of the input functions