/ScientificCalculator-GUI

This project is a Scientific Calculator using Python's Tkinter. It offers a user-friendly interface for basic and advanced math operations. Tkinter enhance its visual appeal, making it a fun tool for learning GUI development in Python.

Primary LanguagePython

๐ŸŽ‰ Tkinter Calculator ๐ŸŽ‰

๐Ÿงฎ Scientific Calculator using Python's library Tkinter ๐Ÿงฎ

Scientific Calculator

๐Ÿ“š Explanation of Each Button and Corresponding Function ๐Ÿ“š

1st Row ๐Ÿ”

1st Row Buttons

  • abs ๐Ÿ“ : The absolute value of a number (e.g., abs(-5) = 5).
  • mod ๐Ÿ“Š : From modulo, the operation to find the remainder of the division of one number by another.
                In Python, we use the symbol % (e.g., 5 % 2 = 1).
  • div โž—๏ธ : Floor division returns the result of the division rounded down to the nearest integer.
              In Python, we use the symbol // (e.g., 8 // 3 = 2).
  • x! ๐ŸŽ‰ : The factorial of the number x (e.g., 4! = 24).
  • e โ„ฎ๏ธ : Euler's number, a mathematical constant approximately equal to 2.71828.

2nd Row ๐Ÿ”

2nd Row Buttons

  • sin ๐Ÿ“ : Sine of an angle ฮธ in degrees (e.g., sin(90) = 1).
  • cos ๐Ÿ“ : Cosine of an angle ฮธ in degrees (e.g., cos(180) = -1).
  • tan ๐Ÿ“ : Tangent of an angle ฮธ in degrees (e.g., tan(45) = 1).
  • cot ๐Ÿ“ : Cotangent of an angle ฮธ in degrees (e.g., cot(45) = 1 / tan(45) = 1).
  • ฯ€ โ„ผ๏ธ : Archimedes' constant defined as the ratio of a circle's circumference to its diameter, approximately equal to 3.14159.

3rd Row ๐Ÿ”

3rd Row Buttons

  • xยฒ โซ๏ธ : x raised to the power of 2 (e.g., 4ยฒ = 16).
  • xยณ โซ๏ธ : x raised to the power of 3 (e.g., 5ยณ = 125).
  • xโฟ โซ๏ธ : x raised to any power (e.g., 2โด = 16).
  • xโปยน โซ๏ธ : x raised to the power of (-1), the inverse of number x (e.g., 2โปยน = 0.5).
  • 10หฃ โซ๏ธ : Powers of 10 (e.g., 10ยณ = 1000).

4th Row ๐Ÿ”

4th Row Buttons

  • ยฒโˆš โˆš๏ธ : Square root of a number (e.g., ยฒโˆš144 = 12).
  • ยณโˆš โˆš๏ธ : Cube root of a number (e.g., ยณโˆš8 = 2).
  • โˆš โˆš๏ธ : Any root of a number (e.g., โดโˆš16 = 2).
  • logโ‚โ‚€ ๐Ÿ“Š : The logarithm of a number with base 10 (e.g., logโ‚โ‚€(1000) = 3).
  • ln ๐Ÿ“Š : The logarithm of a number with base e (e.g., logโ‚‘(e) = ln(e) = 1).

5th Row ๐Ÿ”

5th Row Buttons

  • ( ๐Ÿ“ : Left parenthesis.
  • ) ๐Ÿ“ : Right parenthesis.
  • ยฑ ๐Ÿ”„ : Change the sign of a number.
  • % ๐Ÿ“Š : Find the percentage of a number (e.g., 5% = 0.05).
  • eหฃ ๐Ÿ“Š : Exponential function (e.g., eยฒ โ‰ˆ 7.389).

6th, 7th, 8th, 9th Row ๐Ÿ”

Number and Basic Operator Buttons

In these rows are:

  • The basic number buttons (0 to 9).
  • The basic math symbols (operators) (+, -, *, /).
  • The equal sign (=) and decimal point (.).
  • Button DEL ๐Ÿ—‘๏ธ to delete one or more characters from the end of the entry.
  • Button AC ๐Ÿ—‘๏ธ to delete the whole entry.
  • EXP ๐Ÿ“Š : Multiply any number with powers of 10 (e.g., 2 * 10ยณ = 2000).

๐Ÿ’ก Feel free to suggest any new emojis or changes to make it more attractive and user-friendly! ๐Ÿ’ก