Sage

Posted by Marcus G. Daniels on
URL: http://friam.383.s1.nabble.com/Sage-tp1570939.html

Few things I noticed about Sage:

1) Symbolic math is courtesy of Maxima, a.k.a. Macsyma, the classic math
Lisp program of MIT.  [1]

sage: x,y=var('x,y')
sage: solve([y==x^2,y==x/2],x,y)
[[x == 1/2, y == 1/4], [x == 0, y == 0]]
sage:
Exiting SAGE (CPU time 0m1.67s, Wall time 1m20.01s).
Exiting spawned Maxima process.

2) The R shared library is actually embedded in the package.  Witness:

sage: r.wilcox_test([1,2,3,10,50,60],[1,2,-1,-20])

    Wilcoxon rank sum test with continuity correction

data:  sage4 and sage26
W = 22, p-value = 0.04157
alternative hypothesis: true location shift is not equal to 0

vs. from the R console:

> wilcox.test(c(1,2,3,10,50,60),c(1,2,-1,-20),exact=FALSE)

    Wilcoxon rank sum test with continuity correction

data:  c(1, 2, 3, 10, 50, 60) and c(1, 2, -1, -20)
W = 22, p-value = 0.04157
alternative hypothesis: true location shift is not equal to 0

3.  The package is enormous and integrates dozens of packages.   300k
lines of Common Lisp,
500k lines of C++, 1.6 million lines of C, 1.7 million lines of Python.
It takes ~ 3 hours on a fast machine to build.
An enormous software integration effort!

[1] http://en.wikipedia.org/wiki/Macsyma
http://en.wikipedia.org/wiki/Maxima_(software)


============================================================
FRIAM Applied Complexity Group listserv
Meets Fridays 9a-11:30 at cafe at St. John's College
lectures, archives, unsubscribe, maps at http://www.friam.org