=>PYTHONTEX#py#default#default#0#code#####344#
import numpy
import math
import string
import random
random.seed(12345)
numpy.random.seed(12345)

lower_upper_alphabet = string.ascii_letters
lower_alphabet = string.ascii_lowercase
upper_alphabet = string.ascii_uppercase

from re import sub
import sympy as sp
from sympy.core.sympify import kernS

x, y, z, t = sp.symbols('x y z t', real=True)
k, m, n = sp.symbols('k m n', integer=True)
f, g, h = sp.symbols('f g h', cls=sp.Function)	
=>PYTHONTEX#py#default#default#1#code#####367#
from numbers import Number
def exposeNumericGlobals():
	res = r'\makeatletter '
		
	d = globals()
	for key in d.keys():
		val = d[key]
		if isinstance(val, Number):
			res = res + (r'\gdef\pythonvar@%s{%s} ' % (key, val))
	
	res = res + r'\makeatother'
	return res
=>PYTHONTEX#py#default#default#2#c#####188#
[a,b,c]=random.choice([ [2,9,5], [-1,9,-5], [2,-3,4], [-4,-3,-7], [-3,-8,-2], [-1,-3,0], ])
=>PYTHONTEX#py#default#default#3#c#####188#
s1=random.choice(['>','<','<=','>='])
=>PYTHONTEX#py#default#default#4#c#####188#
[s2,s3]= random.choices(['<','<='],k=2) if b<=c else random.choices(['>','>='],k=2)
=>PYTHONTEX#py#default#default#5#c#####188#
print("$"+sp.latex(eval(f'x'+ str(s1)+f'{a}')).replace("\leq ", "\leqslant ").replace("\geq ","\geqslant ")+"$")
=>PYTHONTEX#py#default#default#6#c#####188#
print("\\bonne{$\interval [open left]{-\infty }{" + f'{a}'+ "}$}") if s1=='<=' else print("\\mauvaise{$\interval [open right]{x}{" + f'{a}'+ "}$}")
=>PYTHONTEX#py#default#default#7#c#####188#
print("\\bonne{$\interval [open]{-\infty }{" + f'{a}'+ "}$}") if s1=='<' else print("\\mauvaise{$\interval [open]{-\infty }{" + f'{a}'+ "}$}")
=>PYTHONTEX#py#default#default#8#c#####188#
print("\\bonne{$\interval [open]{" + f'{a}'+ "}{\infty }$}") if s1=='>' else print("\\mauvaise{$\interval [open]{" + f'{a}'+ "}{\infty }$}")
=>PYTHONTEX#py#default#default#9#c#####188#
print("\\bonne{$\interval [open right]{" + f'{a}'+ "}{\infty }$}") if s1=='>=' else print("\\mauvaise{$\interval [open right]{\infty }{" + f'{a}'+ "}$}")
=>PYTHONTEX#py#default#default#10#c#####188#
print("\\mauvaise{$\interval [open left]{" + f'{a}'+ "}{\infty }$}")
=>PYTHONTEX#py#default#default#11#c#####188#
print(sp.latex(f"{b} {s2} x {s3} {c}").replace("<=", "\leqslant ").replace(">=","\geqslant ").replace("\\mathtt",' ').replace("\\text",' '))
=>PYTHONTEX#py#default#default#12#c#####188#
if (s2=='<=') and (s3=='<=') : print("\\bonne{$\interval []{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#13#c#####188#
if (s2=='<=') and (s3=='<=') : print("\\mauvaise{$\interval [ ]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#14#c#####188#
if (s2=='<=') and (s3=='<=') : print("\\mauvaise{$\interval [open]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#15#c#####188#
if (s2=='<=') and (s3=='<=') : print("\\mauvaise{$\interval [open left]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#16#c#####188#
if (s2=='<=') and (s3=='<=') : print("\\mauvaise{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#17#c#####188#
if (s2=='<') and (s3=='<=') : print("\\bonne{$\interval [open left]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#18#c#####188#
if (s2=='<') and (s3=='<=') : print("\\mauvaise{$\interval [open right]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#19#c#####188#
if (s2=='<') and (s3=='<=') : print("\\mauvaise{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#20#c#####188#
if (s2=='<') and (s3=='<=') : print("\\mauvaise{$\interval [open left]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#21#c#####188#
if (s2=='<') and (s3=='<=') : print("\\mauvaise{$\interval []{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#22#c#####188#
if (s2=='<=') and (s3=='<') : print("\\bonne{$\interval [open right]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#23#c#####188#
if (s2=='<=') and (s3=='<') : print("\\mauvaise{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#24#c#####188#
if (s2=='<=') and (s3=='<') : print("\\mauvaise{$\interval [open left]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#25#c#####188#
if (s2=='<=') and (s3=='<') : print("\\mauvaise{$\interval [open]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#26#c#####188#
if (s2=='<=') and (s3=='<') : print("\\mauvaise{$\interval [open left]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#27#c#####188#
if (s2=='<') and (s3=='<') : print("\\bonne{$\interval [open]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#28#c#####188#
if (s2=='<') and (s3=='<') : print("\\mauvaise{$\interval [open right]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#29#c#####188#
if (s2=='<') and (s3=='<') : print("\\mauvaise{$\interval [open left]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#30#c#####188#
if (s2=='<') and (s3=='<') : print("\\mauvaise{$\interval []{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#31#c#####188#
if (s2=='<') and (s3=='<') : print("\\mauvaise{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#32#c#####188#
if (s2=='>=') and (s3=='>=') : print("\\bonne{$\interval []{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#33#c#####188#
if (s2=='>=') and (s3=='>=') : print("\\mauvaise{$\interval []{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#34#c#####188#
if (s2=='>=') and (s3=='>=') : print("\\mauvaise{$\interval [open left]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#35#c#####188#
if (s2=='>=') and (s3=='>=') : print("\\mauvaise{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#36#c#####188#
if (s2=='>=') and (s3=='>=') : print("\\mauvaise{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#37#c#####188#
if (s2=='>') and (s3=='>=') : print("\\bonne{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#38#c#####188#
if (s2=='>') and (s3=='>=') : print("\\mauvaise{$\interval [open left]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#39#c#####188#
if (s2=='>') and (s3=='>=') : print("\\mauvaise{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#40#c#####188#
if (s2=='>') and (s3=='>=') : print("\\mauvaise{$\interval []{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#41#c#####188#
if (s2=='>') and (s3=='>=') : print("\\mauvaise{$\interval [open right]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#42#c#####188#
if (s2=='>=') and (s3=='>') : print("\\bonne{$\interval [open left]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#43#c#####188#
if (s2=='>=') and (s3=='>') : print("\\mauvaise{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#44#c#####188#
if (s2=='>=') and (s3=='>') : print("\\mauvaise{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#45#c#####188#
if (s2=='>=') and (s3=='>') : print("\\mauvaise{$\interval [open right]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#46#c#####188#
if (s2=='>=') and (s3=='>') : print("\\mauvaise{$\interval []{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#47#c#####188#
if (s2=='>') and (s3=='>') : print("\\bonne{$\interval [open]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#48#c#####188#
if (s2=='>') and (s3=='>') : print("\\mauvaise{$\interval []{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#49#c#####188#
if (s2=='>') and (s3=='>') : print("\\mauvaise{$\interval []{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#50#c#####188#
if (s2=='>') and (s3=='>') : print("\\mauvaise{$\interval [open right]{" + f'{c}'+ "}{" + f'{b}'+ "}$}")
=>PYTHONTEX#py#default#default#51#c#####188#
if (s2=='>') and (s3=='>') : print("\\mauvaise{$\interval [open]{" + f'{b}'+ "}{" + f'{c}'+ "}$}")
=>PYTHONTEX#py#default#default#52#c#####188#
[x1,a1,b1,c1,d1]=random.choice([ [2,9,-5,6,3], ])
=>PYTHONTEX#py#default#default#53#c#####188#
exprAG=f'{a1}*x+{b1}'
=>PYTHONTEX#py#default#default#54#c#####188#
exprAD=f'{c1}*x+{d1}'
=>PYTHONTEX#py#default#default#55#c#####188#
s1=random.choice(['<','>','<=','>='])
=>PYTHONTEX#py#default#default#56#c#####188#
[x2,a2,b2,c2,d2]=random.choice([ [-1,3,-1,2,-4], ])
=>PYTHONTEX#py#default#default#57#c#####188#
exprBG=f'{a2}*x+{b2}'
=>PYTHONTEX#py#default#default#58#c#####188#
exprBD=f'{c2}*x+{d2}'
=>PYTHONTEX#py#default#default#59#c#####188#
s2=random.choice(['<','>','<=','>='])
=>PYTHONTEX#py#default#default#60#c#####188#
[x3,a3,b3,c3,d3]=random.choice([ [-2,1,3,-5,2], ])
=>PYTHONTEX#py#default#default#61#c#####188#
exprCG=f'{a3}*x**2+{b3}*x+{c3}'
=>PYTHONTEX#py#default#default#62#c#####188#
exprCD=f'{d3}'
=>PYTHONTEX#py#default#default#63#c#####188#
s3=random.choice(['<','>','<=','>='])
=>PYTHONTEX#py#default#default#64#c#####188#
print("$"+str(x1)+"$")
=>PYTHONTEX#py#default#default#65#c#####188#
print("$"+sp.latex(eval(exprAG+str(s1)+exprAD)).replace("\leq ", "\leqslant ").replace("\geq ", "\geqslant ") +"$")
=>PYTHONTEX#py#default#default#66#c#####188#
print('\\bonne{Vrai} \\mauvaise{Faux}') if eval(exprAG+str(s1)+exprAD).subs(x,x1) else print('\\mauvaise{Vrai} \\bonne{Faux}')
=>PYTHONTEX#py#default#default#67#c#####188#
print("$"+str(x2)+"$")
=>PYTHONTEX#py#default#default#68#c#####188#
print("$"+sp.latex(eval(exprBG+str(s2)+exprBD)).replace("\leq ", "\leqslant ").replace("\geq ", "\geqslant ") +"$")
=>PYTHONTEX#py#default#default#69#c#####188#
print('\\bonne{Vrai} \\mauvaise{Faux}') if eval(exprBG+str(s2)+exprBD).subs(x,x2) else print('\\mauvaise{Vrai} \\bonne{Faux}')
=>PYTHONTEX#py#default#default#70#c#####188#
print("$"+str(x3)+"$")
=>PYTHONTEX#py#default#default#71#c#####188#
print("$"+sp.latex(eval(exprCG+str(s3)+exprCD)).replace("\leq ", "\leqslant ").replace("\geq ", "\geqslant ") +"$")
=>PYTHONTEX#py#default#default#72#c#####188#
print('\\bonne{Vrai} \\mauvaise{Faux}') if eval(exprCG+str(s3)+exprCD).subs(x,x3) else print('\\mauvaise{Vrai} \\bonne{Faux}')
=>PYTHONTEX:SETTINGS#
version=0.18
outputdir=pythontex-files-simple
workingdir=.
workingdirset=false
gobble=none
rerun=default
hashdependencies=default
makestderr=false
stderrfilename=full
keeptemps=none
pyfuture=default
pyconfuture=none
pygments=true
pygglobal=:GLOBAL||
fvextfile=-1
pyconbanner=none
pyconfilename=stdin
depythontex=false
pygfamily=py|python3|
pygfamily=pycon|pycon|
pygfamily=sympy|python3|
pygfamily=sympycon|pycon|
pygfamily=pylab|python3|
pygfamily=pylabcon|pycon|
