... | @@ -2,17 +2,37 @@ This page documents all supported math functions in the real time system and par |
... | @@ -2,17 +2,37 @@ This page documents all supported math functions in the real time system and par |
|
|
|
|
|
## Trigonometric Functions
|
|
## Trigonometric Functions
|
|
|
|
|
|
|
|
| Function | Description | Use Method |
|
|
|
|
| ----------- | --------------------------------------------------- | ---------- |
|
|
|
|
| `sin(double x)` | Compute sin of 'x` in radians | Fcn |
|
|
|
|
| `cos(double x)` | Compute cos of 'x` in radians | Fcn |
|
|
|
|
| `sindeg(double x)` | Compute sin of 'x` in degrees | Fcn |
|
|
|
|
| `cosdeg(double x)` | Compute cos of 'x` in degrees | Fcn |
|
|
|
|
| `sincos(double x, double * sin_res, double * cos_res)` | Compute sin and cos of 'x` in radians | inline-c |
|
|
|
|
|
|
## Exponential and Logarithmic Functions
|
|
## Exponential and Logarithmic Functions
|
|
|
|
|
|
## Power Functions
|
|
## Power Functions
|
|
|
|
|
|
|
|
| Function | Description | Use Method |
|
|
|
|
| --------------- | --------------------------------------------------- | ---------- |
|
|
|
|
| `l2xr(double x)`| Fast Pentium FPU 2^x command for range `-1<=x<=1` | inline-c, Fcn |
|
|
|
|
|
|
## Rounding and Remainder Functions
|
|
## Rounding and Remainder Functions
|
|
|
|
|
|
|
|
| Function | Description | Use Method |
|
|
|
|
| ------------------ | -------------------------------------- | ---------- |
|
|
|
|
| `lfloor(double x)` | Rounds `x` ***down*** to nearest int | inline-c, Fcn |
|
|
|
|
| `lceil(double x)` | Rounds `x` ***up*** to nearest int | inline-c, Fcn |
|
|
|
|
|
|
## Floating-point Manipulation Functions
|
|
## Floating-point Manipulation Functions
|
|
isNan()
|
|
|
|
|
|
| Function | Description | Use Method |
|
|
|
|
| ---------------------- | -------------------------------------- | ---------- |
|
|
|
|
| `isNan(double x)` | Returns 1 is `x` is Nan, else 0 | inline-c, Fcn |
|
|
|
|
|
|
## Other Functions
|
|
## Other Functions
|
|
|
|
|
|
| Function | Description | Use Method |
|
|
| Function | Description | Use Method |
|
|
| --------------------------- | -------------------------------------- | ---------- |
|
|
| --------------------------- | -------------------------------------- | ---------- |
|
|
| `lfabs()` | Compute absolute value | inline-c, Fcn | |
|
| `lfabs(double x)` | Compute absolute value | inline-c, Fcn | |
|
\ No newline at end of file |
|
\ No newline at end of file |