search for: fxx1

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

Did you mean: fxx
2011 Feb 09
2
wrong length error
Hi, all I'm trying to solve an optimization problem with two variables, in wich Iuse the following functions(they all are working perfectly): fxx1=function(x){ calc=((2.5/3)*((x/3)^(2.5-1))*exp(-(x/3)^2.5)) return(calc)} fxx2=function(x){ calc1=((5.3/19.3)*((x/19.3)^(5.3-1))*exp(-(x/19.3)^5.3)) return(calc1)} fxMixed=function(x){ calc2=(0.12*fxx1(x)+((1-0.12)*fxx2(x))) return(calc2)} FxMixed=function(x){ calc3=integrate(fxMixed,0,x) retur...