IMSL C# Numerical Library

Physical Members

Physical overview

Public Static Methods

Add Adds two compatible Physical objects.
CheckCompatibility Checks the compatibility of two Physical objects.
ConstantOverloaded. Returns the value of a constant.
Convert Converts a value to a different set of units.
DefineConstant Defines a new constant.
DefinePrefix Defines a new prefix.
DefineUnit Defines a new unit.
DivideOverloaded. Divides one value by another.
EqualsOverloaded. Returns true if x and y are equal.
MultiplyOverloaded. Multiply two values.
Negate Negate a Physical object.
Subtract Subtract two compatible Physical objects.

Public Static Operators and Type Conversions

Addition Operator Add two compatible Physical objects.
Division OperatorOverloaded. Divides one value by another.
Equality Operator Returns true if x and y are equal.
Inequality Operator Returns true if x and y are not equal.
Multiplication OperatorOverloaded. Multiply two values.
Subtraction Operator Subtract two compatible Physical objects.
Unary Negation Operator Negate a Physical object.
Implicit Physical to Double Conversion Returns the value of this dimensionless object.

Public Instance Constructors

Physical Overloaded. Initializes a new instance of the Physical class.

Public Instance Methods

DoubleValue Returns the value of this dimensionless object.
EqualsOverloaded. Returns true if x equals this value.
GetHashCode Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
ToString Returns a String containing the value and units, if any.
UnitsString Returns a String containing the units only.

See Also

Physical Class | Imsl.Math Namespace | Example