saminny wrote:
>
> Is there a non animation version of newton.method
> (http://bm2.genes.nig.ac.jp/RGM2/R_current/library/animation/man/newton.method.html)
> for finding roots of a function? It should find the roots without showing
> it on the GUI.
>
Have a look at package nleqslv
/Berend
--
Is there a non animation version of newton.method
(http://bm2.genes.nig.ac.jp/RGM2/R_current/library/animation/man/newton.method.html)
for finding roots of a function? It should find the roots without showing it
on the GUI.
thanks,
Sam
--
View this message in context:
http://r.789695.n4.nabble
your problem is because f is a vector of the same length as runi
as a result, the thing you're trying to assign to z[i+1] is also a vector of
that length
--
View this message in context:
http://n4.nabble.com/Newton-method-tp1311057p1311228.html
Sent from the R help mailing list archive at Nabbl
Hi r-users,
I hope somebody can help me with this code.
I would like to solve for z values using newton iteration method. I 'm not
sure which part of the code is wrong since I'm not very good at programming but
would like to learn. There seem to be some output but what I expected is a
vecto
Roslina Zakaria wrote:
>
> newton.inputsingle <- function(pars,n)
> { runi <- runif(974, min=0, max=1)
> lendt <- length(runi)
> ## Parameter to estimate
> z <- vector(length=lendt, mode= "numeric")
> z <- pars[1]
>
> ## Constant value
>
> alp <- 2.0165 ; rho
Hi r-users,
I would like to solve for z values using newton iteration method. I 'm not
sure which part of the code is wrong since I'm not very good at programming but
would like to learn. There seem to be some output but what I expected is a
vector of z values. Thank you so much for any he
Roslina Zakaria wrote:
>
> Hi Ravi,
> I did ask you some question regarding newton method sometime ago.. Now I
> have fixed the problem and I also wrote 2 looping code (ff1 and ff2) to
> evaluate the modified Bessel function of the first kind and call them in
> the newton code. But I dont't un
Hi Ravi,
I did ask you some question regarding newton method sometime ago.. Now I have
fixed the problem and I also wrote 2 looping code (ff1 and ff2) to evaluate the
modified Bessel function of the first kind and call them in the newton code.
But I dont't understand why it gives the error mes
On 8/04/2009, at 2:31 PM, Roslina Zakaria wrote:
Hi Rolf,
I would like to extend the problem that I asked you before
regarding the newton method using 4 functions with 4 parameters.
My functions involve the modified bessel function of the first kind
which I can type them without any pr
pm
Subject: [R] Newton method again
To: Rolf Turner , R help forum
> Hi Rolf,
>
> I would like to extend the problem that I asked you before regarding
> the newton method using 4 functions with 4 parameters. My functions
> involve the modified bessel function of the first kind wh
Hi Rolf,
I would like to extend the problem that I asked you before regarding the newton
method using 4 functions with 4 parameters. My functions involve the modified
bessel function of the first kind which I can type them without any problem.
The big problem is the Jacobian matrix.
I use Mapl
I'm not sure what you meant by "a topic on newton's method"
(algorithm? demo?), but the demonstration in the package 'animation'
might help:
install.packages('animation')
par(pch = 20)
ani.options(nmax = 50)
newton.method(function(x) 5 * x^3 - 7 * x^2 - 40 *
x + 100, 7.15, c(-6.2, 7.1))
Regar
vy
> Sent: Monday, March 23, 2009 4:35 AM
> To: Roslina Zakaria
> Cc: r-help@r-project.org
> Subject: Re: [R] newton method
>
> Take a look at the functionsnlm(), optim() in the stats package and
> maxNR() in the maxLik package.
>
> On Mar 22, 2009, at 11:15 PM, Roslin
Take a look at the functionsnlm(), optim() in the stats package and
maxNR() in the maxLik package.
On Mar 22, 2009, at 11:15 PM, Roslina Zakaria wrote:
> Does R has a topic on newton's method?
_
Professor Michael Kubovy
University of Virginia
Department of Psycholo
Hi R-users,
Does R has a topic on newton's method?
Thank you for the info.
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide comme
On Sat, 27 Oct 2007, kevinchang wrote:
>
> Thanks Chales for pointing out the errors.
> I fixed an errorr and R accepted my "rootFinding" code.
> But the problem right now is that my code will work only if the intialX
> value is close enough to the solution.
> Otherwise, R says there is missing tr
Thanks Chales for pointing out the errors.
I fixed an errorr and R accepted my "rootFinding" code.
But the problem right now is that my code will work only if the intialX
value is close enough to the solution.
Otherwise, R says there is missing true/false value in the codition test of
while loop.
On Fri, 26 Oct 2007, Charles C. Berry wrote:
> On Fri, 26 Oct 2007, kevinchang wrote:
>
>>
>> Hi all,
>>
>> I am coding for finding the root of f(x)= phi(x) -alpha where phi(x) is the
>> cumulative density function and alpha is constant . The problem right now is
>> I can't get the "initialX" rep
On Fri, 26 Oct 2007, kevinchang wrote:
>
> Hi all,
>
> I am coding for finding the root of f(x)= phi(x) -alpha where phi(x) is the
> cumulative density function and alpha is constant . The problem right now is
> I can't get the "initialX" representing the root out of the while loop when
> ending
Hi all,
I am coding for finding the root of f(x)= phi(x) -alpha where phi(x) is the
cumulative density function and alpha is constant . The problem right now is
I can't get the "initialX" representing the root out of the while loop when
ending , it seems to me it disappear when the loop ends acc
20 matches
Mail list logo