CodeCogs - An iteractive open source Numerical library Welcome... Login
CodeCogs
shopping cart
OSXWindowsLinux
Search CodeCogs
Numerical Components

Valid RSS

MathsSpecialBessel

struve

Available under GPL (Free) and Commercial licence
get a GPL licence
COST (GBP)
this unit 4.29
sub units 39.13
add a commercial licence to your cart
0
viewed 1577 times and licensed 19 times

Computes the Struve function Hv(x)

Further Info Controller: CodeCogs  Contact Controller
+View version details
Contents hide toc
buy now     get GPL     add to cart

Interface

#include <codecogs/maths/special/bessel/struve.h>

using namespace Maths::Special::Bessel;

double struve (double x, double v)
Computes the Struve function Hv(x)
ExcelReal cc_struve (Real x, Real v)
This function is available as a Microsoft Excel add-in.

Function Documentation

Struve Calculator
  
Add calculator to website or email
 
doublestruvedoublex
doublev )
The Struve function, denoted H_n(x) is defined as
H_v(x) = \left ( \frac{1}{2} x \right )^{v+1} \sum_{k=0}^{\infty} \frac{(-1)^k (\frac{1}{2}x)^2k }{ \Gamma(k+\frac{3}{2}) \Gamma(k+v+\frac{3}{2}) }
where \Gamma(x) is the gamma function.
1/struve-378.gif
+
Struve function
The function computes the Struve function Hv(x) of order v, argument x. Negative x is rejected unless v is an integer.

This module also contains the hypergeometric functions 1F2 and 3F0 and a routine for the Bessel function Yv(x) with noninteger v.

Crossover points between ascending series and asymptotic series for Struve function
   v	 x
   0	19.2
   1	18.95
   2	19.15
   3	19.3
   5	19.7
  10	21.35
  20	26.35
  30	32.31
  40	40.0

References:

Cephes Math Library Release 2.0: April, 1987; http://mathworld.wolfram.com/StruveFunction.html
Example 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:
xthe point at which the function is evaluated
vthe 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:

To view or download source code you need either a GPL or Commercial Licence.

buy now     get GPL     add to cart

Not a member, then Register with CodeCogs. Already a Member, then Login.


Page Comments

Format Excel Equations

  You must login to leave a messge


Last Modified: 18 Oct 07 @ 17:07     Page Rendered: 2010-03-10 15:40:09

Valid CSS!   Valid XHTML 1.0 Transitional