Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
4

Python Advanced Calculator

RhinoRunner
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.

2 years ago

Voters

Comments

TopNew
1
JonathanHowie
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

3 months ago
1
RhinoRunner
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

3 months ago
1
FlaminHotValdez
FlaminHotValdez

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


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

2 years ago
1
RhinoRunner
RhinoRunner

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

image

2 years ago
1
FlaminHotValdez
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]

2 years ago
1
RhinoRunner
RhinoRunner

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

2 years ago
1
RhinoRunner
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
2 years ago
1
alanchen12
alanchen12

why everyone making calculators claiming they are "best"

2 years ago
1
RhinoRunner
RhinoRunner

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

2 years ago
Load more