~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to deps/openlibm/slatec/ccbrt.f

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-01-16 12:29:42 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130116122942-x86e42akjq31repw
Tags: 0.0.0+20130107.gitd9656f41-1
* New upstream snashot
* No longer try to rebuild helpdb.jl.
   + debian/rules: remove helpdb.jl from build-arch rule
   + debian/control: move back python-sphinx to Build-Depends-Indep
* debian/copyright: reflect upstream changes
* Add Build-Conflicts on libatlas3-base (makes linalg tests fail)
* debian/rules: replace obsolete USE_DEBIAN makeflag by a list of
  USE_SYSTEM_* flags
* debian/rules: on non-x86 systems, use libm instead of openlibm
* dpkg-buildflags.patch: remove patch, applied upstream
* Refreshed other patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
*DECK CCBRT
 
2
      COMPLEX FUNCTION CCBRT (Z)
 
3
C***BEGIN PROLOGUE  CCBRT
 
4
C***PURPOSE  Compute the cube root.
 
5
C***LIBRARY   SLATEC (FNLIB)
 
6
C***CATEGORY  C2
 
7
C***TYPE      COMPLEX (CBRT-S, DCBRT-D, CCBRT-C)
 
8
C***KEYWORDS  CUBE ROOT, ELEMENTARY FUNCTIONS, FNLIB, ROOTS
 
9
C***AUTHOR  Fullerton, W., (LANL)
 
10
C***DESCRIPTION
 
11
C
 
12
C CCBRT(Z) calculates the complex cube root of Z.  The principal root
 
13
C for which -PI .LT. arg(Z) .LE. +PI is returned.
 
14
C
 
15
C***REFERENCES  (NONE)
 
16
C***ROUTINES CALLED  CARG, CBRT
 
17
C***REVISION HISTORY  (YYMMDD)
 
18
C   770401  DATE WRITTEN
 
19
C   890531  Changed all specific intrinsics to generic.  (WRB)
 
20
C   890531  REVISION DATE from Version 3.2
 
21
C   891214  Prologue converted to Version 4.0 format.  (BAB)
 
22
C***END PROLOGUE  CCBRT
 
23
      COMPLEX Z
 
24
C***FIRST EXECUTABLE STATEMENT  CCBRT
 
25
      THETA = CARG(Z) / 3.0
 
26
      R = CBRT (ABS(Z))
 
27
C
 
28
      CCBRT = CMPLX (R*COS(THETA), R*SIN(THETA))
 
29
C
 
30
      RETURN
 
31
      END