Package

equations

monooperation

Permalink

package monooperation

Visibility
  1. Public
  2. All

Type Members

  1. sealed trait MonoOperation extends AnyRef

    Permalink

    A trait to represent a monooperation equation.

    A trait 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)

Value Members

  1. object MonoOperation extends MonoOperation

    Permalink

    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)

Ungrouped