Skip to content
Sign upLog in
← Back to Community

Python Advanced Calculator

Profile icon
RhinoRunner

Python Advanced Calculator (PAC)

created by
@ReplitDevTeam

Say goodbye to the lame old 4-function calculator, and say hello to the brand-new Python Advanced Calculator!

Just type in anything from
1+1
to
4.3e3*(2/3^5-2)
and the PAC will give you your results!
(by the way the answer is -8564.609053497943)

You can also type:
abs for abolute value
sqrt for square root
area to calculate the area of a circle
pi for pi, you can also use it in equations
help for help
clear to clear the terminal
show to show all previous equations
how many to see how many equations you have entered
var can be used to assign variables (more on that later)

ans use this to see/use last answer
example:

$ 4-2 2 $ ans 2 $ ans - 4 -2

You can also assign and use up to 3 variables (x,y,z):

$ var Variable name (x,y,z) > x Value > 5 $ x + 5 10

Also, try and find those sneaky easter eggs!

Give us feedback if anything is wrong/needs improvement, or if you want us to add anything.

Voters
Profile icon
AbhishekM6
Profile icon
FlaminHotValdez
Profile icon
RhinoRunner
Comments
hotnewtop
Profile icon
JonathanHowie

There is a bug where if you type #^#^# it will go blank and you can type what ever you want and nothing will happen for example 10^10^10 will break the program

Profile icon
RhinoRunner

@JonathanHowie
thats because 10^10^10 is a massive number. its really hard for the computer to process it, especially a slow language like python. For example, 2^2^2 works.
If you dont believe me, use the google calulator on 10^10^10. it will just show up as infinite

Profile icon
FlaminHotValdez

Screenshot from 2021-02-02 08-26-37


Quoting Coder100's comment on my post: ah yes, math

Profile icon
RhinoRunner

@FlaminHotValdez
well, I saw the opportunity for a meme and took it.

image

Profile icon
FlaminHotValdez

@RhinoRunner
...plz fix so far out of the calculators we've had recently mine is the only one that doesn't have that bug and isn't [number][operator][number]

Profile icon
RhinoRunner

@FlaminHotValdez
I have no idea why it gives that number...

Profile icon
RhinoRunner

@FlaminHotValdez
https://medium.com/better-programming/why-is-0-1-0-2-not-equal-to-0-3-in-most-programming-languages-99432310d476

Profile icon
RhinoRunner

@FlaminHotValdez
Nevertheless, I fixed the error (in a dumb-ish way)

elif equation.lower() in ['.1+.2','0.1+0.2','.1+0.2','0.1+.2']: return .3
Profile icon
alanchen12

why everyone making calculators claiming they are "best"

Profile icon
RhinoRunner

@alanchen12
@ReplitDevTeam
made this a while back, I posted it because I saw all of the calculator posts and decided to join in.

Profile icon
alanchen12

o nice