Skip to main content
edited tags
Link
xzczd
  • 71.6k
  • 10
  • 183
  • 524

Why does replacement `{0, 0} /. {a_, -a_} -> c`c does not work?

Became Hot Network Question
Source Link
Anixx
  • 3.9k
  • 1
  • 21
  • 35

Why does replacement `{0, 0} /. {a_, -a_} -> c` does not work?

Why does replacement {0, 0} /. {a_, -a_} -> c not work? How to make {0,0} to match the pattern {a,-a}?