Monom - liorls/Ex1 GitHub Wiki

The Monom is looks like this: ax^b : ‘a’ is a real number and ‘b’ is a natural number.

The functions:

  • Constructor
  • Getters and setters (get_coefficient, get_power, set_coefficient, set_power)
  • Derivative- returns the Monom’s derivative.
  • f- calculates a function of type y=f(x).
  • Add, Multiply- 2 monoms (only if they have the same power).
  • toString- Return a string of the Monom.
  • Equals- Checks if 2 monoms is same.
  • Copy- deep copy of the monom.
  • initFromString- Create monom object by type the monom as a string.