x(1)>xw,是会执行到elseif
但如果x(1.1)
For n = 1 To 100 Step 0.1
X(n) = Y(n) / (Y(n) + a * (1 - Y(n)))
If X(n) >= Xw And X(n) >= Xd Then
Y(n + 0.1) = X(n) * R / (R + 1) + Xd / (R + 1)
Elseif X(n) >= Xw And X(n) < Xd Then
Y(n + 0.1) = (X(n) - k) * (l - Xw) / (k - Xw) + l
End If
Next n