Skip to main content

Scientific Calculator

A Python package for performing scientific calculations.

Features

  • Basic arithmetic operations: addition, subtraction, multiplication, division
  • Scientific functions: sine, cosine, tangent, logarithm, exponential, square root, power
  • Error handling for invalid inputs
  • Command-line interface for easy use

Installation

Install from PyPI:

pip install scientific-calculator-v1

Or install from source:

pip install .

Usage

As a Python module

from scientific_calculator import ScientificCalculator

calc = ScientificCalculator()
result = calc.add(2, 3)
print(result)  # 5.0

result = calc.sin(90)
print(result)  # 1.0

Command-line interface

scientific-calculator add 2 3
# Result: 5.0

scientific-calculator sin 90
# Result: 1.0

You can also run it as a module: python -m scientific_calculator.cli add 2 3.

Available Operations

  • add a b: a + b
  • subtract a b: a - b
  • multiply a b: a * b
  • divide a b: a / b
  • sin x: sin(x) in degrees
  • cos x: cos(x) in degrees
  • tan x: tan(x) in degrees
  • log x [base]: log(x, base) default base 10
  • exp x: e^x
  • sqrt x: square root of x
  • power base exponent: base^exponent

License

MIT License. See LICENSE.

Metadata

Release files for scientific-calculator-v1 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for scientific-calculator-v1 0.2.1
File Size Uploaded Provenance Actions
scientific_calculator_v1-0.2.1.tar.gz 4.0 kB Without provenance Details for scientific_calculator_v1-0.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for scientific-calculator-v1 0.2.1
File Interpreter ABI Platform Actions
scientific_calculator_v1-0.2.1-py3-none-any.whl Python 3 none any Details for scientific_calculator_v1-0.2.1-py3-none-any.whl

Total release size: 8.7 kB

Release files / scientific_calculator_v1-0.2.1.tar.gz

Download URL scientific_calculator_v1-0.2.1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a8f1f25b65f234edbaac5aa3778108de8943e8f9299894e08ff9b1f88c614965
BLAKE2b-256 checksum
How to use checksums
dee55e94bf01c8c5d78eb0137e48ac8be49e5e678de3bfb8744ca3fd448ef5f9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / scientific_calculator_v1-0.2.1-py3-none-any.whl

Download URL scientific_calculator_v1-0.2.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
da929a4d96927c4d9ff462100f5a2dcc60896eebc1b11b23c618686941662ec3
BLAKE2b-256 checksum
How to use checksums
291905ad3d48db28af0c82ff99582402cc43d15196afad6b06f286cc52932603
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for scientific-calculator-v1 0.2.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page