Creates a Scalar.Constant object from number.
One may optionally pass in a string by which this
object
may be identified by.
Using the contructor directly for creating vector objects is not recommended.
The fixed value this
should represent.
The name by which this
is identified.
The name by which this
is identified.
The fixed value this
should represent.
Adds two Scalar.Constant objects numerically.
The Scalar.Constant to add to this
.
The algebraic sum of this
and that
.
Creates and returns a Scalar.Expression for the addition of
two Scalar objects. The type of this
does not matter because
adding a variable scalar to another scalar always results in an expresion.
The Vector to add to this
.
Expression for sum of this
and that
.
Divides one Scalar.Constant object by another numerically.
The Scalar.Constant to divide this
by.
The scalar quotient of dividing this
by that
.
Creates and returns a Scalar.Expression for the division of
two Scalar objects. The type of this
does not matter because
dividing a variable scalar by another scalar always results in an expresion.
The Scalar to divide this
by this
.
Expression for dividing this
by that
.
Checks for equality of two scalar constants. The equality check
for floating point numbers becomes problematic in the decimal system.
The binary representation is finite and therefore even if two values
are in fact equal they may not return true by using the ==
or ===
equality. To tackle this problem we use a tolerance value, if the
difference of the two numerical values is less than that tolerance
value then we can assume the values to be practically equal. Smaller
tolerance values will result in more accurate checks.
This function allows a default tolerance of 1e-14
for floating point numbers.
The value to check equality with.
Checks for equality of two scalar constants. The equality check
for floating point numbers becomes problematic in the decimal system.
The binary representation is finite and therefore even if two values
are in fact equal they may not return true by using the ==
or ===
equality. To tackle this problem we use a tolerance value, if the
difference of the two numerical values is less than that tolerance
value then we can assume the values to be practically equal. Smaller
tolerance values will result in more accurate checks.
The value to check equality with.
The tolerance permitted for floating point numbers.
Multiplies two Scalar.Constant objects numerically.
The Scalar.Constant to subtract from this
.
The vector difference of this
from that
.
Creates and returns a Scalar.Expression for the multiplication of
two Scalar objects. The type of this
does not matter because
multiplying a variable scalar by another scalar always results in an expresion.
The Scalar to add to this
.
Expression for subtracting that
from this
.
Scales a Vector.Constant object numerically.
The Vector.Constant to scale by the amount of this
.
The scaled vector.
Creates and returns a Vector.Expression for the scaling of
a Vector object. The type of this
does not matter because
scaling a variable vector by a scalar always results in an expresion.
The Vector to scale by the amount of this
.
Expression for scaling that
by this
.
Raises a Scalar.Constant object to the power of another numerically.
The Scalar.Constant power to raise this
to.
The scalar exponentiation of this
by that
.
Creates and returns a Scalar.Expression for exponentiation of
two Scalar objects. The type of this
does not matter because
exponentiating a scalar by a variable scalar always results in an expresion.
The Scalar power to raise this
to.
Expression for exponentiating this
by that
.
Subtracts one Scalar.Constant object from another numerically.
The Scalar.Constant to subtract from this
.
The algebraic difference of this
from that
.
Creates and returns a Scalar.Expression for the subtraction of
two Scalar objects. The type of this
does not matter because
subtracting a variable scalar from another scalar always results in an expresion.
The Scalar to add to this
.
Expression for subtracting that
from this
.
Generated using TypeDoc
Represents a constant scalar quantity with a fixed value.
Scalar