object ComplexFunction
A companion object for the ComplexFunction
trait.
This contains all the subclasses of the sealed ComplexFunction
class, and
implicit conversions.
- Source
- ComplexFunction.scala
- Alphabetic
- By Inheritance
- ComplexFunction
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Abs
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the absolute of another.
A function which is the absolute of another.
When evaluated, the result will be the absolute of the result of evaluating the other function. Since the absolute only returns real numbers, the result will have imaginary part 0.
- argument
The function of which this is the absolute
-
case class
Acos
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse cosine of another.
A function which is the inverse cosine of another.
When evaluated, the result will be the inverse cosine of the result of evaluating the other function.
- argument
The function of which this is the inverse cosine
-
case class
Acosh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse hyperbolic cosine of another.
A function which is the inverse hyperbolic cosine of another.
When evaluated, the result will be the inverse hyperbolic cosine of the result of evaluating the other function.
- argument
The function of which this is the inverse hyperbolic cosine
-
case class
Add
(left: ComplexFunction, right: ComplexFunction) extends BinaryFunction with Product with Serializable
A function which adds together two other functions.
A function which adds together two other functions.
When evaluated, the result will be the result of evaluating one function added to the result of evaluating the other.
- left
One of the two functions to be added
- right
The other of the two functions to be added
-
case class
Arg
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the argument of another.
A function which is the argument of another.
When evaluated, the result will be the argument of the result of evaluating the other function. Since the argument only returns real numbers, the result will have imaginary part 0.
- argument
The function of which this is the argument
-
case class
Asin
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse sine of another.
A function which is the inverse sine of another.
When evaluated, the result will be the inverse sine of the result of evaluating the other function.
- argument
The function of which this is the inverse sine
-
case class
Asinh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse hyperbolic sine of another.
A function which is the inverse hyperbolic sine of another.
When evaluated, the result will be the inverse hyperbolic sine of the result of evaluating the other function.
- argument
The function of which this is the inverse hyperbolic sine
-
case class
Atan
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse tangent of another.
A function which is the inverse tangent of another.
When evaluated, the result will be the inverse tangent of the result of evaluating the other function.
- argument
The function of which this is the inverse tangent
-
case class
Atanh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the inverse hyperbolic tangent of another.
A function which is the inverse hyperbolic tangent of another.
When evaluated, the result will be the inverse hyperbolic tangent of the result of evaluating the other function.
- argument
The function of which this is the inverse hyperbolic tangent
-
abstract
class
BinaryFunction
extends ComplexFunction
Represents a
ComplexFunction
with two arguments. -
case class
Conj
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the conjugate of another.
A function which is the conjugate of another.
When evaluated, the result will be the conjugate of the result of evaluating the other function, that is, it will have the same real part but a negated imaginary part.
- argument
The function of which this is the conjugate
-
case class
Constant
(value: Complex) extends NullaryFunction with Product with Serializable
A constant which, when evaluated, always returns the same value.
A constant which, when evaluated, always returns the same value.
- value
The value that this constant represents
-
case class
Cos
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the cosine of another.
A function which is the cosine of another.
When evaluated, the result will be the cosine of the result of evaluating the other function.
- argument
The function of which this is the cosine
-
case class
Cosh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the hyperbolic cosine of another.
A function which is the hyperbolic cosine of another.
When evaluated, the result will be the hyperbolic cosine of the result of evaluating the other function.
- argument
The function of which this is the hyperbolic cosine
-
case class
Divide
(left: ComplexFunction, right: ComplexFunction) extends BinaryFunction with Product with Serializable
A function which divides one function by another.
A function which divides one function by another.
When evaluated, the result will be the result of evaluating one function divided by the result of evaluating the other.
- left
The dividend
- right
The divisor
-
case class
Im
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the imaginary part of another.
A function which is the imaginary part of another.
When evaluated, the result will be the imaginary part of the result of evaluating the other function. The result will have imaginary part 0, and its real part will be equal to the imaginary part of the other function.
- argument
The function of which this is the imaginary part
-
case class
Log
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the natural logarithm of another.
A function which is the natural logarithm of another.
When evaluated, the result will be the natural logarithm of the result of evaluating the other function.
- argument
The function of which this is the natural logarithm
-
case class
Multiply
(left: ComplexFunction, right: ComplexFunction) extends BinaryFunction with Product with Serializable
A function which multiplies one function by another.
A function which multiplies one function by another.
When evaluated, the result will be the result of evaluating one function multiplied by the result of evaluating the other.
- left
The first function to be multiplied
- right
The second function to be multiplied
-
abstract
class
NullaryFunction
extends ComplexFunction
Represents a
ComplexFunction
with no arguments. -
case class
Power
(left: ComplexFunction, right: ComplexFunction) extends BinaryFunction with Product with Serializable
A function which raises one function to the power of another.
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.
- left
The base
- right
The exponent
-
case class
Re
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the real part of another.
A function which is the real part of another.
When evaluated, the result will be the real part of the result of evaluating the other function. The result will have imaginary part 0.
- argument
The function of which this is the real part
-
case class
Sin
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the sine of another.
A function which is the sine of another.
When evaluated, the result will be the sine of the result of evaluating the other function.
- argument
The function of which this is the sine
-
case class
Sinh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the hyperbolic sine of another.
A function which is the hyperbolic sine of another.
When evaluated, the result will be the hyperbolic sine of the result of evaluating the other function.
- argument
The function of which this is the hyperbolic sine
-
case class
Sqrt
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the square root of another.
A function which is the square root of another.
When evaluated, the result will be the square root of the result of evaluating the other function.
- argument
The function of which this is the square root
-
case class
Subtract
(left: ComplexFunction, right: ComplexFunction) extends BinaryFunction with Product with Serializable
A function which subtracts one function from another.
A function which subtracts one function from another.
When evaluated, the result will be the result of evaluating one function subtracted from the result of evaluating the other.
- left
The minuend
- right
The subtrahend
-
case class
Tan
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the tangent of another.
A function which is the tangent of another.
When evaluated, the result will be the tangent of the result of evaluating the other function.
- argument
The function of which this is the tangent
-
case class
Tanh
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the hyperbolic tangent of another.
A function which is the hyperbolic tangent of another.
When evaluated, the result will be the hyperbolic tangent of the result of evaluating the other function.
- argument
The function of which this is the hyperbolic tangent
-
abstract
class
TernaryFunction
extends ComplexFunction
Represents a
ComplexFunction
with three arguments. -
abstract
class
UnaryFunction
extends ComplexFunction
Represents a
ComplexFunction
with one argument. -
case class
UnaryMinus
(argument: ComplexFunction) extends UnaryFunction with Product with Serializable
A function which is the negative of another.
A function which is the negative of another.
When evaluated, the result will be the negative of the result of evaluating the other function.
- argument
The function to be negated
-
case class
Variable
(variable: String) extends NullaryFunction with Product with Serializable
A variable which, when evaluated, will return its respective function in the variable map.
A variable which, when evaluated, will return its respective function in the variable map.
If, when evaluated, the variable's string representation is not found in the map, it will throw a VariableException.
- variable
The string representation of the variable
-
abstract
class
VariadicFunction
extends ComplexFunction
Represents a
ComplexFunction
with a variable number of arguments.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
implicit
def
toConstant(v: Int): Constant
Implicitly wraps the input as a Constant.
-
implicit
def
toConstant(v: Double): Constant
Implicitly wraps the input as a Constant.
-
implicit
def
toConstant(v: Complex): Constant
Implicitly wraps the input as a Constant.
Implicitly wraps the input as a Constant.
- v
The input to be converted to a
Constant
.- returns
A
Constant
which, when evaluated, will return the input.
-
implicit
def
toSet(implicit str: String): Set[String]
Implicitly converts a
String
into aSet[String]
Implicitly converts a
String
into aSet[String]
- str
The
String
to convert- returns
A
Set[String]
containing only the input
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
object
BinaryFunction
The companion object for the
BinaryFunction
class, containing only an unapply method. -
object
NullaryFunction
The companion object for the
NullaryFunction
class, containing only an unapply method. -
object
TernaryFunction
The companion object for the
TernaryFunction
class, containing only an unapply method. -
object
UnaryFunction
The companion object for the
UnaryFunction
class, containing only an unapply method. -
object
VariadicFunction
The companion object for the
VariadicFunction
class, containing only an unapply method.
This is the documentation for the Evaluator project (see GitHub).
The main package net.totietje.evaluator. The net.totietje.complex package contains an example usage of this package, which may also be useful.