math-php
Public Member Functions | List of all members
MathPHP\Number\ObjectArithmetic Interface Reference

Interface: ObjectArithmetic Defines the necessary arithmetic function object need to support to perfom mathematical function on the object. More...

Inheritance diagram for MathPHP\Number\ObjectArithmetic:
Inheritance graph
[legend]

Public Member Functions

 add ($object_or_scalar)
 Function: add Add two objects together. More...
 
 subtract ($object_or_scalar)
 
 multiply ($object_or_scalar)
 

Detailed Description

Interface: ObjectArithmetic Defines the necessary arithmetic function object need to support to perfom mathematical function on the object.

Member Function Documentation

◆ add()

MathPHP\Number\ObjectArithmetic::add (   $object_or_scalar)

Function: add Add two objects together.

Parameters
mixed$object_or_scalarthe value to be added
Returns
ObjectArithmetic sum.

Implemented in MathPHP\Functions\Polynomial, MathPHP\Number\Complex, and MathPHP\Number\Rational.


The documentation for this interface was generated from the following file: