search for: lastcalc

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

Did you mean: lastcall
2011 Jan 20
0
Writing functions. please help
...(calc)} func3=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,0 ,t) return(calc)} func4=function(t){ weibull=function(t){ dist=t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5) return(dist)} calc=integrate(weibull,t ,100) return(calc)} lastcalc=(func1+func2)/(func3+func4) return(lastcalc)} appears the following: Error in func1 + func2 : non numeric operator to binary operator 2-How the function is "composed" by four integrations, two on the numerator and the other tow on the denominator, and how i was not being succesful in wr...