回复 2楼 xbj_hyml
Dim x4, y4 As Single
t = -20
Pq = Pk(t)
x4 = 622 * Pq / (101325 - Pq)
y4 = t + x4 / 2000 * (2500 + 1.84 * t) - x4
If x4 <= 42 And y4 <= 65 Then
Picture1.Line (0, t)-(x4, y4), vbBlack
ElseIf x4 > 42 And y4 < 65 Then
x4 = 42
y4 = t + x4 / 2000 * (2500 + 1.84 * t) - x4
Picture1.Line (0, t)-(x4, y4), vbBlack
ElseIf y4 > 65 Then
y4 = 65
x4 = (y4 - t) * 2000 / (500 + 1.84 * t)
If x4 > 42 Then
x4 = 42
y4 = t + x4 / 2000 * (2500 + 1.84 * t) - x4
Picture1.Line (0, t)-(x4, y4), vbBlack
Else
Picture1.Line (0, t)-(x4, y4), vbBlack
End If
End If
这是我那一根线的代码,下一根就是把t=-20改成t=-19