Search All of the Math Forum:
Views expressed in these public forums are not endorsed by
Drexel University or The Math Forum.
|
|
|
|
Re: [mg4720] HELP:problems simplifying big matrices
Posted:
Sep 2, 1996 1:43 AM
|
|
"Stephen O'Sullivan" <so@cp.dias.ie> [mg4720] HELP:problems simplifying big matrices writes, >>>>>> 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? <<<<<<<<
Stephen, I wonder if something along the lines of
{1/x +x, (1+x^2)/x}/. r_/;MatchQ[Simplify[r],1/x +x] ->p
{p, p}
might help (you may need to use something else instead of Simplify).
Allan Hayes hay@haystack.demon.co.uk
|
|
|
|