;;; Compiled by f2cl version 2.0 beta 2002-05-06 ;;; ;;; Options: ((:prune-labels nil) (:auto-save t) (:relaxed-array-decls t) ;;; (:coerce-assigns :as-needed) (:array-type ':array) ;;; (:array-slicing t) (:declare-common nil) ;;; (:float-format single-float)) (in-package "QUADPACK") (defun dqawse (f a b alfa beta integr epsabs epsrel limit result abserr neval ier alist blist rlist elist iord last$) (declare (type (array f2cl-lib:integer4 (*)) iord) (type (array double-float (*)) elist rlist blist alist) (type f2cl-lib:integer4 last$ ier neval limit integr) (type double-float abserr result epsrel epsabs beta alfa b a)) (f2cl-lib:with-multi-array-data ((alist double-float alist-%data% alist-%offset%) (blist double-float blist-%data% blist-%offset%) (rlist double-float rlist-%data% rlist-%offset%) (elist double-float elist-%data% elist-%offset%) (iord f2cl-lib:integer4 iord-%data% iord-%offset%)) (prog ((ri (make-array 25 :element-type 'double-float)) (rj (make-array 25 :element-type 'double-float)) (rh (make-array 25 :element-type 'double-float)) (rg (make-array 25 :element-type 'double-float)) (iroff1 0) (iroff2 0) (k 0) (maxerr 0) (nev 0) (nrmax 0) (area 0.0d0) (area1 0.0d0) (area12 0.0d0) (area2 0.0d0) (a1 0.0d0) (a2 0.0d0) (b1 0.0d0) (b2 0.0d0) (centre 0.0d0) (epmach 0.0d0) (errbnd 0.0d0) (errmax 0.0d0) (error1 0.0d0) (erro12 0.0d0) (error2 0.0d0) (errsum 0.0d0) (resas1 0.0d0) (resas2 0.0d0) (uflow 0.0d0)) (declare (type (array double-float (25)) rj ri rh rg) (type double-float uflow resas2 resas1 errsum error2 erro12 error1 errmax errbnd epmach centre b2 b1 a2 a1 area2 area12 area1 area) (type f2cl-lib:integer4 nrmax nev maxerr k iroff2 iroff1)) (setf epmach (f2cl-lib:d1mach 4)) (setf uflow (f2cl-lib:d1mach 1)) (setf ier 6) (setf neval 0) (setf last$ 0) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (1) ((1 limit)) rlist-%offset%) 0.0d0) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (1) ((1 limit)) elist-%offset%) 0.0d0) (f2cl-lib:fset (f2cl-lib:fref iord-%data% (1) ((1 limit)) iord-%offset%) 0) (setf result 0.0d0) (setf abserr 0.0d0) (if (or (<= b a) (and (= epsabs 0.0d0) (< epsrel (f2cl-lib:dmax1 (* 50.0d0 epmach) 5.0d-29))) (<= alfa -1.0d0) (<= beta -1.0d0) (< integr 1) (> integr 4) (< limit 2)) (go label999)) (setf ier 0) (dqmomo alfa beta ri rj rg rh integr) (setf centre (* 0.5d0 (+ b a))) (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9 var-10 var-11 var-12 var-13 var-14 var-15) (dqc25s f a b a centre alfa beta ri rj rg rh area1 error1 resas1 integr nev) (declare (ignore var-0 var-3 var-4 var-7 var-8 var-9 var-10)) (setf a var-1) (setf b var-2) (setf alfa var-5) (setf beta var-6) (setf area1 var-11) (setf error1 var-12) (setf resas1 var-13) (setf integr var-14) (setf nev var-15)) (setf neval nev) (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9 var-10 var-11 var-12 var-13 var-14 var-15) (dqc25s f a b centre b alfa beta ri rj rg rh area2 error2 resas2 integr nev) (declare (ignore var-0 var-3 var-4 var-7 var-8 var-9 var-10)) (setf a var-1) (setf b var-2) (setf alfa var-5) (setf beta var-6) (setf area2 var-11) (setf error2 var-12) (setf resas2 var-13) (setf integr var-14) (setf nev var-15)) (setf last$ 2) (setf neval (f2cl-lib:int-add neval nev)) (setf result (+ area1 area2)) (setf abserr (+ error1 error2)) (setf errbnd (f2cl-lib:dmax1 epsabs (* epsrel (f2cl-lib:dabs result)))) (if (> error2 error1) (go label10)) (f2cl-lib:fset (f2cl-lib:fref alist-%data% (1) ((1 limit)) alist-%offset%) a) (f2cl-lib:fset (f2cl-lib:fref alist-%data% (2) ((1 limit)) alist-%offset%) centre) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (1) ((1 limit)) blist-%offset%) centre) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (2) ((1 limit)) blist-%offset%) b) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (1) ((1 limit)) rlist-%offset%) area1) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (2) ((1 limit)) rlist-%offset%) area2) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (1) ((1 limit)) elist-%offset%) error1) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (2) ((1 limit)) elist-%offset%) error2) (go label20) label10 (f2cl-lib:fset (f2cl-lib:fref alist-%data% (1) ((1 limit)) alist-%offset%) centre) (f2cl-lib:fset (f2cl-lib:fref alist-%data% (2) ((1 limit)) alist-%offset%) a) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (1) ((1 limit)) blist-%offset%) b) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (2) ((1 limit)) blist-%offset%) centre) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (1) ((1 limit)) rlist-%offset%) area2) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (2) ((1 limit)) rlist-%offset%) area1) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (1) ((1 limit)) elist-%offset%) error2) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (2) ((1 limit)) elist-%offset%) error1) label20 (f2cl-lib:fset (f2cl-lib:fref iord-%data% (1) ((1 limit)) iord-%offset%) 1) (f2cl-lib:fset (f2cl-lib:fref iord-%data% (2) ((1 limit)) iord-%offset%) 2) (if (= limit 2) (setf ier 1)) (if (or (<= abserr errbnd) (= ier 1)) (go label999)) (setf errmax (f2cl-lib:fref elist-%data% (1) ((1 limit)) elist-%offset%)) (setf maxerr 1) (setf nrmax 1) (setf area result) (setf errsum abserr) (setf iroff1 0) (setf iroff2 0) (f2cl-lib:fdo (last$ 3 (f2cl-lib:int-add last$ 1)) ((> last$ limit) nil) (tagbody (setf a1 (f2cl-lib:fref alist-%data% (maxerr) ((1 limit)) alist-%offset%)) (setf b1 (* 0.5d0 (+ (f2cl-lib:fref alist-%data% (maxerr) ((1 limit)) alist-%offset%) (f2cl-lib:fref blist-%data% (maxerr) ((1 limit)) blist-%offset%)))) (setf a2 b1) (setf b2 (f2cl-lib:fref blist-%data% (maxerr) ((1 limit)) blist-%offset%)) (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9 var-10 var-11 var-12 var-13 var-14 var-15) (dqc25s f a b a1 b1 alfa beta ri rj rg rh area1 error1 resas1 integr nev) (declare (ignore var-0 var-3 var-4 var-7 var-8 var-9 var-10)) (setf a var-1) (setf b var-2) (setf alfa var-5) (setf beta var-6) (setf area1 var-11) (setf error1 var-12) (setf resas1 var-13) (setf integr var-14) (setf nev var-15)) (setf neval (f2cl-lib:int-add neval nev)) (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6 var-7 var-8 var-9 var-10 var-11 var-12 var-13 var-14 var-15) (dqc25s f a b a2 b2 alfa beta ri rj rg rh area2 error2 resas2 integr nev) (declare (ignore var-0 var-3 var-4 var-7 var-8 var-9 var-10)) (setf a var-1) (setf b var-2) (setf alfa var-5) (setf beta var-6) (setf area2 var-11) (setf error2 var-12) (setf resas2 var-13) (setf integr var-14) (setf nev var-15)) (setf neval (f2cl-lib:int-add neval nev)) (setf area12 (+ area1 area2)) (setf erro12 (+ error1 error2)) (setf errsum (- (+ errsum erro12) errmax)) (setf area (- (+ area area12) (f2cl-lib:fref rlist-%data% (maxerr) ((1 limit)) rlist-%offset%))) (if (or (= a a1) (= b b2)) (go label30)) (if (or (= resas1 error1) (= resas2 error2)) (go label30)) (if (and (< (f2cl-lib:dabs (- (f2cl-lib:fref rlist-%data% (maxerr) ((1 limit)) rlist-%offset%) area12)) (* 1.0d-5 (f2cl-lib:dabs area12))) (>= erro12 (* 0.99d0 errmax))) (setf iroff1 (f2cl-lib:int-add iroff1 1))) (if (and (> last$ 10) (> erro12 errmax)) (setf iroff2 (f2cl-lib:int-add iroff2 1))) label30 (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (maxerr) ((1 limit)) rlist-%offset%) area1) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (last$) ((1 limit)) rlist-%offset%) area2) (setf errbnd (f2cl-lib:dmax1 epsabs (* epsrel (f2cl-lib:dabs area)))) (if (<= errsum errbnd) (go label35)) (if (= last$ limit) (setf ier 1)) (if (or (>= iroff1 6) (>= iroff2 20)) (setf ier 2)) (if (<= (f2cl-lib:dmax1 (f2cl-lib:dabs a1) (f2cl-lib:dabs b2)) (* (+ 1.0d0 (* 100.0d0 epmach)) (+ (f2cl-lib:dabs a2) (* 1000.0d0 uflow)))) (setf ier 3)) label35 (if (> error2 error1) (go label40)) (f2cl-lib:fset (f2cl-lib:fref alist-%data% (last$) ((1 limit)) alist-%offset%) a2) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (maxerr) ((1 limit)) blist-%offset%) b1) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (last$) ((1 limit)) blist-%offset%) b2) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (maxerr) ((1 limit)) elist-%offset%) error1) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (last$) ((1 limit)) elist-%offset%) error2) (go label50) label40 (f2cl-lib:fset (f2cl-lib:fref alist-%data% (maxerr) ((1 limit)) alist-%offset%) a2) (f2cl-lib:fset (f2cl-lib:fref alist-%data% (last$) ((1 limit)) alist-%offset%) a1) (f2cl-lib:fset (f2cl-lib:fref blist-%data% (last$) ((1 limit)) blist-%offset%) b1) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (maxerr) ((1 limit)) rlist-%offset%) area2) (f2cl-lib:fset (f2cl-lib:fref rlist-%data% (last$) ((1 limit)) rlist-%offset%) area1) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (maxerr) ((1 limit)) elist-%offset%) error2) (f2cl-lib:fset (f2cl-lib:fref elist-%data% (last$) ((1 limit)) elist-%offset%) error1) label50 (multiple-value-bind (var-0 var-1 var-2 var-3 var-4 var-5 var-6) (dqpsrt limit last$ maxerr errmax elist iord nrmax) (declare (ignore var-0 var-1 var-4 var-5)) (setf maxerr var-2) (setf errmax var-3) (setf nrmax var-6)) (if (or (/= ier 0) (<= errsum errbnd)) (go label70)) label60)) label70 (setf result 0.0d0) (f2cl-lib:fdo (k 1 (f2cl-lib:int-add k 1)) ((> k last$) nil) (tagbody (setf result (+ result (f2cl-lib:fref rlist-%data% (k) ((1 limit)) rlist-%offset%))) label80)) (setf abserr errsum) label999 (go end_label) end_label (return (values nil a b alfa beta integr nil nil nil result abserr neval ier nil nil nil nil nil last$)))))