似乎無法使控制檯正確打印出複雜的根。二次方複數根求解器
If quad4ac < 0 Then
Dim quad4acComplex As Long = quad4ac * -1
Dim quadiComplex As Long = -1
Dim quadrComplex As Long
Console.WriteLine(vbNewLine & "Your Roots Are Complexed!" & vbNewLine)
quadrComplex = (-quadCoB/(2 * quadCoA) & "+" & (quad4ac * -1)^0.5/(2 * quadCoA))
Console.WriteLine(quadrComplex)
似乎導致控制檯崩潰。