Packages

case class Power(a: ComplexFunction, b: ComplexFunction) extends ComplexFunction with Product with Serializable

A function which raises one function to the power of another.

When evaluated, the result will be the result of evaluating one function to the power of the result of evaluating the other.

a

The base

b

The exponent

Source
ComplexFunction.scala
Linear Supertypes
Serializable, Serializable, Product, Equals, ComplexFunction, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Power
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ComplexFunction
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Power(a: ComplexFunction, b: ComplexFunction)

    a

    The base

    b

    The exponent

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def *(that: ComplexFunction): Multiply

    Multiplies this function by another one.

    Multiplies this function by another one.

    This creates a compound function which, when evaluated, returns the result of evaluating this function multiplied by the result of evaluating the other.

    that

    The function to be multiplied by this one

    returns

    Multiply(this, that)

    Definition Classes
    ComplexFunction
    See also

    Multiply

  4. def +(that: ComplexFunction): Add

    Adds this function to another one.

    Adds this function to another one.

    This creates a compound function which, when evaluated, returns the result of evaluating this function added to the result of evaluating the other.

    that

    The function to be added to this one

    returns

    Add(this, that)

    Definition Classes
    ComplexFunction
    See also

    Add

  5. def -(that: ComplexFunction): Subtract

    Subtracts another function from this one.

    Subtracts another function from this one.

    This creates a compound function which, when evaluated, returns the result of evaluating this function minus the result of evaluating the other.

    that

    The function to be subtracted from this one

    returns

    Subtract(this, that)

    Definition Classes
    ComplexFunction
    See also

    Subtract

  6. def /(that: ComplexFunction): Divide

    Divides this function by another one.

    Divides this function by another one.

    This creates a compound function which, when evaluated, returns the result of evaluating this function divided by the result of evaluating the other.

    that

    The function to divide this one by

    returns

    Divide(this, that)

    Definition Classes
    ComplexFunction
    See also

    Divide

  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. val a: ComplexFunction
  9. def apply(in: Map[String, Complex]): Complex

    Evaluates the complex function, substituting in the values for each variable as given in the map.

    Evaluates the complex function, substituting in the values for each variable as given in the map.

    If the function contains a variable whose value is not given by the variable map, it will throw a VariableException.

    If no map is provided, it will be empty by default. Thus, if the function contains a variable, it will throw a VariableException.

    in

    The variable map, empty by default

    returns

    The evaluated function

    Definition Classes
    PowerComplexFunction
    Exceptions thrown

    net.totietje.complex.VariableException If the function contains an undefined variable

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. val b: ComplexFunction
  12. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String

    Returns a string representation of this function.

    Returns a string representation of this function.

    returns

    A string representation of this function

    Definition Classes
    ComplexFunction → AnyRef → Any
  22. def unary_-: ComplexFunction

    Negates this function.

    Negates this function.

    This creates a function which, when evaluated, returns the negative of the result of evaluating this function.

    returns

    UnaryMinus(this)

    Definition Classes
    ComplexFunction
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def ~^(that: ComplexFunction): Power

    Raises this function to the power of another one

    Raises this function to the power of another one

    This creates a compound function which, when evaluated, returns the result of evaluating this function to the power of the result of evaluating the other.

    that

    The exponent

    returns

    Power(this, that)

    Definition Classes
    ComplexFunction
    See also

    Power

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ComplexFunction

Inherited from AnyRef

Inherited from Any

Ungrouped