class CAS::Min
Min
class represent a piecewise in which the condition is `f(x) ≤ g(x)`. Derivate a `CAS::Min` 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::Min` 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 186 def initialize(x, y) super(x, y, CAS::smaller_equal(x, y)) @type = "min" end