-
public double acos (double x)
Calculates the arc cosine of x.
-
public float acosf (float x)
Calculates the arc cosine of x.
-
public double asin (double x)
Calculates the arc sine of x.
-
public float asinf (float x)
Calculates the arc sine of x.
-
public double atan (double x)
Calculates the arc tangent of x.
-
public float atanf (float x)
Calculates the arc tangent of x.
-
public double atan2 (double y, double x)
Calculates the arc tangent of the two variables x and y.
-
public float atan2f (float y, float x)
Calculates the arc tangent of the two variables x and y.
-
public double cos (double x)
Returns the cosine of x.
-
public float cosf (float x)
Returns the cosine of x.
-
public double sin (double x)
Returns the sine of x.
-
public float sinf (float x)
Returns the sine of x.
-
public double tan (double x)
Returns the tangent of x, where x is given in radians.
-
public float tanf (float x)
Returns the tangent of x.
-
public double cosh (double x)
Returns the hyperbolic cosine of x.
-
public float coshf (float x)
Returns the hyperbolic cosine of x.
-
public double sinh (double x)
Returns the hyperbolic sine of x.
-
public float sinhf (float x)
returns the hyperbolic sine of x.
-
public double tanh (double x)
returns the hyperbolic tangent of x.
-
public float tanhf (float x)
Returns the hyperbolic tangent of x.
-
public void sincos (double x, out double sinx, out double cosx)
computes both sine and cosine of x at the same time.
-
public void sincosf (float x, out float sinx, out float cosx)
Computes both sine and cosine of x at the same time.
-
public double acosh (double x)
Calculates the inverse hyperbolic cosine of x.
-
public float acoshf (float x)
Calculates the inverse hyperbolic cosine of x.
-
public double asinh (double x)
Returns the inverse hyperbolic sine of x.
-
public float asinhf (float x)
Returns the inverse hyperbolic sine of x.
-
public double atanh (double x)
Returns the inverse hyperbolic tangent of x.
-
public float atanhf (float x)
Returns the inverse hyperbolic tangent of x.
-
public double exp (double x)
Returns the value of the base of natural logarithms raised to the power of x.
-
public float expf (float x)
Returns the value of the base of natural logarithms raised to the power of x.
-
public double frexp (double x, out int exponent)
Split the number x into a normalized fraction and an exponent.
-
public float frexpf (float x, out int exponent)
Split the number x into a normalized fraction and an exponent.
-
public double ldexp (double x, int exponent)
Returns the result of multiplying the floating-point number x by 2 raised to the power exp.
-
public float ldexpf (float x, int exponent)
Returns the result of multiplying the floating-point number x by 2 raised to the power exp.
-
public double log (double x)
Returns the natural logarithm of x.
-
public float logf (float x)
Returns the natural logarithm of x.
-
public double log10 (double x)
Returns the base 10 logarithm of x.
-
public float log10f (float x)
Returns the base 10 logarithm of x.
-
public double modf (double x, out double iptr)
Breaks the argument x into an integral part and a fractional part.
-
public float modff (float x, out float iptr)
Breaks the argument x into an integral part and a fractional part.
-
public double exp10 (double x)
Returns the value of 10 raised to the power of x.
-
public float exp10f (float x)
Returns the value of 10 raised to the power of x.
-
public double pow10 (double x)
Returns the value of 10 raised to the power of x.
-
public float pow10f (float x)
Returns the value of 10 raised to the power of x.
-
public double expm1 (double x)
Returns a value equivalent to exp(x) - 1.
-
public float expm1f (float x)
Returns a value equivalent to exp(x) - 1.
-
public double log1p (double x)
Returns a value equivalent to log(1 + x).
-
public float log1pf (float x)
Returns a value equivalent to log(1 + x).
-
public double logb (double x)
Extracts the exponent of x and returns it as a floating-point value.
-
public float logbf (float x)
Extracts the exponent of x and returns it as a floating-point value.
-
public double exp2 (double x)
Returns the value of 2 raised to the power of x.
-
public float exp2f (float x)
Returns the value of 2 raised to the power of x.
-
public double log2 (double x)
Returns the base 2 logarithm of x.
-
public float log2f (float x)
Returns the base 2 logarithm of x.
-
public double pow (double x, double y)
Returns the value of x raised to the power of y.
-
public float powf (float x, float y)
Returns the value of x raised to the power of y.
-
public double sqrt (double x)
Returns the non-negative square root of x.
-
public float sqrtf (float x)
Returns the non-negative square root of x.
-
public double hypot (double x, double y)
Returns the length of the hypotenuse of a right-angle triangle.
-
public float hypotf (float x, float y)
Returns the length of the hypotenuse of a right-angle triangle.
-
public double cbrt (double x)
Returns the (real) cube root of x.
-
public float cbrtf (float x)
Returns the (real) cube root of x.
-
public double ceil (double x)
Rounds x up to the nearest integer.
-
public float ceilf (float x)
Rounds x up to the nearest integer.
-
public double fabs (double x)
Returns the absolute value.
-
public float fabsf (float x)
Returns the absolute value.
-
public double floor (double x)
Rounds x down to the nearest integer.
-
public float floorf (float x)
Rounds x down to the nearest integer.
-
public double fmod (double x, double y)
Computes the remainder of dividing x by y.
-
public float fmodf (float x, float y)
Computes the remainder of dividing x by y.
-
public int isinf (double value)
-
public int isinff (float value)
Returns the value of infinity checking.
-
public int finite (double value)
Returns the value of not-a-number (NaN) checking.
-
public int finitef (float value)
Returns the value of not-a-number (NaN) checking.
-
public double drem (double x, double y)
Computes the remainder of dividing x by y.
-
public float dremf (float x, float y)
Computes the remainder of dividing x by y.
-
public double significand (double x)
Returns the mantissa of x scaled to the range [1,2].
-
public float significandf (float x)
Returns the mantissa of x scaled to the range [1,2].
-
public double copysign (double x, double y)
Returns a value whose absolute value matches that of x, but whose sign bit matches that of y.
-
public float copysignf (float x, float y)
Returns a value whose absolute value matches that of x, but whose sign bit matches that of y.
-
public double nan (string tagb)
Returns a representation (determined by tag) of a quiet NaN.
-
public float nanf (string tagb)
Returns a representation (determined by tag) of a quiet NaN.
-
public int isnan (double value)
-
public int isnanf (float value)
Returns a non-zero value if x is not-a-number (NaN).
-
public double j0 (double x0)
Returns Bessel function of x of the first kind of order 0.
-
public float j0f (float x0)
Returns Bessel function of x of the first kind of order 0.
-
public double j1 (double x0)
Returns Bessel function of x of the first kind of order 1.
-
public float j1f (float x0)
Returns Bessel function of x of the first kind of order 1.
-
public double jn (int x0, double x1)
Returns Bessel function of x of the first kind of order n.
-
public float jnf (int x0, float x1)
Returns Bessel function of x of the first kind of order n.
-
public double y0 (double x0)
Returns Bessel function of x0 of the second kind of order 0.
-
public float y0f (float x0)
Returns Bessel function of x0 of the second kind of order 0.
-
public double y1 (double x0)
Returns Bessel function of x0 of the second kind of order 1.
-
public float y1f (float x0)
Returns Bessel function of x0 of the second kind of order 1.
-
public double yn (int x0, double x1)
Returns Bessel function of x1 of the second kind of order x0.
-
public float ynf (int x0, float x1)
Returns Bessel function of x1 of the second kind of order x0.
-
public double erf (double x0)
Returns the error function of x0.
-
public float erff (float x0)
Returns the error function of x0.
-
public double erfc (double x0)
Returns the complementary error function of x0.
-
public float erfcf (float x0)
Returns the complementary error function of x0.
-
public double lgamma (double x0)
Returns the natural logarithm of the absolute value of the Gamma function.
-
public float lgammaf (float x0)
Returns the natural logarithm of the absolute value of the Gamma function.
-
public double tgamma (double x0)
Returns the value of Gamma function for the argument x0.
-
public float tgammaf (float x0)
Returns the value of Gamma function for the argument x0.
-
public double gamma (double x0)
Computes the natural logarithm of the Gamma function.
-
public float gammaf (float x0)
Computes the natural logarithm of the Gamma function.
-
public double lgamma_r (double x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma function.
-
public float lgamma_rf (float x0, out int signgamp)
Returns the natural logarithm of the absolute value of the Gamma function.
-
public double rint (double x)
Rounds it's argument to an integer value in floating point format.
-
public float rintf (float x)
Rounds it's argument to an integer value in floating point format.
-
public double nextafter (double x, double y)
Returns the next representable neighbor of x in the direction towards y.
-
public float nextafterf (float x, float y)
Returns the next representable neighbor of x in the direction towards y.
-
public double nexttoward (double x, double y)
-
public float nexttowardf (float x, double y)
-
public double remainder (double x, double y)
Computes the remainder of dividing x by y.
-
public float remainderf (float x, float y)
Computes the remainder of dividing x by y.
-
public double scalbn (double x, int n)
Multiplies it's first argument x by 2 to the power exp.
-
public float scalbnf (float x, int n)
Multiplies it's first argument x by 2 to the power exp.
-
public int ilogb (double x)
Returns the exponent part of their argument as a signed integer.
-
public int ilogbf (float x)
Returns the exponent part of their argument as a signed integer.
-
public double scalbln (double x, long n)
This function is equivalent to ldexp.
-
public float scalblnf (float x, long n)
This function is equivalent to ldexp.
-
public double nearbyint (double x)
Rounds argument x to an integer value in floating point format.
-
public float nearbyintf (float x)
Rounds argument x to an integer value in floating point format.
-
public double round (double x)
Rounds argument x to the nearest integer, but round halfway cases away from zero.
-
public float roundf (float x)
Rounds argument x to the nearest integer, but round halfway cases away from zero.
-
public double trunc (double x)
Rounds argument x to the nearest integer not larger in absolute value.
-
public float truncf (float x)
Rounds argument x to the nearest integer not larger in absolute value.
-
public double remquo (double x, double y, out int quo)
Computes the remainder and part of the quotient upon division of x by y.
-
public float remquof (float x, float y, out int quo)
Computes the remainder and part of the quotient upon division of x by y.
-
public long lrint (double x)
Rounds it's argument to the nearest integer value, using the current rounding direction.
-
public long lrintf (float x)
Rounds it's argument to the nearest integer value, using the current rounding direction.
-
public int64 llrint (double x)
Rounds it's argument to the nearest integer value, using the current rounding direction.
-
public int64 llrintf (float x)
Rounds it's argument to the nearest integer value, using the current rounding direction.
-
public long lround (double x)
Rounds it's argument to the nearest integer value, rounding away from zero.
-
public long lroundf (float x)
Rounds it's argument to the nearest integer value, rounding away from zero.
-
public int64 llround (double x)
Rounds it's argument to the nearest integer value, rounding away from zero.
-
public int64 llroundf (float x)
Rounds it's argument to the nearest integer value, rounding away from zero.
-
public double fdim (double x, double y)
Returns max(x - y, 0).
-
public float fdimf (float x, float y)
Returns max(x - y, 0).
-
public double fmax (double x, double y)
Returns the larger value of x and y.
-
public float fmaxf (float x, float y)
Returns the larger value of x and y.
-
public double fmin (double x, double y)
Returns the smaller value of x and y.
-
public float fminf (float x, float y)
Returns the smaller value of x and y.
-
public double fma (double x, double y, double z)
Computes x * y + z.
-
public float fmaf (float x, float y, float z)
Computes x * y + z.
-
public double scalb (double x, double n)
Multiplies x by 2 to the power exp.
-
public float scalbf (float x, float n)
Multiplies x by 2 to the power exp.
-
public void minimized_result (double minimized_quantity, string format, ...)
Report the result of a performance or measurement test.
-
public void maximized_result (double maximized_quantity, string format, ...)
Report the result of a performance or measurement test.
-
public void init (ref string[] args, ...)
Initialize the GLib testing framework, e.g. by seeding the test random number generator, the name for
g_get_prgname() and parsing test related command line args.
-
public bool quick ()
Returns TRUE if tests are run in quick mode.
-
public bool slow ()
Returns TRUE if tests are run in slow mode.
-
public bool thorough ()
Returns TRUE if tests are run in thorough mode.
-
public bool perf ()
Returns TRUE if tests are run in performance mode.
-
public bool verbose ()
Returns TRUE if tests are run in verbose mode.
-
public bool quiet ()
Returns TRUE if tests are run in quiet mode.
-
public int run ()
Runs all tests under the toplevel suite which can be retrieved with g_test_get_root().
-
public void add_func (string testpath, Callback test_funcvoid)
Create a new test case, similar to g_test_create_case().
-
public void add_data_func (string testpath, TestDataFunc test_funcvoid)
Create a new test case, similar to g_test_create_case().
-
public void message (string format, ...)
Add a message to the test report.
-
public void bug_base (string uri_pattern)
Specify the base URI for bug reports.
-
public void bug (string bug_uri_snippet)
This function adds a message to test reports that associates a bug URI with a test case.
-
public void timer_start ()
Start a timing test.
-
public double timer_elapsed ()
Get the time since the last start of the timer with g_test_timer_start().
-
public double timer_last ()
Report the last result of g_test_timer_elapsed().
-
public bool trap_fork (uint64 usec_timeout, TestTrapFlags test_trap_flags)
Fork the current test program to execute a test case that might not return or that might abort.
-
public bool trap_has_passed ()
Check the result of the last g_test_trap_fork() call.
-
public bool trap_reached_timeout ()
Check the result of the last g_test_trap_fork() call.
-
public void trap_assert_passed ()
Assert that the last forked test passed. See g_test_trap_fork().
-
public void trap_assert_failed ()
Assert that the last forked test failed. See g_test_trap_fork().
-
public void trap_assert_stdout (string soutpattern)
Assert that the stdout output of the last forked test matches soutpattern. See g_test_trap_fork().
-
public void trap_assert_stdout_unmatched (string soutpattern)
Assert that the stdout output of the last forked test does not match soutpattern. See
g_test_trap_fork().
-
public void trap_assert_stderr (string serrpattern)
Assert that the stderr output of the last forked test matches serrpattern. See g_test_trap_fork().
-
public void trap_assert_stderr_unmatched (string serrpattern)
Assert that the stderr output of the last forked test does not match serrpattern. See
g_test_trap_fork().
-
public bool rand_bit ()
Get a reproducible random bit (0 or 1), see g_test_rand_int() for details on test case random numbers.
-
public int32 rand_int ()
Get a reproducible random integer number.
-
public int32 rand_int_range (int32 begin, int32 end)
Get a reproducible random integer number out of a specified range, see g_test_rand_int() for details
on test case random numbers.
-
public double rand_double ()
Get a reproducible random floating point number, see g_test_rand_int() for details on test case random
numbers.
-
public double rand_double_range ()
Get a reproducible random floating pointer number out of a specified range, see g_test_rand_int() for
details on test case random numbers.
-
public void log_set_fatal_handler (LogFatalFunc log_func)
Installs a non-error fatal log handler which can be used to decide whether log messages which are
counted as fatal abort the program.