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

Community Tip - You can change your system assigned username to something more personal in your community settings. X

How to use Find Function

SM_9881656
1-Newbie

How to use Find Function

Hi 

I have to use the find function to find A but no matter how i change the Dp1 The A remains the same at the end , but if i change the Ainitial A takes value of Ainitial

SM_9881656_1-1616703608927.png

SM_9881656_0-1616703518391.png

The second picture contains all the data in a 

5 REPLIES 5
LucMeekes
23-Emerald III
(To:SM_9881656)

"I have to use the find function":

Who is forcing you to use the Find function?

If you want to find the value of A that satisfies your equation, making f(A)=0, there are several options in Prime.

One of them is to use a solve block, in which you CAN use the Find function. Conversely if you HAVE to use the Find function you also HAVE to use a solve block, because the Find function can ONLY be used in a solve block.

From your picture (it's much better to attach the Prime worksheet if you need help) it seems that you have not set up a solve block, so the Find function in your sheet does not work like you might have thought it would.

I suggest you look up the usage of a solve block in the help system of Prime. There are excellent examples to help you.

 

Success!
Luc

 

Incidentally, there are two values for A that solve the equation:

The EXACT solution is found with:

LucMeekes_0-1616706685435.png

Given your numeric values, these are approximated with:

A=0.263 mm, or A=759.406 mm

Hi , our teacher used the find function in this case since we need to find the exact center distance of a belt drive,

I've also set up a solve block ,as you can see in the screenshot 

SM_9881656_0-1616705469680.pngIt's probably on my part that the function is not working normally . (changing Dp1 should affect value of A) , also i've written the function just like my teacher did he is also using a older version of mathcad ( mathcad 15) 

 

SM_9881656_0-1616706119758.png

the bottom part is from his pdf of mathcad file

SM_9881656_1-1616706130080.png

 

 

LucMeekes
23-Emerald III
(To:SM_9881656)

The solve block in Prime is different from the solve block in Mathcad: it looks different. The solve block in Mathcad is simply introduced by the statement Given. Generally you place the guess values before Given, and the constraints follow it. The constraints end when the solver is called.

The Prime solve block has specific regions for the guess value(s), the constraint(s) and the solver.

Your guess value is A:=Ainitial.

Your constraint is f(A)=0   (not  :=   !)

And your Solver should be OK, I guess.

All the rest can be moved above, outside of the solve block.

 

Note that Prime's solve block will give you a (numerically) approximated result, it's never exact. If you need an exact result, you should use symbolics. See my first answer.

 

Success!
Luc

 

LucMeekes
23-Emerald III
(To:SM_9881656)

Look up the help on a solve block.

There you will find that you need to specify the constraints in the solve block not as a definition ( with :=  ), but as a constraint (with = ).

Oh, and I hope you did not type the square brackets in the definition of f(A) as square brackets. If you want/need brackets in a formula you should ONLY use  ( and ), never [ or ], because those create a vector.

 

Success!
Luc

Top Tags