本程式利用牛頓迭代法計算函式F(X) = X^3 - 1 = 0 的根此函數共有三個根,分別為1 ... x * x ; } // 使用牛頓法求根template < class T > T find_root( T x1 ) { T x2 ...
www.math.ncu.edu.tw