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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

CAN I SOLVE MULTIPLES in SOLV E BLOCK

ppal
17-Peridot

CAN I SOLVE MULTIPLES in SOLV E BLOCK

Hi

Can I solve for multiple inputs?

ppal_0-1640903407635.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
JeffH1
14-Alexandrite
(To:ppal)

No, but you can turn the Solve Block in to a function of a parameter and call it many times.

JeffH1_0-1640916659475.png

 

 

View solution in original post

2 REPLIES 2
JeffH1
14-Alexandrite
(To:ppal)

No, but you can turn the Solve Block in to a function of a parameter and call it many times.

JeffH1_0-1640916659475.png

 

 

Werner_E
24-Ruby V
(To:ppal)

Personally I prefer setting up calculations to be done with single scalar values, turning them into functions of the input values and then calling those function (vectorized) with the desired input vectors.

This is similar to what Jeff already had shown but without using any range variable N:

Werner_E_0-1640920850859.png

BUT ... if you really want to solve a vector equation in a solve block, you also can do that. Simply provide an appropriate guess vector (and please don't use range variables 😉

Werner_E_1-1640920961370.png

 

Top Tags