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

Home » Public Forums » archive » Re: Simple? problem
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: Simple? problem [message #30072] Tue, 09 April 2002 11:26 Go to previous message
James Kuyper is currently offline  James Kuyper
Messages: 425
Registered: March 2000
Senior Member
James Kuyper wrote:

> Ivan Valtchanov wrote:
...

>> x = randomu(s,1000)
>> y = randomu(s,1000)
...

>> dx = x-xgi
...

>> dy = y-ygi
>> dr2 = dx*dx+dy*dy
>> arg = -dr2/w2 > (-20.0) ; to avoid overflows
...

>> image[i,j] = total(exp(arg))
>
>
> 'arg' is a scalar, so exp(arg) is also a scalar. Therefore, the total()
> doesn't do anything useful. You could just as well say exp(arg).

My apologies, I didn't read your code carefully enough. For some reason
I was thinking that x and y were scalars.

Forget the rest of my message; I'll need to re-think it, and I'm a
little too busy to do that right now. However, I'm pretty sure something
a little more complex than what I wrote, but on the same lines, is feasible.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: Does IDL have a #include functionality
Next Topic: basic soubt with fltarr

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

Current Time: Sat Oct 11 12:52:56 PDT 2025

Total time taken to generate the page: 2.00622 seconds