Skip to main content
10-Marble
Aug 18, 2025 6:01 AM UTC
Solved

Issue with a function in a solve block

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

 

Werner_E
Werner_EAnswer
25-Diamond I
Aug 18, 2025 10:31 AM UTC

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.

14 replies

terryhendicott
21-Topaz II
Aug 18, 2025 8:24 AM UTC

Hi,

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

Cheers

Terry

Translate
Werner_E
Werner_E25-Diamond IAnswer
25-Diamond I
Aug 18, 2025 10:31 AM UTC

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.

Translate
10-Marble
Aug 18, 2025 9:07 PM UTC

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

Translate