Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am looking for a Calculator which can do calculations in the terminal itself without any other extra prefixes and suffixes.

For example: If I typed something like 10000-9000 in the terminal, the answer should come out as 1000.

Once again I am saying, I just need a quick calculator in terminal, without any characters added. I know if I switch to Python, it can do that but I don't want it in such a way.

share|improve this question
1  
Maybe packages.ubuntu.com/saucy/apcalc ? –  wakeup Nov 18 '13 at 2:44
2  
It might be possible to hack something like that up with a kind of pre-hook; but that in itself can only be done in a really ugly and hackish way. No, I very much think it's not a good idea. Bash as a whole is meant as a plain IO scripting language, anything it does apart from that is more or less ad-hoc and doesn't work really well. Python on the other hand (or even e.g. Haskell) is a modern, all-purpose programming language with great syntax. So it would be just stupid not to use it. –  leftaroundabout Nov 18 '13 at 9:16
3  
In the same vein, you could also do something with the command_not_found hook, and try feeding the command to bc/calc/whatever if it looks vaguely like maths. It still feels a bit dirty, though. –  chronitis Nov 18 '13 at 9:38
    
Wait, what exactly do you mean "switch to" python? and "without any extra prefixes"? Are you saying you want to be able to calculate things at the prompt without running a command? –  Random832 Nov 19 '13 at 21:55
2  

23 Answers 23

up vote 27 down vote accepted

Bash Arithmetic

Another possible solution is to add a simple function for Bash's builtin arithmetic. Put this in your .bashrc file to try:

=() {
    echo "$(($@))"
}

So now, you don't even need $((...)) anymore, just = which seems natural enough.

Replacement

Another thing if you want to be even faster: you can make it replace p with + and x with *. This will work for that:

=() {
    calc="${@//p/+}"
    calc="${calc//x/*}"
    echo "$(($calc))"
}

= 5 x 5  # Returns 25
= 50p25  # Returns 75

Now you don't even need Shift anymore, the only thing is in front of arithmetic.

Using bc

If you want slightly more advanced calculations, you can pipe it to bc like so:

=() {
    calc="${@//p/+}"
    calc="${calc//x/*}"
    bc -l <<<"scale=10;$calc"
}

= 'sqrt(2)' # Returns 1.4142135623
= '4*a(1)'  # Returns pi (3.1415926532)

The functions provided by bc are as follows (and can be found from man bc):

sqrt ( expression )
       The value of the sqrt function is the square root of the expression.  
       If the expression is negative, a run time error is generated.

s (x)  The sine of x, x is in radians.

c (x)  The cosine of x, x is in radians.

a (x)  The arctangent of x, arctangent returns radians.

l (x)  The natural logarithm of x.

e (x)  The exponential function of raising e to the value x.

j (n,x)
       The Bessel function of integer order n of x.

It also supports if, for, while and variables like a programming language though if it may be better to write to a file if you wanted that.

Keep in mind that it will substitute p and x in function/variable names. It may be better to just remove the replacements.

Using gcalccmd

You can also make the function call gcalccmd (from gnome-calculator) like so:

=() {
    calc="$@"
    # Uncomment the below for (p → +) and (x → *)
    #calc="${calc//p/+}"
    #calc="${calc//x/*}"
    echo -ne "$calc\n quit" | gcalccmd | sed 's:^> ::g'
}

= 'sqrt(2)' # Returns 1.4142135623
= '4^4'     # Returns 256

The available functions seem to be (taken straight from the source code), == denotes equivalent functions:

ln()
sqrt()
abs()
int()
frac()
sin()
cos()
tan()
sin⁻¹() == asin()
cos⁻¹() == acos()
tan⁻¹() == atan()
sinh()
cosh()
tanh()
sinh⁻¹() == asinh()
cosh⁻¹() == acosh()
tanh⁻¹() == atanh()
ones()
twos()
share|improve this answer
    
Thank you , can you add more support with scientific calculations ? –  AgentCool Nov 19 '13 at 11:58
2  
@rajagenupula See my edits above –  minerz029 Nov 20 '13 at 20:31
    
Sorry for this late reply but the command you have given for gcalccmd doesn't work quite well. It shows Error 3 probably because of that stray whitespace. However this slightly modified one worked perfectly for me: echo -e "$calc\nquit"| gcalccmd | sed "s:^> ::g" –  udiboy1209 Apr 4 at 17:59
    
