Skip to main content
1-Visitor
July 8, 2016
Solved

Input Variables for the find function

  • July 8, 2016
  • 7 replies
  • 3532 views

Hi,

I have three equations which I want to solve. The equations are made up of variables which change according to a specific angle which updates them.  I want to get the results as a vector which shows how they change according the angle which is changing the input values. Basically I want to input 10 values and get 10 answers out. But the "find" command that I am using just isnt accepting it. It only accepts one input and gives me the output, I must then go change the input to get the next output; but I want a nice set of vectors to do this in one step.

Im not sure if I explained that the best but if anyone could tell me if the find command is capable of such a thing or if theres another way to get around it..

such as a loop or something.


Any help would be greatly appreciated, thanyou!

Cameron

Best answer by AlvaroDíaz

Hi. Valery solution is OK, but he does it for theta, not for x.

Because x isn't explicit in the solve block, must to introduce it, making all dependences of x as functions, like in the attached.

Best regards.

Alvaro.

sol.gif

7 replies

24-Ruby IV
July 8, 2016

You can create a function based on Find function.

Given

...

y(x):=Find...

Send us please your sheet!

25-Diamond I
July 8, 2016

> could tell me if the find command is capable of such a thing

As I understood your question - yes, it should be capable of doing so, but I am not sure, because you don't show your worksheet.

The solution might be turning the solve block into a function depending on the angle by writing  functionname(angle):=find(....) and later call your function with the various angles as argument.

It would be best if you attach your worksheet here (click "Use advanced editor" at the upper right and then "Attach" at the lower right) and if you are using Prime 3.1 you should also attach a screenshot or a pdf-print of your sheet, as many of  did not bother upgrading to 3.1 (in fact many like me still use Mathcad 15 or 11 as its superior) and P3.0 can't read P3.1 files.

WE

chogan1-VisitorAuthor
1-Visitor
July 8, 2016

Hi,

Please find attached a copy of my mathcad, sheet. Thankyou for responding so soon.

thanks again,

cameron

24-Ruby IV
July 8, 2016
12-Amethyst
July 8, 2016

Hi. Valery solution is OK, but he does it for theta, not for x.

Because x isn't explicit in the solve block, must to introduce it, making all dependences of x as functions, like in the attached.

Best regards.

Alvaro.

sol.gif

16-Pearl
July 8, 2016

I think the attachment might be something like you are trying to accomplish.  It takes multiple inputs and calls the solve block as a function.  Note the Vectorization of the call.  Obviously it's just made up equations to demonstrate the concept.

(file in P3.1 but pdf included)

2016-07-08_10-08-45.jpg

21-Topaz II
July 8, 2016

Hi C. H.

The problem is ill-posed. It is not known what kind of equations are "at stake." It is not known how many variables are "in play", variables ... are variable, ... You should first think to properly explain the problem and then publish it..

Greetings

FM

25-Diamond I
July 8, 2016

Guess i was too slow and was playing around with the sheet you posted here -> 

https://community.ptc.com/t5/PTC-Mathcad/Mandrel-Pull-Out1-xmcd/td-p/446438#comment-26237

 

So I didn't realiized that the problem was already solved by Alvaro.

 

Nevertheless, for whatever it may be worth, here is my sheet.

I added a small table at the end

Regards

Werner

chogan1-VisitorAuthor
1-Visitor
July 8, 2016

Hi,

Thankyou so much! I never expected such great feedback. Alvaro I am going to follow through with your solution.

Again many thanks,

Cameron