sincos


Description:

[ CCode ( feature_test_macro = "_GNU_SOURCE" ) ]
public void sincos (double x, out double sinx, out double cosx)

computes both sine and cosine of x at the same time.

Note:

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

Several applications need sine and cosine of the same angle x. This function computes both at the same time, and stores the results via the output variables.

Parameters:

x

A numeric value in radians.

sinx

Output variable for sine of x

cosx

Output variable for cosine of x.


Namespace: GLib.Math
Package: glib-2.0