search for: calc7

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

Did you mean: calc
2011 Feb 09
2
wrong length error
...Mixed(i*T1)} sum(calc5)} V=function(x){ T1=x[1] M1=x[2] y=T1*M1 calc6=T1*SUM(x)+0.001*RxMixed(y)+0.00463*FxMixed(y) return(calc6)} However, when I try to use the function U, there is an error message and I don't understand what's wrong with my code: U=function(x){ T1=x[1] M1=x[2] y=M1*T1 calc7=integrate(RxMixed,0,y) return(calc7$value)} > U(c(2,5)) Error in integrate(RxMixed, 0, y) : evaluation of function gave a result of wrong length I think that this might happen becouse my fucntion RxMixed is already an previous integration of the function fxMixed. Any help will be welcom...