Function

NumCosmoMathcmp

Declaration [src]

gint
ncm_cmp (
  gdouble x,
  gdouble y,
  const gdouble reltol,
  const gdouble abstol
)

Description [src]

Compare x and y and return -1 if x < y, 0 if x == y and 1 if x > y, all comparisons are done with precision reltol and abstol.

Parameters

x

Type: gdouble

A double.

y

Type: gdouble

A double.

reltol

Type: const gdouble

Relative precision.

abstol

Type: const gdouble

The absolute precision.

Return value

Type: gint

-1, 0, 1.