IMSL C# Numerical Library

Physical.Constant Method (String, String)

Returns the value of a constant, given its name, in the specified units.

public static double Constant(
   string name,
   string units
);

Parameters

name
A String representing the name of the constant to be returned.
units
A String representing the units in which the constant is to be returned.

Return Value

A double containing the value of the constant in the specified units.

Exceptions

Exception Type Condition
ArgumentException is thrown if the constant name is undefined

See Also

Physical Class | Imsl.Math Namespace | Physical.Constant Overload List