class CAS::Max

Max class represent a piecewise in which the condition is `f(x) ≥ g(x)`. Derivate a `CAS::Max` will return a `CAS::Piecewise` (since condition will not depend anymore on object functions)

Public Class Methods

new(x, y) click to toggle source

To initialize `CAS::Max` only the two functions are necessary. The condition is automatically generated

* **argument**: `CAS::Op` first function
* **argument**: `CAS::Op` second function
Calls superclass method CAS::Piecewise::new
# File lib/functions/fnc-piecewise.rb, line 167
def initialize(x, y)
  super(x, y, CAS::greater_equal(x, y))
  @type = "max"
end