Welcome to SunCalc. This calculator uses Reverse Polish Notation. This is not a calculator used to find sun and moon information. It is called SunCalc because it is a calculator followed before my name, Sunny.
What is Reverse Polish Notation? It is when you type the operator after the operands. For example
2 2 +
Would print out
2.0 + 2.0 = 4.0
You can find out more about Reverse Polish Notation (RPN) here.
SunCalc can handle trigonometry and irrational numbers. A list of functions can be found here.
The functions found in gray cannot be used in the CodeHS Variant.
The CodeHS variant of SunCalc can handle the same math. However, due to CodeHS limitations, the functions auto open is removed, and many cases for functions had to be removed for memory reasons.
SunCalc was made thanks to SoneyBun and Skeledan. It is actively getting updated. Find more or even talk to us in the Discord server.
The SunCode Discord server is a little fun laid back community hangout that also has a passion for all things computer science and cybersecurity.
Just make sure to join the Vuy Dynasty and not the Volkov Dynasty (We are at war with them).
The GitHub repository for SunCalc can be found here. It contains all the code and the pdf file for the functions.
The following irrational numbers can be used in SunCalc. Only the first 15 digits will be shown.
- pi (π) - 3.14159265358979
- e - 2.71828182845904
- phi (Φ) - 1.61803398874989
As it is impossible to do the factorial of a negative and the factorial of a non-integer, if a negative non-integer was entered along with the factorial operator. It will tell you the mistakes and give you both the positive, the rounded and/or truncated of the factorial.
For when you get two numbers on a factorial, you may use ans and ans2. ans can be used on almost every operator, except those that return booleans.
SunCalc runs until an error or until the user types esc, or escape.
I'm Sunny. I've been programming for around 4 years now. I can program in the following languages, in order from most fluent to least.
- Java
- Lua
- Python
Coding is my passion as the thought of building something huge from nothing but an empty file is insane.
I love to play video games. Roblox being one of my favorites. I like to listen to music, maybe we have a similar taste?