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

Home » Public Forums » archive » QSIMP function
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: QSIMP function [message #85828 is a reply to message #85827] Thu, 12 September 2013 07:56 Go to previous messageGo to previous message
wlandsman is currently offline  wlandsman
Messages: 743
Registered: June 2000
Senior Member
You need to distinguish between 2 cases:

1. You know the function f(x) so that you can it evaluate it at any x. This is the type of problem that QSIMP is meant for. ( I prefer to use Craig Markwardt's QPINT1d http://cow.physics.wisc.edu/~craigm/idl/down/qpint1d.pro )

2. You have tabulated X,Y values but no functional form. Here you can do summation of trapezoids (as in
http://idlastro.gsfc.nasa.gov/ftp/pro/math/tsum.pro ). But if there is any continuity to your function at all, then I would try using INT_TABULATED .

--Wayne

On Thursday, September 12, 2013 9:31:49 AM UTC-4, fd_...@mail.com wrote:
> Instead of using the QSIMP function can I write the code as a summation and use also the Simpson's rule?
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Widget programing - Please help!
Next Topic: The IDL library for Shuffled Complex Evolution (SCEUA)

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

Current Time: Sat Oct 11 06:04:00 PDT 2025

Total time taken to generate the page: 0.72357 seconds