你好,得到了龙贝格算法的近似值之后,直接跟np.exp(4)进行比较就行
s_true = np.exp(4) err = (s-s_true)/s_true print("error=%f"%(err))