Use injected math functions