MathGroup Archive 1998

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: How does a rule get applied?


  • To: mathgroup@smc.vnet.net
  • Subject: [mg12453] Re: How does a rule get applied?
  • From: Jacek Pliszka <pliszka@bethe.ucdavis.edu>
  • Date: Tue, 19 May 1998 13:31:22 -0400
  • Organization: University of California, Davis
  • References: <6jf2mg$3vl@smc.vnet.net>

On 14 May 1998, Yacine Ait-Sahalia wrote:

>           x^3 + x^(1+3)  /. x^(n_) + x^(n_+1) ->0
> 
> Out[389]=
>                  3    4
>                 x  + x

You have built-in mathematica rule which eveluates 1+3 into 4.  x^3 +
x^4 obviously doesn't match x^(n_) + x^(n_+1).

Regards,

Jacek




  • Prev by Date: Re: Q: how to start Solve[] with an initial solution guess?
  • Next by Date: Re: Pagination problems Mathematica 3.0
  • Prev by thread: Re: How does a rule get applied?
  • Next by thread: swap again