asinf


Description:

public float asinf (float x)

Calculates the arc sine of x.

Note:

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

That is the value whose sine is x. If x falls outside the range -1 to 1, GLib.Math.asinf fails and GLib.errno is set to EDOM.

Example: Arc sine (float):

public static int main (string args[]) {
// Output: ``asinf (0.289000f) = 0.293182f``
float x = 0.289f;
float res = Math.asinf (x);
print ("asinf (%lff) = %lff\n", x, res);


// Output: ``asinf (0.000000f) = 0.000000f``
x = 0;
res = Math.asinf (x);
print ("asinf (%lff) = %lff\n", x, res);


// Output: ``asinf (-2.000000f) = nanf``
x = -2;
res = Math.asinf (x);
print ("asinf (%lff) = %lff\n", x, res);

return 0;
}

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


Namespace: GLib.Math
Package: glib-2.0