search for: integralresulttotest2

Displaying 1 result from an estimated 1 matches for "integralresulttotest2".

2005 Sep 16
4
Integrate functions with loops
...ng length In addition: Warning message: longer object length is not a multiple of shorter object length in: b^x ########## but when i write the functio out long-hand as follows: integrandtotest2 <- function(x) {t[1]^x+t[2]^x} the integrate function works perfectly....... ### > integralresulttotest2<-integrate(integrandtotest2, lower=0.1, upper=2, subdivisions=10000) > integralresulttotest2 1.642369 with absolute error < 1.8e-14 ### Unfortunatley my real life example has the vector a with length at least 100. Is the any way round these errors? Many thanks for answers to my first...