Section6Hacking on Sage
DEMONSTRATION: Modifying Sage source code.
- Location of
catalan_number()(bottom of source with ?? query) - Edit:
SAGE_ROOT/src/sage/combinat/combinat.py - Change: add
print "Hello, AIMS!"todef catalan_number(): - Rebuild:
./sage -batSAGE_ROOT - Run:
./sageatSAGE_ROOT - Test:
./sage -t SAGE_ROOT/src/sage/combinat/combinat.py