Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2001
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2001

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

Search the Archive

Re: Pattern matching "on the fly"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg30232] Re: Pattern matching "on the fly"
  • From: "Stephen P Luttrell" <luttrell at signal.dra.hmg.gb>
  • Date: Fri, 3 Aug 2001 00:56:02 -0400 (EDT)
  • Organization: Defence Evaluation & Research Agency
  • References: <9jtk77$87r$1@smc.vnet.net> <9jvrbe$doi$1@smc.vnet.net>
  • Sender: owner-wri-mathgroup at wolfram.com

"Allan Hayes" <hay at haystack.demon.co.uk> wrote in message
news:9jvrbe$doi$1 at smc.vnet.net...
> Tony,
> Not a general solution, but for your example we get
>
>
> (1+x)^1000000 +O[x]^3//Normal//Timing
>
> {0.27*Second, 1 + 1000000*x + 499999500000*x^2}


and I got this result using Mathematica 4.1 (Windows NT 4):

(1+x)^1000000 +O[x]^3//Normal//Timing

{0.Second, 1 + 1000000000000000000000 x +
      499999999999999999999500000000000000000000 x^2}


--
Stephen P Luttrell
QinetiQ, Malvern, U.K.
luttrell at signal.dera.gov.uk
01684-894046 (phone), 01684-894384 (fax)




  • Prev by Date: How to write a package?
  • Next by Date: Symbolic Chemical Synthesis?
  • Previous by thread: Re: How to write a package?
  • Next by thread: Re: Pattern matching "on the fly"