struve
Computes the Struve function Hv(x)
Controller: CodeCogs
Contents
Dependents
Interface
C++
Excel
Struve
doublestruve( | double | x | |
double | v | ) |
MISSING IMAGE!
1/struve-378.gif cannot be found in /users/1/struve-378.gif. Please contact the submission author.
References:
Cephes Math Library Release 2.0: April, 1987; http://mathworld.wolfram.com/StruveFunction.htmlExample 1
#include <stdio.h> #include <codecogs/maths/special/bessel/struve.h> int main() { printf("\nStruve\n x v=0 v=1 v=2 v=3 v=4 v=5"); for(double x=-5; x<6; x++) { printf("\nx=%.1lf",x); for(int v=0;v<=5;v++) printf(" %8.6lf", Maths::Special::Bessel::struve(x,v)); } return 0; }
Output
Struve x v=0 v=1 v=2 v=3 v=4 v=5 x=-5.0 0.185217 0.807812 -1.569375 1.508721 -0.998971 0.510678 x=-4.0 -0.135015 1.069727 -1.248675 0.858010 -0.426374 0.167199 x=-3.0 -0.574306 1.020110 -0.742387 0.351711 -0.124738 0.035491 x=-2.0 -0.790859 0.646764 -0.280318 0.083638 -0.019099 0.003538 x=-1.0 -0.568657 0.198457 -0.040465 0.005843 -0.000654 0.000060 x=0.0 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 x=1.0 0.568657 0.198457 0.040465 0.005843 0.000654 0.000060 x=2.0 0.790859 0.646764 0.280318 0.083638 0.019099 0.003538 x=3.0 0.574306 1.020110 0.742387 0.351711 0.124738 0.035491 x=4.0 0.135015 1.069727 1.248675 0.858010 0.426374 0.167199 x=5.0 -0.185217 0.807812 1.569375 1.508721 0.998971 0.510678
Parameters
x the point at which the function is evaluated v the order of the function
Returns
- the Struve function of order v evaluated at point x
Authors
- Stephen L. Moshier Copyright 1984, 1987, 1988, 2000
Updated by Will Bateman (August 2005)
Source Code
Source code is available when you agree to a GP Licence or buy a Commercial Licence.
Not a member, then Register with CodeCogs. Already a Member, then Login.