Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.soft-sys.math.mathematica > #9591 > unrolled thread
| Started by | Andrzej Kozlowski <akozlowski@gmail.com> |
|---|---|
| First post | 2012-04-13 08:50 +0000 |
| Last post | 2012-04-13 08:50 +0000 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.soft-sys.math.mathematica
computing derivatives and limits Andrzej Kozlowski <akozlowski@gmail.com> - 2012-04-13 08:50 +0000
| From | Andrzej Kozlowski <akozlowski@gmail.com> |
|---|---|
| Date | 2012-04-13 08:50 +0000 |
| Subject | computing derivatives and limits |
| Message-ID | <jm8pd2$irt$1@smc.vnet.net> |
Consider the function:
f[x_] := Cos[Sqrt[x]]
This is an analytic function and of course Mathematica knows its Taylor series:
SeriesCoefficient[f[x], {x, 0, n}]
Piecewise[{{(-1)^n/(2*n)!, n >= 0}}, 0]
But asking for the derivative at 0 is asking for trouble:
f'[0]
During evaluation of In[203]:= Power::infy: Infinite expression 1/Sqrt[0] encountered. >>
During evaluation of In[203]:= Infinity::indet: Indeterminate expression 0 ComplexInfinity encountered. >>
Indeterminate
This is, in fact, taken from a question that appeared at our recent calculus test and those who gave the same answer as Mathematica got 0 points for it. I understand why this happens but shouldn't Mathematica be a little cleverer about this sort of thing nowadays, particularly in situations when it can find the Taylor series?
Andrzej Kozlowski
Back to top | Article view | comp.soft-sys.math.mathematica
csiph-web