It helps in solving vector algebra
Project description
Vector Algebra
It helps to create vector objects and manipulate them
Installation
pip install vector-algebra
How to use it ?
Create an instance of vector
from vector_algebra.Vectors import *
v1=Vectors(1,2,3)
v2=Vectors(1,2,1)
v3=v1+v2 --> for adding vectors
v4=v1-v2 --> for subtracting vectors
v5=v1*v2 --> returns a float value of dot product of two vectors
v6=v1**v2 --> returns a vector withcross product of both vectors
val=v1.magnitude() --> returns the magnitude of the vector
print(v1==v2) --> checks if both vectors are equal in direction and magnitude
print(v1>2) --> Checks if magnitude of v1 > v2
print(v1.angleBetweenVectorsInRadians(v2)) --> Returns angle between vectors in radians
print(v1.angleBetweenVectorsInDegrees(v2)) --> Returns angle between vectors in degrees
print(isParallel(v1,v2))
print(isPerpendicular(v1,v2))
print(v1.unit()) --> To print unit vector
print(v3)
License
© 2021 Deepak Kumar Dash
This repository is licensed under MIT license. see LICENSE for details
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
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 vector_algebra-1.0.5.tar.gz.
File metadata
- Download URL: vector_algebra-1.0.5.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
04a3e3cc6cc0587b9bfc9bbe52c7d138fa4df9af3a6cec7712ed4570159ca651
|
|
| MD5 |
4a228642391f71c9088b5428dc3b16c7
|
|
| BLAKE2b-256 |
45875d973087c6c146231714c94bc0d7777d8ced1ad04dc250ff08506f5a8897
|
File details
Details for the file vector_algebra-1.0.5-py3-none-any.whl.
File metadata
- Download URL: vector_algebra-1.0.5-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.24.0 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.53.0 CPython/3.9.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
00b57cbaee6ce3fcd5d4a2182c558adfa513f9af86618adb0fd92f1871a02d5f
|
|
| MD5 |
e72b994e5ed910bfc9d800059e5776c2
|
|
| BLAKE2b-256 |
096d07139c7dfcbc80e4b567633bd982df56ddb1c37f30f262c17dff0cce811e
|