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: [mg30277] Re: Pattern matching "on the fly"
  • From: Hendrik van Hees <h.vanhees at>
  • Date: Sat, 4 Aug 2001 20:02:05 -0400 (EDT)
  • Organization: GSI Darmstadt
  • References: <9jtk77$87r$> <9jvrbe$doi$> <9kdbfr$f2m$> <9kg0ep$id0$>
  • Sender: owner-wri-mathgroup at

Stephen P Luttrell wrote:

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

I'm wondering why this should be any problem for Mathematica. It's simply a 
power series. One can use either binomials or the Taylor expansion to 
obtain the result

Mathematica 4.0 for Students: Linux Version
Copyright 1988-1999 Wolfram Research, Inc.
 -- Motif graphics initialized -- 

In[1]:= Series[(1 + x)^1000000000000000000000, {x, 0, 3}]

Out[1]= 1 + 1000000000000000000000 x + 
>    499999999999999999999500000000000000000000 x  + 
>    166666666666666666666166666666666666666667000000000000000000000 x  + 
>    O[x]

given by Mathematica in negligible time.

Hendrik van Hees                Home:    
c/o GSI-Darmstadt SB3 3.183     FAQ:
Planckstr. 1                    
D-64291 Darmstadt               mailto:h.vanhees at 

  • Prev by Date: Re: MathLink for Excel XP?
  • Next by Date: Re: boundary value problem
  • Previous by thread: Re: Pattern matching "on the fly"
  • Next by thread: Symbolic Chemical Synthesis?