Numerical Calculations with Units
The Wolfram Language's unit system utilizes various numerical methods, facilitating calculations using Quantity expressions within the Wolfram Language's numerical functions.
N[quantity] | numerical approximation of the specified quantity |
FindRoot[lhsrhs,{x,x0}] |
search for a numerical solution to an equation, starting with
|
FindMaximum[f,{x,x0}] | search for a maximum of f, starting with |
Numerical functions that operate on Quantity expressions.
For numerical functions like FindRoot and FindMaximum, if a variable is specified within a Quantity expression, then that variable is assumed to be a dimensionless value (representing the magnitude of its Quantity). If no unit is specifically associated with a variable, these functions will attempt to automatically determine the units associated with the variable, based on the expression and any specified start values.