#include "script_template.h" namespace Code { constexpr ScriptTemplate emptyScriptTemplate(".py", R"(from math import * )"); constexpr ScriptTemplate factorialScriptTemplate("factorial.py", R"(def mem(): try: l=[0] while True: try: l=l+l[l[0]:] except: if l[0] 0: x_1 = (-b-sqrt(delta))/(2*a) x_2 = (-b+sqrt(delta))/(2*a) return x_1, x_2 else: return None)"); const ScriptTemplate * ScriptTemplate::Empty() { return &emptyScriptTemplate; } const ScriptTemplate * ScriptTemplate::Factorial() { return &factorialScriptTemplate; } const ScriptTemplate * ScriptTemplate::Fibonacci() { return &fibonacciScriptTemplate; } const ScriptTemplate * ScriptTemplate::Mandelbrot() { return &mandelbrotScriptTemplate; } const ScriptTemplate * ScriptTemplate::Polynomial() { return &polynomialScriptTemplate; } }