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

Home » Public Forums » archive » MATHSTAT_154: Dynamically Loadable Module is unavailable on this platform: IMSL
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: math [message #73687 is a reply to message #71340] Mon, 22 November 2010 04:04 Go to previous message
MC is currently offline  MC
Messages: 50
Registered: September 1996
Member
There are several routines, search the online help for "differential
equation"

Here's one from the help:

PRO LSODETEST

; Define the step size:
H = 0.5
; Define an initial X value:
X = 0.0
; Define initial Y values:
Y = [4.0, 6.0]
; Integrate over the interval (0, 0.5):
result = LSODE(Y, X, H, 'differential')

; Print the result:
PRINT, result
END
FUNCTION differential, X, Y
RETURN, [-0.5 * Y[0], 4.0 - 0.3 * Y[1] - 0.1 * Y[0]]
END

Note that function can have more parameters passed that can control
its behaviour, which may be what you are asking for in Q3. I can't
understand your 2nd and 4th Q's

Cheers MC

On Nov 22, 9:58 am, amin farhang <farhang.a...@gmail.com> wrote:
> dear readers,
> i have some questions about IDL
> 1. how can i solve differential equations in IDL? i know that the RK4
> function do it but it is very obscure, may you introduce a simple
> method to solve all differential equations?
> 2. what is the simplest way for taking the integrals directly
> (specially 1D integrals) without write a function?
> 3. How do I define a function that its parameters could be changed in
> every calling (for example in every step of FOR-DO loop, function
> return a new value)?
> 4. does functions could return a paramedical equations? if OK how?
> thank you so much and sorry for my many questions
> best regards,
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Re: How to create a .sav file the right way ?
Next Topic: Re: plot of implicit function

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

Current Time: Wed Oct 08 19:26:04 PDT 2025

Total time taken to generate the page: 0.00456 seconds