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

Home » Public Forums » archive » Func define
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Func define [message #19948] Sun, 07 May 2000 00:00 Go to next message
Yu Zhang is currently offline  Yu Zhang
Messages: 1
Registered: May 2000
Junior Member
I happen to have a small problem when I tried to do some
integrations with IDL. For example, I want to use INT_2D or QSIMP to do
a calculation. But I found out that the "Func" defined in these
functions
only have limited parameters (equal to dimension of integral you want to
do).
Other coefficiences must be fixed.
What to do if I need more parameter in the defined function?
(e.g. I need y=a*x+b and want to change a, b value outside)
It seems strange that this shouldn't be difficult to consider,
or I just fail to catch up the spirit of IDL.
Thank you very much for your help.

Yu Zhang
Re: Func define [message #20059 is a reply to message #19948] Wed, 10 May 2000 00:00 Go to previous message
Kenneth P. Bowman is currently offline  Kenneth P. Bowman
Messages: 585
Registered: May 2000
Senior Member
In article <3919DF7D.B979F2C4@cmdl.noaa.gov>, Pavel Romashkin
<promashkin@cmdl.noaa.gov> wrote:

> Oh Ken, I can't possibly be the first one to say that using common
> blocks is a sin :-)

I'm doing my best to stomp out common blocks in my own code, but in
formulating my response I had to consider the experience level implied
by the question. ;-)

Ken
Re: Func define [message #20064 is a reply to message #19948] Wed, 10 May 2000 00:00 Go to previous message
promashkin is currently offline  promashkin
Messages: 169
Registered: December 1999
Senior Member
> A simple way to do this, although not the only way, is to include a
> common block in the function.

Oh Ken, I can't possibly be the first one to say that using common
blocks is a sin :-)
Cheers,
Pavel
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: PS color from Insight
Next Topic: Sharing an info structure

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

Current Time: Wed Oct 08 15:06:10 PDT 2025

Total time taken to generate the page: 0.00399 seconds