Currently, I am trying to plot out the below equation using Mathematica.
$$Z(\rho, \phi) = 50 +\frac{200}{\pi} \sum_{odd \; m}^\infty \bigg(\frac{\rho}{a} \bigg)^m \frac{\sin (m\phi) }{m}$$
Or, if one wants, I could also rewrite the above equation as the one shown below.
$$Z(\rho, \phi) = 50 +\frac{200}{\pi} \sum_{m=0}^\infty \bigg(\frac{\rho}{a} \bigg)^{2m+1} \frac{\sin ((2m+1)\phi) }{2m+1}$$
Note that the $a$ value in the equations above stands for the radius (i.e. $\rho$) specific to my given circle.
I have attempted to write the below Mathematica code to plot out the distribution shown in the equation but to no avail.
nmax=40;
f[n_] := 50 + 200/Pi +
Sum[ (Rho/a)^(2n+1) Sin[(2n+1)Phi]/(2n+1), {n, 0, nmax}];
Plot[{f[nTerms, a]}, {a, 0, 2}]
Note that I made the minor substitution of $m$ to $n$ for my above code. That aside, I am quite certain that I did the Plot
section very incorrectly.
If possible, I would greatly appreciate it if anybody in the community could show and help me correctly plot for the given distribution shown in the equations above. Thank you very much!