Latex typesetting conditional
How can I type set :
If x est positive write in Latex "H>0" else "H<=0"
add a comment
How can I type set :
If x est positive write in Latex "H>0" else "H<=0"
The following works on my computer:
x = -1
if x > 0:
show(LatexExpr('H>0'))
else:
show(LatexExpr('H\leq 0'))
Alternate solution:
LatexExpr("H>0" if H>0 else "H<=0")
Asked: 2019-09-20 12:26:32 -0600
Seen: 80 times
Last updated: Nov 25 '19