Quantcast
Channel: How may I define e.g. Tilde[x,y] to have certain properties? - Mathematica Stack Exchange
Viewing all articles
Browse latest Browse all 3

Answer by k_v for How may I define e.g. Tilde[x,y] to have certain properties?

$
0
0

Note that "~" is used in Mathematica for infix form of operators and it isn't the same as Tilde which could be inputted as [Esc]~[Esc]

ClearAll@TildeTilde /: Tilde[x_, x_] := TrueSetAttributes[Tilde, Orderless]Tilde /: Tilde[x_, y_ ] && Tilde[y_, z_ ] := Tilde[x, z]

I added one more defenition to Tilde for the case when x, y are not the sameenter image description here


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>