Creates a Scalar.Constant object from number.
One may optionally pass in a string by which this
object
may be identified by.
Using the constructor 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 expression.
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 expression.
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.
Checks whether a method exists on the object or as a static member of the class.
Name of the method.
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 expression.
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 expression.
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 expression.
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 expression.
The Scalar to add to this
.
Expression for subtracting that
from this
.
Computes the absolute value of a Scalar.
A constant scalar.
Computes the absolute value of a Scalar.
A scalar variable or expression.
Calculates the inverse trigonometric cosine of a Scalar.
A scalar constant.
Calculates the inverse trigonometric cosine of a Scalar.
A scalar variable or expression.
Calculates the inverse hyperbolic cosine of a Scalar.
A scalar constant.
Calculates the inverse hyperbolic cosine of a Scalar.
A scalar variable or expression.
Calculates the inverse trigonometric sine of a Scalar.
A scalar constant.
Calculates the inverse trigonometric sine of a Scalar.
A scalar variable or expression.
Calculates the inverse hyperbolic sine of a Scalar.
A scalar constant.
Calculates the inverse hyperbolic sine of a Scalar.
A scalar variable or expression.
Calculates the inverse trigonometric tangent of a Scalar.
A scalar constant.
Calculates the inverse trigonometric tangent of a Scalar.
A scalar variable or expression.
Calculates the inverse hyperbolic tangent of a Scalar.
A scalar constant.
Calculates the inverse hyperbolic tangent of a Scalar.
A scalar variable or expression.
Evaluates the smallest integer greater than or equal to a Scalar.
A scalar constant.
Evaluates the smallest integer greater than or equal to a Scalar.
A scalar variable or expression.
Calculates the trigonometric cosine of a Scalar.
A scalar constant.
Calculates the trigonometric cosine of a Scalar.
A scalar variable or expression.
Calculates the hyperbolic cosine of a Scalar.
A scalar constant.
Calculates the hyperbolic cosine of a Scalar.
A scalar variable or expression.
Calculates the exponential of a Scalar.
A scalar constant.
Calculates the exponential of a Scalar.
A scalar variable or expression.
Evaluates the largest integer less than or equal to a Scalar.
A scalar constant.
Evaluates the largest integer less than or equal to a Scalar.
A scalar variable or expression.
Calculates the natural logarithm (to the base \( e \)) of a Scalar.
A scalar constant.
Calculates the natural logarithm (to the base \( e \)) of a Scalar.
A scalar variable or expression.
Calculates the common logarithm (to the base \( 10 \)) of a Scalar.
A scalar constant.
Calculates the common logarithm (to the base \( 10 \)) of a Scalar.
A scalar variable or expression.
Calculates the trigonometric sine of a Scalar.
A constant scalar.
Calculates the trigonometric sine of a Scalar.
A scalar variable or expression
Calculates the hyperbolic sine of a Scalar.
A scalar constant.
Calculates the hyperbolic sine of a Scalar.
A scalar variable or expression.
Calculates the trigonometric tangent of a Scalar.
A scalar constant.
Calculates the trigonometric tangent of a Scalar.
A scalar variable or expression.
Calculates the hyperbolic tangent of a Scalar.
A scalar constant.
Calculates the hyperbolic tangent of a Scalar.
A scalar variable or expression.
Generated using TypeDoc
Represents a constant scalar quantity with a fixed value.