]> www.ginac.de Git - ginac.git/blob - doc/examples/ginac-examples.texi
Install the ginac-excompiler script iff excompiler is supported and enabled.
[ginac.git] / doc / examples / ginac-examples.texi
1 \input texinfo  @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename ginac-examples.info
4 @settitle GiNaC Examples
5 @afourpaper
6 @c For `info' only.
7 @paragraphindent 0
8 @c For TeX only.
9 @iftex
10 @c I hate putting "@noindent" in front of every paragraph.
11 @parindent=0pt
12 @end iftex
13 @c %**end of header
14 @ifnottex
15 @node Top
16 @end ifnottex
17
18 @dircategory Mathematics
19 @direntry
20 * ginac-examples: (ginac-examples).                   C++ library for symbolic computation.
21 @end direntry
22
23 @finalout
24 @c finalout prevents ugly black rectangles on overfull hbox lines
25
26 @majorheading GiNaC Examples
27
28 This is a collection of code examples using GiNaC.
29
30 @contents
31
32 @chapter Input / Output
33
34 @section Archiving expressions @uref{archive1.cpp, (source)}
35
36 Two expression are stored in an archive on the disk and are restored again.
37
38 @section Input and output of expressions
39
40 @subsection Expression input @uref{derivative.cpp, (source)}
41
42 Interactively input expression and compute its derivative with respect
43 to the ``x'' variable.
44
45 @chapter Monte Carlo Integration
46
47 @section Example showing compile_ex @uref{compile1.cpp, (source)}
48
49 Simple example showing compile_ex with one free variable. Timing between CLN and C double numerics is done.
50
51 @section Using VEGAS from CUBA @uref{compile2.cpp, (source)}
52
53 An expression in two variables is integrated by using VEGAS from the
54 @uref{http://www.feynarts.de/cuba/, CUBA library}.
55
56 @section Example showing link_ex @uref{compile3.cpp, (source)}
57
58 Demonstrates the use of link_ex. Program has to be called more than once to see the effect.
59
60 @chapter Lanczos Approximation
61
62 The program lanczos.cpp calculates coefficients for use in the Lanczos
63 approximation of the gamma function. The Lanczos approximation is used by
64 the function inside GiNaC that approximates the gamma function numerically.
65 See the comments in the source file for more information.
66
67 @bye