:V:E:C:T:O:R:S: made easy This version 1.2 is named as "Shobha"
A python package for vector maths
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)
** Please Give feedback about the library "myvectors", your feedback is highly valuable (https://forms.gle/P9kwsYUQJvuC9qXb6)
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
import myvectors
from myvectors import mag
A = [2,3,4]
mag(A)
output : float number
Arguments : two vectors whose dot product is required
import myvectors
A = [2,3,4]
B = [1,1,2]
from myvectors import dot
dot(A,B)
output : float number
Arguments : two vectors whose cross product is required
import myvectors
A = [2,3,4]
B = [1,1,2]
from myvectors import cross
cross(A,B)
output : list
Arguments : two vectors here first vector passed as argument is projected over the second vector
import myvectors
A = [1,4,0]
B = [4,2,4]
from myvectors import projection
projection(A,B)
output : number i.e projection of A on B
Arguments : two vectors , cos/sin , mode(if mode = 0 then angle is in terms of radian if mode = 1 then degrees)
import myvectors
from myvectors 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
Arguments : the co - ordinates of the vertices of the triangle
import myvectors
A = [1,1,1]
B = [1,2,3]
C = [2,3,1]
from myvectors import trianglearea
trianglearea(A,B,C)
output : Area (float number)
Arguments : two vectors, ei representing type of division ('e'= external and 'i' = internal),r1,r2
import myvectors
A = [2,3,4]
B = [4,1,-2]
r1 = 1
r2 = 2
ei = 'i' #ei = 'i' for internal , ei= 'e' for external
from myvectors import sectionsutram
sectionsutram(A,B,ei,r1,r2)
output: (A list of length 3) basically vector point with x,y,z co-ordinates
A=[1,2,3] B=[11,8,12] C=[10,5,7]
import myvectors
A = [1,2,3]
B = [11,8,12]
C = [10,5,7]
from myvectors 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]
import myvectors
A = [1,2,3]
B = [11,8,12]
C = [10,5,7]
from myvectors import s_triplepro
s_triplepro(A,B,C)
output : float number
A=[1,2,3] B=[11,8,12] C=[10,5,7]
import myvectors
A = [1,2,3]
B = [11,8,12]
C = [10,5,7]
from myvectors import v_triplepro
v_triplepro(A,B,C)
output : list[x,y,z]
A = [0,0,2]
import myvectors
A = [0,0,2]
from myvectors import draw_vector
draw_vector(A)
output : A vector representation in 3-D space.
A = [1,2,3]
import myvectors
A = [1,2,3]
from myvectors import direction_Cosine
direction_Cosine(A)
output : list[x,y,z]