search for: integrandtotest2

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

Did you mean: integrandtotest
2005 Sep 16
4
Integrate functions with loops
...dtotest3, lower = 0.1, upper = 2, subdivisions = 10000) : evaluation of function gave a result of wrong 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 h...