The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Inactive » comp.soft-sys.math.mathematica

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: Re: [mg4720] HELP:problems simplifying big matrices
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Allan Hayes

Posts: 1,508
Registered: 12/6/04
Re: [mg4720] HELP:problems simplifying big matrices
Posted: Sep 2, 1996 1:43 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Stephen O'Sullivan" <>
[mg4720] HELP:problems simplifying big matrices
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?

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

Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.