create a function that returns sum
古いコメントを表示
Does anybody know how to go about this:?
Construct a function that has an integer n as input. The function should return the sum
∑
ke (- n,-n+1,-n+2,...n-1,n}, k≠0
e^k* In |k|. k should go from -n to n but 0 should be skipped because
In (0) is undefined. Also construct a script that calls the function and determines how large n must be for the sum to be greater than 10000. The script must use a while loop.
2 件のコメント
Here are some links to help you get started on this:
Andreas Goser
2024 年 2 月 16 日
This appears to be home work. I'd say the community is happy to help with a specific obstacle you are facing. Give the doc links above a try.
回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!