Ginac: Difference between revisions
From charlesreid1
(Created page with "GiNaC, which stands for ''Ginac is Not a Computer algebra system'', is a C++ package which provides a set of objects to perform symbolic mathematical operations. You can think o...") |
|||
| (5 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
GiNaC, which stands for ''Ginac is Not a Computer | GiNaC, which stands for ''Ginac is Not a Computer Algebra System'', is a C++ package which provides a set of objects to perform symbolic mathematical operations. You can think of it as a C++ ''core'' that can be used as a symbolic math library by other C++ programs. | ||
= Installation = | = Installation = | ||
| Line 5: | Line 5: | ||
== Dependencies == | == Dependencies == | ||
In order to install Ginac, the <code>pkg-config</code> utility is required. It is available from http://pkg-config.freedesktop.org/ . In addition, Doxygen, while not required, can be used to generate the reference manual yourself. | In order to install Ginac, the <code>pkg-config</code> utility is required. It is available from http://pkg-config.freedesktop.org/ . In addition, [[Doxygen]], while not required, can be used to generate the reference manual yourself. | ||
== Configure == | == Configure == | ||
| Line 11: | Line 11: | ||
You can build Ginac using the following configure line: | You can build Ginac using the following configure line: | ||
< | <pre> | ||
export PKG_CONFIG=/sw/bin/pkg-config | export PKG_CONFIG=/sw/bin/pkg-config | ||
export PKG_CONFIG_PATH=:/ | export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig | ||
./configure \ | ./configure \ | ||
--prefix=/path/to/ginac | --prefix=/path/to/ginac | ||
</syntaxhighlight> | </pre> | ||
The <code>PKG_CONFIG</code> and <code>PKG_CONFIG_PATH</code> environmental variables are required as a part of the <code>pkg-config</code> utility required to install Ginac. I used [[Fink]], which is why you see the <code>/sw</code> directory. | |||
== Build == | |||
The build process is the usual, with some additional steps/targets: | |||
<syntaxhighlight lang="bash"> | |||
$ ./configure # <-- or, your configure wrapper script | |||
$ make | |||
$ make install | |||
$ make check # <-- confirm that Ginac was built correctly | |||
$ make html # <-- make html documentation | |||
$ make dvi # <-- make dvi documentation | |||
$ make ps # <-- make postscript documentation | |||
$ make pdf # <-- make PDF documentation | |||
</syntaxhighlight> | |||
= References = | = References = | ||
| Line 28: | Line 44: | ||
{{Programs}} | |||
{{Math Programs}} | |||
Latest revision as of 01:16, 10 October 2017
GiNaC, which stands for Ginac is Not a Computer Algebra System, is a C++ package which provides a set of objects to perform symbolic mathematical operations. You can think of it as a C++ core that can be used as a symbolic math library by other C++ programs.
Installation
Dependencies
In order to install Ginac, the pkg-config utility is required. It is available from http://pkg-config.freedesktop.org/ . In addition, Doxygen, while not required, can be used to generate the reference manual yourself.
Configure
You can build Ginac using the following configure line:
export PKG_CONFIG=/sw/bin/pkg-config
export PKG_CONFIG_PATH=:/path/to/cln/lib/pkgconfig:/sw/lib/pkgconfig:/usr/local/lib/pkgconfig
./configure \
--prefix=/path/to/ginac
The PKG_CONFIG and PKG_CONFIG_PATH environmental variables are required as a part of the pkg-config utility required to install Ginac. I used Fink, which is why you see the /sw directory.
Build
The build process is the usual, with some additional steps/targets:
$ ./configure # <-- or, your configure wrapper script
$ make
$ make install
$ make check # <-- confirm that Ginac was built correctly
$ make html # <-- make html documentation
$ make dvi # <-- make dvi documentation
$ make ps # <-- make postscript documentation
$ make pdf # <-- make PDF documentation
References
Ginac main page - http://www.ginac.de/
| Scientific Computing Topics in scientific computing.
Numerical Software: Lapack · Sundials · Matlab · Octave · FFTW Petsc · Example Petsc Makefile · Trilinos · Hypre · Ginac · Gnuplot
Python: Numpy · Scipy · Pandas · Matplotlib · Python Sundials · Py4Sci Scikit-learn: Sklearn · Skimage
|