Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
I may be asking too much, but I have a general question about using the root function in a series of variables and constants. For example, how can I program the following in MATHCAD 15 to find the roots xi of the function Fi where
i=1…5
Fi = (1+Ki*xi)*(xi*cot(xi)-1) + B
Ki = known constants for all i
B is known constant
Thanks for any help.
Reg
Solved! Go to Solution.
Would have been better if you would have set up a sample worksheet providing the necessary definitions and values and posted it here.
Basically you make K a second argument of the function F and turn the call to the root function into a function of K.
Hope you can use the same guess value (or the same range for x) for all possible values of K.
And because your function has an infinite number of zeros you may also consider making the guess value for x an additional argument for the function sol. So you can find some different zeros for the same value of K (in the pic below I had chosen K=3).
Would have been better if you would have set up a sample worksheet providing the necessary definitions and values and posted it here.
Basically you make K a second argument of the function F and turn the call to the root function into a function of K.
Hope you can use the same guess value (or the same range for x) for all possible values of K.
And because your function has an infinite number of zeros you may also consider making the guess value for x an additional argument for the function sol. So you can find some different zeros for the same value of K (in the pic below I had chosen K=3).
Thanks much. That really helped.