Open jimlinntu opened 4 years ago
https://github.com/phulin/rebook/blob/177daa7c5fe20354888ebc76b300e87f3adcb918/newton.pyx#L78
Hi, I just found that in this line, you use u_minus and u_plus, so I guess t should be 0.99 * t and 1.01 * t (rather than 0.01)?
u_minus
u_plus
t
0.99 * t
1.01 * t
0.01
Oh, I guess you are trying to find the closest root t to the origin. So if s(0.99 * t) * s(0.01 * t) < 0, there must be a solution closer to the camera(the origin). Am I correct?
s(0.99 * t) * s(0.01 * t) < 0
https://github.com/phulin/rebook/blob/177daa7c5fe20354888ebc76b300e87f3adcb918/newton.pyx#L78
Hi, I just found that in this line, you use
u_minus
andu_plus
, so I guesst
should be0.99 * t
and1.01 * t
(rather than0.01
)?