Moving functions from calculus to common package since they're shared
with algebra