[CoCoA logo]

CoCoALib

CoCoALib is a GPL C++ library for doing Computations in Commutative Algebra.

CoCoALib will be the mathematical kernel for the completely new system CoCoA-5 (no promises for the release date ;-)


Documentation html pdf NEW!!
Documentation generated by Doxygen


Following the CoCoA philosophy CoCoALib is designed to be easy and pleasant to use, so there is no need to be an expert C++ programmer, no need to understand inheritance, no need to know about memory allocation!
If you don't like programming in C++ you may use some of its features calling a "5" function from CoCoA-4 (e.g. GBasis5, LT5, Gin5, etc.). These functions call the CoCoAServer (the "embryo" of CoCoA-5) which is included in the CoCoA-4 releases.

Compile CoCoALib

You need to have the GMP library already installed.
cd CoCoALib-0.99
./configure
make
This will compile the library and run a series of tests. The code is quite portable, so just wait faithfully (don't worry about some "warning"s), and after a few minutes you'll get the reassuring message:
Good news: all tests passed

If not, you probably have some problems with your gmp or g++ installation. If you think it is a genuine problem with CoCoALib send an email to cocoa at dima.unige.it

Use CoCoALib

As we know that no one likes to read documentation, we provide an examples/ directory full of sample code using CoCoALib. To run an example do this:
cd examples
make ex-yyyyy    [without the ".C"]
./ex-yyyyy


In particular ex-empty.C is a useful starting point: just put your code in the function "void program()" under the line
// Put your code here.
Locations of visitors to this page