Re: A question on Newton's Method



"Jon Harrop" <usenet@xxxxxxxxxxxxxx> wrote in message
news:4250905d$0$27845$ed2619ec@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> That is a 2,199-line Fortran program. I believe the equivalent in
> Mathematica is the built-in ListConvolve function which is 12 letters of
> code. Of course, the Mathematica implementation is much more powerful as
it
> works for any "n".

> An OCaml implementation would use FFTW and would probably be <100 lines
and
> also be more powerful than the Fortran you've given.

The other way around, actually. FFTW doesn't claim to be as powerful
as the [elided] link.

> So the Fortran is several orders of magnitude more verbose than it need
be.
> That's hardly what I call a comprehensible example. Any other examples of
> numerical analysis code which is actually simpler in Fortran?

Nope. Sorry you don't get it. If you concentrated on what was
being programmed rather than what you are programming with,
there would be a chance, but I can see now that you are forever
doomed to simply aping the algorithms that other have created,
typically in Fortran, rather than creating any yourself. Good
luck and congratulations on your career in management.

--
write(*,*) transfer((/17.392111325966148d0,6.5794487871554595D-85, &
6.0134700243160014d-154/),(/'x'/)); end


.



Relevant Pages

  • Re: Verbose functional languages?
    ... Sometimes it is unavoidable to use Fortran. ... I used Mathematica a lot, ... We recently bought a Mac Mini and a SlideArch keyboard. ...
    (comp.lang.functional)
  • Re: A question on Newtons Method
    ... bug reports per day. ... there are arbitrary-precision integers and rationals (Num in OCaml, ... native format in Mathematica, and a major hassle in Fortran). ...
    (sci.math.num-analysis)
  • Re: dgemm subroutine in BLAS - I think Ive cracked the difference, please confirm
    ... but not a single I/O operation on them. ... appear simpler for that rare I/O statement, but the fortran ... convention is simpler for those dozens or hundreds of lines of code ... years and Mathematica for about 15 years, ...
    (comp.lang.fortran)
  • Re: A question on Newtons Method
    ... Have you considered the Fortran equivalent of my numerical ... the Mathematica implementation is much more powerful as it ... > referring to the original function ... incorrect Mathematica code, it is actually incorrect mathematics - you've ...
    (sci.math.num-analysis)
  • Re: "Matlab to Scilab for Dummies" anywhere?
    ... Anyone know of an open-source clone of Mathematica? ... Back at the university we had to program in Fortran on punch ... will harp on)) is/are symbol manipulators. ... linear algebra problem or anything. ...
    (sci.electronics.design)