symforce.cam.camera_util module#

compute_odd_polynomial_critical_point(coefficients, max_x)[source]#

Compute the critical points of the odd polynomial given by:

f(x) = x + c0 * x^3 + c1 * x^5 + …

This will return the first real-valued critical point in the range [0, max]. If no real-valued critical points are found in this range, return max.

Parameters:
  • coefficients (Iterable[float]) – the coefficients of the polynomial

  • max_x (float) – the maximum value to be returned if no real-valued critical points are found in [0, max_x]

Return type:

float