Exponential Function without exp() function
2 次查看(过去 30 天)
显示 更早的评论
Background info:
The exponential function can be defined.
but i keep getting wrong values.
0 个评论
回答(1 个)
Roger Stafford
2015-4-11
编辑:Roger Stafford
2015-4-11
You have done two things incorrectly here, Karen. First, your required loop was to be unbounded and yet you placed a bound of fifty on it. It should be the limit of 0.001 alone that brings the loop to a halt. Second, you did not accumulate the required sum. Each y you obtain is merely that of a single term of the series. There should be an summation of all these terms you have computed which is not the same as just these individual terms themselves.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!