Calculator precedence

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Calculator precedence

Rahooty
Is there a way to do something like this:

(25+8)/2
?
Reply | Threaded
Open this post in threaded view
|

Re: Calculator precedence

perepujal
The command line handles some math as direct input:
li
0,(8+2)/3
@20+30<0
will draw a line from 0,3.3333 to 50,3.3333

HTH
Pere
Reply | Threaded
Open this post in threaded view
|

Re: Calculator precedence

dxli
In reply to this post by Rahooty
you can also use the command "cal" in the command line.

Just type to enter "cal", and the command line will be in the calculator mode, so you can type in to calculate:

1+sin(1)

and the output would be:
1+sin(1) = 1.84147098481

type in the command "cal" to quit the calculator mode.

Rahooty wrote
Is there a way to do something like this:

(25+8)/2
?
Reply | Threaded
Open this post in threaded view
|

Re: Calculator precedence

perepujal
Nice :)
I see it defaults its input in radians, is there a way to set degrees as default units?

Now if one wants to work with degrees must tell it in the command line:

sin(30d) and the output is
sin(30*pi/180) = 0.5

Thanks
Pere