z+

Stack effect: ( a b c d -- a+c b+d )

Complex addition.

Haiku Forth specific word nominally to add two complex numbers on the stack. It could be used to add a two vector as well, as which part it real or imaginary does not matter for this operation.

NOTE: In Haiku Forth (unlike Traditional Forth), all stack cells and memory locations are floating point numbers.

Examples:

Forth Haiku Glossary