2022-2023/2nd/Evaluations/DM_2023-04-24/bopytex_config.py

23 lines
538 B
Python
Raw Normal View History

2023-03-16 08:57:38 +00:00
# bopytex_config.py
from math import ceil
from mapytex.calculus.random import expression as random_expression
from mapytex.calculus.random import list as random_list
from mapytex import stat
from mapytex import render
import random
random.seed(0) # Controlling the seed allows to make subject reproductible
render.set_render("tex")
direct_access = {
"random_expression": random_expression,
"random_list": random_list,
"stat": stat,
"random": random,
"min": min,
"max": max,
"int": int,
"ceil": ceil,
}