File: ginac-examples.texi

package info (click to toggle)
ginac 1.5.8-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 5,628 kB
  • ctags: 4,936
  • sloc: cpp: 44,703; sh: 11,126; perl: 1,157; yacc: 763; makefile: 414; lex: 200; sed: 32
file content (67 lines) | stat: -rw-r--r-- 1,870 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
\input texinfo  @c -*-texinfo-*-
@c %**start of header
@setfilename ginac-examples.info
@settitle GiNaC Examples
@afourpaper
@c For `info' only.
@paragraphindent 0
@c For TeX only.
@iftex
@c I hate putting "@noindent" in front of every paragraph.
@parindent=0pt
@end iftex
@c %**end of header
@ifnottex
@node Top
@end ifnottex

@dircategory Mathematics
@direntry
* ginac-examples: (ginac-examples).                   C++ library for symbolic computation.
@end direntry

@finalout
@c finalout prevents ugly black rectangles on overfull hbox lines

@majorheading GiNaC Examples

This is a collection of code examples using GiNaC.

@contents

@chapter Input / Output

@section Archiving expressions @uref{archive1.cpp, (source)}

Two expression are stored in an archive on the disk and are restored again.

@section Input and output of expressions

@subsection Expression input @uref{derivative.cpp, (source)}

Interactively input expression and compute its derivative with respect
to the ``x'' variable.

@chapter Monte Carlo Integration

@section Example showing compile_ex @uref{compile1.cpp, (source)}

Simple example showing compile_ex with one free variable. Timing between CLN and C double numerics is done.

@section Using VEGAS from CUBA @uref{compile2.cpp, (source)}

An expression in two variables is integrated by using VEGAS from the
@uref{http://www.feynarts.de/cuba/, CUBA library}.

@section Example showing link_ex @uref{compile3.cpp, (source)}

Demonstrates the use of link_ex. Program has to be called more than once to see the effect.

@chapter Lanczos Approximation

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.

@bye