Metadata-Version: 2.1
Name: myvectors
Version: 1.0
Summary:  Exploring VECTOR Mathematics 
Home-page: https://github.com/SHREYAS1188/vector_python_package
Download-URL: https://github.com/SHREYAS1188/vector_python_package/archive/0.9.tar.gz
Author: Shreyas Potdar
Author-email: shreyasmp2001@gmail.com
License: MIT
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Description-Content-Type: text/markdown
License-File: LICENSE


# vector_python_package  
:V:E:C:T:O:R:S: made easy
*****
[![My Skills](https://skillicons.dev/icons?i=python&theme=dark)](https://skillicons.dev)  [![Downloads](https://static.pepy.tech/badge/myvectors)](https://pepy.tech/project/myvectors) 
****
A python package for vector maths

#### Installation of the Package

``` python
pip install myvectors 
```

having installed "math" python library makes the things smoother 
***
** Youtube Video Tutorials
(https://youtube.com/playlist?list=PL6LEAq5DrlOScWUPGQ4YHr-naw-H7OtKz)
(https://youtu.be/Tr-d4uQIgqU)

** Colab Notebook (dont forget to check the colab notebook)
(https://colab.research.google.com/drive/1brLl8gHiW6yGqMwDKUrsOXMXHm5I_MBW?usp=sharing)
*****



## Package Functionalities

### The vector is represented by **LIST[data structure]** in the package 

#### ex: if v(2,3,4) is a vector at (2,3,4) in space then it should be written as v1=[2,3,4] where v1 is a list 

##### 1.Magnitude of a vector :    A=[2,3,4] magnitude of a given vector
``` python
from myvector import mag
A=[2,3,4]
mag(A)
```
Output : float number

##### 2. Dot product : A=[2,3,4]  B = [1,1,2] 
Arguments : two vectors whose dot product is required
``` python
A=[2,3,4]  
B = [1,1,2]
from myvector import dot
dot(A,B)
```

##### 3. Cross product : A=[2,3,4]  B = [1,1,2] 
Arguments : two vectors whose cross product is required
``` python
A=[2,3,4]  
B = [1,1,2] 
from myvector import cross
cross(A,B)
```
##### 4.Projection : A=[1,4,0] B=[4,2,4]
Arguments : two vectors here first vector passed as argument is projected over the second vector
```python
A=[1,4,0] 
B=[4,2,4]
from myvector import projection
projection(A,B)
```
Output : number i.e projection of A on B

##### 5.Angle : Gives Angle between two vectors A=[3,4,-1] B=[2,-1,1] 
Arguments : two vectors , cos/sin , mode(if mode = 0 then angle is in terms of **radian** if mode = 1 then **degrees**)
```python
from myvector import angle
A=[3,4,-1] 
B=[2,-1,1] 
angle(A,B,"cos",0) # angle in terms of cos and radians
angle(A,B,"sin",1) # angle in terms of sin and degrees
```
Output : angle in radians if mode = 0 or in terms of degree if mode = 1

##### 6. Triangle area : the vertices of triangle be A=[1,1,1] B=[1,2,3] C=[2,3,1]
Arguments : the co - ordinates of the vertices of the triangle
```python
A=[1,1,1] 
B=[1,2,3] 
C=[2,3,1]
from myvector import trianglearea
trianglearea(A,B,C)
```
Output : Area

##### 7.sectionsutram : divide the line joining two points in the ratio r1:r2 A=[2,3,4] B=[4,1,-2]

Arguments : two vectors, ei representing type of division ('e'= external and 'i' = internal),r1,r2 
``` python
A=[2,3,4] 
B=[4,1,-2]
r1 = 1
r2 = 2
from myvector import sectionsutram
sectionsutram(A,B,ei,r1,r2)
```
Output: (A list of length 3) basically vector point with x,y,z co-ordinates

##### 8. collinear or not : checks if three vectors are collinear
A=[1,2,3] B=[11,8,12] C=[10,5,7]
```python
A=[1,2,3] 
B=[11,8,12] 
C=[10,5,7]
from myvector import collinear3
collinear3(A,B,C)
 ```
Output : If collinear then output is 1 else 0

##### 9. Scalar Triple Product : if three vectors A,B,C then there scalar triple product is =((AXB)dotproduct(C))
A=[1,2,3] B=[11,8,12] C=[10,5,7]
```python
A=[1,2,3] 
B=[11,8,12] 
C=[10,5,7]
from myvector import s_triplepro
s_triplepro(A,B,C)
 ```

##### 10. Vector Triple Product : if three vectors A,B,C then there scalar triple product is =((AXB)XC)
A=[1,2,3] B=[11,8,12] C=[10,5,7]
```python
A=[1,2,3] 
B=[11,8,12] 
C=[10,5,7]
from myvector import v_triplepro
v_triplepro(A,B,C)
 ```

##### 11. Vector visualization in 3D space: A given vector say 'V' is visualized in 3-Dimensional space
A = [0,0,2]
```python
A = [0,0,2]
from myvector import draw_vector
draw_vector(A)
```
Output : A vector representation in 3-D space.
![output_draw_vector](/img/draw_vectors.png)

##### 12. Vector Direction Cosines: Given a vector 'V' it gives the diection cosine
A = [1,2,3]
```pyth,on
A = [1,2,3]
from myvector import direction_Cosine
direction_Cosine(A)
```

************

