theta-functions: Theta-functions implemented as trigonometric series

[ library, math, public-domain ] [ Propose Tags ]

Small and simple library for computing values of Theta functions. They're the special functions of two variables. Described very well at Wikipedia article with corresponding name. Library exports four theta-functions and a small helper to calculate their second parameter. Theta functions are functions of Complex variables, FYI.


[Skip to Readme]

Modules

[Index]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 1.0.0, 1.0.1
Dependencies base (>=4.3.1.0 && <5) [details]
License LicenseRef-PublicDomain
Author Mark Safronov a.k.a. hijarian
Maintainer hijarian@gmail.com
Category Math
Home page https://github.com/hijarian/theta-functions
Source repo head: git clone git@github.com:hijarian/theta-functions.git
Uploaded by MarkSafronov at 2012-01-22T08:04:51Z
Distributions NixOS:1.0.1
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2409 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs uploaded by user
Build status unknown [no reports yet]

Readme for theta-functions-1.0.0

[back to package description]

theta-functions

Implementation of theta-functions using trigonometric series.

They're the special functions of two variables. Described very well at Wikipedia article.

Library exports four theta-functions and a small helper to calculate their second parameter.

Theta functions are functions of Complex variables, FYI.

Interface summary

thetaN n q u

where N is a number from 1 to 4, n is a quantization factor, q is a theta-functions special parameter, and u is an actual argument of function.

Parameter q should be calculated with the helper function qpar, which accepts real numbers as argument:

qpar tau

qpar itself returns Complex value. This helper is used to draw the library closer to the definition of theta-functions provided in the books.

Constraints

Never call theta1..4 with u > pi. Theta-functions are raising very rapidly (maybe it's because of trigonometric series representing them), so with large values of argument they overflow badly and return incorrect results.