Added just enough to calculate roots, logs, and powers