General
The Math Library includes algebraic and transcendental functions. These are implemented for the basic drive.web data type of signed 16-bit fixed-point numbers. This data type imposes domain and codomain limitations which must be considered by the user. Each function along with its domain and codomain limitations are described below.
- Square
- Square Root
- Cube
- Cube Root
- Reciprocal
- Exponential
- Logarithm
- Sine
- Cosine
- Tangent
- ArcSine
- ArcCosine
- ArcTangent
Square |
|
Domain |
-3.2767 to +3.2767 -1.8101 to +1.8101 without hitting output clamps |
Codomain | 0 to +3.2767 |
Graph |
Square Root |
|
Domain |
-3.2767 to +3.2767 (negative inputs are treated as positive inputs) |
Codomain | 0 to +1.8101 |
Graph |
Cube |
|
Domain |
-3.2767 to +3.2767 -1.4853 to +1.4853 without hitting output clamps |
Codomain | -3.2767 to +3.2767 |
Graph |
Cube Root |
|
Domain |
-3.2767 to +3.2767 |
Codomain | -1.4853 to +1.4853 |
Graph |
Reciprocal |
|
Domain |
-3.2767 to +3.2767 -3.2767 to -0.3052 and +0.3052 to +3.2767 without hitting output clamps |
Codomain | -3.2767 to -0.3052 and +0.3052 to +3.2767 |
Graph |
Exponential |
|
Domain |
-3.2767 to +3.2767 -3.2767 to +1.1868 without hitting output clamps |
Codomain | +0.0378 to +3.2767 |
Graph |
Logarithm |
|
Domain |
-3.2767 to +3.2767 (negative inputs are treated as positive inputs) +0.0378 to +3.2767 without hitting output clamps |
Codomain | -3.2767 to +1.1868 |
Graph |
Sine |
|
Domain |
-3.2767 rad to +3.2767 rad |
Codomain | -1 to +1 |
Graph |
Cosine |
|
Domain |
-3.2767 rad to +3.2767 rad |
Codomain | -1 to +1 |
Graph |
Tangent |
|
Domain |
-3.2767 rad to +3.2767 rad -1.2746 rad to +1.2746 rad without hitting output clamps |
Codomain | -3.2767 to +3.2767 |
Graph |
ArcSine |
|
Domain | -1 to +1 |
Codomain | -1.5708 rad to +1.5708 rad |
Graph |
ArcCosine |
|
Domain | -1 to +1 |
Codomain | 0 rad to +3.1416 rad |
Graph |
ArcTangent |
|
Domain | -3.2767 to +3.2767 |
Codomain | -1.2746 rad to +1.2746 rad |
Graph |