帮助检查exp(x)的代码 [英] Help checking the code for exp(x)

查看:58
本文介绍了帮助检查exp(x)的代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

。使用其系列形式计算exp(x)

-



我尝试过:



尝试

解决方案

Quote:

exp(-6)和1 / exp(6)的值也相同

嗯...是的?

exp(x)是e x ,因为x -y 的含义与1 / x y 相同,那么这正是我所期待的......



对于Nan问题,我建议您熟悉调试器: python debugger - Google Search [ ^ ] - 它会帮助你自己找到问题!

. compute exp(x) using its series form
-

What I have tried:

trying

解决方案

Quote:

also the values for exp(-6) and 1/exp(6) comes out to be same

Um...yes?
exp(x) is ex and since x-y means the same as 1/xy by definition then that is exactly what I would expect...

For the Nan problem, I'd suggest you get familiar with your debugger: python debugger - Google Search[^] - it will help you find the problem yourself!


这篇关于帮助检查exp(x)的代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