Pagini recente » Monitorul de evaluare | Istoria paginii utilizator/gheradu15 | Diferente pentru utilizator/sunt_3l3v intre reviziile 2 si 1 | Diferente pentru blog/counter intre reviziile 12 si 6 | Diferente pentru blog/your-bisection-search-is-wrong intre reviziile 24 si 25
Nu exista diferente intre titluri.
Diferente intre continut:
switch to
==code(python) |
while abs(c - lo * lo * lo) < 1e-3:
while abs(c - lo * lo * lo) > 1e-3:
==
This doesn't work. For large numbers like 1e37 the code goes into an infinite loop. Try to figure out why. Discuss it in the comment section. Let’s try using the *relative error* (|(a - b) / b| < eps). There are some weird cases when a and b are close or equal to 0. Can the code be cleaner?
Nu exista diferente intre securitate.
Topicul de forum nu a fost schimbat.