1 \input texinfo @c -*-texinfo-*-
3 @setfilename ginac-examples.info
4 @settitle GiNaC Examples
10 @c I hate putting "@noindent" in front of every paragraph.
19 @c finalout prevents ugly black rectangles on overfull hbox lines
21 @majorheading GiNaC Examples
23 This is a collection of code examples using GiNaC.
27 @chapter Input / Output
29 @section Archiving expressions @uref{archive1.cpp, (source)}
31 Two expression are stored in an archive on the disk and are restored again.
33 @section Input and output of expressions
35 @subsection Expression input @uref{derivative.cpp, (source)}
37 Interactively input expression and compute its derivative with respect
38 to the ``x'' variable.
40 @chapter Monte Carlo Integration
42 @section Example showing compile_ex @uref{compile1.cpp, (source)}
44 Simple example showing compile_ex with one free variable. Timing between CLN and C double numerics is done.
46 @section Using VEGAS from CUBA @uref{compile2.cpp, (source)}
48 An expression in two variables is integrated by using VEGAS from the
49 @uref{http://www.feynarts.de/cuba/, CUBA library}.
51 @section Example showing link_ex @uref{compile3.cpp, (source)}
53 Demonstrates the use of link_ex. Program has to be called more than once to see the effect.
55 @chapter Lanczos Approximation
57 The program lanczos.cpp calculates coefficients for use in the Lanczos
58 approximation of the gamma function. The Lanczos approximation is used by
59 the function inside GiNaC that approximates the gamma function numerically.
60 See the comments in the source file for more information.