Update README.md

main
Mikael Nordin 5 years ago committed by GitHub
parent 769df79c25
commit 9b84ecf85c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,18 +9,17 @@ g++ -o fractions fractions.cpp
**Output** **Output**
``` ```
a = 3+2i 7/3=(7/3)
a* = 3-2i 7/3=2.333333333
a*a* = 13 1/11=(1/11)
b = 4-3i 1/11=0.09090909091
b* = 4+3i (7/3)+(1/11)=(80/33)
b*b* = 25 (7/3)+(1/11)=2.424242424
a + b = 7-i (7/3)-(1/11)=(74/33)
(a + b)* = 7+i (7/3)-(1/11)=2.242424242
a - b = -1+5i (7/3)*(1/11)=(7/33)
(a - b)* = -1-5i (7/3)*(1/11)=0.2121212121
a * b = 18-i (7/3)/(1/11)=(77/3)
(a * b)* = 18+i (7/3)/(1/11)=25.66666667
a / b = (6/25)+(17/25)i 0.75=(3/4)
(a / b)* = (6/25)-(17/25)i
``` ```

Loading…
Cancel
Save