I built a scientific calc using R! function = { R -q --vanilla -e "$@" | grep -E '[^>](.*)' -o -x --color=never } –  Morteza M. Jul 10 at 6:51

You can do simple integer arithmetic natively in bash using the ((...)) syntax, e.g.

$ echo $((10000-9000))
1000

There is also the bc calculator, which can accept arithmetic expressions on standard input

$ echo "10000-9000" | bc
1000

The bc program can do floating point arithmetic as well

$ echo "scale = 3; 0.1-0.09" | bc
.01
share|improve this answer
11  
This is probably the closest you can get. To cut down on extra typing (though not eliminate it entirely) you can put a function in your ~/.bashrc: calc() NL { NL echo "$@" | bc NL } where NL is a newline. Then you can type calc 1234 + 768 (prints 2002), or any other formula that bc can interpret. You can of course use any function name, I just thought that calc fit nicely with what this does. –  Michael Kjörling Nov 18 '13 at 9:43
4  
once python is more better than echo all the time. my opinion. –  AgentCool Nov 18 '13 at 12:07
4  
You can use bc interactively as well, unless you need the echo for some other reason: just run bc and type your expression. Type Ctrl-D on its own line to exit. –  Useless Nov 18 '13 at 12:39
    
if you made any automatic expression taking with the help of alias or something else then that would be great. –  AgentCool Nov 18 '13 at 19:13
1  
No need to echo: bc <<< "2*2" –  Bernhard Nov 20 '13 at 19:21

You can use calc. Is not installed by default, but you can install it quickly using the following command:

sudo apt-get install apcalc

After you have installed, you can do any calculation do you wish:

$ calc 5+2
    7
$ calc 5-2
    3
$ calc 5*2          
    10
$ calc 5/2
    2.5
$ calc 5^2
    25
$ calc 'sqrt(2)' 
    1.4142135623730950488
$ calc 'sin(2)'
    0.9092974268256816954
$ calc 'cos(2)'
    -0.416146836547142387
$ calc 'log(2)'
    ~0.30102999566398119521
$ calc 'sqrt(sin(cos(log(2))))^2'
    ~0.81633199125847958126
$ # and so on...

For more information , view its man-page

share|improve this answer
1  
Thank you for answering , I see the answer has its own significance. I like more a bit about all those trigonometric functions calculations. any manual or somepage about what more it can do can improve you answer a lot. :) –  AgentCool Nov 18 '13 at 19:07
    
@rajagenupula man calc and calc help says everything. –  Radu Rădeanu Nov 18 '13 at 19:39
1  
My intension is , if someone looking at it it should be clear & quick. thank you. –  AgentCool Nov 18 '13 at 19:44

Unfortunately, there's no "easier" way to do this. The interactive python interface on the command line is the best suited for what you need, because unlike apcalc\, python is included in Ubuntu. I am not sure if bc is included still, however, python is the hands-down favorite for this stuff.

You can just run the interactive python interface on the command line, and then do math that way. You can use that as your calculator.

To do that, you open the terminal, type python, then hit the Enter button.

Then, in the python prompt that shows up, you can type your math in. For example, 10000 - 9000. The next line output is the result.


If you mean, though, something where you just load the terminal and can do this...

$ 10000 - 9000
1000
$

... then no there's no way to do this in just the terminal without anything else, because Bash doesn't handle numerical arguments like that.

share|improve this answer
1  
I did mention that I dont want to switch into python –  AgentCool Nov 18 '13 at 2:43
1  
@rajagenupula updated, also included the stuff i mentioned in chat. –  Thomas W. Nov 18 '13 at 2:46
    
bc isn't included anymore? –  Random832 Nov 18 '13 at 15:47
    
As an aside, ipython is quite a bit more useful than the standard Python shell when it comes to doing calculations and the like. –  Naftuli Tzvi Kay Nov 19 '13 at 23:13

I'd advise you to create a simple function for basic Python calculations. Something like this in your .bashrc:

calc(){
    python3 -c "print($*)"
}
calc 5 + 5
# Returns 10

result="$(calc 5+5)"
# Stores the result into a variable

If you want to do more advanced math, you can use the following one which imports all of the math module's functions. (see here for more info)

calc(){
    python3 -c "from math import *; print($*)"
}

calc 'sqrt(2)'  # Needs quotes because (...) is special in Bash
# Returns 1.4142135623730951

