root/trunk/special-functions/dawson.lisp

Revision 26, 0.7 kB (checked in by lhealy, 9 months ago)

Subversion version stamp.

  • Property svn:keywords set to Id
Line 
1;; Dawson function
2;; Liam Healy, Sun Mar 19 2006 - 14:31
3;; Time-stamp: <2008-02-16 20:04:51EST dawson.lisp>
4;; $Id$
5
6#|
7;;; FDL
8The Dawson integral is defined by \exp(-x^2) \int_0^x dt
9\exp(t^2).  A table of Dawson's integral can be found in Abramowitz &
10Stegun, Table 7.5.  The Dawson functions are declared in the header file
11gsl_sf_dawson.h.
12|#
13
14(in-package :gsl)
15
16(defmfun dawson (x)
17  "gsl_sf_dawson_e" ((x :double) (ret sf-result))
18  :documentation                        ; FDL
19  "Dawson's integral for x.")
20
21#|
22(make-tests dawson
23            (dawson 1.0d0))
24|#
25
26(LISP-UNIT:DEFINE-TEST DAWSON
27  (LISP-UNIT::ASSERT-NUMERICAL-EQUAL
28   (LIST 0.5380795069127684d0 1.424354102650492d-15)
29   (MULTIPLE-VALUE-LIST (DAWSON 1.0d0))))
30
Note: See TracBrowser for help on using the browser.