Constants
Definitions of constant fields.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
Constants.type
Members list
Value members
Concrete fields
Gravitational Constant: 6.67430(15)E-11 https://en.wikipedia.org/wiki/Gravitational_constant
Gravitational Constant: 6.67430(15)E-11 https://en.wikipedia.org/wiki/Gravitational_constant
Attributes
Represents a constant Field value of "Not a Number" (NaN). NaN is used to signify an undefined or unrepresentable value, especially in numerical computations that result in invalid operations like division by zero or operations involving undefined values.
Represents a constant Field value of "Not a Number" (NaN). NaN is used to signify an undefined or unrepresentable value, especially in numerical computations that result in invalid operations like division by zero or operations involving undefined values.
This value is of type Real and wraps the predefined NaN value from the Number type.
Attributes
Represents the mathematical constant e (Euler's number, approximately 2.718), encapsulated as a Real value.
Represents the mathematical constant e (Euler's number, approximately 2.718), encapsulated as a Real value.
Attributes
Represents the constant value of one-half (0.5) as a Real.
Represents the constant value of one-half (0.5) as a Real.
This value is derived from Number.half. It is a predefined value within the Constants class and can be used in mathematical computations requiring the value of 1/2.
Attributes
A pre-defined constant for the imaginary unit i, which represents the square root of -1. This is a standard component of complex numbers used in fields involving imaginary and real number computations.
A pre-defined constant for the imaginary unit i, which represents the square root of -1. This is a standard component of complex numbers used in fields involving imaginary and real number computations.
Attributes
Represents positive infinity in the domain of real numbers.
Represents positive infinity in the domain of real numbers.
This value is of type Real and is constructed using a Number encapsulating a Rational.infinity. It is a constant member of the Constants class and indicates the concept of unbounded growth in mathematics.
Attributes
Represents the negative of the one field element.
Represents the negative of the one field element.
This value is computed by applying the unary - operation on the one element, resulting in the additive inverse of the one field.
Provides a convenient symbolic representation for the value -1 within the context of the Field trait.
Attributes
A predefined constant representing negative infinity as a real number. This is constructed using a Number wrapping the rational representation of negative infinity.
A predefined constant representing negative infinity as a real number. This is constructed using a Number wrapping the rational representation of negative infinity.
Attributes
Represents the constant value of one as a Real number. This is equivalent to the numerical value 1 in mathematical terms.
Represents the constant value of one as a Real number. This is equivalent to the numerical value 1 in mathematical terms.
Attributes
Represents the mathematical constant π (pi) as a Real object. π is the ratio of the circumference of a circle to its diameter, approximately equal to 3.14159.
Represents the mathematical constant π (pi) as a Real object. π is the ratio of the circumference of a circle to its diameter, approximately equal to 3.14159.
Attributes
Represents the mathematical constant π/2 as a Real number. π/2, also known as pi over two, is half the value of π, commonly used in trigonometric calculations.
Represents the mathematical constant π/2 as a Real number. π/2, also known as pi over two, is half the value of π, commonly used in trigonometric calculations.
Attributes
Represents the mathematical expression equivalent to ( \pi/2 + \pi ). Combines the predefined mathematical fields piBy2 and pi using the addition operation defined in the Field trait.
Represents the mathematical expression equivalent to ( \pi/2 + \pi ). Combines the predefined mathematical fields piBy2 and pi using the addition operation defined in the Field trait.
This value is a constant and belongs to the Constants class.
Attributes
Represents the mathematical constant π/3 as a Real type.
Represents the mathematical constant π/3 as a Real type.
This constant is defined for calculations involving the value of π (pi) divided by 3, which corresponds to an angle of 60 degrees in radians.
Attributes
Represents the value of π/4 (quarter of π) as a Real object.
Represents the value of π/4 (quarter of π) as a Real object.
This value is derived using the constant piBy4 from the Number class and wrapped as an instance of Real, which is a specific subclass of Field.
It can be used in mathematical computations involving π/4.
Attributes
A lazy val that represents a cache of predefined constants in physics and mathematics, where each constant's nominal value is used as the key, and the constant itself is the value.
A lazy val that represents a cache of predefined constants in physics and mathematics, where each constant's nominal value is used as the key, and the constant itself is the value.
The constants included in this collection are: one, minusOne, zero, two, half, infinity, negInfinity, gamma, G, alpha, avagadro, boltzmann, planck, c, and mu.
The mapping is achieved by iterating over the sequence of constant values, extracting their nominalValue, and associating it with the respective constant.
This value is evaluated lazily, ensuring that the computation to construct the map is deferred until it is accessed for the first time.
Attributes
Represents the square root of 2 as a field constant. CONSIDER making this a Complex.
Represents the square root of 2 as a field constant. CONSIDER making this a Complex.
This value is particularly useful in mathematical computations where the irrational constant √2 is required, expressed within the Field type system.
Attributes
Exact value of the Complex Number ±√2
Exact value of the Complex Number ±√2
Attributes
Represents the constant value √3 encapsulated as a Field in the mathematical context.
Represents the constant value √3 encapsulated as a Field in the mathematical context.
Utilizes the Real implementation of Field to create the square root of 3 (√3).
This constant can be used in various mathematical computations that involve fields.
Attributes
Represents the square root of 5 as a constant value, conforming to the Field type. This value is defined as a member of the Constants class and provides numeric and algebraic operations as supported by the Field trait.
Represents the square root of 5 as a constant value, conforming to the Field type. This value is defined as a member of the Constants class and provides numeric and algebraic operations as supported by the Field trait.
Attributes
A string representation of the golden ratio (φ) with high precision. The value is truncated to 104 decimal places. From https://oeis.org/A001622
A string representation of the golden ratio (φ) with high precision. The value is truncated to 104 decimal places. From https://oeis.org/A001622
Attributes
Represents the mathematical constant 10 as a Real number.
Represents the mathematical constant 10 as a Real number.
Attributes
Represents the mathematical constant three as a Real number.
Represents the mathematical constant three as a Real number.
Attributes
A constant representing the value 2 as a Real.
A constant representing the value 2 as a Real.
The Real instance is created using the Number.two value. This is part of the mathematical constants defined in Constants.
Attributes
A constant representing the mathematical value 2π (two times pi). This value is useful in various calculations, especially those involving circular or periodic phenomena, such as trigonometry and geometry.
A constant representing the mathematical value 2π (two times pi). This value is useful in various calculations, especially those involving circular or periodic phenomena, such as trigonometry and geometry.
The value is stored as a Real number wrapping the predefined constant Number.twoPi.
Attributes
Represents the constant zero as a Real type. Zero is the additive identity in the arithmetic context.
Represents the constant zero as a Real type. Zero is the additive identity in the arithmetic context.