Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
MathHelpers/MathHelpers.h
- Committer:
- bwang
- Date:
- 2018-02-09
- Revision:
- 181:d3510c8beab6
- Parent:
- 64:b4175385d718
File content as of revision 181:d3510c8beab6:
#ifndef __MATH_HELPERS_H
#define __MATH_HELPERS_H
float constrain(float in, float min, float max);
float constrain_norm(float *x, float *y, float coeffx, float coeffy, float max);
float map(float x, float in_min, float in_max, float out_min, float out_max);
float fminf(float, float);
float fmaxf(float, float);
float update_filter(float old, float x, float str);
float acbrt(float x);
float aatan2(float q, float d);
#define M_PI 3.14159f
#endif