result="$(calc 'sqrt(2)')"
# Stores the result into a variable

(Note: Because Python is a programming language, some things may seems strange, e.g. ** for powers of and % for modulo)

If you want a method in pure Bash, use steeldriver's answer. This answer is only really beneficial if you need the more advanced functions (i.e. from math), as Python is relatively slow compared to Bash.


I'm not sure if this breaks your "switch to python it can do that & I dont want it in such a way." note, but you don't need to enter the interactive prompt and the result is accessible in Bash so this answer seems valid (to me, at least).

share|improve this answer
    
everytime all those have to means not that much easy and flexible. Thank you. any improvements you can make it to look more simple & clear ? I'd love that. –  AgentCool Nov 18 '13 at 19:09
1  
@rajagenupula You can put that in a function in your .bashrc (maybe with a shorter name: c, ? or +?) so you'll have it each terminal you open. –  minerz029 Nov 18 '13 at 20:08

Use the gcalccmd from gnome-calculator (>=13.04) or gcalctool (<13.04) package. I think the package is installed by default

% gcalccmd
> 2+3
5
> 3/2
1.5
> 3*2
6
> 2-3
−1
> 
share|improve this answer
    
The best one till now.. No need to do extra thing and also installed by default.. man gcalccmd says: a console calculator. Simply, it is exactly what OP wants.. :) –  Saurav Kumar Nov 18 '13 at 17:13
    
Thats cool , similar to bc, python, ocatve calculators. Thank you. –  AgentCool Nov 18 '13 at 19:12
    
Since gcalccmd is quite hard to type, it is good idea to add alias to it in ./bash_aliases like alias calc='gcalccmd' or if you want to make one-off calculations (with instant answer), you can add alias calc='gnome-calculator -s' - usage of the latter: calc 2000/1300 or calc 2+3. In that case, there is no need to exit calculator - it just gives you an answer and you do not need to type quit. –  Rafal Apr 10 at 10:37

Here's a quick shell script for this:

#!/bin/bash
echo "$@" | bc

Save this as "c", then put it somewhere in your path (such as /bin), then mark it executable.

# nano /bin/c
# chmod +x /bin/c

From now on, you can run calculations in the terminal like this:

$ c 10000-9000
1000
share|improve this answer
    
You are superb , adding only one letter before the calculation means thats really cool idea. this is super for if i need to 2 to 3 calculations. I can go for python or some other for longer but shorter I choose this. Thank you for stopping by. –  AgentCool Nov 18 '13 at 19:11
2  
I'd advise you to use echo "$@" | bc instead so you can put spaces in calculations more naturally –  minerz029 Nov 18 '13 at 20:57
    
How about using = instead of c for the name of this command? Bash actually lets you use this as the name of a function. –  Kaz Nov 18 '13 at 21:23
1  
You can put programs into ~/bin (your home directory's bin) and ensure that /home/yourname/bin is in your PATH. –  Kaz Nov 18 '13 at 21:23
    
@minerz029 Nice thinking. I have edited my answer accordingly. –  Another Googler Nov 19 '13 at 0:35

Here's a modification of the appropriate part of /etc/bash.bashrc (on Ubuntu 10.04) that will modify the command_not_found handler to run the shell's expression evaluator if the first character of the unknown command is a number or - or +.

You'll be able to do any shell arithmetic this way; see http://www.gnu.org/software/bash/manual/bashref.html#Shell-Arithmetic for a list of arithmetic operators.

Note that if the expression you want to evaluate contains a *, you will have to quote the * with \ or quotes since the shell will do filename expansion before deciding which command to run. Same thing for other operators like >>.

Put this in your ~/.bashrc, then type . ~/.bashrc and try it out.

# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found ]; then
    function command_not_found_handle {
        if [[ $1 == [0-9+-]* ]]; then
           echo $(( $@ ))
        elif [ -x /usr/lib/command-not-found ]; then
           /usr/bin/python /usr/lib/command-not-found -- $1
           return $?
        elif [ -x /usr/share/command-not-found ]; then
           /usr/bin/python /usr/share/command-not-found -- $1
           return $?
        else
           return 127
        fi
    }
fi

Sample output: (I am typing cta, a typo, just to test that our new command_not_found handler will still try to look for unknown commands).

mp@ubuntu:~$ cta
No command 'cta' found, did you mean:
 Command 'cda' from package 'xmcd' (universe)
 Command 'cat' from package 'coreutils' (main)
cta: command not found
mp@ubuntu:~$ 9000-1000
8000
share|improve this answer
    
is there any way we could add more support for calculations ? –  AgentCool Nov 18 '13 at 19:28
1  
You can take the line that says echo $(( $@ )) and change it to, instead, run one of the more advanced calculator programs that other answerers have mentioned that take their arguments on the command line. –  Mark Plotnick Nov 18 '13 at 19:30
    
Thank you very much :) –  AgentCool Nov 18 '13 at 19:32

