This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
(修正)牛顿拉夫逊迭代 求解非线性方程组 | |
""" | |
import numpy as np | |
import sympy as sp | |
class NewtonRaphsonSolver: | |
def __init__(self, p, x, f, tolerance=0.001): |