• 非常棒!不过,在主算法中,不需要 p 这个变量,在第 32 行直接用 math.E 即可:

    输出("n=",s[i],"时,f(1) 的逼近值为:",pow,";误差为:",math.abs(math.E-pow))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment