Last Modified January 26, 2004

Numerical Methods in Pascal : Links


Linking to Other Languages

Discussion Groups

Tutorials and On-line Books

Pascal-based Resources
The resources listed below use Pascal to illustrate topics in numerical mathematics at a variety of different skill levels... The intricacies of the IEEE floating point format are explained (with Pascal/Delphi example code) at the following links...

General "Learning Links"
The following resources are mathematical in nature, but to my knowledge do NOT contain Pascal source code...
Numerical Mathematics DSP Stuff Statistics Generally Useful Stuff

Pascal Compilers and Productivity Tools

Compilers Productivity Tools


Scientific Plotting Packages (Pascal/Delphi interface)

Delphi Compatible Other (e.g., Free Pascal)


Some Links of General Interest


Linking to Other Languages

Using Fortran DLLs in Delphi 2.0 Pascal
The Numerical Algorithms Group (NAG) publishes this brief web page explaining the steps necessary to use their DLLs in Borland's Delphi. The information should be(???) sufficiently general...
Jonas Lindemann's Fortran Interface Wizard
Jonas Lindemann's Fortran Interface Wizard will (according to the descriptive blurb at SourceForge.net) automatically generate code for creating a Fortran DLL and interface code for using the DLL from Borland Delphi

Discussion Groups

The JEDI-Mathematics mailing list
The JEDI Project (Joint Endeavor of Delphi Innovators) has started a new mailing list to explore the development of an Open Source math library for Delphi. To join the discussion, surf over to http://groups.yahoo.com/group/JEDI-Maths or send an e-mail to JEDI-Maths-subscribe[AT]yahoogroups.com

Pascal-based Tutorials and On-line Books

The UMIST Delphi Tutorial
The Department of Mechanical Engineering at the University of Manchester Institute of Science and Technology (UMIST) offers an on-line "Computing with Delphi" tutorial. In addition to the standard tutorial topics (e.g., loops, functions and procedures, units, exceptions), the tutorial includes a complex number unit and a linear regression example. There are also some more engineering oriented examples too (a reaction timer, and a temperature conversion example). The information is presented as a series of Microsoft Word documents, so Word or Microsoft's freeware Word Viewer is a must.
Computational Physics from the Sydney Regional Scientific Visualisation Laboratory
Quoting the Computational Physics web site, the Sydney Regional Scientific Visualisation Laboratory offers a
Computational Science course to teach computational techniques in Physics via modern Fourier Transform techniques and their applications, using PASCAL programming and the MUPPET utilities.
Topics include Fourier Series, Applications in Musical Acoustics, the Fast Fourier Transform, and Fourier Optics. Source code (including a 2-D FFT) is available for download at the web site.
Gary Darby's Delphi For Fun: tutorials and example code
The best way I can describe the Delphi For Fun site is to swipe the text from Gary's Introduction page
Welcome to a tutorial site guaranteed to teach you something about programming, algorithms, math, puzzles, and problem solving. The basic premise here is that "by example" is an effective way to learn programming. There's a growing amount of sample code here to download and run.
The added emphasis above is mine, not Gary's. I like this site...in fact, I like this site a whole lot.
Glenn's Maths Corner of the Australian Delphi Users Group
Glenn Crouch of Australia's ESB Consultancy writes an occasional series of on-line articles on mathematical topics that are collected in Glenn's Math Corner of the Australian Delphi User's Group website. Currently available articles include in-depth coverage of such topics as... (The logs and stats presentations come in multiple parts which, unfortunately, are not interlinked. The links above are to the first article in each series. You'll have to jump back to Glenn's Math Corner to get to the rest.)
Manfred von Thun's Symbolic Processing in Pascal
From an unassuming website at Australia's La Trobe University philosophy professor Manfred von Thun distributes several chapters of an unpublished book entitled Symbolic Processing in Pascal. In a brief Abstract he describes the content as follows...
The material in this book is intended for students in computer science who want to do symbolic processing in a conventional language, and for students in logic and linguistics who wish to learn how to write programs in their field. The programming language PASCAL is used throughout...
Guido Gybels' Understanding floating point values in a Delphi environment
The title says it all...Guido's floating point tutorial should be required reading for those venturing into numerical programming in Delphi. (There are also several useful -- though not necessarily numerical -- low-level Delphi and assembler routines available via Guido's homepage)
John Herbster's Exact Float to String Routines
While reading the news during a bit of new years net surfing, I found this little gem in Borland's delphi.language.objectpascal newsgroup [3e135051$1@newsgroups.borland.com]. The author is John Herbster, a member of Borland's TeamB and author of a very fine Delphi implementation of the Glassman FFT...

