Given a function continuous in an interval , and such that , a basic theorem of Mathematics states that there must exist at least one zero of in , that is, a real number such that and .
Given a polynomial with exactly one zero in , can you find this zero?
Each input line describes a polynomial of degree at most 4 with exactly one zero in . Each polynomial is given in decreasing order of as follows: . Every is a real number. The pairs with are not present in the input.
For every polynomial, print its case number, followed by an approximation of its zero in , with the following convention: must be a real number with exactly 5 digits after the decimal point, such that and . Always print the 5 decimal digits of .
Every given polynomial is such that for every real number that has 5 (or less) decimal digits after the decimal point.
The test cases have no precisions issues. However, be aware that it is not wise to check the property just like this.
Author: Salvador Roura
Generation: 2026-01-25T12:15:23.123Z
© Jutge.org, 2006–2026.
https://jutge.org