strange Integrate result
- To: mathgroup at smc.vnet.net
- Subject: [mg24394] strange Integrate result
- From: Gianluca Gorni <gorni at dimi.uniud.it>
- Date: Wed, 12 Jul 2000 23:13:37 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello!
With Mathematica 4.0:
Integrate[t (1 - Cos[a*t]), {t, 0, Pi}] gives Indeterminate,
although the function is analytic everywhere.
If I define
prim[t_] = Integrate[t (1 - Cos[a*t]), t]
then prim[0] is Indeterminate too. To get the correct result I have
to Simplify[prim[t]] before setting t->0:
Subtract @@ (Simplify[prim[t]] /. {{t->Pi}, {t->0}})
There is also a related wrong Limit[] result. Define
myFunc[t_, a_] = Integrate[t^a(1 - Cos[t/3]), t] // FullSimplify;
Then
Limit[myFunc[t, a], t -> 0] gives 0, which is wrong, because
Limit[myFunc[t, 1], t -> 0] gives -9, that agrees with numerical trials.
Best regards,
Gianluca Gorni
--
+---------------------------------+
| Gianluca Gorni |
| Universita` di Udine |
| Dipartimento di Matematica |
| e Informatica |
| via delle Scienze 208 |
| I-33100 Udine UD |
| Italy |
+---------------------------------+
| Ph.: (39) 0432-558422 |
| Fax: (39) 0432-558499 |
| mailto:gorni at dimi.uniud.it |
| http://www.dimi.uniud.it/~gorni |
+---------------------------------+