-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlog
37 lines (31 loc) · 771 Bytes
/
log
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
anya@scyld:~/src/labs$ ./xaax 1 2
3
f(1,2) = 2.5
anya@scyld:~/src/labs$ ./poly2roots 1 2 1
equation
1x^2 + 2x + 1 = 0
has 2-multiple root x = -1
anya@scyld:~/src/labs$ ./poly2roots 1 -5 6
equation
1x^2 + -5x + 6 = 0
has roots x1 = 3 and x2 = 2
anya@scyld:~/src/labs$ ./poly2roots 4 0 -1
equation
4x^2 + 0x + -1 = 0
has roots x1 = 0.5 and x2 = -0.5
anya@scyld:~/src/labs$ ./poly2roots 4 0 1
equation
4x^2 + 0x + 1 = 0
has no roots
anya@scyld:~/src/labs$ ./poly2complex 1 0 1
equation
1x^2 + 0x + 1 = 0
has roots x1 = (0,1) and x2 = (-0,-1)
anya@scyld:~/src/labs$ ./poly2complex 1 5 6
equation
1x^2 + 5x + 6 = 0
has roots x1 = (-2,0) and x2 = (-3,-0)
anya@scyld:~/src/labs$ ./poly2complex 1 2 1
equation
1x^2 + 2x + 1 = 0
has 2-multiple root x = (-1,0)