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

Home » Public Forums » archive » indefinite integration with IDL
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
indefinite integration with IDL [message #38221] Fri, 27 February 2004 17:36
marco.grossi is currently offline  marco.grossi
Messages: 1
Registered: February 2004
Junior Member
> I have a function of two variables f=f(E,y) and I want to calculate
the
> integral respect to y, where y ranges between 0. and a value which
is a >function of E, f(E).
> How can I calculate such an integral with IDL, since I want to plot
my result >as a function of E?


> That's what I have tried so far without any luck.
> Here I have defined a very simple function for a start:

FUNCTION delta, y, E
RETURN, y / ( 2. * E * (1 - y) )
END

pro integral
E=findgen(11) + 1.
ymin=0.0
ymax = 1. - 1./E
result=qromb('delta',ymin,ymax)

;plot,E,result

END

> when I run it, it gives an error saying that the function E has not
been >defined.

> Thanks

> Marco
[Message index]
 
Read Message
Previous Topic: Extracting strings from an array
Next Topic: Re: indefinite integration with IDL

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

Current Time: Sun Oct 12 05:36:49 PDT 2025

Total time taken to generate the page: 1.19987 seconds