Re: more bugs in envi !!! [message #35719] |
Sun, 13 July 2003 00:09 |
R.Bauer
Messages: 1424 Registered: November 1998
|
Senior Member |
|
|
Dear Gaurav
I don't know envi, but what you describe looks like a type overflow.
What happens if b1 is of type double
regards
Reimar
Gaurav wrote:
> Hi folks!
> Sorry to trouble u again....but envi seems to be just going above my
> head...there is another problem that i am facing:
> Please go through the 2 functions:
>
> 1.function example,b1
> help,b1
> end
> 2.function example,b1,b2
> help,b1
> end
>
> Now could anyone tell me why these 2 codes are producing different
> final answers??? I just cant find any reason for it.
>
> One more problem :
>
> 'b1' is a positive array and 'avgb1' is a positive number but when i
> use the formula : result=b1*100/avgb1
> print, result
> , the answer that i get is a negative array.
>
> Whereas if i use the formula : result=b1/avgb1
> print, result * 100
> , then i get a positive array
>
>
> I hope to hear the answers to these questions soon. Thnxx
> Byee
> Gaurav
--
Forschungszentrum Juelich
email: R.Bauer@fz-juelich.de
http://www.fz-juelich.de/icg/icg-i/
============================================================ ======
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro. html
|
|
|