Last chance! 50% off unlimited learning
Sale ends in
findZeros(expr, ..., xlim=NULL, npts=1000 )
sin(x) ~ x
. All variables named in the expression must be assigned values via ...
Inf
is a legitimate value, but is interpretted in the numerical sense.xlim
into when looking for candidates for zeros. If Inf
is involved, the intervals are numerically spaced up to the largest finite floating point number.uniroot
.findZeros( sin(x) ~ x, xlim=c(-10,10) )
findZeros( A*sin(2*pi*t/P) ~ t, xlim=c(0,100), P=50, A=2)findZeros( dnorm(x,mean=0,sd=10) - 0.5*dnorm(0,mean=0,sd=10) ~ x, xlim=c(-Inf,Inf))
Run the code above in your browser using DataLab