Monom - MaayanZeevi/OO_Ex1 GitHub Wiki

This class represents a simple "Monom" of shape a*x^b, where a is 'a' real number and 'b' is an integer.

The class monom supports some methods as:

  • add
  • derivative
  • f(x)
  • multiply
  • subtract
  • root - Finds the point of intersection of the polynomial in the given range
  • area - Returns the value of the area in the given range
  • copy
  • is equal
  • is zero
  • toString