C349: Jacobian Theta Functions

Author(s): G.A. Erskine Library: MATHLIB
Submitter: K.S. Kölbig Submitted: 07.06.1992
Language: Fortran Revised:

Function subprograms RTHETA and DTHETA calculate the Jacobian theta functions

displaymath135

for real arguments x and tex2html_wrap_inline139 . tex2html_wrap_inline141 and tex2html_wrap_inline143 are undefined if x is an integer; otherwise tex2html_wrap_inline147 .

Note that several conflicting definitions of these functions occur in the literature. In particular, the argument in the trigonometric terms is often defined to be x instead of tex2html_wrap_inline151 .

On CDC and Cray computers, the double-precision version DTHETA is not available.

Structure:

FUNCTION subprogram
User Entry Names: RTHETA, DTHETA
Files Referenced: Unit 6
External References: MTLMTR, ABEND

Usage:

In any arithmetic expression,

RTHETA(K,X,Q) or DTHETA(K,X,Q) has the value tex2html_wrap_inline153 ,

where RTHETA is of type REAL, DTHETA is of type DOUBLE PRECISION, X and Q are of the same type as the function name, and K is of type INTEGER.

Method:

If tex2html_wrap_inline155 differs from x or -x by an integer, it follows from the periodicity and symmetry properties of the functions that tex2html_wrap_inline161 and tex2html_wrap_inline163 . In a region for which the approximation is sufficiently accurate, tex2html_wrap_inline165 is set equal to the first (n=0) term of the transformed series

displaymath169

and tex2html_wrap_inline171 is set equal to the first two (i.e. tex2html_wrap_inline173 ) terms of

displaymath175

where tex2html_wrap_inline177 . Otherwise the trigonometric series for tex2html_wrap_inline179 and tex2html_wrap_inline181 are used.

For all x, tex2html_wrap_inline185 and tex2html_wrap_inline187 are computed from tex2html_wrap_inline189 , tex2html_wrap_inline191 .

Restrictions:

1. tex2html_wrap_inline193 .
2. tex2html_wrap_inline195 .
3. tex2html_wrap211

Error handling:

Error C349.1: Restriction 1 is not satisfied.
Error C349.2: Restriction 2 is not satisfied.
Error C349.3: Restriction 3 is not satisfied.
In all cases, the function value is set equal to zero, and a message is written on Unit 6, unless subroutine MTLSET (N002) has been called.

Accuracy:

For DTHETA (and for RTHETA on CDC and Cray computers), the error when Q is less than approximately 0.9 does not exceed two decimal digits in the last place. For larger values of Q (provided the computed result is non-zero), the error is at worst comparable in magnitude to the mathematical error which would be caused by one-bit rounding errors in the arguments X and Q.

On computers other than CDC and Cray, non-zero values of RTHETA have full machine accuracy.

Notes:

Successive references using the same value of Q are executed faster than those in which Q changes.

Many functional relations, including relations between the theta functions and the Jacobian elliptic functions, are given in Refs. 1-4.

References:

  1. W. Magnus, F. Oberhettinger and R.P. Soni, Formulas and theorems for the special functions of mathematical physics, Springer-Verlag Berlin (1966) 371-377.
  2. F. Tölke, Praktische Funktionenlehre, Bd. II, Springer-Verlag Berlin (1966) 1-38.
  3. P.F. Byrd and M.D. Friedman, Handbook of elliptic integrals for engineers and scientists, 2nd Edition, Springer-Verlag Berlin (1971) 315-320.
  4. E.T. Whittaker and G.N. Watson, A course of modern analysis, 4th Edition, Cambridge University Press, Cambridge (1946) Chapter 21.
tex2html_wrap_inline209

Michel Goossens Tue Jun 4 23:18:04 METDST 1996