How this calculation works
Evaluate ordinary and modified Struve functions for the same real order and argument, including their first derivatives.
H_nu=sum_k (-1)^k (x/2)^(2k+nu+1)/(Gamma(k+3/2) Gamma(k+nu+3/2)); L_nu uses the same series without alternating signs.A worked example
At order zero and x=1, H0 is approximately 0.568656627048288 and L0 is approximately 0.710243185937891. Their derivatives are approximately 0.438162436165637 and 0.863384153423390.
Good to know
Real order0–5 and positive argument in a separately validated bounded range initially0.1–12. Both families on one page with normalization, derivative and forcing-residual checks; no Hankel confusion, unsupported negative-order branch or asymptotic accuracy promise.
Reference: Primary method or official documentation (opens in a new tab) ↗
Ordinary and modified Struve functions
Struve functions are particular solutions of inhomogeneous Bessel-type differential equations. The ordinary function is written H with an order subscript, while the modified function is written L. Evaluating them together at the same order and argument exposes the distinction between their alternating and nonalternating series, rather than treating them as interchangeable special-function labels.
These symbols should not be confused with Hankel functions, even though a capital H appears in both notations. They also differ from the homogeneous Bessel functions J, Y, I and K. A model that requires a forced Bessel solution can need a Struve term in addition to homogeneous terms, making the normalization and the family choice essential information.
Compare this with the Bessel J and Y function calculator with positive zeros. Evaluate the named inhomogeneous Bessel-family solutions Hν and Lν, rather than ordinary homogeneous J/Y or modified I/K values.
Entering order and argument
The initial validated domain uses real order from zero through five and positive argument from 0.1 through twelve. The order is not restricted to integers. A positive real argument avoids the branch choices associated with fractional powers of negative or complex arguments. Extending the range or changing the order domain requires separate accuracy tests rather than a silent relaxation of the inputs.
The argument is dimensionless within the named function, usually after a physical problem has supplied its own scaling. The calculator cannot infer that scaling from a unit label. Very small arguments outside the stated range may have simple limiting behavior, but supporting them numerically still requires deliberate derivative and relative-error handling before they can carry the same checked status.
The defining power-series pair
Both families begin with a power proportional to (x divided by two) raised to order plus one, divided by two gamma factors. Subsequent terms increase the argument power by two and update those gamma factors. For H the signs alternate; for L they do not. A recurrence between neighboring terms evaluates the series without repeatedly calculating large powers and gamma values.
Absolute convergence at finite arguments does not mean every direct floating sum is equally accurate. The ordinary series can contain substantial cancellation before the final value settles. Tracking the sum of term magnitudes, comparing refinement and limiting the validated domain help distinguish a stable result from an answer that merely terminated because a late term became small.
First derivatives and forced equations
Differentiating a series term multiplies it by its argument exponent and divides by x. This gives a direct first-derivative series on the positive argument domain. A second derivative can be computed similarly for an independent residual, provided the sum's conditioning is monitored rather than assuming differentiated terms have the same cancellation behavior as the original value.
The ordinary equation contains x squared y double prime plus x y prime plus (x squared minus order squared) y. The modified equation changes that last term to minus (x squared plus order squared) y. Both have the specified positive gamma-normalized forcing. A homogeneous Bessel solver would omit that forcing and can therefore produce a smooth but mathematically different answer.
The order-zero worked example
At order zero and argument one, the ordinary value H0 is approximately 0.568656627048288. The modified value L0 is approximately 0.710243185937891. The latter is larger here because its positive series terms accumulate, whereas the ordinary series subtracts alternating corrections. This comparison checks family selection without implying a universal ordering for every possible argument and order.
Their first derivatives at the same point are approximately 0.438162436165637 and 0.863384153423390. These values can be compared with an independent high-precision special-function implementation. They also make it possible to check a derivative routine separately from the value routine; simply returning a value with a relabeled column would fail this worked example.
Numerical verification and cancellation
Compare series sums with stricter termination settings and retain digits that remain stable. Independently calculated derivative or differential-equation residuals can expose normalization errors, but a residual is circular if the second derivative was defined only by rearranging that same equation. Independent fixtures should include noninteger orders, both ends of the argument range and values near an ordinary-function zero.
Use absolute error criteria near zeros and relative criteria where values are safely separated from zero. For modified values that grow quickly, a small relative residual can coexist with a visibly large absolute difference. The displayed validation policy should make that distinction clear. If cancellation consumes the available precision, an explicit unresolved status is preferable to printing unsupported decimal places.
Applying the result with the right convention
The returned H and L values are mathematical function evaluations, not complete solutions of a physical boundary problem. An application may need additional homogeneous Bessel terms with coefficients determined by its initial or boundary conditions. The order and argument scaling should be recorded alongside the values before comparing with another library or a table.
The page does not claim negative-order identities, arbitrary complex branches or large-argument asymptotic accuracy. Both families remain on this one page because changing the forcing sign structure is an option within the same well-defined task, rather than a reason to publish near-duplicate pages. Use a separately appropriate Bessel or Hankel calculation when the governing equation calls for a homogeneous family instead.
A few questions, answered
Is Struve H the same as a Hankel function?
No. Similar notation conceals different functions and differential equations.
Can the order be fractional?
Yes, within the supported real order interval from zero to five.
Why is the argument positive?
That avoids unsupported branch choices for fractional powers and keeps the validated real domain explicit.
Does a convergent series automatically give accurate floating results?
No. Cancellation can lose digits even when the mathematical series converges, so refinement and independent checks are required.