Top Level Namespace
Defined Under Namespace
Modules: BasicVars, SymCalc Classes: Cos, Division, Equation, EquationValue, Exp, Ln, Log, Multiplication, Power, Sin, Subtraction, Sum, Variable
Instance Method Summary collapse
-
#to_equation(eq) ⇒ Object
Converts the given argument into the equation type, if not already an equation.
Instance Method Details
#to_equation(eq) ⇒ Object
Converts the given argument into the equation type, if not already an equation
213 214 215 216 217 218 219 |
# File 'lib/symcalc.rb', line 213 def to_equation(eq) if eq.is_a? Equation eq else EquationValue.new(eq) end end |