Schrodinger's fish
Jump to navigation
Jump to search
This is combination of Deadfish and Alivefish, invented by User:BestCoder, capacitated to operate on integers as well as complex numbers, and extended by a numeric input facility.
| Command | Description |
|---|---|
s
|
Square |
S
|
Square root, also works for negative numbers |
i
|
Increment |
I
|
Integral the previous values and the thing will be that |
d
|
Decrement |
D
|
Double the accumulator |
o
|
Output the accumulator in its verbatim numeric form |
O
|
Query the standard input for a signed integer or a complex number |
test programs
Oo #should be cat ODo #should be double cat, not two letters of cat, but just get number, and double it and output dSo #should output 0+1i
Interpreter
- Common Lisp implementation of the Schrodinger's fish programming language.