Skip to main content
1-Visitor
October 2, 2020
Solved

How to get a solution vector

  • October 2, 2020
  • 1 reply
  • 1439 views

I need to find a vector v=(v_1, v_2,...) such that F(v_i) - p_i = 0 using the root function. Is there a simple way to do this? Thanks.

root.PNG

 

Best answer by Werner_E

Its boring having to type what you show again so you always should attach your worksheet in future questions.

You can't use the root function by providing a range of v-values because you would have to assure that the function value at both ends have opposite signs. This would mean that at least on of those ends must be different for different values of p.

You may use a solve block (turned into a function) or the root command, but with a guess value:

Werner_E_0-1601678671353.png

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
October 2, 2020

Its boring having to type what you show again so you always should attach your worksheet in future questions.

You can't use the root function by providing a range of v-values because you would have to assure that the function value at both ends have opposite signs. This would mean that at least on of those ends must be different for different values of p.

You may use a solve block (turned into a function) or the root command, but with a guess value:

Werner_E_0-1601678671353.png

 

 
25-Diamond I
October 2, 2020

Here's the variant using a solve block:

Werner_E_0-1601679559254.png