To add an XFun, drag the file from the "XFuns" folder the into MathPad's "Active XFuns" folder. If MathPad is already running, you must quit and re-launch it to see the new XFun.
Installed XFuns will be added to the Functions menu and typically also add items to the Help menu to show how to use the function.
Programers interested in writing their own XFuns can download an XFun kit. It contains documentation, interface routines and C source code for several example XFuns. CodeWarrior projects are included but other development systems should be able to create Xfuns as well.
Set up a custom color table for image plots.
Discrete Fourier transform routines
-- fft(C) transform of a complex array.
-- invfft(C) inverse transform.
-- rfft(R) transform of a real array.
-- pwrspec(R) power spectrum estimate of a real array.
Gamma and error functions
Accumulate a histogram of the values in an array
Accumulate a 2D histogram
Hyperbolic trig functions
Allow direct specification of image color components
Fit data to a straight line using linear regression
Utility functions for 1D arrays
Can be called repeatedly during a long calculation to display a window with a progress bar and an estimate for time remaining.
Save a sequence of plots as a QuickTime movie.
Read a PICT file as an array of grayscale values.
Read and write sound files to and from a data array
Read a PICT file and displays it as a data plot overlay
Change the plot window size to get a specific data axis size or aspect ratio. Can be used to force a square data display coordinate system.
Allow values to be controlled by slider bars
Linear algebra tools using singular value decomposition. These XFuns are considerably faster and more accurate than using the det() function.
-- solve(A,B) solves a system of linear equations A*X = B
-- invert(A) finds the inverse of matrix A
-- SVD(A) returns the decomposition arrays
Return the current system tick count for timing comparisons
Display a projection of a 3D surface