Blackspace
Jump to navigation
Jump to search
Blackspace is an esoteric programming language invented by User:A completely based on the old-fashioned control characters that allows writing mathematical expressions quite easily. Currently this page is a placeholder.
• Takes implicit input ²2²1+π*½*C½/↓ • or ²2²1+∏₂L/↓ • 2 Put all items above the original second top of the stack to the other stack • 1 Put all items above the original first top of the stack to the other stack • ² Square the top of the stack • + Addition • π Pi • ½ Multiply by 0.5 • C 100 • * Multiply • / Divide • ↓ Floor • ↑ Ceiling • - Subtract • ∏ Multiply by Pi • L 50 • X 10 • Equality: ↔ dn • d Convert to decimal • n Escape a newline after converting to same type • Implicit output • | Modulo • P Prime checking •()Indicate a code block
Condensed:
²2²1+∏₂L/↓dn
Is it a leap year?
4:²35²÷?÷!
Digital Root Calculator
≺9|≻
There is a string that only contains the character 'a'. The operator can append an arbitary substring of the previous string to the end of the string. Return at least how many operations that the operator needs in order to get to the length specified by the input.
2㏒÷↑
μ Multiples less than the square of a number × Power of | Absolute value ㏒ Logarithm 1st-top of stack by 2nd-top of stack √ Root operator. The top of the stack indicates how many roots should be done. a.k.a. 1n/× ≺ Decrement by 1 ≻ Increment by 1 @ Trigonometry Operations: sin: 1 cos: 2 tan: 3 asin: -1 acos: -2 atan: -3