G
G
Gleb2020-09-08 23:27:17
Python
Gleb, 2020-09-08 23:27:17

What could be causing the difference between c++ and python output?

I decided to rewrite a fairly simple program in c++ and ran into the problem that the calculations with a large error differ from the true ones. In python, the result is more accurate, what is the mb related to?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xorknown, 2020-09-09
@shevzoom

At least the f functions are different for you. In c++ you take the root of the whole expression, but in python you take the root of that part only (1 + x**2)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question