line_inv
- mdtools.functions.line_inv(y, m=1, c=0)[source]
Inverse of a straight line:
\[g(y) = \frac{y-c}{m}\]- Parameters:
y (
scalarorarray_like) – Value(s) at which to evaluate \(g(y)\).m (
scalarorarray_like, optional) – Slope(s) of the original straight line.c (
scalarorarray_like, optional) – y-axis intercept(s) of the original straight line.
- Returns:
g (
scalarornumpy.ndarray) – The outcome of \(g(y)\). \(g(y)\) is evaluated element-wise if at least one of the input arguments is an array.
See also
mdtools.functions.line()Straight line
Notes
If more than one input argument is an array, all arrays must be broadcastable.