Services & Resources / Wolfram Forums
MathGroup Archive
*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
  • Subject: [mg30251] Re: Pattern matching "on the fly"
  • From: "Stephen P Luttrell" <luttrell at>
  • Date: Sat, 4 Aug 2001 01:14:21 -0400 (EDT)
  • Organization: Defence Evaluation & Research Agency
  • References: <9jtk77$87r$> <9jvrbe$doi$> <9kdbfr$f2m$>
  • Sender: owner-wri-mathgroup at

Oops. The input was actually

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

This took "zero" time to evaluate, so we can safely assume that Mathematica
drops the O[x]^3 terms as it goes along.

Stephen P Luttrell
QinetiQ, Malvern, U.K.

"Stephen P Luttrell" <luttrell at> wrote in message
news:9kdbfr$f2m$1 at

> 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}

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