Skip to main content

A math package of python 3. 🐍

Project description

xgqfrms_package_math

A math package of python 3. 🐍

This package includes math methods: addition, subtraction, multiplication and division.

PyPI

https://pypi.org/user/xgqfrms/

https://pypi.org/project/math_package_xgqfrms/

GitHub

math_package_project

Project tree

# math_package_project
$ tree
.
├── LICENSE
├── README.md
├── pyproject.toml
├── src
│   └── math_package_xgqfrms
│       ├── __init__.py
│       └── math.py
└── tests
    └── demo.py

Examples

  1. add
import math_package_xgqfrms as Math

n1 = 1
n2 = 2
sum = Math.add(n1, n2)
print("sum =", sum)
# sum = 3
  1. sub
import math_package_xgqfrms as Math

n1 = 3
n2 = 1
minus = Math.sub(n1, n2)
print("minus =", minus)
# minus = 2
  1. mul
import math_package_xgqfrms as Math

n1 = 2
n2 = 3
multi = Math.mul(n1, n2)
print("multi =", multi)
# multi = 6
  1. div
import math_package_xgqfrms as Math

n1 = 6
n2 = 2
divide = Math.div(n1, n2)
print("divide =", divide)
# div = 3.0

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

math_package_xgqfrms-0.0.1.tar.gz (3.7 kB view hashes)

Uploaded Source

Built Distribution

math_package_xgqfrms-0.0.1-py3-none-any.whl (3.1 kB view hashes)

Uploaded Python 3

Supported by

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