X
PrevPrev Go to previous topic
NextNext Go to next topic
Last Post 28 Dec 2010 01:04 PM by  anon
Integration
 1 Replies
Sort:
You are not authorized to post a reply.
Author Messages

anon



New Member


Posts:
New Member


--
28 Dec 2010 01:04 PM
    Hello, I had a question about using QROMB function in IDL. I would appreciate it if you could help me on this matter. Here is what I want to do: I want to numerically integrate a function inside a procedure. The integration is inside a loop and some constants that are necessary for the function which I want to integrate, are constantly being updated inside the loop. Please let me know how I can do this using QROMB. Thanks, Sean

    Deleted User



    New Member


    Posts:
    New Member


    --
    19 Jan 2011 10:32 AM
    One way to do this would be to use a COMMON block within your function that you wish to integrate with QROMB. For example if you had this function: function cubic, x common share, a, b return, x^3 + (x - a)^2 + b end you could define this common block in your main program as well, and then when you update "a" and "b" in your loop, the change would take place in your "cubic" function as well. Check out the IDL Help docs on COMMON blocks and on the QROMB function for more information, there are some good examples there. -Josh ITTVIS
    You are not authorized to post a reply.