Skip to main content
1-Visitor
May 17, 2019
Solved

Root this function cannot be used here HELP

  • May 17, 2019
  • 2 replies
  • 2909 views

Hello all!

 

Im new to MathCAD and Im trying to use the root function to solve a series of functions, but I keep getting an error which says "This function cannot be used here" in the root expression. Anyone got any clue?

Can anyone check my spreadsheet? Its on the last page, thank you

Best answer by terryhendicott

Hi,

Found it.  The equation for AsA(A) should not have square brackets.  Now it returns a value so does not require the indexing.

 

Capture.PNG

2 replies

21-Topaz II
May 17, 2019

Hi,

The function you are trying to find the root of returns a vector with one value.  To use the root your function must return a single value.

 

Workaround is enclosed.  You just need to take the first and only element of the vector as the result of the function.

 

Capture.PNG

 

Cheers

Terry

21-Topaz II
May 17, 2019

Hi,

The function you are trying to find the root of returns a vector with one value.  To use the root your function must return a single value.

 

Workaround is enclosed.  You just need to take the first and only element of the vector as the result of the function.

 

Capture.PNG

 

Cheers

Terry

Olinde1-VisitorAuthor
1-Visitor
May 17, 2019

Thanks for the reply Terry.

 

Do you have any clue why it returns a vector and not a single value? Im following an example and the only differences is the constants of a couple of my variable yet the example can get the root to return a single value.

21-Topaz II
May 17, 2019

Hi,

Found it.  The equation for AsA(A) should not have square brackets.  Now it returns a value so does not require the indexing.

 

Capture.PNG