This post is directed to you programmers who want to understand floating point precision and non-exact-value problems better or who are helping people with these problems.

I have just uploaded to CodeCentral: Item #19421 titled "ExactFloatToStr_JH0 -- Exact Float to String Routines". The uploaded source code includes the module ExactFloatToStr_JH0.pas and a project to demonstrate and test the functions in the module..

This ExactFloatToStr_JH0.pas module includes

  1. functions for converting a floating binary point number to its *exact* decimal representation in an AnsiString;
  2. functions for parsing the floating point types into sign, exponent, and mantissa; and
  3. function for analyzing a extended float number into its type (zero, normal, infinity, etc.)
Its intended use is for trouble shooting problems with floating point numbers. The code uses dynamic arrays, overloaded calls, and optional parameters.

I hope that this helps someone. Best regards and wishes for a Happy and Prosperous New Year to all, JohnH


The code for John's ExactFloatToStr_JH0 module is available from Borland's Code Central.
Ernie Deel's Numerical Accuracy 101 for Delphi Developers
Ernie Deel's tutorial/essay on Numerical Accuracy 101 for Delphi Developers offers "a modest overview of practical numeric accuracy issues as they relate to the development of financial and scientific software using Borland's Delphi".

Other "Learning Links" (on-line mathematical books & tutorials)

Mahidol University's First Steps in Numerical Analysis
The Mahidol Physics Educaton Center at Thailand's Mahidol University offers an on-line version of the textbook " First Steps in Numerical Analysis, 2nd Edition", by R. J. Hosking, S. Joe, D. C. Joyce, and J. C. Turner, with editorial changes by Rainer Radok. The following topics are covered:
  • Errors
  • Non-linear Equations
  • Systems Of Equations
  • The Eigen-value Problem
  • Interpolation
  • Curve Fitting
  • Numerical Differentiation
  • Numerical Integration
  • Ordinary Differential Equations
The "First Steps" parent site also offers a short course in numerical analysis based on lectures given by Jeans Ranier Maria Radok at Mahidol University during the years 1985 through 1997.
Langara College's Internet Resources for College Math Students
The folks at the Department of Mathematics and Statistics of Langara College, a two-year institution located in Vancouver, Canada have compiled a very complete list of Internet Resources for College Math Students. These include a broad selection of on-line courses as well as listings for individual disciplines such as Linear Algebra. The linear algebra page has the following subsections
  • Systems of Equations
  • Vector Geometry
  • Matrix Algebra
  • Linear Transformations
  • Numerical and Computational Issues
  • Applications
There is a wealth of genuinely good stuff at this site. For instance, one of the links on the linear alegbra page points to a very comprehensive e-book produced by the Computational Science Education Project. Drill down into the book and you'll find all kinds of incredibly useful goodies, including sections on The clear-eyed individuals at the Langara math & stats department a very reasonable and realistic cautionary advisory about the use of web-based instructional materials...in my opinion, this thing ought to be read by students and academic-minded websurfers everywhere.
Julian V. Noble's Lectures in Computational Methods of Physics
Julian V. Noble is a professor (emeritus???) of physics at the University of Virgina, who offers a series PDF files that make up his Lectures in Computational Methods of Physics. The following topics are covered:
  • Roots of Equations
  • Representation of Functions
  • Optimization Methods
  • Linear Equations
  • Monte Carlo Methods
  • Numerical Quadrature
  • Ordinary Differential Equations
  • Partial Differential Equations
  • Integral Equations
  • Symbolic Programming and Computer Algebra
  • Digital Data Processing

The Scientist and Engineer's Guide to Digital Signal Processing, by Steven W. Smith
This appears to be a well received DSP text, available both in hard copy and on-line, as a collection of PDF files. The code accompanying the text (written in Basic) and an DOS/Windows FFT executable are also available for free download.

A DFT and FFT Tutorial from Strathclyde University
Fourier and the Frequency Domain is an on-line tutorial hosted by the Signal Processing Division of the EEE Department at Strathclyde University. According to their introductory page
The tutorial is designed to take you step by step through the process of the Discrete and Fast Fourier Transforms (DFT and FFT). At various points throughout there will be opportunities to link the tutorial to the simulation where it will do all the work for you. Take it page by page, we are trying to show you the concepts behind the FFT not to memorise the mathematics of it.

