Contents Previous Next Subchapters Current Chapters-> erf ierf erfc beta betai gamma gammln gammainc besselj bessely besseli besselk elliprf elliprd elliprj ellipf ellipe ellipi kolsmi psi airy isprime lentz Parent Chapters-> Omatrix6 special ellipf Search Tools-> contents reference index search

Legendre's Elliptic Integrals of the First Kind
 Syntax `ellipf(`phi`, `k`)` See Also elliprf

Description
Computes an element-by-element approximation of the elliptic integral defined by ```                  phi                  /        2   2    -1/2       F(phi, k) = | [ 1 - k sin (x) ]   dx                  /                  0 ```where the arguments phi and k are real or double-precision matrices. If both of these arguments is not a scalar, they must have the same dimension. For each `(i, j)`, ```      | phi(i, j) | < pi/2  and  | k(i, j) | < 1 ```
Example ```                  phi                  /         F(phi, 0) = | dx = phi                  /                  0 ```If you enter ```      phi = rand(2, 3)      print ellipf(phi, 0.)      print phi ``` O-Matrix will print two matrices with the same values.