全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 R语言论坛
1628 1
2015-09-18
Hello!

I want to use R to calculate the variable x which is in some eqation, give an example:

exp(x)+3*x+1=0,

how to solve equation to get the exact x in R?

Thank you very much!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2015-9-21 08:59:49
f <- function(x) exp(x)+3*x+1
uniroot(f, interval=c(-1,1), tol=1e-10)
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群