Polynom - NoaAizer/OOP_Ex1 GitHub Wiki

This class is an implemention of Polynom_able interface.
The Polynom is from the type of f(x) = a_1X^b_1 + a_2x^b_2 ... a_nX^b_n,
and does not consist the chars _ , (), / and *.
For more information: https://en.wikipedia.org/wiki/Polynomial

The functions-

Constructors:
• Default constructor
• Copy constructor (deep copy)
• string constructor- Init a Monom from a String.

f- Calculates a simple function of type y=f(x) – (implements of the interface function).

Add:
• Polynom_able- add 2 Polynoms.
• Monom- add a Monom to the Polynom.

Substract- subtract between two Polynoms.

Multiply:
• Polynom_able- Multiply 2 Polynoms.
• Monom- Multiply a Monom with a Polynom.

Equals- Tests if the Polynom is logically equals to other one.

isZero- Tests if this is the zero Polynom.

Root- Finds a numerical value between two values when f(x)=0 (or farther than that at most in eps).

Derivative- Returns the Polynom’s derivative.

Area- Computes a Riman's integral from x0 to x1 in eps steps.
     • For more information: https://en.wikipedia.org/wiki/Riemann_integral

Iterator- Passing on the Polynom (on each Monom of the Polynom)

toString- Returns a string of the Polynom.

⚠️ **GitHub.com Fallback** ⚠️