root/trunk/interpolation/evaluation.lisp

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

Subversion version stamp.

  • Property svn:keywords set to Id
Line 
1;; Evaluation of interpolation functions.
2;; Liam Healy, Sun Nov  4 2007 - 18:40
3
4(in-package :gsl)
5
6(defmfun evaluate-interpolation (interpolation xa ya x acceleration)
7  "gsl_interp_eval"
8  ((interpolation :pointer) (xa :pointer) (ya :pointer) (x :double)
9   (acceleration :pointer))
10  :c-return :double
11  :documentation                        ; FDL
12  "Find the interpolated value of y for a given
13   point x, using the interpolation object interpolation, data arrays
14   xa and ya and the accelerator acceleration.")
15
16(defmfun derivative-evaluate-interpolation (interpolation xa ya x acceleration)
17  "gsl_interp_eval_deriv"
18  ((interpolation :pointer) (xa :pointer) (ya :pointer) (x :double)
19   (acceleration :pointer))
20  :c-return :double
21  :documentation                        ; FDL
22  "Find the derivative of an interpolated function for a given point
23   x, using the interpolation object interpolation, data arrays
24   xa and ya and the accelerator acceleration.")
25
26(defmfun second-derivative-evaluate-interpolation (interpolation xa ya x acceleration)
27  "gsl_interp_eval_deriv2"
28  ((interpolation :pointer) (xa :pointer) (ya :pointer) (x :double)
29   (acceleration :pointer))
30  :c-return :double
31  :documentation                        ; FDL
32  "Find the second derivative of an interpolated function for a given point
33   x, using the interpolation object interpolation, data arrays
34   xa and ya and the accelerator acceleration.")
35
36(defmfun integral-evaluate-interpolation (interpolation xa ya x low high acceleration)
37  "gsl_interp_eval_integ"
38  ((interpolation :pointer) (xa :pointer) (ya :pointer) (x :double)
39   (low :double) (high :double) (acceleration :pointer))
40  :c-return :double
41  :documentation                        ; FDL
42  "Find the numerical integral of an interpolated function over the
43   range [low, high], using the interpolation object interpolation,
44   data arrays xa and ya and the accelerator 'acceleration.")
45
46;;; Spline
47(defmfun evaluate-spline (spline x acceleration)
48  "gsl_spline_eval"
49  ((spline :pointer) (x :double) (acceleration :pointer))
50  :c-return :double
51  :documentation
52  "Find the interpolated value of y for a given
53   point x, using the spline object spline, data arrays
54   xa and ya and the accelerator 'acceleration.")
55
56(defmfun derivative-evaluate-spline (spline x acceleration)
57  "gsl_spline_eval_deriv"
58  ((spline :pointer) (x :double) (acceleration :pointer))
59  :c-return :double
60  :documentation                        ; FDL
61  "Find the derivative of an interpolated function for a given point
62   x, using the spline object spline, data arrays
63   xa and ya and the accelerator acceleration.")
64
65(defmfun second-derivative-evaluate-spline (spline x acceleration)
66  "gsl_spline_eval_deriv2"
67  ((spline :pointer) (x :double) (acceleration :pointer))
68  :c-return :double
69  :documentation                        ; FDL
70  "Find the second derivative of an interpolated function for a given point
71   x, using the spline object spline, data arrays
72   xa and ya and the accelerator acceleration.")
73
74(defmfun integral-evaluate-spline (spline x low high acceleration)
75  "gsl_spline_eval_integ"
76  ((spline :pointer) (x :double) (low :double) (high :double)
77   (acceleration :pointer))
78  :c-return :double
79  :documentation                        ; FDL
80  "Find the numerical integral of an interpolated function over the
81   range [low, high], using the spline object spline,
82   data arrays xa and ya and the accelerator acceleration.")
Note: See TracBrowser for help on using the browser.