作者loser113 (洨大魯蛇ㄍ)
看板R_Language
標題[問題] r 積分回傳數值值
時間Fri Sep 12 01:25:09 2014
> integrand <- function(x) {1/((x+1)*sqrt(x))}
> a=integrate(integrand, lower = 0, upper = Inf);a
3.141593 with absolute error < 2.7e-05
我只要a=3.141593 還需要多加甚麼
--
※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 140.113.128.201
※ 文章網址: http://webptt.com/m.aspx?n=bbs/R_Language/M.1410456311.A.ACF.html
1F:→ Wush978: a$value 09/12 06:48
2F:→ loser113: thanks 09/12 08:39