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

Home » Public Forums » archive » Problem with DERIV
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
Problem with DERIV [message #7076] Fri, 20 September 1996 00:00
hfr is currently offline  hfr
Messages: 1
Registered: September 1996
Junior Member
I found a problem with the DERIV function. Try for instance

a=findgen(100)
b=200.*exp(-(a-50.)^2)
plot,b
c=deriv(b)
plot,c

Everything is o.k. But now change b into a byte-array

b=byte(200.*exp(-(a-50.)^2))
c=deriv(b)
plot,c

This plot looks completely different because there are no negative values,
even if the command

help,c

returns

C FLOAT = ARRAY(100)


Harald U. Frey
HFR@MPE-GARCHING.MPG.DE
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: [Q] Canonical correlation analysis
Next Topic: Re: IDL with C/C++

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

Current Time: Wed Oct 08 16:01:04 PDT 2025

Total time taken to generate the page: 0.00605 seconds