tanf


Description:

public float tanf (float x)

Returns the tangent of x.

Note:

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

Example: Tangent (float):

public static int main (string[] args) {
// Output: ``tanf (0.0f) = 0.000000f``
float res = Math.tanf (0.0f);
print ("tanf (0.0f) = %lff\n", res);

// Output: ``tanf (0.5f) = 0.546302f``
res = Math.tanf (0.5f);
print ("tanf (0.5f) = %lff\n", res);

return 0;
}

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

Parameters:

x

the given in radians.


Namespace: GLib.Math
Package: glib-2.0