Exact (LISP-ish) calculations in Ruby?

M

Martin DeMello

Everyone's talking about Maxima, which was written in LISP.. Interesting
:)
I'd like to modify the earlier question then, and wonder if Ruby is the
right tool for the job, or if one should simply just go with LISP (in
which case, there's no reinventing the wheel, I'd just use Maxima). If
Ruby can be the right tool for the job.. Is it worth it? :)

I do think it would be pretty cool to have a CAS like Maxima in Ruby
(there is in fact a rubyforge project to develop one, but it hasn't
released any files at all yet).

A ruby bridge to an existing CAS project would probably be the best way to go.

martin
 
G

Gavin Sinclair

If anyone actually wants this code, I'll throw it on github.

Yes please!
The main reason I haven't is that I've got to be reinventing like
five wheels here.

Er... seen the number of testing frameworks lately? ;)
But really, I've done this as a learning exercise. As a tool, I'd still
probably use Maxima.

Indeed. I'd only be interested in it as a learning exercise, so no
rush.

Cheers,
Gavin
 
D

David Masover

Yes please!

Done:

http://github.com/masover/math

Unfortunately, github stopped doing gems, and I'm not up on this gemcutter
stuff. (Get off my lawn!) I'm also not nearly confident enough in my choice of a
name to publish anything. It's probably most useful if you look at HEAD^,
where I had everything set up with relative requires, instead of a gem.
Er... seen the number of testing frameworks lately? ;)

Most of them at least have a legitimate reason for being -- something they
claim to do better than the existing frameworks.

I simply have no clue about any existing Ruby implementations of this.

I'm also somewhat ashamed at the quality of this code. Not a test to be found!
How can I call myself a Rubyist? My only excuse for this is that I've been
using it so much interactively that it's all probably pretty well tested. But
since I have no tests/specs and no documentation, good luck...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,240
Members
46,828
Latest member
LauraCastr

Latest Threads

Top