You are on page 1of 4

Important Remin

1 unit in the cartesian coordi


Input the values of the charge being assessed (Q1) input "pos" for positive (do
Charge (μC) X-Coordinate Y- Coordinate Sign input"neg" for negative
1 4 4 pos Always input coordinates eve
have 0 Charge
Additional Charges
Charge(μC) X-Coordinate Y-Coordinate Sign
Q2 1 4 -4 neg
Q3 1 -4 4 neg
Q4 1 -4 -4 neg

OUTPUT
ΣX-Comp ΣY-Comp Fnet of Q1 DIRECTION
-1.90132 -1.90132 2.68887186339596 -135
50

40

30

Q2
Q3
BY:TOLENTINO, YENCY
20NINO T. & NIEZ, CEAN CARL
Q4
Q1

10

0
-10 0 10 20 30 40 50

-10
Important Reminders!!!
1 unit in the cartesian coordinate is equals to 1 cm
input "pos" for positive (do not put "+" or "-" sign before the number)
input"neg" for negative
Always input coordinates even if Q3 and Q4 Distance between charges
have 0 Charge (Q1&Q2) (Q1&Q3) (Q1&Q4)
8 8 11.3137085
Forces felt
(Q1&Q2) (Q1&Q3) (Q1&Q4)
1.4046875 1.4046875 0.70234375
FORCE DIRECTION ANGLE
(Q1&Q2) (Q1&Q3) (Q1&Q4)
rad -1.570796327 3.1415926536 -2.35619449
Degrees -90 180 -135
Sin and Cos
(Q1&Q2) (Q1&Q3) (Q1&Q4)
Sin -1 0 -0.70710678
Cos 0 -1 -0.70710678
Force Component
ΣX-Comp ΣY-Comp Fnet
-1.901319528 -1.901319528 2.688871863

Direction -135
Constants Truth table for pos or neg
K μC cm to m Q1&Q2 Q1&Q3 Q1&Q4
8990000000 0.000001 0.01 0 0 FALSE
0 0 FALSE
0 0 FALSE
0 0 0
0 0 0
TRUTH TABLE FOR CORRECT TRIG
Q1&Q2 Q1&Q3 Q1&Q4
SIN -1.570796 0 -2.356194
X Y COS 0 3.141593 -2.356194
0 -1.404687
-1.4046875 0
-0.496632028 -0.496632
-1.4046875 -1.404687
-1.901319528 -1.90132

FALSE FALSE
FALSE
//PQR cos should have if statements relating 0,90,270 that will input 0
//PQR sin should have if statements relating
//problems occur when we have 0 degrees of direction
//PS- try changing these: if 0 degrees in x direction, make an if statement that will multipl
tatement that will multiply the force by 1

You might also like