Re: A question on Newton's Method
- From: Roman Werpachowski <"r o m a nNOSPAM"@theta1.cft.edu.pl>
- Date: Mon, 4 Apr 2005 00:42:20 +0000 (UTC)
On the Sun, 3 Apr 2005 17:30:07 -0600, James Van Buskirk wrote:
> "Roman Werpachowski" <"r o m a nNOSPAM"@theta1.cft.edu.pl> wrote in message
> news:slrnd50qlg.4k4.romanNOSPAM@xxxxxxxxxxxxxxxxxxxx
>
>> fp[x_] := D[f[s],s] /. s --> x
>
> Yep, that's the one, officer: I'd recognize it anywhere!
> It shows (to me) that Mathematica's syntax is something
> only a Lisper could love :)
I don't *love* the syntax, but please note it is very flexible and
allows one to define such nice functions as:
f1[x_] := D[f[s,s],s] /. s --> x
f2[x_] := D[f[x,s],s]
f3[x_] := D[f[s,s],{s,2}] /. s --> x
f4[x_] := D[D[f[s,t],s],t] /. {s --> x, t --> x}
which can be very handy quite often (how would you define those without
the --> operator?)
--
Roman Werpachowski
/--------==============--------\
| http://www.cft.edu.pl/~roman |
\--------==============--------/
.
- References:
- A question on Newton's Method
- From: David M
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: beliavsky
- Re: A question on Newton's Method
- From: James Van Buskirk
- Re: A question on Newton's Method
- From: Roman Werpachowski
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: James Van Buskirk
- Re: A question on Newton's Method
- From: Jon Harrop
- Re: A question on Newton's Method
- From: James Van Buskirk
- Re: A question on Newton's Method
- From: Roman Werpachowski
- Re: A question on Newton's Method
- From: James Van Buskirk
- A question on Newton's Method
- Prev by Date: Re: A question on Newton's Method
- Next by Date: Re: A question on Newton's Method
- Previous by thread: Re: A question on Newton's Method
- Next by thread: Re: A question on Newton's Method
- Index(es):
Relevant Pages
|