Skip to content

Woroc/Calculator-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

# 🧮 Scientific Calculator Project

A feature-rich terminal-based calculator with advanced mathematical operations, memory functions, and interactive history tracking.

![Calculator Demo](https://via.placeholder.com/800x400.png?text=Calculator+Demo+Screenshot) <!-- Add real screenshot later -->

## ✨ Key Features
- **Scientific Functions**: Trigonometry (sin/cos/tan), logarithms, exponents, roots
- **Memory Operations**: Store/recall values, incremental adjustments
- **History Tracking**: Last 10 operations with timestamps
- **User-Friendly Interface**: Color-coded output, angle mode switching
- **Error Handling**: Robust input validation and error messages

## 🛠️ Installation
```bash
# Clone repository
git clone https://github.com/yourusername/scientific-calculator.git
cd scientific-calculator

# Install dependencies
pip install colorama

# Run calculator
python super_calculator.py

⌨️ Command Reference

Command Description Example
sin45 Sine of 45° (degree mode) sin30 → 0.5
5^3 Exponentiation 2^4 → 16
√25 Square root √9 → 3
angle Toggle between degrees/radians
m+/m- Add/subtract from memory
mr/mc Recall/clear memory
hist View last 10 calculations
! Factorial calculation 5! → 120
log/ln Logarithm base 10/natural log log100 → 2

🎮 Basic Usage

Enter operation: 5^3  # 5 cubed
Result: 125.0

Enter operation: sin90  # Sine of 90°
Result: 1.0

Enter operation: angle  # Switch to radians
Angle mode switched to RAD!

🖥️ Interface Preview

╔════════════════════════════════════════╗
║         SUPER SCIENTIFIC CALCULATOR    ║
╠════════════════════════════════════════╣
║  Basic Operations: +, -, *, /, ^, √, ! ║
║  Scientific: sin, cos, tan, log, ln    ║
║  Memory: mc, mr, m+, m-                ║
╚════════════════════════════════════════╝

🌟 Special Features

  • Color-coded feedback: Instant visual status indicators
  • Last-result reuse: Automatic previous value retention
  • Unit conversion: Degrees/radians toggle
  • Command history: Access previous calculations with hist

📌 Pro Tip: Use blank input (press Enter) to reuse previous result in calculations!


This format:
1. Uses emojis and headers for visual scanning
2. Groups related information logically
3. Includes interactive code examples
4. Shows both command syntax and practical examples
5. Highlights unique features clearly

You can enhance this further by:
1. Adding real screenshots
2. Including a demo video link
3. Adding performance benchmarks
4. Creating a "Development Roadmap" section
5. Adding contributor guidelines

About

calculator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages