Answer

问题及解答

[Bug] 求解一元二次方程

Posted by haifeng on 2023-04-22 10:11:25 last update 2023-04-25 20:57:48 | Edit | Answers (0)

版本 v0.551

>> solve(x^2+1==0)

这是一个一元二次方程.

  x^2+1 == 0


solution>
        x1 = 2.00000000*i/2-/(2)
        x2 = -2.00000000*i/2-/(2)

 

------------------------

>> :mode fraction
Switch into fraction calculating mode.
e.g., 1/2+1/3 will return 5/6

>> solve(x^2+1==0)

这是一个一元二次方程.

  x^2+1 == 0

  Delta=b^2-4ac=-4
  sqrt(Delta)=2*i

solution>
        x1 = (+2*i)/2
        x2 = (-2*i)/2


------------------------