This is a collection of code examples using GiNaC.
Two expression are stored in an archive on the disk and are restored again.
Interactively input expression and compute its derivative with respect to the “x” variable.
Simple example showing compile_ex with one free variable. Timing between CLN and C double numerics is done.
An expression in two variables is integrated by using VEGAS from the CUBA library.
Demonstrates the use of link_ex. Program has to be called more than once to see the effect.
The program lanczos.cpp calculates coefficients for use in the Lanczos approximation of the gamma function. The Lanczos approximation is used by the function inside GiNaC that approximates the gamma function numerically. See the comments in the source file for more information.