Mathlang

From Esolang
Jump to navigation Jump to search

MATHLANG

What is Mathlang

Mathlang is an esolang based on mathematics. (wow)

Commands

symbol function example
pushes a value to the stack. A≤
pops a value out of the stack ≥T
+ takes 2 numbers on the stack and adds them

12+ gives 1+2 which is 3

- takes 2 numbers on the stack and adds them 03- gives 0-3 which is -3
multiply. i don't have to explain this 54⋅ gives 20
÷ divide 320÷ gives 6 because it's it rounds down
NUMBERS numbers 12
A-Z variables. [must be uppercase] 2⋅A-3
= gives a value to a variable.

if a variable doesn't have a value the program solves for it. if its written as =[variable] the program will print that variable as a number [[variable]=] for ascii value

A=15
> and < they are Booleans for less and greater than [true=1 false=0] A < B or B > A [ignore spaces]
user input. the rest is like = A≈ A<1
() loops if previous statement is true go to the truth machine
halts the program
≫x jumps to ≪x ≫x ≪x
is a place to jump to ≫≪

Programs

Hello world!

A≤
B≤
C≤
D≤
E≤
F≤
G≤ 
H≤
I≤
A=h {this h is in place of the ascii value}
B=e
C=l
D=o
E=w
F=r
G=l
H=d
I=!
{the next part prints the text}
A=
B=
C=
C=
D=
E=
D=
F=
G=
H=
I=

Truth machine

≈T
T<1(2<3(=0))(=1≠)

Cat program

1<2(≈T =T)

Deadfish

≪a I≈
I≤
I=97 (X≤ 1≤ + ≫a) 
I=100 (X≤ 1≤ - ≫a)
I=113 (X≤ X≤ ⋅ ≫a)
I=110 (=X ≫a)
I=104 (≠)

Interpreter

it doesn't exist

the end Esolang lover123 (talk) 10:30, 26 March 2026 (UTC)