MathGroup Archive 2009

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

Search the Archive

Correction to "Fundamental Theorem of Calculus and Mathematica"

  • To: mathgroup at smc.vnet.net
  • Subject: [mg100727] Correction to "Fundamental Theorem of Calculus and Mathematica"
  • From: Len <lwapner2 at gmail.com>
  • Date: Thu, 11 Jun 2009 21:44:34 -0400 (EDT)

Greetings:

I define a function (using f[x_]:=) as the definite integral (from 0
to x) of sin(t^2).  When I differentiate using Mathematica I get the
correct answer of sin(x^2).

But when I define a function (using g[x_]:=) as the definite integral
(from 0 to x) of e^(-t^2) and differentiate, I get the incorrect
answer of 0.  (The correct answer is e^(-x^2).)

Why the inconsistency?

Oddly, if I define the function g above using "=" instead of ":=", all
works well.

Can someone explain the odd behavior?

Thanks,

Len


  • Prev by Date: Re: Seeking the Eliza source file Eliza.m
  • Next by Date: Re: Creating Matrix from vectors
  • Previous by thread: Re: Avoid printing leading zero
  • Next by thread: Re: Correction to "Fundamental Theorem of Calculus and Mathematica"