具体代码如下:
- TT <- c(0.5120,0.5990,0.6860,0.7300,0.8170,0.9040,0.9920,1.0790,1.1660,1.2530)
- C1_B <- function(T){integrate(function(tau)f(tau),lower=0.01*T,upper=0.99*T)$value}
- f <- function(tau) {integrate(function(tau1)sqrt(1/(tau-tau1)),lower=0.01*tau,upper=0.99*tau)$value}
- C <- matrix(rep(0,length(TT)*2),nrow=length(TT),ncol=2)
- for (j in 1:length(TT)){
- T=TT[j]
- C[j,] <- c(T,C1_B(T))
- }