Displaying 7 results from an estimated 7 matches for "fsolv".
Did you mean:
solv
2003 Sep 29
2
Solving nonlinear system equation
Hi all,
I would like to ask that is there any function in R which can solve
nonlinear system equations with several variables. Thats mean some
functions similar to the 'fsolve' or 'fzero' in matlab.
Thanks you
Jerry
_________________________________________________________________
Get 10Mb extra storage for MSN Hotmail. Subscribe Now!
2005 May 01
3
Roots of quadratic system.
...h I need to find the roots for. Is there a package and/or function which
will find the roots for a quadratic system? Note that I am not opimizing, but
rather solving the first order conditions which come from a Hamiltonian. I am
basically looking for something in R that will do the same thing as fsolve in
Matlab.
Thanks,
John.
==============================================
Dr. John Janmaat
Department of Economics
Acadia University
Tel: 902-585-1461
2005 Jun 08
2
Converting code from MATLAB to R
Hi,
I'm having trouble converting code from MATLAB to R; I want to find the
equivalence to MATLAB's function 'fsolve'. I've tried 'nlm', on the
squared argument, in R but i did not get the same results.
Thankful if helped.
Best regards,
Martin Englund
------------------------------------------------------------------------------
This e-mail and any attachment may be confidential and may also...
2008 Jul 19
2
How to solve systems of nonlinear equations in R?
Hey,
I was wondering if there existed a R function similar to 'fsolve' or
'fzero' Matlab functions?
Thanks!
Francois Aucoin
[[alternative HTML version deleted]]
2007 Sep 24
1
Root finding problem
...fine like this:
tuki <- function(u, x, a, lambda){
if((lambda%%1>0) & u<0) {u<-(u+0i)}
f <- Re(x-(a*(u)^lambda-(1-(u))^lambda)/lambda)
f
}
What I want to do is to find the root, but without specifying the
interval within which to search for it. I can do it easily in MATLAB
with fsolve() or fzero() functions.
I compared results of running root-finding in MATLAB and R:
1) I found (by hand) a suitable interval of u-values for a=5,
lambda=0.5 and ran uniroot for x from 1 to 5:
ex.: uniroot(tuki, c(-1,1), x=1, a=5, lambda=0.5)
The results are the same as I get in MATLAB.
2) nlm...
2011 Apr 14
1
Using GSL Routines
...My question is should i use the C - GSL routines or the Python ones in
NumPy? My major concern is the portability of the code i write: really dont
want users to have to install a bunch of software just to use my package.
(Im looking at Windows here)
Alternatively, should i just hack out the code (fsolve) and put it in my
package?
Thanks for the advice,
Mohit Dayal
Applied Statistics & Computing Lab
ISB
[[alternative HTML version deleted]]
2012 Oct 22
1
Matlab code to R code
...rri <- ((t1+t2)/i*log(i))-cxn
rr <- rri > tol
}
round(rr,4)
}
rr1 <- rr(0.5,0.0242) ; rr1
Matlab code:
function F = cxncnr(r)
n = 4;
% terms
t1 = (1+(n-1)*r)*log((1+(n-1)*r));
t2 = (n-1)*(1-r)*log(1-r);
%f = term - cxn
f = (t1+t2)/(n*log(n)) - 0.05011007
F = [f];
% r0 = [0.5] ; r = fsolve(@cxncnr,r0)
Thank you so much for any help given.
[[alternative HTML version deleted]]