A simple arithmatic library
Project description
FP ARITHMATIC LIBRARY (version = 1.0.0)
This is my first python library to test and publish python package on PyPI.
It includes three arithmatic functions as follows:
- add -> adds two numbers
- mul -> multiplies two numbers
- sqrt -> computes sqrt of given number
- dot -> returns dot (inner) product of two vectors (lists)
- distance -> computes Euclidean distance between two vectors
INSTALLATION
pip install fp-arithmatic
GET STARTED
How to take dot products of two vectors using this library
import fp_arithmatic as fpa
x = [1,2,3]
y = [2, 3, 5]
result = fpa.dot(x,y)
print(result)
x = [1, 3]
y = [4, 7]
dist = fpa.distance(x,y) # returns 5
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fp-arithmatic-1.0.0.tar.gz
(2.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fp-arithmatic-1.0.0.tar.gz.
File metadata
- Download URL: fp-arithmatic-1.0.0.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0e5dcc221a7bceca6e9e0c149fe6c98a7d5c928a63c1a0cf1b429064ab61bce8
|
|
| MD5 |
6050a281b13d23722c1733eeaa1d3c5c
|
|
| BLAKE2b-256 |
e9021c10baf0ac6300c430cfc86e8ee5cee2e5e65416753aa9b8f391ba22069f
|
File details
Details for the file fp_arithmatic-1.0.0-py3-none-any.whl.
File metadata
- Download URL: fp_arithmatic-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5c1b4656d75093820b602549552ee337687c5546904e3af35b5de69d17074cb3
|
|
| MD5 |
d698f41e30376dfadd3502ed1679bc61
|
|
| BLAKE2b-256 |
93f4767fce0288bf83258cc302860b1e2b785a45918f5b1cde1b664c407d3f8d
|