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 -b
atSAGE_ROOT
- Run:
./sage
atSAGE_ROOT
- Test:
./sage -t SAGE_ROOT/src/sage/combinat/combinat.py