Source code for pbrt, the renderer described in the third edition of "Physically Based Rendering: From Theory To Implementation", by Matt Pharr, Wenzel Jakob, and Greg Humphreys.
Can anyone explain the mathematical meaning of "t1=C/q" in the function ?
I think the root of a quadratic function is
t0 = (-b+sqrt(bb-4ac))/(2a), t1 = (-b-sqrt(bb-4ac))/(2*a)
but the root t1 doesn't match with the equation
Is there any problem with the function Quadratic in efloat.h ?
Can anyone explain the mathematical meaning of "t1=C/q" in the function ? I think the root of a quadratic function is t0 = (-b+sqrt(bb-4ac))/(2a), t1 = (-b-sqrt(bb-4ac))/(2*a) but the root t1 doesn't match with the equation