Create a Calculator in your Pisi Linux Terminal

To work with a Calculator in a Terminal it is very simple to do it.

Open your File Manager

Make hidden files visible

Put the following in your .bashrc file at the begin from the file

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

When you now type

$ calc 3+45

you became the output

48

look here

calc terminal

 

All functions with a “(” or “)” must be enclosed
in quotes. For instance, to get the sin of .4

$ calc "s(.4)"
.38941834230865049166