DEV Community

loading...

Discussion on: Do You Use Calculators or Programs?

Collapse
lambdude profile image
Ian Johnson

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.

Collapse
databasesponge profile image
MetaDave 🇪🇺 Author

Racket, eh? That's a new one for me. I shall investigate.

Collapse
lambdude profile image
Ian Johnson

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.

Racket Example

Thread Thread
databasesponge profile image
MetaDave 🇪🇺 Author

That's really smart-looking stuff. I'll give it a go.

thanks.