Add all the A tasks
This commit is contained in:
parent
2dd7375f96
commit
051504d65b
1608 changed files with 18584 additions and 0 deletions
18
Task/Arithmetic-Complex/Go/arithmetic-complex.go
Normal file
18
Task/Arithmetic-Complex/Go/arithmetic-complex.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"math/cmplx"
|
||||
)
|
||||
|
||||
func main() {
|
||||
a := 1 + 1i
|
||||
b := 3.14159 + 1.25i
|
||||
fmt.Println("a: ", a)
|
||||
fmt.Println("b: ", b)
|
||||
fmt.Println("a + b: ", a+b)
|
||||
fmt.Println("a * b: ", a*b)
|
||||
fmt.Println("-a: ", -a)
|
||||
fmt.Println("1 / a: ", 1/a)
|
||||
fmt.Println("a̅: ", cmplx.Conj(a))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue