Question: using this code: ##### TODO # 0 : uncomment r , Earth's radius in km ##### TODO # 0 : uncomment c , the speed

using this code:
##### TODO #0: uncomment r, Earth's radius in km
##### TODO #0: uncomment c, the speed of light in km/sec
r =6367.4447 # Earth's radius (km)
c =299792.458 # speed of light in the void/emptiness (km/sec)
# Below are the known simultaneous satellite positions (km) and measured
# time intervals (s).
A1=15600; B1=7540; C1=20140; t1=0.07074;
A2=18760; B2=2750; C2=18610; t2=0.07220;
A3=17610; B3=14630; C3=13480; t3=0.07690;
A4=19170; B4=610; C4=18390; t4=0.07242;
# Solve the system with Multivariate Newton's Method
##### TODO #1: uncomment F(x)
F = lambda x: np.array(
[[ sqrt(( x[0,0]- A1)**2+( x[1,0]- B1)**2+( x[2,0]- C1)**2)- c *(t1- x[3,0])],
[ sqrt(( x[0,0]- A2)**2+( x[1,0]- B2)**2+( x[2,0]- C2)**2)- c *(t2- x[3,0])],
[ sqrt(( x[0,0]- A3)**2+( x[1,0]- B3)**2+( x[2,0]- C3)**2)- c *(t3- x[3,0])],
[ sqrt(( x[0,0]- A4)**2+( x[1,0]- B4)**2+( x[2,0]- C4)**2)- c *(t4- x[3,0])]])
##### TODO #2: uncomment J(x)
J = lambda x: np.array(
[[( x[0,0]- A1)/ sqrt(( x[0,0]- A1)**2+( x[1,0]- B1)**2+( x[2,0]- C1)**2),
( x[1,0]- B1)/ sqrt(( x[0,0]- A1)**2+( x[1,0]- B1)**2+( x[2,0]- C1)**2),
( x[2,0]- C1)/ sqrt(( x[0,0]- A1)**2+( x[1,0]- B1)**2+( x[2,0]- C1)**2), c ],
[( x[0,0]- A2)/ sqrt(( x[0,0]- A2)**2+( x[1,0]- B2)**2+( x[2,0]- C2)**2),
( x[1,0]- B2)/ sqrt(( x[0,0]- A2)**2+( x[1,0]- B2)**2+( x[2,0]- C2)**2),
( x[2,0]- C2)/ sqrt(( x[0,0]- A2)**2+( x[1,0]- B2)**2+( x[2,0]- C2)**2), c ],
[( x[0,0]- A3)/ sqrt(( x[0,0]- A3)**2+( x[1,0]- B3)**2+( x[2,0]- C3)**2),
( x[1,0]- B3)/ sqrt(( x[0,0]- A3)**2+( x[1,0]- B3)**2+( x[2,0]- C3)**2),
( x[2,0]- C3)/ sqrt(( x[0,0]- A3)**2+( x[1,0]- B3)**2+( x[2,0]- C3)**2), c ],
[( x[0,0]- A4)/ sqrt(( x[0,0]- A4)**2+( x[1,0]- B4)**2+( x[2,0]- C4)**2),
( x[1,0]- B4)/ sqrt(( x[0,0]- A4)**2+( x[1,0]- B4)**2+( x[2,0]- C4)**2),
( x[2,0]- C4)/ sqrt(( x[0,0]- A4)**2+( x[1,0]- B4)**2+( x[2,0]- C4)**2), c ]])
x_0=0; y_0=0; z_0=6370; d_0=0;
x_k

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!