combinacio de 3 vectors
Author: enric braso

.

.

.

.

.

.

.

.

.

activa/desactiva animació

$ a  \left(  \;  \;  \right) + b\left(  \;    \;  \right)   +c \left(  \;    \; \right) = \left(  \;  \;  \right) 

.

.

.

J = (3.4570077544169675, 3.74999269296585)
I = (3.449225755696814, 2.561436575217964)
u = Vector(I, J)
F = (5.098207393212407, 1.4053756953115248)
E = (3.909145804255587, 1.4662210047802848)
a = 4.5 (slider from -2 to 5, step 0.5)
A3 = 6
A2 = 2
A1 = 1
φ = 1.5707963267948966 rad (slider from 0 to 3.141592653589793, step 0.017453292519943295)
χ = 2.0420352248333655 rad (slider from 0.08726646259971647 to 3.0543261909900767, step 0.017453292519943295)
O = Intersect(xAxis, yAxis)
θ: x(u)
A_x: y(u)
k = Vector(O, O + ((cos(χ + θ) * cos(φ)), (((-A_x) * sin(χ + θ)) * cos(φ)) + sin(φ)))
j = Vector(O, O + (cos(θ), ((-A_x) * sin(θ))))
i = Vector(O, O + ((cos(χ + θ) * cos(φ - 90°)), (((-A_x) * sin(χ + θ)) * cos(φ - 90°)) + sin(φ - 90°)))
j_0 = Vector(O, O + (1, 0))
k_0 = Vector(O, O + (0, 1))
i_0 = Vector(O, O + (cos(χ), ((-A_x) * sin(χ))))
i_1 = Vector(O, O + (cos(χ + θ), ((-A_x) * sin(χ + θ))))
j_1 = Vector(O, O + (cos(θ), ((-A_x) * sin(θ))))
k_1 = Vector(O, O + (0, 1))
eixX = Ray(O, i)
eixY = Ray(O, j)
eixZ = Ray(O, k)
vectorA: (A1 * i) + (A2 * j) + (A3 * k)
A = Translate(O, vectorA)
B1 = 1
B2 = 3
B3 = -1
C1 = 2
C2 = -1
C3 = 0
b = 4.5 (slider from -2 to 5, step 0.5)
c = 4 (slider from -2 to 5, step 0.5)
vectorB: (B1 * i) + (B2 * j) + (B3 * k)
B = Translate(O, vectorB)
vectorC: (C1 * i) + (C2 * j) + (C3 * k)
C = Translate(O, vectorC)
vectorSUMA: (a * vectorA) + (b * vectorB) + (c * vectorC)
BC = Translate(O, Vector[vectorB + vectorC])
BA = Translate(O, Vector[vectorB + vectorA])
AC = Translate(O, Vector[vectorC + vectorA])
ABC = Translate(O, Vector[vectorC + vectorB + vectorA])
d = Segment(B, BC)
e = Segment(BC, C)
f = Segment(B, BA)
g = Segment(BA, A)
h = Segment(A, AC)
l = Segment(C, AC)
m = Segment(AC, ABC)
n = Segment(BA, ABC)
p = Segment(BC, ABC)
Aa = Translate(O, Vector[(a * vectorA)])
Bb = Translate(O, Vector[(b * vectorB)])
Cc = Translate(O, Vector[(c * vectorC)])
BbCc = Translate(O, Vector[(b * vectorB) + (c * vectorC)])
BbAa = Translate(O, Vector[(b * vectorB) + (a * vectorA)])
AaCc = Translate(O, Vector[(c * vectorC) + (a * vectorA)])
AaBbCc = Translate(O, Vector[(c * vectorC) + (b * vectorB) + (a * vectorA)])
q = Segment(Bb, BbAa)
r = Segment(Aa, BbAa)
s = Segment(Aa, AaCc)
t = Segment(Cc, AaCc)
a_1 = Segment(BbCc, Cc)
b_1 = Segment(Bb, BbCc)
c_1 = Segment(BbCc, AaBbCc)
d_1 = Segment(BbAa, AaBbCc)
e_1 = Segment(AaBbCc, AaCc)
f_1 = Segment(O, Aa)
g_1 = Segment(O, Bb)
h_1 = Segment(O, Cc)
CampDeText1 = Textfield(A1)
CampDeText2 = Textfield(A2)
CampDeText3 = Textfield(A3)
CampDeText4 = Textfield(B1)
CampDeText5 = Textfield(B2)
CampDeText6 = Textfield(B3)
CampDeText7 = Textfield(C1)
CampDeText8 = Textfield(C2)
CampDeText9 = Textfield(C3)
D1: (a * A1) + (b * B1) + (c * C1)
D2: (a * A2) + (b * B2) + (c * C2)
D3: (a * A3) + (b * B3) + (c * C3)
text2: "\begin{array}{} " + (LaTeX[D1]) + " \\ " + (LaTeX[D2]) + " \\ " + (LaTeX[D3]) + " \end{array} "
anim = false
o: x(u)
T = Translate(O, vectorSUMA)
D = (13.861605639937409, -3.250355973433317)
R1 = 10
R2 = 7
R3 = 10
CampEntradaSortida1 = Textfield(R1)
CampEntradaSortida2 = Textfield(R2)
CampEntradaSortida3 = Textfield(R3)
vectorTI: (R1 * i) + (R2 * j) + (R3 * k)
G = (-24, -3)
H = (-24, -8)
K = (9.7, -7.9482)
text1: "Vector Combinació Lineal =\left(    \begin{array}{} " + (LaTeX[D1]) + " \\ " + (LaTeX[D2]) + " \\ " + (LaTeX[D3]) + " \end{array}   \right) "
L = (1.9951945228347263, 10.04263762783511)
M = (6.960599045355575, 2.3322183790117355)
N = (1.9487888730915408, 2.20718455335514)