class CAS::MinMax

Class MinMax is an intermediate class for Min and Max functions. It contains shared code and methods

Public Instance Methods

to_latex() click to toggle source

Convert MinMax function into LaTeX representation

* **returns**: `String` of LaTeX code
# File lib/functions/fnc-piecewise.rb, line 142
def to_latex
  "\\mathrm{#{@type}}\\left( \\begin{array}{c} #{@x.to_latex} \\\\ #{@y.to_latex} \\end{array} \\right)"
end
to_s() click to toggle source

Returns a string representation for the current operation

* **returns**: `String`
# File lib/functions/fnc-piecewise.rb, line 149
def to_s
  "#{@type}(#{@x}, #{@y})"
end