# Bumps documentation

## pmath - Parametric versions of standard functions

`min` |
`max` |
`cosd` | Return the cosine of x (measured in in degrees).
`sind` | Return the sine of x (measured in in degrees).
`tand` | Return the tangent of x (measured in in degrees).
`arccosd` | Return the arc cosine (measured in in degrees) of x.
`arcsind` | Return the arc sine (measured in in degrees) of x.
`arctand` | Return the arc tangent (measured in in degrees) of x.
`arctan2d` | Return the arc tangent (measured in in degrees) of y/x.
`asin` |
`acos` |
`atan` |
`atan2` |
`asind` | Return the arc sine (measured in in degrees) of x.
`acosd` | Return the arc cosine (measured in in degrees) of x.
`atand` | Return the arc tangent (measured in in degrees) of x.
`atan2d` | Return the arc tangent (measured in in degrees) of y/x.
`asinh` |
`acosh` |
`atanh` |

Standard math functions for parameter expressions.

These functions delay evaluation of the expression until the value is requested, thus allowing the value to change when the parameter is updated. Most numpy functions will do this automatically, so nothing special is needed.

- degrees, radians, min, max

- powers: exp, log, log10, sqrt

- radians trig: sin, cos, tan, arcsin, arccos, arctan, arctan2

- degrees trig: sind, cosd, tand, arcsind, arccosd, arctand, arctan2d

- hyperbolic trig: sinh, cosh, tanh, arcsinh, arccosh, arctanh

arc-function aliases (asin, asinh, …) are added to pmath for convenience.

bumps.pmath.acos(*args)

bumps.pmath.acosd(*args: Parameter | Expression | Calculation | float)

  Return the arc cosine (measured in in degrees) of x.

bumps.pmath.acosh(*args)

bumps.pmath.arccosd(*args: Parameter | Expression | Calculation | float)

  Return the arc cosine (measured in in degrees) of x.

bumps.pmath.arcsind(*args: Parameter | Expression | Calculation | float)

  Return the arc sine (measured in in degrees) of x.

bumps.pmath.arctan2d(*args: Parameter | Expression | Calculation | float)

  Return the arc tangent (measured in in degrees) of y/x. Unlike atan(y/x), the signs of both x and y are considered.

bumps.pmath.arctand(*args: Parameter | Expression | Calculation | float)

  Return the arc tangent (measured in in degrees) of x.

bumps.pmath.asin(*args)

bumps.pmath.asind(*args: Parameter | Expression | Calculation | float)

  Return the arc sine (measured in in degrees) of x.

bumps.pmath.asinh(*args)

bumps.pmath.atan(*args)

bumps.pmath.atan2(*args)

bumps.pmath.atan2d(*args: Parameter | Expression | Calculation | float)

  Return the arc tangent (measured in in degrees) of y/x. Unlike atan(y/x), the signs of both x and y are considered.

bumps.pmath.atand(*args: Parameter | Expression | Calculation | float)

  Return the arc tangent (measured in in degrees) of x.

bumps.pmath.atanh(*args)

bumps.pmath.cosd(*args: Parameter | Expression | Calculation | float)

  Return the cosine of x (measured in in degrees).

bumps.pmath.max(Parameter)

bumps.pmath.min(Parameter)

bumps.pmath.sind(*args: Parameter | Expression | Calculation | float)

  Return the sine of x (measured in in degrees).

bumps.pmath.tand(*args: Parameter | Expression | Calculation | float)

  Return the tangent of x (measured in in degrees).