Skip to main content

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

Metadata

Release files for vector-algebra 1.0.5

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

Source distribution (sdist)

Source distribution for vector-algebra 1.0.5
File Size Uploaded Provenance Actions
vector_algebra-1.0.5.tar.gz 2.9 kB Without provenance Details for vector_algebra-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for vector-algebra 1.0.5
File Interpreter ABI Platform Actions
vector_algebra-1.0.5-py3-none-any.whl Python 3 none any Details for vector_algebra-1.0.5-py3-none-any.whl

Total release size: 6.7 kB

Release files / vector_algebra-1.0.5.tar.gz

Download URL vector_algebra-1.0.5.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
04a3e3cc6cc0587b9bfc9bbe52c7d138fa4df9af3a6cec7712ed4570159ca651
BLAKE2b-256 checksum
How to use checksums
45875d973087c6c146231714c94bc0d7777d8ced1ad04dc250ff08506f5a8897
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / vector_algebra-1.0.5-py3-none-any.whl

Download URL vector_algebra-1.0.5-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00b57cbaee6ce3fcd5d4a2182c558adfa513f9af86618adb0fd92f1871a02d5f
BLAKE2b-256 checksum
How to use checksums
096d07139c7dfcbc80e4b567633bd982df56ddb1c37f30f262c17dff0cce811e
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for vector-algebra 1.0.5

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

1.0.5 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