comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Numerical Recipes Article
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Numerical Recipes Article [message #10302 is a reply to message #10273] Mon, 10 November 1997 00:00 Go to previous messageGo to previous message
Paul E Howland is currently offline  Paul E Howland
Messages: 2
Registered: November 1997
Junior Member
David Foster wrote:

> You'll have to pardon me, but I'm not a Mathematica user, and the
> code here looks like it was scraped off the walls of some Egyptian
> temple. If you were to show the IDL code to a programmer not familiar
> with IDL, he/she could probably figure out what it's doing. Show
> the Mathematica code to a programmer not familiar with Mathematica
> and he'll probably think your type-writer broke.
>
> There's often a trade-off between elegance/simplicity and
> functionality. Is Mathematica's sorting capabilities that much more
> flexible and powerful to justify such strange syntax?

Mathematica's programming capabilities are considerably more flexible
and powerful than those of IDL, although on a simple problem like the
example in the "Numerical Recipes" article they are not revealed. IDL
code, however, runs much faster. Hence there is a trade off between
programming time and execution time: which leads back to my original
statement that you should use the most appropriate tool for the job.

I agree that Mathematica's code can look quite odd to those don't
program it, but I don't regard this as a problem. I'm sure my Mum would
have a better chance of understanding COBOL than IDL or Mathematica, but
that doesn't mean that we should all start using COBOL! As long as an
IDL programmer can understand IDL code, and a Mathematica programmer can
understand Mathematica code, that's all that matters. Incidently, it
took me about the same length of time to figure out what both the
Mathematica and IDL code examples were doing, in the original article.

Mathematica supports a number of programming paradigms, including
pattern matching, list processing, pure functions (lambda calculus),
matrix/vector operations, recursive programming, symbolic mathematics,
function overloading, etc. as well as the traditional DO-loop approach,
and hence its code can seem quite complex. It is not well suited to
array based number crunching exercises though, unlike IDL, which is
optimised for this.

IDL is great. Mathematica is great. My only problem is with those who
attempt to rank software tools on the basis of a single test,
particularly when that test appears to have been devised to suit a
particular product. It is not particularly helpful for anyone.

Paul

Paul E Howland PhD MEng CEng MIEE Room BY209
Senior Scientist DERA (Malvern)
Land Systems Sector St Andrews Road
Defence Evaluation & Research Agency Malvern
tel. +44-(0)1684-895767 Worcestershire
fax. +44-(0)1684-896315 UK

Email PEHowland@dera.gov.uk
Web Site http://www.dera.gov.uk

Official Disclaimer:
The views expressed above are entirely those of the writer
amd do not represent the views, policy or understanding of
any other person or official body.
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Read color table in Win95 PV-WAVE?
Next Topic: Accessing other widgets.

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:27:34 PDT 2025

Total time taken to generate the page: 0.00459 seconds