From: Mathieu Bouchard Date: 2001-06-10T19:41:06+09:00 Subject: [ruby-talk:16387] Symbolic Computation II Take the source of [ruby-talk:16383] and append the following to it. It will allow you to isolate a variable if that variable occurs only once in an expression. ----------------8<----------------cut-here----------------8<---------------- class Quote def which_side(s); @sym==s; end end class QuoteBin @inverse_of = Hash[ :+, :-, :-, :+, :*, :/, :/, :* ] class<