diff --git a/lib/interp/interpreter.ex b/lib/interp/interpreter.ex index 963a86a..44a3736 100644 --- a/lib/interp/interpreter.ex +++ b/lib/interp/interpreter.ex @@ -71,8 +71,10 @@ defmodule Interp.Interpreter do "žo" -> Stack.push(stack, "ZYXWVUTSRQPONMLKJIHGFEDCBAzyxwvutsrqponmlkjihgfedcba") "žp" -> Stack.push(stack, "ZYXWVUTSRQPONMLKJIHGFEDCBA") "žq" -> Stack.push(stack, 3.141592653589793) + "žq̈" -> Stack.push(stack, 6.283185307179586) "žr" -> Stack.push(stack, 2.718281828459045) "žs" -> Stack.push(stack, IntCommands.continued_fraction(fn x -> if x == 0 do 0 else 2 * x - 1 end end, fn y -> if y == 1 do 4 else IntCommands.pow(y - 1, 2) end end)) + "žs̈" -> Stack.push(stack, IntCommands.continued_fraction(fn x -> if x == 0 do 0 else 2 * x - 1 end end, fn y -> if y == 1 do 4 else IntCommands.pow(y - 1, 2) end end)) "žt" -> Stack.push(stack, IntCommands.continued_fraction(fn x -> if x == 0 do 2 else 1 + x end end, fn y -> if y == 0 do 2 else y + 1 end end)) "žu" -> Stack.push(stack, "()<>[]{}") "žv" -> Stack.push(stack, 16)