I use Racket to do this also. The nice thing about this is that I can define functions on the fly in lisp-style. I've used irb for this before, but now I use Racket because it has better representations for rational numbers and it's ease of function declaration, thanks to the fact that it is a lisp.
I use Racket to do this also. The nice thing about this is that I can define functions on the fly in lisp-style. I've used irb for this before, but now I use Racket because it has better representations for rational numbers and it's ease of function declaration, thanks to the fact that it is a lisp.
Racket, eh? That's a new one for me. I shall investigate.
Here are some examples. There's a lot more that it can do, but that's a bigger topic. Also, you have to get used to the polish notation.
That's really smart-looking stuff. I'll give it a go.
thanks.