Update for changes to math, and repository updates.

Signed-off-by: Nick Minkler <sleaker@gmail.com>