Summation series on matlab
1 次查看(过去 30 天)
显示 更早的评论
How would I implement this equation in function using matlab
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/150447/image.png)
2 个评论
James Tursa
2015-5-22
编辑:James Tursa
2015-5-22
Why is there a "matlab coder" tag on this post? Are you trying to do this for an embedded system for some reason?
If it is not a coder question, and you don't want to use the inbuild pi() function, then what specifically are you trying to do? Code up partial sums until some tolerance is reached? Or what? What have you done so far?
Walter Roberson
2015-5-22
You marked this with the tag "matlab coder". Is this something you need to be able to generate C code for? Or is this something you can use the symbolic toolkit for?
回答(1 个)
ammar ansari
2015-5-22
3 个评论
Image Analyst
2015-5-23
I got rid of the useless matlab tag and added "infinite series" for you. By the way, you should just post this as an edit or comment to your original post rather than as an official "Answer" to your original post, which it's clearly not.
Also, is this homework? Looks like it. If it is, guidelines say that you mark it as homework otherwise someone may give you the complete answer and you run into ethical problems.
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!