A trait to represent a monooperation equation.
A companion object of trait MonoOperation to represent a monooperation equation.
A companion object of trait MonoOperation to represent a monooperation equation.
Specify the variable
and constant
when calling the solveM function like this:
x = 3 + 4 scala> solveM(List(None), List(Some(3), Some(4)), 'add) Some(7.0) 25 = x * 5 scala> solveM(List(Some(25)), List(None, Some(5)), 'multiple) Some(5.0)
A trait to represent a monooperation equation.
Specify the
variable
andconstant
when calling the solveM function like this: