Re: A question on Newton's Method



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 |
\--------==============--------/
.



Relevant Pages

  • Re: A question on Newtons Method
    ... > Yep, that's the one, officer: ... > It shows that Mathematica's syntax is something ... > only a Lisper could love:) ... Prev by Date: ...
    (sci.math.num-analysis)
  • Re: A question on Newtons Method
    ... Yep, that's the one, officer: ... It shows that Mathematica's syntax is something ... only a Lisper could love:) ... Prev by Date: ...
    (sci.math.num-analysis)
  • Re: Compare currency to a double
    ... I can't use isnull because sometimes there are values that are ... >not equal and I need that value to update the spreadsheet. ... you may need some other number); or a syntax ... Prev by Date: ...
    (microsoft.public.access.formscoding)
  • Re: Arrays of zero length
    ... than syntax, there is no "funniness" about whether or not it is ... my first.last at org.domain| experience comes from bad judgment. ... Prev by Date: ...
    (comp.lang.fortran)
  • Re: working with dates
    ... > figure this out but i'm not too sure on the syntax. ... > Hru48's Profile: ... Prev by Date: ...
    (microsoft.public.excel.misc)