dcc_quantities.dcc_math ¶
Math function to be used over all instances of the DccQuantities package.
All functions defined within the module are a wrapper to their analogous
metas_unclib.umath functions.
These functions diverge from the umath functions as they work only for instances of
DccQuantityType and
SiRealList.
log ¶
log(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the natural logarithm of a, where a is adimensional DCC Quantity data.
| Raises: |
|
|---|
log10 ¶
log10(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the base-10 logarithm of a, where a is adimensional DCC Quantity data.
| Raises: |
|
|---|
exp ¶
exp(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return e raised to the power a, where e = 2.718281… is the base of natural logarithms and a is adimensional DCC Quantity data.
| Raises: |
|
|---|
sqrt ¶
sqrt(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the square root of a, where a is DCC Quantity data.
| Raises: |
|
|---|
abs ¶
abs(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return a copy of the Dcc Quantity Data where all values are absolute. The function is analogous to abs(a).
sin ¶
sin(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the sine of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
cos ¶
cos(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the cosine of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
tan ¶
tan(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the tangent of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
sinh ¶
sinh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the hyperbolic sine of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
cosh ¶
cosh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the hyperbolic cosine of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
tanh ¶
tanh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the hyperbolic tangent of the quantity data.
The function is valid only for quantity data which unit is 'radians', any of its D-SI units derivatives or adimensional. The returned quantity data is always set with the unit 'one'.
| Raises: |
|
|---|
asin ¶
asin(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the arc sine (inverse sine) of the quantity data. arcsin is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|
acos ¶
acos(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the arc cosine (inverse cosine) of the quantity data. arccos is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|
atan ¶
atan(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the arc tangent (inverse tangent) of the quantity data. arctan is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|
asinh ¶
asinh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the inverse hyperbolic sine of the quantity data. arcsinh is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|
acosh ¶
acosh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the inverse hyperbolic cosine of the quantity data. arccosh is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|
atanh ¶
atanh(a: DccQuantityType | SiRealList) -> DccQuantityType | SiRealList
Return the inverse hyperbolic tangent of the quantity data. arctanh is an alias for this function.
The function is valid only for quantity data which unit is adimensional. The returned quantity data is always set with the unit 'radians'.
| Raises: |
|
|---|