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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Given_Find( ) solve block & Series Equation.

lvl107
20-Turquoise

Given_Find( ) solve block & Series Equation.

Hello,

Given_Find+solve+block+%26+Series+Equation+.PNG

The Question : Need help with Given_Find( ) solve block solution.

Thanks in advance for the time and help.

Regards.

ACCEPTED SOLUTION

Accepted Solutions
MihaiMoraru
12-Amethyst
(To:lvl107)

You have the same solution. You basically solved the system by re-defining the unknown x vector variable using literal (individual distinct) variables.

There is nothing wrong... but you cannot avoid the use of literal subscripts if you really want to use the Given/Find block. See also attached.

Solution2.png

View solution in original post

41 REPLIES 41
MihaiMoraru
12-Amethyst
(To:lvl107)

The solution

Solution.PNG

and the file with a small change. Hope that is what you are looking for.

Werner_E
25-Diamond I
(To:lvl107)

Preferrably you can use the symbolic "solve" as Mihai suggested.

If you want to use the solve block you should use literal subs.

27.07.png

lvl107
20-Turquoise
(To:Werner_E)

I have Mathcad14, Werner. And it shows up like the following :

Given_Find+solve+block+%26+Series+Equation+%283%29+.PNG

Regards.

Werner_E
25-Diamond I
(To:lvl107)

I use MC15, but my file should work in MC14 as well, unless there is a bug which was fixed in the meantime.

Which maintainance release of MC14 are you using?

Did you change anything in the file other than the assignment V:=

lvl107
20-Turquoise
(To:Werner_E)

Werner Exinger wrote:

I use MC15, but my file should work in MC14 as well, unless there is a bug which was fixed in the meantime.

Which maintainance release of MC14 are you using?

Did you change anything in the file other than the assignment V:=

Given_Find%28+%29+solve+block_3%27.PNG

I using MC14 M020, Werner.

Regards.

Werner_E
25-Diamond I
(To:lvl107)

I think the problem is already discussed here and "solved" - its because the solveblock does not like the use of vetcor elements as solve variables (still not sure if its not a bug) and I think you have provided a workaround yourself by defining the vector beforhand using "normal" variables.

BTW, I used stack(), and aa, etc. instead of a correctly dimensioned vector and alpha, .. just out of lazyness 😉

solve4.png

lvl107
20-Turquoise
(To:Werner_E)

Many thanks, Werner.

Regards.

Werner_E
25-Diamond I
(To:lvl107)

You are welcome.

BTW, it looks like the solutions of your new system can be defined by a simple formula

solve5.png

lvl107
20-Turquoise
(To:lvl107)

The question : Need help with the reason with the red oval.

Given_Find%28+%29+solve+block_3%27%27.PNG

Regards.

Werner_E
25-Diamond I
(To:lvl107)

I have no idea, I would call it a bug on first sight, but I'm not definitely sure about that! Find() expects variables only as parameters, not functions or any other expressions. So it seems that Find() treats every parameter as a variable name and don't cares if its a function.

Its the stack() inside of the find-command which is responsible for the effect. It look like Find(stack(a,b)) is treated like Find(stack,a,b) which throws an error if evaluated numerically (stack is an unknown variable) and produces the additional zero in case of the symbolic eval.

stack_find_Error.png

lvl107
20-Turquoise
(To:Werner_E)

Many, many thanks, Werner.

Given_Find%28+%29+solve+block_3%27%27%27.PNG

Best Regards.

MihaiMoraru
12-Amethyst
(To:lvl107)

If I may. This is because you (probably) switched back to index variable x. Am I wrong? If not, please notice the difference (the "." between the x and the number) between the pics below.

Werner has this:

Literal index.bmp

But you have this:

Index.bmp

The error is not because you have M14. It is also in M15.

Werner_E
25-Diamond I
(To:MihaiMoraru)

That could be an explanantion, but then I am confused about the error meassage window which was posted by Loi.

I am confused too. I got the same error message when I define V:=Find(...) -->

But another error message when using only Find(...) -->

The first one might be a bug.

Errors.PNG

Werner_E
25-Diamond I
(To:MihaiMoraru)

MihaiMoraru wrote:

I am confused too. I got the same error message when I define V:=Find(...) -->

But another error message when using only Find(...) -->

Just gave it a try and the same here.

I would call it a bug, too - maybe even both errors as I see no good reason why vector elements should not work as solve block variables.

Could you provide the worksheet with this error? I use a Mathcad 15 M020 service release, and I do not see any errors.

Pic_1.PNG

Please find attached.

I have reproduced the error and sent a report to PTC's tech support.

lvl107
20-Turquoise
(To:lvl107)

Hello again,

Many thanks for the two of response, above.

Given_Find+solve+block+%26+Series+Equation+%282%29+.PNG

The question : I think of mine, above, there is something wrong and mine is not reliable (solution) ?

Regards.

MihaiMoraru
12-Amethyst
(To:lvl107)

You have the same solution. You basically solved the system by re-defining the unknown x vector variable using literal (individual distinct) variables.

There is nothing wrong... but you cannot avoid the use of literal subscripts if you really want to use the Given/Find block. See also attached.

Solution2.png

lvl107
20-Turquoise
(To:MihaiMoraru)

Many thanks, MihaiMoraru.

Regards.

MihaiMoraru
12-Amethyst
(To:lvl107)

You are very much welcomed.

Werner_E
25-Diamond I
(To:lvl107)

The question : I think of mine, above, there is something wrong and mine is not reliable (solution) ?

Not exactly sure what you think that is wrong.

As already stated the problem is that the solve block often has problem if you try to use the individual vector components as parameters of "find". You replaced the vector elements by greek variables and that way find works.

Solve block will work with complete vector equations, though, but it would be quite a task to rewrite your system as vector equation, if possible at all. So its far easier to use "normal" variables or resort to the symbolic "solve".

lvl107
20-Turquoise
(To:lvl107)

Hello, again.

I have still a small query :

Given_Find+solve+block+%26+Series+Equation+%285%29+.png

Vector in the oval, it should have only parentheses, but now that vector has also the bracket.

The question : what does that mean ?

Regards.

MihaiMoraru
12-Amethyst
(To:lvl107)

I think it means that Mathcad has to do one more operation. But this does not change the end result. It can be removed. Please see below and attached.

No_Brackets.bmp

lvl107
20-Turquoise
(To:MihaiMoraru)

Thanks, MihaiMoraru.

Regards.

Werner_E
25-Diamond I
(To:lvl107)

Vector in the oval, it should have only parentheses, but now that vector has also the bracket.

The question : what does that mean ?

I would say that it means you typed a pair superfluous paranthesis. Its not a vector bracket. Mathcad shows brackets if you nest parenthesis, like in

brackets.png

BTW, you could just use

brackets2.png

lvl107
20-Turquoise
(To:Werner_E)

Thanks, Werner.

lvl107
20-Turquoise
(To:lvl107)

Hello, again.

I have still small another query :

Given_Find%28+%29+solve+block+%287%29.PNG

The question : Need help with the reason : the first one works and the second doesn't.

Best Regards.

Announcements

Top Tags