search for: zeroin

Displaying 20 results from an estimated 36 matches for "zeroin".

Did you mean: zeroing
2018 Jul 30
2
trace in uniroot() ?
..., ## numerically, f(-|M|) becomes zero : u3 <- uniroot(exp, c(0,2), extendInt="yes", trace=TRUE) ) When extendInt is set, then there is some information output, but trace alone produces nothing. I looked at the source code -- it is in R-3.5.1/src/library/stats/R/nlm.R and calls zeroin2 code from R-3.5.1/src/library/stats/src/optimize.c as far as I can determing. My code inspection suggests trace does not show the iterations of the rootfinding, and only has effect when the search interval is allowed to be extended. It does not appear that there is any mechanism to ask the zeroin2...
2007 Dec 14
1
windows rtools missing gfortran.exe?
...?) Rtools.exe or I am doing something wrong. Thanks to hints at Duncan's site, I worked around the error by adding "GCC4_SUFF=-sjlj" in MkRules (below the == end of user-customizable parts == line). gcc -std=gnu99 -I../include -DHAVE_CONFIG_H -DR_DLL_BUILD -O3 -Wall -pedantic -c zeroin.c -o zeroin.o gfortran -O3 -c ch2inv.f -o ch2inv.o make[4]: gfortran: Command not found make[4]: *** [ch2inv.o] Error 127 make[3]: *** [rlibs] Error 2 make[2]: *** [../../bin/R.dll] Error 2 make[1]: *** [rbuild] Error 2 make: *** [all] Error 2 -- ---------------------------------- Hiroyuki Kawak...
2018 Aug 13
1
trace in uniroot() ?
...uniroot(exp, c(0,2), extendInt="yes", trace=TRUE) > ) > > When extendInt is set, then there is some information output, but trace alone > produces nothing. > > I looked at the source code -- it is in R-3.5.1/src/library/stats/R/nlm.R and > calls zeroin2 code from R-3.5.1/src/library/stats/src/optimize.c as far as I > can determing. My code inspection suggests trace does not show the iterations > of the rootfinding, and only has effect when the search interval is allowed > to be extended. It does not appear that there is any m...
2018 Aug 13
0
trace in uniroot() ?
...u3 <- uniroot(exp, c(0,2), extendInt="yes", trace=TRUE) > ) > > When extendInt is set, then there is some information output, but trace > alone > produces nothing. > > I looked at the source code -- it is in R-3.5.1/src/library/stats/R/nlm.R > and > calls zeroin2 code from R-3.5.1/src/library/stats/src/optimize.c as far > as I > can determing. My code inspection suggests trace does not show the > iterations > of the rootfinding, and only has effect when the search interval is allowed > to be extended. It does not appear that there is any mec...
2012 Nov 08
3
vectorized uni-root?
dear R experts--- I have (many) unidimensional root problems. think loc.of.root <- uniroot( f= function(x,a) log( exp(a) + a) + a, c(.,9e10), a=rnorm(1) ) $root (for some coefficients a, there won't be a solution; for others, it may exceed the domain. implied volatilities in various Black-Scholes formulas and variant formulas are like this, too.) except I don't need 1 root, but a
2003 Nov 20
2
reading data rows
...;-p$sigmaA),as.numeric(b<-p$b),as.numeric(r<-p$r)) I intend to use the variables stored in the the data frame for my caculations. but each time I try I get the followingerror message. Error in uniroot(function(n) eval(p.body) - power, c(2, 1e+07)) : invalid function value in 'zeroin' In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (f(lower, ...) * f(upper, ...) >= 0) stop("f() values at end points not of opposite sign") ...which I do not get when I use just one row. Thanks sylvie ===== =========...
2000 Apr 24
1
compiling R-1.0.1 under Solaris
...e/ppp/paradis/R/R-1.0.1/src/appl' cr libappl.a Rsock.o S_compat.o approx.o bakslv.o binning.o chisqsim.o chull.o c poly.o cumsum.o distance.o fft.o fmin.o fortran.o lbfgsb.o loglin.o lowess.o mac har.o massdist.o pretty.o pythag.o rowsum.o sock.o splines.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpo fa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o e igen.o lminfl.o blas.o make[3]: cr: Command not found make[3]: *** [libappl.a] Error 127 make[3]: Leaving directory `/home/ppp/paradis/R/R-1.0.1/src/appl' make[...
1999 Mar 23
0
R binary for Solaris 5.6 (sparc) available?
...a(uncmin.o): In function `lnsrch_': uncmin.o(.text+0x8930): undefined reference to `__d_sign' uncmin.o(.text+0x89c8): undefined reference to `__d_sign' ../appl/libappl.a(uncmin.o): In function `optdrv_': uncmin.o(.text+0x9fac): undefined reference to `__pow_di' ../appl/libappl.a(zeroin.o): In function `zeroin_': zeroin.o(.text+0x8e8): undefined reference to `__d_sign' *** Error code 1 make: Fatal error: Command failed for target `../../bin/R.binary' Current working directory /home/lcvm1/roehrl/R/src/main *** Error code 1 make: Fatal error: Command failed for target `a...
2001 Jan 25
1
problems compiling R under digital unix 4.0d (PR#826)
...ee -g -O2 -c lminfl.f -o lminfl.o ar cr libappl.a Rsock.o approx.o bakslv.o binning.o chisqsim.o chull.o cpoly.o cumsum.o distance.o fft.o fmin.o fortran.o lbfgsb.o loglin.o lowess.o machar.o maxcol.o massdist.o pretty.o rowsum.o sock.o splines.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o eigen.o lminfl.o ranlib libappl.a #make: No such file or directory *** Exit 1 Stop. *** Exit 1 Stop. *** Exit 1 Stop. fenchel:/net/prod/appl/R/R-1.2.1/> The s...
1999 Apr 23
1
[S] uniroot -- doesn't work recursively
Dear Prof Azzalini, You have an interesting example of recursive use of uniroot(). [re-cited at the end] However, note that R currently has the same problem as S-plus: Uniroot() doesn't work reliably, recursively. When you found it to be better, you were just lucky. The relevant file in R's source, src/main/optimize.c says /* WARNING : As things stand, these routines should
2007 Apr 20
2
Using power.t.test over a range of conditions
..., but got the associated error message. ----------------- > power.t.test(delta=seq(500,2000,100), sd=1000, sig.level=0.05, power=0.8, + type='two.sample', alt='two.sided') Error in uniroot(function(n) eval(p.body) - power, c(2, 1e+07)) : invalid function value in 'zeroin' In addition: Warning message: the condition has length > 1 and only the first element will be used in: if (f(lower, ...) * f(upper, ...) >= 0) stop("f() values at end points not of opposite sign") > ----------------- >From the error message I suspected that the functi...
2000 Apr 26
2
Cross compiling a package for Windows on Linux
...RINT.bat ../../../bin echo done > fixbin cp -p etc/Rconsole etc/Rdevga etc/Rprofile etc/rgb.txt ../../../etc echo done > fixetc ... (many lines deleted) i386-mingw32-gcc -isystem /packages/R-X/i386-mingw32/include -O2 -Wall -pedantic -I../include -I../include/R_ext -DHAVE_CONFIG_H -c zeroin.c -o zeroin.o i386-mingw32-g77 -O2 -Wall -pedantic -c blas.f -o blas.o make[1]: i386-mingw32-g77: Command not found make[1]: *** [blas.o] Error 127 make[1]: Leaving directory `/usr/src/r-release/src/appl' make: *** [rlibs] Error 2 $ make libR.a i386-mingw32-gcc -isystem /packages/R-X/i3...
2005 Mar 29
1
final stages of installing R - please help?
...ake' output to the screen: rm -f libappl.a false cr libappl.a approx.o bakslv.o bandwidths.o binning.o chull.o cpoly.o cumsum.o fft.o fmin.o integrate.o interv.o lbfgsb.o loglin.o lowess.o machar.o maxcol.o massdist.o pretty.o rcont.o rowsum.o splines.o stem.o strsignif.o tabulate.o uncmin.o zeroin.o ch2inv.o chol.o dchdc.o dpbfa.o dpbsl.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrco.o dtrsl.o eigen.o lminfl.o blas.o zgemm.o make[3]: *** [libappl.a] Error 1 make[3]: Leaving directory `/home/gruen/Applications/R-2.0.1/src/appl' make[2]: *** [R...
2015 Oct 24
0
Building R for AIX in 32-bit mode - as preparation for building in 64-bit mode (changed subject!) - INFO/FEEDBACK - do not read as a bug report!
...lcen.o distance.o hclust-utils.o nls.o rWishart.o HoltWinters.o PPsum.o arima.o burg.o filter.o mAR.o pacf.o starma.o port.o fa mily.o sbart.o approx.o loglin.o lowess.o massdist.o splines.o lm.o complete_cases.o cov.o deriv.o fft.o fourier.o model.o optim .o optimize.o integrate.o random.o distn.o zeroin.o rcont.o influence.o bsplvd.o bvalue.o bvalus.o loessf.o ppr.o qsbart.o sgram .o sinerp.o sslvrg.o stxwx.o hclust.o kmns.o eureka.o stl.o portsrc.o lminfl.o -fopenmp -L../../../../lib -lRlapack -lgfortran - lm /opt/lib/gcc/powerpc-ibm-aix5.3.0.0/4.7.4/libgcc.a -lg -lm /opt/lib/libintl.a /opt/lib/l...
2002 Jan 22
1
compile problem with bessel_i.c on IRIX64 flexor 6.5 10100655 IP35 (uname -a) (PR#1275)
...m machar.c making maxcol.d from maxcol.c making massdist.d from massdist.c making pretty.d from pretty.c making rowsum.d from rowsum.c making splines.d from splines.c making stem.d from stem.c making strsignif.d from strsignif.c making tabulate.d from tabulate.c making uncmin.d from uncmin.c making zeroin.d from zeroin.c gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c approx.c -o approx.o gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c bakslv.c -o bakslv.o gcc -I. -I../../src/include -I../../src/include -DHAVE_CONFIG_H -g -O2 -c bandwid...
2015 Oct 18
2
Building R for AIX in 32-bit mode - as preparation for building in 64-bit mode (changed subject!) - INFO/FEEDBACK - do not read as a bug report!
On 2015-10-15 15:02, Prof Brian Ripley wrote: > On 15/10/2015 13:32, Michael Felt wrote: >> Hi. >> >> Just wanted to let you know I am getting close to packaging R for AIX in rephrase - would like to be active in keeping R binaries current for AIX. My interest in not in R per se (rather a colleague who has a project that uses R, so I hope to assist him, and others like him).
2000 Oct 31
1
conflicting types for `Rf_stirlerr
...from maxcol.c making massdist.d from massdist.c making pretty.d from pretty.c making rowsum.d from rowsum.c making sock.d from sock.c making splines.d from splines.c making stem.d from stem.c making strsignif.d from strsignif.c making tabulate.d from tabulate.c making uncmin.d from uncmin.c making zeroin.d from zeroin.c make[3]: Leaving directory `/home/mfa5/gilp/R-versions/R-devel/src/appl' make[3]: Entering directory `/home/mfa5/gilp/R-versions/R-devel/src/appl' gcc -I. -I../../src/include -I../../src/include -I/usr/local/include -DHAVE_CONFIG_H -g -O2 -c Rsock.c -o Rsock.o gcc -I. -I.....
1998 Sep 11
1
R-beta: cannot make R
...nt: lltslv: lnsrch: mvmltl: mvmlts: mvmltu: optchk: optdrv: optif0: optif9: optstp: qraux1: qraux2: qrupdt: sclmul: secfac: secunf: sndofd: tregup: f77 -c zeroin.f -o zeroin.o zeroin.f: zeroin: root1d: ar cr ../lib/libappl.a approx.o bakslv.o binning.o blas.o ch2inv.o chol.o cpoly.o cumsum.o distance.o dpoco.o dpodi.o dpofa.o dposl.o dqrdc.o dqrdc2.o dqrls.o dqrsl.o dqrutl.o dsvdc.o dtrsl.o eigen.o fortran.o fft.o fmin...
2011 Apr 02
1
uniroot speed and vectorization?
curiosity---given that vector operations are so much faster than scalar operations, would it make sense to make uniroot vectorized? if I read the uniroot docs correctly, uniroot() calls an external C routine which seems to be a scalar function. that must be slow. I am thinking a vectorized version would be useful for an example such as of <- function(x,a) ( log(x)+x+a ) uniroot( of, c(
2006 Apr 05
0
uniroot warning (lack of) (PR#8750)
...age for uniroot indicates If the algorithm does not converge in 'maxiter' steps, a warning is printed and the current approximation is returned. I have not been able to get a warning message even when I think I should get one (see code below). Perhaps the bug is in the .Internal(zeroin) or how the warning condition is detected (val[2] < 0) Perhaps (val[3]>tol) would work? Thanks, Chris # define a function with a root ff <- function(x) (x-pi)^3 # fail on a warning options(warn = 2) # find it uniroot(ff, c(-10,10)) # start to find it but maxiter is reached (with no w...