慧(会)幸福 发表于 2013-6-4 11:22 
在此基础上,我想在 横轴的-0.25处标记a,在横轴的1.25处标记b,怎么办呢 多谢您了
h=function(b){
w=(1+b^2)/(1+(b-1)^2)
2*log(w)
}
x=seq(from=-5,to=5,by=0.01)
y=h(x)
plot(x,y,type='l')
rect(-0.25,1.76,1.25,-1.76,lty = 2)
axis(side = 1,at = c(-0.25,1.25))
text(-0.25,-2,labels = "a")
text(1.20,-2,labels = "b")