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

Home » Public Forums » archive » overriding system functions.
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
overriding system functions. [message #43838] Thu, 28 April 2005 06:52
jlamm2223443 is currently offline  jlamm2223443
Messages: 1
Registered: April 2005
Junior Member
I teach IDL for a small class here and me and my students have trouble
with functions such as max and min. Like max expects an arry
but if I say max(1,2) it runs and on some lists it runs with the
wrong results. Fair enough I called it wrong but what I would love
it to have my own preloaded max function that checks if the input
is indeed an array and then if it is call the max function or otherwise
post an error message and bomb. Also, we use -9999 for missing data
but sin(-9999) turn it into a reasonable value. I would love my own
sin that first check if in the range -20 to 20 radians is the input
since if not then probably an error. Any suggestions how I do that?

jlamm2223443@yahoo.com
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Basic Math: I _hope_ this is a stupid question
Next Topic: More questions on using Randall Frank's extproc_define()

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

Current Time: Fri Oct 10 02:00:48 PDT 2025

Total time taken to generate the page: 1.27771 seconds