我必须编写一个程序来模拟指数增长.我输入以下作为我的公式:
expDecay<-function(time,A=3,B=4,k=5){return(A*e^(-k*time)+B)}
但是,R不断返回以下消息:
错误:找不到对象'e'
有没有办法解决这个问题?我错了吗?
r
r ×1