I use Octave for this sort of thing: http://www.gnu.org/software/octave/

It's pretty much a matlab clone (apologies if this is an over simplification) which can be used in the terminal by typing octave. Install sudo apt-get install octave

Its not quite what you want but I thought I'd add it as an alternative to python.

Example usage:

~ $ octave
octave:1> 9000 - 8000
ans =  1000
octave:2> 
share|improve this answer
    
Suggesting another way to accomplish the goal is fine in an answer, but you should provide more information about how the OP would use Octave to meet the stated needs and why it's a good alternative. –  chaskes Nov 18 '13 at 14:58
2  
+1 ,Octave , matlab,scilab,python all are similar but octave I need to install but python preinstalled. so I head to python by default. Thank you. –  AgentCool Nov 18 '13 at 19:06
    
from all that I tried (and I tried many!) octave is the only one to return non 0 on syntax error! thx! –  Aquarius Power Nov 15 at 22:40

dc! It's part of coreutils, so it's installed on OS X, Ubuntu, and pretty much EVERYTHING else. It's an RPN calculator, so if you don't like those, it's not for you.

Very basic commands are as follows (manpage has all the syntax that I didn't include. Exponentiation, anyone?)

You only need spaces between numbers. They are ignored in all other cases.

Typing a number pushes it to the top of the stack.

+ Adds top 2 items in stack, then pushes result to stack (`2 4 +p` outputs 6)
- Subtracts top 2 items in stack, then pushes result to stack (`4 2 -p` outputs 2)
* Multiplies top 2 items in stack, then pushes result to stack (`6 5 *p` outputs 30)
/ Divides top 2 items in stack, then pushes result to stack (`54 7 /p` outputs 8)
p Print top item in stack, without destroying it
c Clear stack
r Swap top 2 items on stack
d Duplicate top item on stack
k Pops top item off stack, using it to determine precision (so 10 k would print 10 numbers after the decimal point). Default is 0, so it won't do floating point math by default.
n Pops top value off stack, then sends to stdout without a trailing newline
f Dump stack. Useful for finding what something does
share|improve this answer
    
Just noticed, this doesn't answer the question (nor do any other answers). The question is how NOT to have any stuff in front of the equation (nor behind), and simply type say, 42 * 5 into a terminal, and have it output the answer –  Yet Another User Nov 18 '13 at 20:09
    
Most of the answers don't apply. Typing 1+1 in a terminal will almost never work. So your answer is fine –  minerz029 Nov 18 '13 at 20:10
    
@YetAnotherUser I think the only way is hacking into command-not-found (if it's installed) or doing something dirty in the bashrc... –  Braiam Nov 18 '13 at 20:13

What I have found is , I can't trust expr, bc or in-built Shell options. Hence I used Perl which would be normally installed in *linux distro's

perl -le 'printf "%.0f", eval"@ARGV"' "($VAL2-$VAL1)"

The above calculation will subtract $VAL1 from $VAL2 and print with no decimal places (0f)

Benefit with using Perl is (details of Pros & cons listed here)

  • Better error capture (divide by 0 won't stop the calculation)
  • Can provide formulae in a config file. No need to escape using complex regex
share|improve this answer
    
but everytime that command means little bit problem any way. are there any perl based calculators to be used in terminal ? –  AgentCool Nov 18 '13 at 19:04

Another solution I haven't seen mentioned here is Qalculate (qalc).

sudo apt-get install qalc

for the CLI version,

sudo apt-get install qalculate-gtk

for the GUI.

It has a bunch of features such as:

  • support for units: e.g. 20 m / s * 12 h = 864 kilom
  • built-in constants such as pi, e, c, avogadro
  • many built-in functions: e.g. sin(pi) = 0, gamma(4) = 6, 5! = 120, log(1024, 2) = 10
  • unit conversion, e.g:

> 120 in
120 * inch = 120 in
> convert cm
120 in = 304.8 centim

  • symbolic calculation, e.g. (x + y)^2 = x^2 + 2xy + y^2
  • integration, e.g. integrate 3*x^2 = x^3, diff sin(x), pi
  • built-in help, e.g. help convert, help integrate
  • tab completion of commands
  • everything is translated, e.g. my system is in Dutch, so I can write both factorial(5) and faculteit(5).
  • and more...

You say you want to use it without prefixes, well... you can use it with a prefix:

$ qalc 5 ft + 3 cm
(5 * foot) + (3 * centim) = 1.554 m

as well as running it as a repl.

share|improve this answer

simple way is to call python.

Example:

>  python -c 'print 10000-9000'
share|improve this answer
    
can you mention something with scientific calculations. –  AgentCool Nov 20 '13 at 14:26
1  
Do you want something like this? python -c 'import math;print math.log(2)' –  user1251007 Nov 26 '13 at 11:03

use "bc" command and then u can do calculation

example

[root@vaibhav ~]# bc

----------these lines will genrate automaicaly---------------

right 1991-1994, 1997, 1998, 2000, 2004, 2006 Free Software Foundation, Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'. 

---------------enter your calculation here---------------------------------------


10+2   

12

To use bc without the warranty note write in terminal bc -q

example

[root@vaibhav ~]# bc -q
10+2
12
share|improve this answer
    
bc is already explained and included. –  Braiam Nov 19 '13 at 13:16

You can use bind and bash C-a and C-e to control the output. For example, execute this in your shell:

bind '"\C-j": "\C-aecho $(( \C-e )) \C-m"'

Now type any arithmetic operation like 10 + 15 and press Ctrl+J:

$ echo $(( 10 + 15 )) 
25

You will get this. Now, how is it done?

  • bind this command changes the binding of your bash, like shortcut keys.
  • \C-j this is the bash equivalent to Ctrl + J, this is what key combination we would like to add to our command.
  • \C-a this takes us to the start of the line.
  • echo $(( this writes echo $(( at the start.
  • \C-e takes us to the end of the line
  • )) closes our previous parenthesis
  • \C-m this is the equivalent to return key.

You can write this into your ~/.inputrc file:

"\C-j": "\C-aecho $(( \C-e )) \C-m"

Of course, the other answers are valid too! Just tweaked a bit:

  • bc: "\C-j": "\C-aecho " \C-e " | bc \C-m"
  • apcalc: "\C-j": "\C-acacl \C-m"
  • python: "\C-j": "\C-apython3 -c "print( \C-e )" \C-m"
  • any others?

You can change Ctrl + J to whatever you like, but remember, try not to change it for something that already has a binding ;).

Resource:

share|improve this answer
    
Ctrl + J does already have a binding, it submits the line (like Enter) This is actually a pretty smart answer, though ;) –  minerz029 Nov 20 '13 at 20:25

You can use also use awk to do some arithmetic calculations on terminal,

echo 10000 9000 | awk '{print $1-$2}'
1000
echo 10000 9000 | awk '{print $1+$2}'
19000
echo 10000 9000 | awk '{print $1/$2}'
1.11111
echo 10000 9000 | awk '{print $1*$2}'
90000000
share|improve this answer
    
cool, awk (as octave) also returns non 0 on syntax error thx! –  Aquarius Power Nov 15 at 22:43

You may add following function to your .bashrc file:

function = {
  echo "$@" | bc -l
}

Note that -l flag is very important. Without it, use of bc gives 5 / 2 = 2.

As it was menthioned above, calculations may be done using = sign in front of formula.

share|improve this answer

In the past, I've used wcalc and a little program called e that's pretty much impossible to google for. Now I use a python script to do this, which uses some features of e like the square brackets. wcalc is still nice because it can do arbitrary precision and unit conversion, but I almost never use those features.

#!/usr/bin/env python3

"""
This is a very simple command line calculator.  It reads in all
arguments as a single string and runs eval() on them.  The math module
is imported so you have access to all of that.  If run with no
arguments, it allows you to input a single line expression.  In the
case of command line args, square brackets are replaced with round
parentheses, because many shells interpret round parentheses if they
are not quoted.
"""

import sys, numbers
import cmath, math

args = sys.argv[1:]

if len(args) < 1:
    expr = input()
else:
    expr = " ".join(args[:])
    expr = expr.replace("[", "(").replace("]", ")")

def log2(x):
    """Return the base-2 logarithm of x."""
    return cmath.log(x, 2)

# the smallest number such that 1+eps != 1
# (this is approximate)
epsilon = sys.float_info.epsilon

env = math.__dict__
env.update(cmath.__dict__)
env = {k:v for k,v in env.items() if not k.startswith("__")}
env["eps"] = epsilon
env["log2"] = log2

res = eval(expr, env)
# throw away small imaginary parts, they're probably just due to imprecision
if (isinstance(res, numbers.Number)
    and res != 0
    and abs(res.imag)/abs(res) < 10*epsilon):
    res = res.real

print(str(res).replace("(", "[").replace(")", "]"))

Here's how to use it (assuming that the script has been saved as e and put somewhere in the $PATH):

$ e e**[pi*1i]
-1.0
$ e hex[10**3]
0x3e8
$ e "[0o400+3]&0xff" # need quotes because of '&'
3
share|improve this answer
    
an example will make this looks more clear.Thank you. –  AgentCool Nov 18 '13 at 19:04

I like wcalc a lot. It's a command line scientific calculator . Easy to find in Ubuntu Software Center, or just use apt-get.

sudo apt-get install wcalc

enter image description here

And if someone is in engineering, like myself, you could make use of GNU Octave. It can do all sorts of things, graphing, solving simultaneous equation. Plus it's a free alternative to Matlab

share|improve this answer

There is one-step way to accomplish exactly what you want. All you need to do is set the shell for your account to /bin/bc.

share|improve this answer
1  
Could you please elaborate? Pressume OP doesn't know how to change the shell. –  Braiam Dec 11 '13 at 12:14

Create a Terminal Calculator

  Put the following in your .bashrc file

        function calc
        {
         echo "${1}"|bc -l;
        }

  Or, run it at the shell prompt. Now
  "calc" from the shell will work as follows:

        $ calc 3+45
           48

  All functions  with a "(" or ")" must be enclosed
  in quotes.
share|improve this answer

You can also use printf shell builtin to do arithmetic calculations on terminal.

printf `expr $num1 + $num2`   # num1,num2 are  variables which stores numbers as values.

Example:

$ printf "$(expr 10000 + 9000)\n"
19000
$ printf "$(expr 10000 - 9000)\n"
1000
share|improve this answer

There is not, however, I wrote one a few months ago. You can get a copy of the source code from my GitHub account here: https://github.com/alkass/Shunting-Yard-Parser

I haven't written a build-script for it yet, but really all you need to compile the code is a mono C# compiler (mcs or dmcs)

To compile the code, simply navigate to the folder containing the source code and type in:

dmcs *.cs -out:calculate.exe

Then, move the generated executable to /usr/bin using the following command:

sudo mv calculate.exe /usr/bin/calculate

Now all you do to use the calculator is run the executable with a double-quoted arithmetic expression :-)

share|improve this answer
2  
How I am supposed to deal with .exe files in Ubuntu? How this can do what I need ? any examples you got ? –  AgentCool Nov 18 '13 at 19:11
4  
Command line calculator written in C# and built via mono? No, thanks. –  Andrejs Cainikovs Nov 18 '13 at 19:29
2  
@rajagenupula, by default, the Mono compiler generates executables with .exe extention, but that doesn't mean the code won't execute on Linux. I'd highly recommend you give it a shot. Just make sure you have a Mono C# compiler installed on your system. If you'd like to view an example of how this all works, view the readme.md file at the provided GitHub link. –  Fadi Hanna AL-Kass Nov 19 '13 at 4:15
1  
I'm sure your calculator works fine, but there are a million solutions (mentioned above) that take a fraction of the effort to set up and use, and they have all been peer reviewed to a much greater degree. –  aidan Nov 19 '13 at 5:17
3  
@FadiHannaAL-Kass Most importantly, try not to take the down-votes personally, but also try to understand why you received them. Others have suggested solutions that are small, efficient, tried-and-tested and require minimal or even no installation. You've proposed something that requires a significant amount of installation, a very significant amount of system resources and nobody (apart from you) knows how reliable it is, or even how to use it. If the question was "how do I make a CLI calculator in C# and run it in Linux" then you'd have loads of up-votes. –  aidan Nov 19 '13 at 22:53

protected by AgentCool Dec 18 '13 at 14:49

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.