SDDSlib
|
Implements the integral of K_{5/3}(t) multiplied by y^n from y to infinity. More...
#include "mdb.h"
#include <math.h>
Go to the source code of this file.
Macros | |
#define | EPS 1.0e-8 |
#define | NY 5.0 / 3.0 |
Functions | |
double | gy (long n, double y) |
Compute the integral of K_{5/3}(t) scaled by y^n from y to infinity. | |
Implements the integral of K_{5/3}(t) multiplied by y^n from y to infinity.
This file provides the implementation of gy(), which computes: inf. GY = y^n ∫ K_{5/3}(t) dt y The integral evaluation is based on methods described by V. O. Kostroun and uses exponential and hyperbolic function evaluations. It is generally reliable up to several decimal places for a range of inputs.
Definition in file gy.c.
double gy | ( | long | n, |
double | y ) |
Compute the integral of K_{5/3}(t) scaled by y^n from y to infinity.
This function calculates the integral: GY = y^n ∫ from t=y to t=∞ of K_{5/3}(t) dt. It uses a summation approach with an iterative increment (dt) and stops when subsequent terms are sufficiently small compared to the current sum.
n | The exponent applied to y. |
y | The lower limit of the integral. |
Definition at line 42 of file gy.c.