Theta is the angle which is an input that changes depending on the problem. N is the number of magnets and is an input that changes depending on the problem.
I want to add up sin(theta)+sin(2*theta)+...sin((n-1)*theta)+sin(n*theta).
Now, I know how to do this by making a list that goes from 1 to n but I want this program to look professional (and I don't want you to have to change the length of the list or the formula if you have a different n value).
Is there a way to do this without making any tables or lists?
Thank you,
-Tony
Bookmarks