Skip to main content
16-Pearl
August 28, 2023
Solved

Root function for series of variables in MATHCAD 15

  • August 28, 2023
  • 1 reply
  • 1684 views

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

Best answer by Werner_E

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.

Werner_E_0-1693265680112.png

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).

Werner_E_0-1693266707898.png

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
August 28, 2023

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.

Werner_E_0-1693265680112.png

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).

Werner_E_0-1693266707898.png

 

 

regcurry16-PearlAuthor
16-Pearl
August 30, 2023

Thanks much.  That really helped.