Home »
Public Forums »
archive »
overriding system functions.
overriding system functions. [message #43838] |
Thu, 28 April 2005 06:52 |
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
|
|
|
Current Time: Fri Oct 10 02:00:48 PDT 2025
Total time taken to generate the page: 1.27771 seconds