Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Euclides is a simple calculator that performs arithmetic operations using only addition and subtraction.

License

NotificationsYou must be signed in to change notification settings

HitaloM/Euclides

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A Rust-based conceptual calculator designed to explore the fundamentals of the language.

Euclides is a simple calculator that performs arithmetic operations using only addition and subtraction. It supports complex expressions and evaluates them usingReverse Polish Notation (postfix notation), along with infix and prefix notations.

Features

  • Basic Operations: Addition, Subtraction, Multiplication, and Division.
  • Notation Support: Infix, Prefix, and Postfix notations.
  • Expression Evaluation: Computes results for given expressions.

Usage

To use Euclides, run the program and input an expression in one of the supported notations. Specify the notation by prefixing your input withprefix:,postfix:, orinfix:.

Examples

  1. Infix Notation:

    $ infix: 3 + 4* 2 / ( 1 - 5 )
  2. Prefix Notation:

    $ prefix: + 3 /* 4 2 - 1 5
  3. Postfix Notation:

    $ postfix: 3 4 2* 1 5 - / +

Roadmap

  • Implement basic operations
  • Support infix, prefix, and postfix notations
  • Add support for advanced/complex operations
  • Develop a graphical user interface (GUI)

Contributing

Contributions are welcome! Please open an issue or submit a pull request for any improvements or bug fixes.

License

This project is licensed under theBSD Zero Clause License.

About

Euclides is a simple calculator that performs arithmetic operations using only addition and subtraction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp