python實現解一元二次方程

python實現一元二次方程的求解python 要考慮的點:code 一、二元方程組a=0的狀況utf-8 二、判別式是否大於0input 三、當有複數解時如何表示io 程序塊:class # -*- coding: utf-8 -*- import math def root_of_square(a,b,c): '''solve the quadratic equation'''
相關文章
相關標籤/搜索