| 1 | ;; Transport functions |
|---|
| 2 | ;; Liam Healy, Mon May 1 2006 - 22:29 |
|---|
| 3 | ;; Time-stamp: <2008-02-16 22:50:39EST transport.lisp> |
|---|
| 4 | ;; $Id$ |
|---|
| 5 | |
|---|
| 6 | (in-package :gsl) |
|---|
| 7 | |
|---|
| 8 | ;;; FDL |
|---|
| 9 | ;;; The transport functions J(n,x) are defined by the integral |
|---|
| 10 | ;;; representations |
|---|
| 11 | ;;; J(n,x) := \int_0^x dt \, t^n e^t /(e^t - 1)^2. |
|---|
| 12 | |
|---|
| 13 | (defmfun transport-2 (x) |
|---|
| 14 | "gsl_sf_transport_2_e" ((x :double) (ret sf-result)) |
|---|
| 15 | :documentation ; FDL |
|---|
| 16 | "The transport function J(2,x).") |
|---|
| 17 | |
|---|
| 18 | (defmfun transport-3 (x) |
|---|
| 19 | "gsl_sf_transport_3_e" ((x :double) (ret sf-result)) |
|---|
| 20 | :documentation ; FDL |
|---|
| 21 | "The transport function J(3,x).") |
|---|
| 22 | |
|---|
| 23 | (defmfun transport-4 (x) |
|---|
| 24 | "gsl_sf_transport_4_e" ((x :double) (ret sf-result)) |
|---|
| 25 | :documentation ; FDL |
|---|
| 26 | "The transport function J(4,x).") |
|---|
| 27 | |
|---|
| 28 | (defmfun transport-5 (x) |
|---|
| 29 | "gsl_sf_transport_5_e" ((x :double) (ret sf-result)) |
|---|
| 30 | :documentation ; FDL |
|---|
| 31 | "The transport function J(5,x).") |
|---|
| 32 | |
|---|
| 33 | ;;;;**************************************************************************** |
|---|
| 34 | ;;;; Examples and unit test |
|---|
| 35 | ;;;;**************************************************************************** |
|---|
| 36 | |
|---|
| 37 | #| |
|---|
| 38 | (make-tests transport |
|---|
| 39 | (transport-2 4.0d0) |
|---|
| 40 | (transport-3 4.0d0) |
|---|
| 41 | (transport-4 4.0d0) |
|---|
| 42 | (transport-5 4.0d0)) |
|---|
| 43 | |# |
|---|
| 44 | |
|---|
| 45 | (LISP-UNIT:DEFINE-TEST TRANSPORT |
|---|
| 46 | (LISP-UNIT::ASSERT-NUMERICAL-EQUAL |
|---|
| 47 | (LIST 2.806666404563118d0 2.2867923780257255d-15) |
|---|
| 48 | (MULTIPLE-VALUE-LIST (TRANSPORT-2 4.0d0))) |
|---|
| 49 | (LISP-UNIT::ASSERT-NUMERICAL-EQUAL |
|---|
| 50 | (LIST 4.579217437229157d0 3.242324689309112d-15) |
|---|
| 51 | (MULTIPLE-VALUE-LIST (TRANSPORT-3 4.0d0))) |
|---|
| 52 | (LISP-UNIT::ASSERT-NUMERICAL-EQUAL |
|---|
| 53 | (LIST 10.731932392998623d0 1.0925209116254758d-14) |
|---|
| 54 | (MULTIPLE-VALUE-LIST (TRANSPORT-4 4.0d0))) |
|---|
| 55 | (LISP-UNIT::ASSERT-NUMERICAL-EQUAL |
|---|
| 56 | (LIST 29.488339015245842d0 3.204450601879883d-14) |
|---|
| 57 | (MULTIPLE-VALUE-LIST (TRANSPORT-5 4.0d0)))) |
|---|