Improve precision

That thing is divided by, so better make it a power of two to make the division exact.
This commit is contained in:
numzero 2024-06-09 22:05:51 +03:00
parent e840b3f47b
commit 1f960e3726

View File

@ -637,7 +637,7 @@ mod riemann {
}
fn part_derivs_at(&self, pos: Vec2) -> Tens2 {
part_deriv(|p| self.at(p), pos, 1.0e-3)
part_deriv(|p| self.at(p), pos, 1.0 / 1024.0) // division by such eps is exact which is good for overall precision
}
fn vec_length_at(&self, at: Vec2, v: Vec2) -> f32 {