Return equality from Mathematica function

后端 未结 4 1152
小蘑菇
小蘑菇 2021-01-23 16:51

I have a function that returns equalities, which I want to print, for example, x==y, or 2x+5==10. These usually have no meaning for mathematica, it cannot simplify it furhter.

4条回答
  •  清酒与你
    2021-01-23 17:24

    Another trick is to just use Unevaluated:

    In[1] := Print[Unevaluated[1 == 1]]
    1==1
    

提交回复
热议问题