Function

NumCosmoMathrational_coarse_double

Declaration [src]

void
ncm_rational_coarse_double (
  gdouble x,
  gint q
)

Description [src]

Computes a rational approximation for x and stores the result in q.

This function is not directly available to language bindings.

Parameters

x

Type: gdouble

A double.

q

Type: gint

A #mpq_t to store the result.