pmath - Parametric versions of standard functions¶
Return the cosine of x (measured in in degrees). |
|
Return the sine of x (measured in in degrees). |
|
Return the tangent of x (measured in in degrees). |
|
Return the arc cosine (measured in in degrees) of x. |
|
Return the arc sine (measured in in degrees) of x. |
|
Return the arc tangent (measured in in degrees) of x. |
|
Return the arc tangent (measured in in degrees) of y/x. |
|
Return the arc sine (measured in in degrees) of x. |
|
Return the arc cosine (measured in in degrees) of x. |
|
Return the arc tangent (measured in in degrees) of x. |
|
Return the arc tangent (measured in in degrees) of y/x. |
|
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)[source]¶
Return the arc cosine (measured in in degrees) of x.
- bumps.pmath.arcsind(*args: Parameter | Expression | Calculation | float)[source]¶
Return the arc sine (measured in in degrees) of x.
- bumps.pmath.arctan2d(*args: Parameter | Expression | Calculation | float)[source]¶
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)[source]¶
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)[source]¶
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)[source]¶
Return the sine of x (measured in in degrees).
- bumps.pmath.tand(*args: Parameter | Expression | Calculation | float)[source]¶
Return the tangent of x (measured in in degrees).