📅  最后修改于: 2022-03-11 15:03:49.843000             🧑  作者: Mango
function solve(a,b,c){
var result = (((-1*b) + Math.sqrt(Math.pow(b,2)) - (4*a*c))/(2*a));
var result2 = (((-1*b) - Math.sqrt(Math.pow(b,2)) - (4*a*c))/(2*a));
return result + "
" + result2;
}
document.write( solve(1,1,-1) );