I have some function that returns inequalities like
s= solve(x^(2)<4,x)
s
[[x>-2, 2<x]]
I would like to be able to convert this to the string "] -2,2 [" for export to LaTeX.
How can I check which comparison operator is used, and then create a script with multiple scripts based on this? for example
if s[1].operatorused== "<"
then do stuff
if s[1].operatorused== "<="
then do stuff
etc.
source
share