Skip to content
Prev 246935 / 398513 Next

Odp: Integration in R

Hi

r-help-bounces at r-project.org napsal dne 10.01.2011 15:12:33:
your help
It is quite a long time I did school math but shouldn't be

myfunc<- function(x) {0.25*(9*x^4-6*x^2+1)}
                               ^^^^^
myfunc<- function(x) {0.25*(9*x^4-6*x^2+1)}
curve(myfunc,-1,1)
integrate(p2sq,-1,+1)
0.4 with absolute error < 4.4e-15
integrate(myfunc,-1,+1)
0.4 with absolute error < 4.4e-15

Regards
Petr
#Both
http://www.R-project.org/posting-guide.html