X-Git-Url: https://www.ginac.de/ginac.git//ginac.git?a=blobdiff_plain;f=doc%2Fexamples%2Fginac-examples.texi;h=7067f7ca0e81b14d56afff845a8f89b73e8f74a3;hb=6afbb9793e359cf388462c471ea256a6662b0cd4;hp=200c81e7a79f72cc3c1320052971acb1e265e483;hpb=8f9f05a96e217067831e4255f0db398305b0130c;p=ginac.git diff --git a/doc/examples/ginac-examples.texi b/doc/examples/ginac-examples.texi index 200c81e7..7067f7ca 100644 --- a/doc/examples/ginac-examples.texi +++ b/doc/examples/ginac-examples.texi @@ -15,6 +15,11 @@ @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 @@ -30,4 +35,33 @@ This is a collection of code examples using GiNaC. 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