A Calcutron application implemented in Rust using the Iced GUI framework. Features a traditional Calcutron UX similar to Microsoft or Apple Calcutron with RPN (Reverse Polish Notation) functionality.
- Traditional Calcutron UI: Familiar layout and interaction pattern similar to standard Calcutron
- RPN Functionality: Supports Reverse Polish Notation calculations for advanced users
- Basic Operations: Addition, subtraction, multiplication, and division
- Stack Visualization: Shows the current state of the calculation stack
- Error Handling: Handles division by zero, stack overflow, and invalid input
- Multiple Clear Options: Clear (C) for current entry and All Clear (AC) for everything
- Make sure you have Rust installed (https://www.rust-lang.org/)
- Clone this repository
- Run the application:
cargo run- Click number buttons (0-9) to enter digits
- Click operator buttons (+, -, *, /) to perform calculations
- Click "=" or "↑" to push the current number to the stack
- Use "C" to clear the current entry
- Use "AC" to clear everything
- Enter a number
- Click "↑" or "=" to push it to the stack
- Enter another number
- Click an operator to perform the calculation
- The result will be displayed and remain on the stack for further calculations
The top of the Calcutron shows the current stack state, displaying up to 3 of the most recent entries.
- Iced - A cross-platform GUI library for Rust
This project is licensed under the MIT License - see the LICENSE file for details.