A small numerical analysis library in Common Lisp
Copyright © 2007 Gene Michael Stover.
All rights reserved. Permission to copy, store, &
view this document unmodified & in its entirety is granted.
fixme: As of 2007 January 6, this is unfinished.
In fact, it's just started.
It's an experimental work in progress.
This is a small library to approximate perform some
``numerical analysis'' calculations, which include:
- interpolating polynomials over one variable &
- approximating numerical solutions to linear systems.
This library is small & provides a few specific features
which I needed for a special case1. It
is probably most useful if you have an application in which
you need only a few types of numerical analysis operations
& your data sets aren't large. For more demanding
numerical analysis needs, look at the
``mathematics''
entry at CL
the common lisp
wiki.
The library is licensed according to the
Gnu Lesser General Public License. [2]
The text of that agreement is at
http://www.gnu.org/licenses/licenses.html#LGPL.
This documentation (which are are reading now) is not
covered by an open source license. See the copyright notice
at the top of this document.
Most (all?) of the algorithms in the library are from Numerical Analysis by Burden & Faires. [1]
- Download the source file from http://cybertiggyr.com/gene/big/bigo.lisp.
- You might want loadall.lisp.2
- Youw will need test.lisp from
My Lisp Unit Test Framework
[3].
- Load test.lisp into your Lisp. Then load bigo.lisp into your Lisp.
loadall.lisp does
this.
- Obtain your performance measurements. They must be in
the form of a list of two-list elements. Each two-list
element consists of a FIRST which is the size of the
input & a SECOND which is the cost. The cost can
be number of times some function was called, the amount of
wall-time required for your function to run, the amount of
memory it used, or whatever else you want to measure.
Let's assume that you bound your measurements to a global
variable called *MEASUREMENT*.
- (in-package "COM.CYBERTIGGYR.BIGO")
- (bigo *measurement*)
- The string you get in return will be he Big-O cost for
the function you measured. The string is formatted for
LATEX.
- 1
-
Richard L. Burden - J. Douglass Faires.
Numerical Analysis.
PWS-KENT Publishing Company, fourth edition, 1989.
ISBN 0-53491-585-X.
- 2
-
Free Software Foundation.
Lesser general public license.
world wide web.
http://www.gnu.org/licenses/licenses.html#LGPL.
- 3
-
Gene Michael Stover.
My lisp unit test framework.
cybertiggyr.com/gene, June
2005.
http://cybertiggyr.com/gene/lut/.
Gene Michael Stover
2008-04-20