Skip to main content
1-Visitor
November 6, 2011
Solved

Using arrays in a solver function

  • November 6, 2011
  • 2 replies
  • 3032 views

Am a casual MCad user on V 2001.

In attachement, tried to apply a solver function to an array but it doesnt't take it. Is there a way to set up the function so it can process an array or is a program the only work around (beside an upgrade....)?

Please ignore the fact that the case shown in the sheet could easily be handled w/o the solver. This is just to test the structure for a case w/o analytical solution.

Thank you.

Best answer by rag

I am using Mathcad 14 and it works, if you vectorize RRs(p). Hope this helps in version 2001, too,

Mathcad 14 is not able to save in an format which version 2001 can read, so I am attaching a screenshot.

BTW - does anybody know, what the meaning of "p(p)" in the symbolically evaluated function RRs(p) is?

Looks like p is taken as function AND argument - that can't be, or what?

Regards

WR

06.11.png

2 replies

rag1-VisitorAnswer
1-Visitor
November 6, 2011

I am using Mathcad 14 and it works, if you vectorize RRs(p). Hope this helps in version 2001, too,

Mathcad 14 is not able to save in an format which version 2001 can read, so I am attaching a screenshot.

BTW - does anybody know, what the meaning of "p(p)" in the symbolically evaluated function RRs(p) is?

Looks like p is taken as function AND argument - that can't be, or what?

Regards

WR

06.11.png

1-Visitor
November 6, 2011

Thank you very much, WR. I had tried to vectorize all I could in 2001, to no avail. Glad to see it works in 14!

Much appreciated.

Regards

LM

1-Visitor
January 19, 2012

By the way, I found out that for the Solver function can be made to work with V2001 when applied to Arrays as unsuccessfully attempted in my original attached file: the Guess used in the definition of the function needs to be an Array the same size the function is applied to. Probably a mute observation as there are most likely few 2001 left around!