Skip to content

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. More information can be found in the Read Me. Cheers!!

Notifications You must be signed in to change notification settings

SoneyBun/SunCalc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to SunCalc!

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.

Reverse Polish Notation

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.

Functions

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.

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.

Developers

SunCalc was made thanks to SoneyBun and Skeledan. It is actively getting updated. Find more or even talk to us in the Discord server.

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

GitHub Repository

The GitHub repository for SunCalc can be found here. It contains all the code and the pdf file for the functions.

Supported Irrational Numbers

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

Factorial (!)

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.

ans, ans2

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.

esc, escape

SunCalc runs until an error or until the user types esc, or escape.

Who am I?

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?

About

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. More information can be found in the Read Me. Cheers!!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages