为什么 uniroot() 给出错误的结果?

时间:2021-01-14 20:17:23

标签: r

options(scipen=999)
fff=function(x)588 * x * 1000000 - 5000
>uniroot(fff, lower=0.0000000000001, upper=1, extendInt = "yes",maxiter = 1000000000)$root 
[1] 0.0000000000001


> fff(0.0000085)
[1] -2
> fff(0.0000086)
[1] 56.8

fff() 的正确值介于 0.00000850.0000086 之间,但为什么 uniroot 返回我 0.0000000000001 ??

0 个答案:

没有答案
相关问题