小编use*_*569的帖子

无法在指数衰减函数中输入"e"

我必须编写一个程序来模拟指数增长.我输入以下作为我的公式:

expDecay<-function(time,A=3,B=4,k=5){return(A*e^(-k*time)+B)}
Run Code Online (Sandbox Code Playgroud)

但是,R不断返回以下消息:

错误:找不到对象'e'

有没有办法解决这个问题?我错了吗?

r

2
推荐指数
1
解决办法
7448
查看次数

标签 统计

r ×1