Reputation: 1921
Unlike commercial mathematics apps, Sage Math uses Python as its scripting language. I don't like it because it doesn't have tail recursion, isn't homoiconic, and uses indentation to put out statement blocks. How can I use another language like Scheme instead?
Upvotes: 2
Views: 344
Reputation: 17575
Aside from Sage, you could try Maxima [1], which is implemented in Common Lisp -- you can easily write additional programs in CL and integrate them with Maxima.
Maxima has its own programming language which has Lisp-like features (e.g. homoiconic) but to be honest, the programming language is kind of clumsy.
[1] http://sourceforge.net/p/maxima, http://maxima.sourceforge.net
Upvotes: 1
Reputation: 236112
If you don't like Python you can use C/C++ or Fortran. Sage is built around Python / Cython libraries, with little interoperability with other programming languages in mind.
Or you could use a Scheme interpreter that compiles to C (say, Chicken Scheme or Gambit Scheme) and somehow call the generated code from Sage, in principle it should be possible. But why bother? give Python a try, you'll discover that it's quite a nice language to work with, with many scientific libraries and applications.
Upvotes: 5