Home
Astronomy research
Software instruments
Stellar equation of states
EOS with ionization
EOS for supernovae
Chemical potentials
Stellar atmospheres
Voigt Function
Jeans escape
Polytropic stars
Cold white dwarfs
Adiabatic white dwarfs
Cold neutron stars
Stellar opacities
Neutrino energy loss rates
Ephemeris routines
FermiDirac functions
Polyhedra volume
Plane  cube intersection
Coating an ellipsoid
Nuclear reaction networks
Nuclear statistical equilibrium
Laminar deflagrations
CJ detonations
ZND detonations
Fitting to conic sections
Unusual linear algebra
Derivatives on uneven grids
Pentadiagonal solver
Quadratics, Cubics, Quartics
Supernova light curves
Exact Riemann solutions
1D PPM hydrodynamics
Hydrodynamic test cases
Galactic chemical evolution
Universal twobody problem
Circular and elliptical 3 body
The pendulum
Phyllotaxis
MESA
MESAWeb
FLASH
Zingale's software
Brown's dStar
GR1D code
Iliadis' STARLIB database
Herwig's NuGRID
Meyer's NetNuc
Presentations
Illustrations
cococubed YouTube
Bicycle adventures
Public Outreach
Education materials
AAS Journals
AAS Youtube
2022 MESA Marketplace
2022 MESA Summer School
2022 MESA Classroom
2022 MESA in Don't Look Up
2022 ASU Solar Systems Astronomy
2022 ASU Energy in Everyday Life
Contact: F.X.Timmes
my one page vitae,
full vitae,
research statement, and
teaching statement.

The tool
fdcoef.tbz
computes a derivative from data on an arbitrary spaced onedimensional grid.
The derivative may be of any order (first derivative, second derivative, etc.)
and any formal order of accuracy (first order accurate, second order accurate, etc).
Results for first derivatives are shown in the left plot below, and second derivatives in the
plot on the right. It is not too challenging to make the extension to two or threedimensional irregular grids.
The tool is based on B. Fornberg,
"Generation of finite difference formulas on arbitrary spaced grids",
Math. Comp., 51, 184, 699, 1988, and
"Calculation of weights in finite difference formulas", SIAM Rev., 40, 3, 685, 1998.
