Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
13
Task/Arithmetic-Complex/Unicon/arithmetic-complex.unicon
Normal file
13
Task/Arithmetic-Complex/Unicon/arithmetic-complex.unicon
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import math
|
||||
|
||||
procedure main()
|
||||
write("c1: ",(c1 := Complex(1.5,3)).toString())
|
||||
write("c2: ",(c2 := Complex(1.5,1.5)).toString())
|
||||
write("+: ",(c1+c2).toString())
|
||||
write("-: ",(c1-c2).toString())
|
||||
write("*: ",(c1*c2).toString())
|
||||
write("/: ",(c1/c2).toString())
|
||||
write("additive inverse: ",c1.addInverse().toString())
|
||||
write("multiplicative inverse: ",c1.multInverse().toString())
|
||||
write("conjugate of (4,-3i): ",Complex(4,-3).conjugate().toString())
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue