Skip to main content

A packages for a mathmatical nations in a data-structure

Project description

dual_math

dual_math - dual_math Expression Evaluator
A lightweight Python package for evaluating mathematical expressions in both prefix and postfix (RPN) dual_math with automatic detection.


Features

  • 🔍 Auto-Detection: Automatically identifies prefix or postfix dual_math
  • ⚡ Fast Evaluation: Efficient stack-based algorithm
  • ➕ Operators Supported: +, -, *, / (integer division)
  • 🐍 Pure Python: No external dependencies

Installation

pip install dual_math

USAGE

from dual_math import smartEval

result1 = smartEval(["2", "3", "+", "4", "*"])

result2 = smartEval(["*", "+", "2", "3", "4"])

print(f"Results: {result1}, {result2}")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dual_math-0.0.1.tar.gz (2.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dual_math-0.0.1-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file dual_math-0.0.1.tar.gz.

File metadata

  • Download URL: dual_math-0.0.1.tar.gz
  • Upload date:
  • Size: 2.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dual_math-0.0.1.tar.gz
Algorithm Hash digest
SHA256 aae426c5c8eec9f6f738bc7c103181b6daa228a5fec6134c39c68ddf12b2ba87
MD5 d21f0972921c5e06e17960f72de30276
BLAKE2b-256 0a1580f6f9327deb2e8154a0e5ae1cfa468e3bc8822ed6cfb20501d4647546ef

See more details on using hashes here.

File details

Details for the file dual_math-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: dual_math-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for dual_math-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c1ea86406c4f1eff4d2daa71aad77f50f9f86d7369ed8a7ae1e567b6add6416
MD5 e444c7330178a08e7d844b9e7e701209
BLAKE2b-256 360eaa2d648bef9b9fbb47d6f7ec6aae2d3c2c2eb0d8907c5fdcfbe78a22c313

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page