Your example function is:
Your attempt to implement this in Mathcad Prime is::
Check all errors you made between the example function and your Prime functions, then the one thing that Prime complains about is that it does not like the n (defined as running from 1 to 100) inside the summation of Zdm1.
If you also add n as a parameter to the function, all errors are gone:
Now you can plot, e.g.:
I want to thank you again, but I have two questions
- for which you neglected q for Zdm1 (wp, q).
- for which you created Zdm2 (wp, n) with a single variable.
- normally ZDM (Wp, n, q) or not.
"for which you neglected q for Zdm1 (wp, q)."
Because q is not needed as a parameter to Zdm1, it is only the running variable for the summation inside it.
"for which you created Zdm2 (wp, n) with a single variable."
I didn't. I created Zdm1(wp,n), because otherwise n is an unknown variable for this function.
"normally ZDM (Wp, n, q) or not."
Depends on what you want.
Maybe it's just that the equation (21) is ill-formed....?
Where does it come from?
But, isn't it easier to rewrite the formula as it is given?
To simplify, I have set, previously n = q. If instead we set n different from q, the graphs do not change for n = 1 and n = 100, as seen in the following picture: