added exact calculation matching euler iterations