cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Help us improve the PTC Community by taking this short Community Survey! X

How to get a solution vector

CS_11
3-Newcomer

How to get a solution vector

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

 

ACCEPTED SOLUTION

Accepted Solutions
Werner_E
25-Diamond I
(To:CS_11)

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

 

 

View solution in original post

2 REPLIES 2
Werner_E
25-Diamond I
(To:CS_11)

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

 

 
Werner_E
25-Diamond I
(To:Werner_E)

Here's the variant using a solve block:

Werner_E_0-1601679559254.png

 

Announcements

Top Tags