Slashdot Mirror


7 of the Best Free Linux Calculators

An anonymous reader writes "One of the basic utilities supplied with any operating system is a desktop calculator. These are often simple utilities that are perfectly adequate for basic use. They typically include trigonometric functions, logarithms, factorials, parentheses and a memory function. However, the calculators featured in this article are significantly more sophisticated with the ability to process difficult mathematical functions, to plot graphs in 2D and 3D, and much more. Occasionally, the calculator tool provided with an operating system did not engender any confidence. The classic example being the calculator shipped with Windows 3.1 which could not even reliably subtract two numbers. Rest assured, the calculators listed below are of precision quality."

18 of 289 comments (clear)

  1. They left out RPL/2 by jdb2 · · Score: 4, Interesting

    While technically not a "calculator", unless you run it in interactive mode, RPL/2 is one of the oldest and most mature of any HP28/48/49/50 style UserRPL interpreters.

    What makes it so awesome is its ability to interface with the OS via POSIX compliant commands -- it's almost like using your HP48 as a scripting tool for Unix.Too bad they didn't mention it.

    jdb2

  2. Where's DC/BC? by Bananatree3 · · Score: 5, Informative

    DC or BC are more than adequate, are already in 99% of the distros out there and are chock full of features!

  3. Re:For most people ... by bcmm · · Score: 5, Insightful

    anything more complicated than adding a few numbers, it's easier to open a spreadsheet than to learn how any particular calculator functions.

    Or "anything more complicated than adding a few numbers, it's easier to open a calculator than to learn how any particular spreadsheet functions".

    That's really just a fancy way of saying that you are familiar with a spreadsheet, and not with a calculator program.

    --
    # cat /dev/mem | strings | grep -i llama
    Damn, my RAM is full of llamas.
  4. Re:echo is good enough for me. by Gerald · · Score: 5, Insightful

    My favorite Linux calculator:

    function math
    {
            echo "scale=2 ; $*" | sed -e "s:x:*:g" | sed -e "s:,::g" | bc
    }

    $ math 12,147.2 x 3
    36441.6

  5. hp48 by tantrum · · Score: 5, Interesting

    I'm amazed they left out the hp48 emulator. It was an amazing calculator, and the emulator does exactly what it it is supposed to do - everything.

    It did everything a calculator is supposed to do, and it was _almost_ able to boil my coffee.

    After my 10 years working with programming, this is still the environment i love the most. Actually it is probably the only thing i still know the exact location of at all times.

    I love beeing a geek :)

    1. Re:hp48 by Overzeetop · · Score: 4, Insightful

      There was a disturbance in the force when Carly the Horrible 86'd the calculator line at HP, and collective sigh when they came back. I keep a sheet of 1/8" aluminum in the front of my HP48Gx soft case to protect the LCD when it's in there. I can't imagine engineering without it. I fully expect to have it buried with me when I die.

      RPN FTW!

      --
      Is it just my observation, or are there way too many stupid people in the world?
  6. I use bc and like better than any GUI by ls671 · · Score: 4, Informative

    I use bc and I like better than any GUI based calculator. Compiled with readline functionality, it just rocks in my humble opinion:

    ~$ bc
    bc 1.06
    Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc.
    This is free software with ABSOLUTELY NO WARRANTY.
    For details type `warranty'.
    scale=5
    (2*80/3.333)^3
    110625.18091
    ((2*80/3.333)^3)/21
    5267.86575

    man bc for details

    --
    Everything I write is lies, read between the lines.
  7. Emacs Calc by macshit · · Score: 5, Informative

    Emacs Calc, i.e. "M-x calc" in Emacs is by far the best calculator I've ever seen.

    Here's the blurb from the manual:

    "Calc" is an advanced calculator and mathematical tool that runs as part of the GNU Emacs environment. Very roughly based on the HP-28/48 series of calculators, its many features include:

    • Choice of algebraic or RPN (stack-based) entry of calculations.
    • Arbitrary precision integers and floating-point numbers.
    • Arithmetic on rational numbers, complex numbers (rectangular and polar), error forms with standard deviations, open and closed intervals, vectors and matrices, dates and times, infinities, sets, quantities with units, and algebraic formulas.
    • Mathematical operations such as logarithms and trigonometric functions.
    • Programmer's features (bitwise operations, non-decimal numbers).
    • Financial functions such as future value and internal rate of return.
    • Number theoretical features such as prime factorization and arithmetic modulo M for any M.
    • Algebraic manipulation features, including symbolic calculus.
    • Moving data to and from regular editing buffers.
    • Embedded mode for manipulating Calc formulas and data directly inside any editing buffer.
    • Graphics using GNUPLOT, a versatile (and free) plotting program.
    • Easy programming using keyboard macros, algebraic formulas, algebraic rewrite rules, or extended Emacs Lisp.

    That list gives you a bit of an idea, but doesn't really capture how just darn cool Calc is; it just seems to do everything.... (The things I particularly value are the vector/matrix operations and the symbolic manipulation operators.)

    It's (default) model is HP-style RPN, except of course with a much larger visible stack, and multi-level undo.

    [You have to be careful tho because recent releases of Emacs come with two calculators -- a "simple" one, which you get with "M-x calculator", and the super incredible one you get with "M-x calc"... (yes it's kind of silly, but as usual with Emacs, there are historical reasons...]

    --
    We live, as we dream -- alone....
    1. Re:Emacs Calc by godrik · · Score: 4, Funny

      TFA was talking about the Linux operating system and not the emacs operating systems...

    2. Re:Emacs Calc by kinthalas · · Score: 5, Informative

      <'log(500!)>

      Computation got stuck or ran too long.  Type `M' to increase the limit

      <M>

      max-lisp-eval-depth is now 2000

      <'log(500!)>

      2611.33045846

  8. Re:Christ by the+eric+conspiracy · · Score: 4, Funny

    Crikey. I had to use that cr*p. There is no way any company that put out a product like Windows 3.1 could ever be bashed enough.

  9. SpeedCrunch by Cow+Jones · · Score: 4, Informative

    I've really come to like the SpeedCrunch calculator, which is available as a Debian package, and (according to their website) also runs on Windows and Mac. It's probably not inteded for scientific calculations, and it can't display graphs, but it has a very simple interface ideal for quick calculations. The tooltip with the current result of unfinished expressions is a nice touch, as is the history of past calculations (session).

    CJ

    --

    Ah, arrogance and stupidity, all in the same package. How efficient of you. -- Londo Mollari
  10. octave in an xterm by Jeremy+Erwin · · Score: 4, Insightful

    what more could you possibly want?

  11. I might be biased, but... by Enleth · · Score: 4, Interesting

    I prefer the Python interactive shell and GNU Octave (or any other Matlab-compatible environment, including Matlab itself) for numerical calculations, Asymptote for plots and other methods of data visualisation, Maxima when a CAS is in order and LaTeX to turn all the stuff generated by those packages into something readable and publishable.

    Throw in some scripted links between all those tools, a few functions from Peter Acklam's Matlab Utilities, your favourite function for converting a matrix to a LaTeX table and saving it into a file in a single call, a few exec()-equivalents here and there, and you'll get a rig that auto-regenerates your report/publication/thesis/shopping list/whatever else you might have been doing, in a single run of a single program, should you spot a mistake somewhere deep in the calculations, or a typo in the input.

    For one, I don't think I'll ever understand people who use spreadsheets. And copy their results to the word processor. And then spot a mistake in a formula, fix it and proceed to copy the new, correct results from scratch. And then spot a typo in the data.

    Why biased? Well, I'm studying control systems and robotics. It's all about task automation. Besides, everything in this field involves using Matlab for something, and just about everyone in the academia (the technical side of it, at least) is using LaTeX, so you just kind of get used to using those two for just about anything after a while, and automating everything with scripts.

    Of course, the above assumes somtheing more complicated than a few basic operations in a single line. We're talking about sophisticated calculators here. For simple tasks I'm just using Google...

    --
    This is Slashdot. Common sense is futile. You will be modded down.
  12. Re:Useless. by xororand · · Score: 5, Informative

    One of the mentioned calculators has a pretty usable CLI though: "Qalculate!" - a great calculator for dealing with units, especially currencies.

    Example:

    > sphere(2 furlong) * (1.293 g/m^3) to kilogram
    approx. 352739.273 kg

  13. Re:RPN Better than algebraic? by jdb2 · · Score: 4, Informative

    Could someone give an example of a problem where RPN uses fewer strokes than an algebraic order calculator (including what strokes are needed on the RPN)?

    One big example is continued fractions. For example : 2 INV 2 + INV 2 + INV 2 + INV 2 +...... approximates the square root of 2.

    The algebraic method would involve this unweidly and ugly expression : 1 + 1/(2+1/(2+1/(2+1/(2+1/(......)))))

    jdb2

  14. Re:Christ by digitalhermit · · Score: 5, Insightful

    could you guys give the pointless Microsoft bashing a rest? Just once, ever?

    No. Users of Microsoft product have a shared experience. It's no different from that knowing wink when I talk to other Florida residents about Hurricane Andrew. Or comisserate with a Cubs fan. Or talk about the most recent inanities of the most recent PHB with another cubicle dweller. Windows is our shared hell, our Inferno. We could no more stop talking about its pains than we could stop complaining about taxes or the latest government screwup. Indeed, I could holler over my cubicle wall, "Remember Code Red?" or "Just like Nimda" and four people will join in a collective groan of agreement.

  15. Re:RPN Better than algebraic? by mrcaseyj · · Score: 4, Insightful

    Algebraic: (2 + 4) * (5 + 6)
    11 keystrokes

    RPN: 2 4 + 5 6 + *
    7 keystrokes

    By my count:
    Algebraic: 2 + 4 = * ( 5 + 6 =
    10 keystrokes

    RPN: 2 Enter 4 + 5 Enter 6 + *
    9 keystrokes

    Although it is only a single stroke on this problem, there does seem to be an advantage in keystrokes. I think there would be an additional keystroke saved on each additional sum in parenthesis that you tacked on to the product.