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

Home » Public Forums » archive » Re: Passing more than an initial guess to a function used by NEWTON
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: Passing more than an initial guess to a function used by NEWTON [message #75347 is a reply to message #75327] Thu, 24 February 2011 13:29 Go to previous messageGo to previous message
fgg is currently offline  fgg
Messages: 67
Registered: April 2010
Member
Common blocks! Thanks for introducing me to it, Wayne. That will do it for now:

pro my_procedure
common share, c1
...
c1 = 3
x_guess = 2
result = newton(x_guess, 'my_function', itmax=100)
print, result
...
end

---------

function my_function, x
common share
return, x^2 + 5*x - c1
end
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: scripted object graphics question
Next Topic: Re: License manager troubles

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

Current Time: Sat Oct 11 15:07:59 PDT 2025

Total time taken to generate the page: 0.64192 seconds