Adds two Scalars together. If this
and that
are both constants
then numerically adds the two and returns a new Scalar.Constant object
otherwise creates an Expression out of them and returns the same.
The scalar to add this
with.
The result of algebraic addition.
Divides this
scalar by that
. If this
and that
are both constants
then numerically divides the two and returns a new Scalar.Constant object
otherwise creates an Expression out of them and returns the same.
The scalar to divide this
by.
The result of algebraic division.
Multiplies two Scalars together. If this
and that
are both constants
then numerically multiplies the two and returns a new Scalar.Constant object
otherwise creates an Expression out of them and returns the same.
The scalar to multiply this
with.
The result of algebraic multiplication.
Raises this
scalar to the power of that
. If this
and that
are both constants
then numerically evaluates the exponentiation and returns a new Scalar.Constant object
otherwise creates an Expression out of them and returns the same.
The scalar to divide this
by.
The result of algebraic division.
Subtracts that
from this
. If this
and that
are both constants
then numerically subtracts one from the other and returns a new
Scalar.Constant object otherwise creates an Expression out of them
and returns the same.
The scalar to subtract from this
.
The result of algebraic subtraction.
Creates a new Scalar.Constant object from a number if it has not been created before. Otherwise just returns the previously created object.
This is the recommended way of creating Scalar.Constant objects instead of using the constructor.
The fixed value the Scalar.Constant is supposed to represent.
Defines a named Scalar.Constant object from a number if it has not been created before. Otherwise just returns the previously created object.
This is the recommended way of creating named Scalar.Constant objects instead of using the constructor.
The fixed value the Scalar.Constant is supposed to represent.
The string with which this
object is identified.
Returns a previously declared named Scalar.Constant object.
The name of the named Scalar.Constant object to be retrieved.
Creates a new Scalar.Variable object if it has not been created before. Otherwise just returns the previously created object.
Generated using TypeDoc
Base class to works with scalar quantities.