Don't use fname to define functions
[maxima.git] / src / numerical / slatec / dbesj0.lisp
blob88ecd9bf61579d23cc796c4712e02080d214d6ee
1 ;;; Compiled by f2cl version:
2 ;;; ("f2cl1.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
3 ;;; "f2cl2.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
4 ;;; "f2cl3.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
5 ;;; "f2cl4.l,v 96616d88fb7e 2008/02/22 22:19:34 rtoy $"
6 ;;; "f2cl5.l,v 46c1f6a93b0d 2012/05/03 04:40:28 toy $"
7 ;;; "f2cl6.l,v 1d5cbacbb977 2008/08/24 00:56:27 rtoy $"
8 ;;; "macros.l,v fceac530ef0c 2011/11/26 04:02:26 toy $")
10 ;;; Using Lisp CMU Common Lisp snapshot-2012-04 (20C Unicode)
11 ;;;
12 ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t)
13 ;;; (:coerce-assigns :as-needed) (:array-type ':simple-array)
14 ;;; (:array-slicing nil) (:declare-common nil)
15 ;;; (:float-format double-float))
17 (in-package :slatec)
20 (let ((ntj0 0)
21 (xsml 0.0)
22 (bj0cs
23 (make-array 19
24 :element-type 'double-float
25 :initial-contents '(0.10025416196893913 -0.6652230077644051
26 0.2489837034982813 -0.03325272317003577
27 0.0023114179304694017
28 -9.911277419950809e-5
29 2.891670864399881e-6
30 -6.121085866303263e-8
31 9.838650793856784e-10
32 -1.2423551597301765e-11
33 1.2654336302559046e-13
34 -1.0619456495287245e-15
35 7.470621075802456e-18
36 -4.469703227441278e-20
37 2.302428158433744e-22
38 -1.0319144794166698e-24
39 4.060817827487332e-27
40 -1.4143836005240915e-29
41 4.391090549669888e-32)))
42 (first$ nil))
43 (declare (type (f2cl-lib:integer4) ntj0)
44 (type (double-float) xsml)
45 (type (simple-array double-float (19)) bj0cs)
46 (type f2cl-lib:logical first$))
47 (setq first$ f2cl-lib:%true%)
48 (defun dbesj0 (x)
49 (declare (type (double-float) x))
50 (prog ((ampl 0.0) (theta 0.0) (y 0.0) (dbesj0 0.0))
51 (declare (type (double-float) dbesj0 y theta ampl))
52 (cond
53 (first$
54 (setf ntj0
55 (initds bj0cs 19
56 (* 0.1f0 (f2cl-lib:freal (f2cl-lib:d1mach 3)))))
57 (setf xsml (f2cl-lib:fsqrt (* 8.0 (f2cl-lib:d1mach 3))))))
58 (setf first$ f2cl-lib:%false%)
59 (setf y (abs x))
60 (if (> y 4.0) (go label20))
61 (setf dbesj0 1.0)
62 (if (> y xsml) (setf dbesj0 (dcsevl (- (* 0.125 y y) 1.0) bj0cs ntj0)))
63 (go end_label)
64 label20
65 (multiple-value-bind (var-0 var-1 var-2)
66 (d9b0mp y ampl theta)
67 (declare (ignore var-0))
68 (setf ampl var-1)
69 (setf theta var-2))
70 (setf dbesj0 (* ampl (cos theta)))
71 (go end_label)
72 end_label
73 (return (values dbesj0 nil)))))
75 (in-package #:cl-user)
76 #+#.(cl:if (cl:find-package '#:f2cl) '(and) '(or))
77 (eval-when (:load-toplevel :compile-toplevel :execute)
78 (setf (gethash 'fortran-to-lisp::dbesj0
79 fortran-to-lisp::*f2cl-function-info*)
80 (fortran-to-lisp::make-f2cl-finfo :arg-types '((double-float))
81 :return-values '(nil)
82 :calls '(fortran-to-lisp::d9b0mp
83 fortran-to-lisp::dcsevl
84 fortran-to-lisp::initds
85 fortran-to-lisp::d1mach))))