Monom - NoaAizer/OOP_Ex1 GitHub Wiki

This class represents a simple "Monom" of shape ax^b, where a is a real number (the coefficient) and b (the power) is an integer (summed a nonnegative).
For more information: https://en.wikipedia.org/wiki/Monomial

The functions-

Constructors:
• Default constructor
• Copy constructor
• String constructor- Init a Monom from a String.
Getters and setters:
• get_coefficient
• get_power
• set_coefficient
• set_power
Derivative- This function returns the Monom’s derivative.
f- This function calculates a simple function of type y=f(x) – (implements of the interface function).
isZero- Test if this is the Zero Monom.
Add- Add 2 monoms (only if they have the same power).
Multiply- Multiply 2 monoms.
toString- Return a string of the Monom.
Equals- Checks the logically equality of 2 monoms.
getNewZeroMonom- Creates a zero monom.

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