atanf


Description:

public float atanf (float x)

Calculates the arc tangent of x.

Note:

Remember to link the math library: valac -X -lm ...

That is the value whose tangent is x.

Example: Arc tangent (float):

public static int main (string[] args) {
// Output: ``atanf (0.632500) = 0.563974``
float x = 0.6325f;
float result = Math.atanf (x);
print ("atanf (%lf) = %lf\n", x, result);

// Output: ``atanf (0.000000) = 0.000000``
x = 0;
result = Math.atanf (x);
print ("atanf (%lf) = %lf\n", x, result);

return 0;
}

valac --pkg glib-2.0 -X -lm GLib.Math.atanf.vala


Namespace: GLib.Math
Package: glib-2.0