Professional Documents
Culture Documents
Variant)
If disc < 0 Then 'Polar form identify real and imaginary roots
m = 2 * Sqr(-p / 3)
o=3*q/p/m
theta = Application.WorksheetFunction.Acos(o) / 3
x1 = m * Cos(theta)
x2 = m * Cos(theta + (4 / 3) * 3.14159265358979)
x3 = m * Cos(theta + (2 / 3) * 3.14159265358979)
End If
End Sub
If x4 = 0 Then
zl = Application.WorksheetFunction.Max(x1, x2, x3) - alpha / 3
Else
zl = x4 - alpha / 3
End Function
If x4 = 0 Then
Else
zv = x4 - alpaha / 3
End If
End Function
End Function