z-eqn
For this task Little Z has to solve a system of three equations:
x + A1*y*y + B1*z*z = C1
y + A2*x*x + B2*x*z = C2
z + A3*y*y + B3*x*y = C3
The values for A, B and [] are given with up to 5 decimal points precision, and are from the following intervals:
-0.15 <= A1 <= -0.05, -0.05 <= B1 <= 0.15, 0.60 <= C1 <= 0.80
0.20 <= A2 <= 0.40, -0.20 <= B2 <= 0.10, 0.40 <= C2 <= 0.60
0.30 <= A3 <= 0.50, 0.00 <= B3 <= 0.20, 1.00 <= C3 <= 1.50
InputFrom each of the first three lines of the standard input read three real numbers representing the numbers:
A1 B1 C1
A2 B2 C2
A3 B3 C3
A1 B1 C1
A2 B2 C2
A3 B3 C3
OutputTo the standard output, in three lines output the solutions for x, y and z with 12 decimal points accuracy. If there are multiple solutions, output one of the solutions that has all positive values for x,y,z
Input:
[c]-0.1 0.05 0.7
0.3 -0.1 0.5
0.4 0.1 1.2
Output:
[c]-0.1 0.05 0.7
0.3 -0.1 0.5
0.4 0.1 1.2
Output:
0.659772651455
0.441516258950
1.092895321950Submit solution
Coming laterThe grading service will be connected in a later migration step. You can inspect the task and your previous results now.