I am a relative newcomer to mathematica. I wish to simplify large matrices by identifying occurrences of specific algebraic expressions and replacing them with a variable name. The problem is that unless the expressions to be replaced occur in precisely the form specified by the given transformation rule it doesn't spot them. Any simple solutions? Also, is there any way to identify and collect vector powers (ie. v^2 instead of v^2+v^2+v^2 for example) ? Thanks for any suggestions, Stephen O'Sullivan.
-- =========================================================================== Stephen O'Sullivan | Telephone: +353-1-6621333 Dublin Institute for Advanced Studies | Facsimile: +353-1-6621477 School of Cosmic Physics | email: email@example.com 5 Merrion Square | Dublin 2 Ireland | WWW: http://atlas.cp.dias.ie/~so/ ===========================================================================