Add all the A tasks
This commit is contained in:
parent
2dd7375f96
commit
051504d65b
1608 changed files with 18584 additions and 0 deletions
13
Task/Arithmetic-Complex/Forth/arithmetic-complex.fth
Normal file
13
Task/Arithmetic-Complex/Forth/arithmetic-complex.fth
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
include complex.seq
|
||||
|
||||
: ZNEGATE ( r i -- -r -i ) fswap fnegate fswap fnegate ;
|
||||
|
||||
zvariable x
|
||||
zvariable y
|
||||
1e 1e x z!
|
||||
pi 1.2e y z!
|
||||
|
||||
x z@ y z@ z+ z.
|
||||
x z@ y z@ z* z.
|
||||
1+0i x z@ z/ z.
|
||||
x z@ znegate z.
|
||||
Loading…
Add table
Add a link
Reference in a new issue