Skip to main content
10-Marble
August 18, 2025
Solved

Issue with a function in a solve block

  • August 18, 2025
  • 2 replies
  • 1497 views

Hi, 
I'm struggling with a function within a solve block that requires two inputs, a force and an angle as shown below

SM_6465178_0-1755496645678.png

 

So when I evaluate R3(F1a,_delta_) I get the error that it must be a 3 element vector. I'm pretty sure my mistake is simple, but I just can not work it out. 

 

Any help will be greatly appreciated

 

Shane

 

Best answer by Werner_E

The reason for the error you see is because in your second equation you are using the just the function names P32 and P43 where you should use a 3x1 vector.

My guess is that you just forgot the function arguments.

Werner_E_0-1755512831351.png

M3 in the "find" function was wrongly labelled "System" but its label automatically changes to "Variable" as soon as you add the two function arguments.

 

But maybe Terry is right when he guessed that you meant P320 and P430 instead of P32 and P43? You have to decide...

 

In the solve block which follows it looks that you are missing the angle argument completely. Maybe this is a correct fix?

Werner_E_0-1755513550334.png

Haven't looked further at the next failing solve block but I guess there are similar errors.

2 replies

21-Topaz II
August 18, 2025

Hi,

Got all the solve blocks to work but cannot guarantee accuracy.

Cheers

Terry

Werner_E25-Diamond IAnswer
25-Diamond I
August 18, 2025

The reason for the error you see is because in your second equation you are using the just the function names P32 and P43 where you should use a 3x1 vector.

My guess is that you just forgot the function arguments.

Werner_E_0-1755512831351.png

M3 in the "find" function was wrongly labelled "System" but its label automatically changes to "Variable" as soon as you add the two function arguments.

 

But maybe Terry is right when he guessed that you meant P320 and P430 instead of P32 and P43? You have to decide...

 

In the solve block which follows it looks that you are missing the angle argument completely. Maybe this is a correct fix?

Werner_E_0-1755513550334.png

Haven't looked further at the next failing solve block but I guess there are similar errors.

10-Marble
August 18, 2025

Hi Werner and Terry,

 

Thanks for the help. Yes I had forgotten the function arguments in there. I thought I had covered them all but obviously not.

 

Thanks Again

Shane