A collection of Wavelet Resources from Amara Graps
Over the years, Amara Graps has put together one of the most useful and attractive sites on the web. Particularly interesting is the very cool and comprehensive collection of wavelet resources on the web. In addition to a beginner's bibiliography of wavelets and a host of wavelet links, Amara has also assembled a wonderful collection of tutorials (including a postscript version of her own 1995 paper An Introduction to Wavelets, published in the journal IEEE Computational Sciences and Engineering.

HyperStat Online, an introductory-level hypertext statistics book
David Lane of Rice University's Virtual Lab in Statistics publishes an introductory-level hypertext statistics book called HyperStat Online. The text covers the standard topics of an university level undergraduate statistics course. The Hyperstat site also has a wealth of links to other on-line statistics books and tutorials. (Especially interesting: Warren Sarle's Measurement Theory article.)

Steven Skiena's Algorithm Design Manual
A hypertext edition of Steven Skiena's The Algorithm Design Manual is now available online. This very thorough and well reviewed text contains chapters on
  • Introduction to Algorithms
  • Data Structures and Sorting
  • Breaking Problems Down
  • Graph Algorithms
  • Combinatorial Search and Heuristic Methods
  • Intractable Problems and Approximations
  • How to Design Algorithms
And for those of you who prefer NOT to spend your entire life in front of a computer screen, a hardcopy version of the book is still available from all the usual suspects (Amazon, Barnes & Noble, Borders, etc.)


Some Links of General Interest

The Scientific Computing FAQ
Though it has very little to do with Pascal programming, Steve Sullivan's Scientific Computing FAQ certainly a resource worth investigating. This document has expaneded substantially over the years. Originally titled The Numerical Analysis FAQ, there are now sections dealing with...
  • scientific and engineering numerical computing
  • numerical analysis
  • symbolic algebra
  • statistics
  • operations research
If web-browsing is not your favorite way to digest high-density technical information, a text version of the entire FAQ is available for download in a single file (~240 kb as of 2001-08-16).

Amara Graps' Science Links
In addition to her very fine wavelets web pages, Amara Graps also maintains a very comprehensive collection of links to sites dealing with mathematics and science. Highly recommended!

Earl F. Glenn's Computer Lab
Earl's award-winning ComputerLab is an absolutely superb resource for mathematical and scientific programming. This site contains pages devoted to Mathematics, Graphics, Image Processing, Fractals & Chaos, and Science & Engineering. While most of the code at the Computer Lab is written specifically for Borland's Delphi, enough of it is sufficiently generic to be of use to programmers using other dialects of Pascal.

For those of us doing scientific programming using Pascal, the Computer Lab is undoubtedly one of the most valuable sites on the entire web. The amount of information Earl provides is truly amazing, and the volume of traffic he gets is commensurate with the site's info-content. As a consequence, your best chance of connecting to the ComputerLab might to use the mirror site hosted on the Borland community homepages.

Borland's Fractal Programming Contest
An awesome collection of fractal generators and viewers is now available at Charlie Calvert's website These were submitted as part of Borland's March/April Fractal programming contest; the complete code for most (all?) of the entries is available at Charlie's site.

ESB Consultancy's Math and Stats Links
Glenn Crouch's ESB Consultancy maintains an excellent collection of links to various mathematics and statistics sites.

IEEE Floating Point Standards
Some kind soul has put together a web site with lots of information about the IEEE standard 754 for binary floating-point arithmetic.

Eric Weinnstein's World of Mathematics
This very useful and accessable mathematics encyclopedia is now back on-line. Apparently Wolfram. Inc. agreed to help the author settle a copywrite suit brought against them by CRC Press. Kudos to Wolfram for returning this valuable resource to the web!!

(FYI, Eric Weinnstein's take on the whole CRC Press fiasco makes very interesting reading for potential e-authors.)

NIST: The National Institute of Standards and Technology...
The Math, Statistics, and Computational Science page at U.S. government's National Institute of Standards and Technology opens the door to all sorts of useful resources for numerical analysists, engineers, and computer scientists. Among the numerous offerings at this site are links to...



Page Curator: Mark Vaughan