calibration.cpp:
const variables,
x == sqrt(x)*sqrt(x),
a/b == a*(1/b) // faster,
(a/b)/(c/d) == (a*d)/(b*c) // faster,
combine reused terms.