Compiles but numerically incorrect