Displaying 1 result from an estimated 1 matches for "intweibull2".
Did you mean:
inttweibull2
2011 Jan 20
0
Writing functions. please help
...the shape, the scale, Ca, Cb as given. The
code is the following:
2.1: for the first part in the numerator
> intWeibull1=function(t){
+ integr=function(t) 1000*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5)
+ calc=integrate(integr, 0, t)
+ return(calc)}
2.2: for the second part in the numerator
> intWeibull2=function(t){
+ integr=function(t) 100*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5)
+ calc=integrate(integr,t,100)
+ return(calc)}
2.3: for the third part, the first in the denominator
> intTweibull=function(t){
+ integr=function(t) t*(2.5/20)*(t/20)^(2.5-1)*exp(-(t/20)^2.5)
+ calc=integrate(integr,...