xVector

From Esolang
Jump to navigation Jump to search

xVector is an OISC invented by User:None1 and inspired by Vector, it uses a 3-dimensional vector. Instead of dot product, it uses cross product.

Data

As said above, Vector uses a 3D vector called A, it is initially (0,0,0).

A vector literal is represented by 3 real numbers separated by spaces.

Command

B C D

B,C and D are 3D vectors. The command means: If A×B equals to C, then (add A by D and jump to the start of program).

There is an output command, it is not required so it does not count in the number of commands:

B C D E

(Print the first dimension of A×E then add A by D and jump to the start of program) if A×B equals to C. Whether as number or as character depends on implementation.

Examples

Infinite loop

0 0 0 0 0 0 0 0 0