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

Home » Public Forums » archive » Re: "ALOG2" ?
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: "ALOG2" ? [message #14860 is a reply to message #14856] Sat, 03 April 1999 00:00 Go to previous messageGo to previous message
davidf is currently offline  davidf
Messages: 2866
Registered: September 1996
Senior Member
Stein Vidar Hagfors Haugan (steinhh@ulrik.uio.no) writes:

> Nope, I don't have an IDL function, but it's not that
> difficult to write a DLM that interfaces to the C functions.

Now you are getting the idea, Stein Vidar. This is a MUCH
better solution than this wimpy solution by Martin Leuthi:

function alog2, x
return, alog(x)/alog(2.0)
end

MUCH more billable and difficult! Are you looking for
a job? I like your style. :-)

Cheers,

David

P.S. In case there is any doubt whatsoever in anyone's
mind, I am just kidding Stein Vidar. As anyone who has
written any kind of program at all knows, it is damn
difficult sometimes to see the simple solutions first.
My first attempt to solve this problem was along the
lines of Amara's, only much, much worse. :-(

Thanks to Martin and Med Bennett for putting us right.
And to Stein Vidar for giving us another of his excellent
examples of well-written DLMs. :-)

--
David Fanning, Ph.D.
Fanning Software Consulting
Phone: 970-221-0438 E-Mail: davidf@dfanning.com
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Toll-Free IDL Book Orders: 1-888-461-0155
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: idl versus pvwave
Next Topic: Re: Problems with JULDAY and CALDAT

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

Current Time: Sat Oct 11 00:02:54 PDT 2025

Total time taken to generate the page: 1.90050 seconds