Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
15
Task/Arithmetic-Complex/Pluto/arithmetic-complex.pluto
Normal file
15
Task/Arithmetic-Complex/Pluto/arithmetic-complex.pluto
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
require "complex"
|
||||
local fmt = require "fmt"
|
||||
|
||||
local x = new complex(1, 3)
|
||||
local y = new complex(5, 2)
|
||||
|
||||
fmt.print("x = %s", x)
|
||||
fmt.print("y = %s", y)
|
||||
fmt.print("x + y = %s", x + y)
|
||||
fmt.print("x - y = %s", x - y)
|
||||
fmt.print("x * y = %s", x * y)
|
||||
fmt.print("x / y = %s", x / y)
|
||||
fmt.print("-x = %s", -x)
|
||||
fmt.print("1 / x = %s", x:inverse())
|
||||
fmt.print("x* = %s", x:conj())
|
||||
Loading…
Add table
Add a link
Reference in a new issue