fp-arithmatic-1.0.0
توضیحات
A simple arithmatic library
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fp-arithmatic-1.0.0 |
| نام | fp-arithmatic |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Faizan Patel |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/fp-arithmatic/ |
| مجوز | MIT |
## 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
```python
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
```
نیازمندی
| مقدار | نام |
|---|---|
| - | numpy |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl fp-arithmatic-1.0.0:
pip install fp-arithmatic-1.0.0.whl
نصب پکیج tar.gz fp-arithmatic-1.0.0:
pip install fp-arithmatic-1.0.0.tar.gz