Exact (LISP-ish) calculations in Ruby?

On Fri, Nov 20, 2009 at 6:35 PM, Aldric G. [email protected]
wrote:

Everyone’s talking about Maxima, which was written in LISP… Interesting
:slight_smile:
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? :slight_smile:

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

On Nov 20, 7:11 pm, David M. [email protected] wrote:

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? :wink:

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

On Nov 22, 5:01 am, David M. [email protected] wrote:

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

Yes please!

Done:

GitHub - masover/math: Random mathematical tools built for a calculus class

Thank you!

David M. wrote:

On Friday 20 November 2009 05:10:45 pm Gavin S. wrote:

On Nov 20, 7:11 pm, David M. [email protected] wrote:

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

Yes please!

Done:

GitHub - masover/math: Random mathematical tools built for a calculus class

I second that. Thanks :slight_smile:

On Friday 20 November 2009 05:10:45 pm Gavin S. wrote:

On Nov 20, 7:11 pm, David M. [email protected] wrote:

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

Yes please!

Done:

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.

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? :wink:

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…