Method

NumCosmoMathCSQ1Dcompute_adiab

Declaration [src]

NcmCSQ1DState*
ncm_csq1d_compute_adiab (
  NcmCSQ1D* csq1d,
  NcmModel* model,
  const gdouble t,
  NcmCSQ1DState* state,
  gdouble* alpha_reltol,
  gdouble* dgamma_reltol
)

Description [src]

Computes the value of the adiabatic approximation of the variables $\alpha$ and $\Delta\gamma$ at $t$. This method computes the adiabatic approximation using the adiabatic series up to the order 2 or 4, depending on the value of the property max-order-2. The result is stored in the state object in the frame NCM_CSQ1D_FRAME_ADIAB1. Use ncm_csq1d_change_frame() to change the frame.

Parameters

model

Type: NcmModel

A NcmModel.

The argument can be NULL.
The data is owned by the caller of the method.
t

Type: const gdouble

Time $t$.

state

Type: NcmCSQ1DState

A NcmCSQ1DState to store the result.

The data is owned by the caller of the method.
alpha_reltol

Type: gdouble*

Estimated error on $\alpha(t)$.

The argument will be set by the function.
The argument can be NULL.
dgamma_reltol

Type: gdouble*

Estimated error on $\Delta\gamma(t)$.

The argument will be set by the function.
The argument can be NULL.

Return value

Type: NcmCSQ1DState

The state object with the result.

The returned data is owned by the instance.