|
|
Line 1: |
Line 1: |
− | These are standard Mathematical Functions, and are only listed here as a quick reference.
| + | Needs deleted! |
− | ====sqrtf====
| + | Created page with wrong name by mistake |
− | <pre class="brush:c">extern float sqrtf (float x);</pre>
| + | |
− | Returns the square root of the supplied float x, as a float. x must be greater than 0.
| + | |
− | ====expf====
| + | |
− | <pre class="brush:c">extern float expf (float x);</pre>
| + | |
− | Returns the exponential of the supplied float x, as a float.
| + | |
− | ====logf====
| + | |
− | <pre class="brush:c">extern float logf (float x);</pre>
| + | |
− | Returns the natural logarithm of the supplied float x, as a float. x must be greater than 0.
| + | |
− | ====log10f====
| + | |
− | <pre class="brush:c">extern float log10f(float x);</pre>
| + | |
− | Returns the base 10 logarithm of the supplied float x, as a float. x must be greater than 0.
| + | |
− | ====powf====
| + | |
− | <pre class="brush:c">extern float powf (float x, float y);</pre>
| + | |
− | Returns the x to the power y of the supplied floats x and y, as a float.
| + | |
− | ====sinf====
| + | |
− | <pre class="brush:c">extern float sinf (float x);</pre>
| + | |
− | Returns the sine of float x, as a float.
| + | |
− | ====cosf====
| + | |
− | <pre class="brush:c">extern float cosf (float x);</pre>
| + | |
− | Returns the cosine of float x, as a float.
| + | |
− | ====tanf====
| + | |
− | <pre class="brush:c">extern float tanf (float x);</pre>
| + | |
− | Returns the tangent of float x, as a float.
| + | |
− | ====asinf====
| + | |
− | <pre class="brush:c">extern float asinf (float x);</pre>
| + | |
− | Returns the inverse sine (sin-1) of float x, as a float.
| + | |
− | ====acosf====
| + | |
− | <pre class="brush:c">extern float acosf (float x);</pre>
| + | |
− | Returns the inverse cosine (cos-1) of float x, as a float.
| + | |
− | ====atanf====
| + | |
− | <pre class="brush:c">extern float atanf (float x);</pre>
| + | |
− | Returns the inverse tangent (tan-1) of float x, as a float.
| + | |
− | ====atan2f====
| + | |
− | <pre class="brush:c">extern float atan2f(float y, float x);</pre>
| + | |
− | Returns the inverse tangent of float y over float x (tan-1(X/Y)), as a float.
| + | |
− | ====fast_fabsf====
| + | |
− | <pre class="brush:c">extern float fast_fabsf (float y);</pre>
| + | |
− | Returns the absolute value of float y, as a float.
| + | |
− | | + | |
− | ====sqrt====
| + | |
− | <pre class="brush:c">extern double sqrt (double x);</pre>
| + | |
− | | + | |
− | ====exp====
| + | |
− | <pre class="brush:c">extern double exp (double x);</pre>
| + | |
− | | + | |
− | ====log====
| + | |
− | <pre class="brush:c">extern double log (double x);</pre>
| + | |
− | | + | |
− | ====log10====
| + | |
− | <pre class="brush:c">extern double log10(double x);</pre>
| + | |
− | | + | |
− | ====pow====
| + | |
− | <pre class="brush:c">extern double pow (double x, double y);</pre>
| + | |
− | | + | |
− | ====sin====
| + | |
− | <pre class="brush:c">extern double sin (double x);</pre>
| + | |
− | | + | |
− | ====cos====
| + | |
− | <pre class="brush:c">extern double cos (double x);</pre>
| + | |
− | | + | |
− | ====tan====
| + | |
− | <pre class="brush:c">extern double tan (double x);</pre>
| + | |
− | | + | |
− | ====asin====
| + | |
− | <pre class="brush:c">extern double asin (double x);</pre>
| + | |
− | | + | |
− | ====acos====
| + | |
− | <pre class="brush:c">extern double acos (double x);</pre>
| + | |
− | | + | |
− | ====atan====
| + | |
− | <pre class="brush:c">extern double atan (double x);</pre>
| + | |
− | | + | |
− | ====atan2====
| + | |
− | <pre class="brush:c">extern double atan2(double y, double x);</pre>
| + | |
− | | + | |
− | ====fast_fabs====
| + | |
− | <pre class="brush:c">extern double fast_fabs (double y);</pre>
| + | |