Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A more functional command-line calculator' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A more functional command-line calculator
Authored by: Doc Drang on Jul 09, '07 10:37:23PM

First, from the Python tutorial:

When you use Python interactively, it is frequently handy to have some standard commands executed every time the interpreter is started. You can do this by setting an environment variable named PYTHONSTARTUP to the name of a file containing your start-up commands.

So you can put from math import * in a Python startup file, set the PYTHONSTARTUP environment variable, and the math commands will be available every time you start an interactive session.

Second, depending on your math needs, you may want to look into Octave, a very powerful numerical package.

Third, thanks for the tip on wcalc. I don't like the GUI version, but the command-line tool seems nice and certainly starts up very quickly. I'm a little concerned about the number of predefined variables it has--I foresee conflicts with the variable names I may want to use--but I'll give it a try.

---
Doc Drang
http://www.leancrew.com/all-this

[ Reply to This | # ]