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 (scalar or array_like) – Value(s) at which to evaluate \(g(y)\).

  • m (scalar or array_like, optional) – Slope(s) of the original straight line.

  • c (scalar or array_like, optional) – y-axis intercept(s) of the original straight line.

Returns:

g (scalar or numpy.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.