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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Mathcad Not Returning Function

davidlimtw
8-Gravel

Mathcad Not Returning Function

Hi All,

 

Working with multiple input data as matirx or vector and  got a error message on function cannot be use here.

 

Root function solve if I rewrite the R into a wx, 

 

Appreciate some advise to see what can be done to solve this multiple combination function by recalling the variable I like to combine in the equation.

 

davidlimtw_1-1688987979396.png

 

 

 

 

1 REPLY 1
Werner_E
25-Diamond I
(To:davidlimtw)

Actually your sheet is to confusing for me so I can just note what I noticed.

At first you have to realize that writing B]x does not create a matrix even though it may (unfortunately) look that way in Prime.

The vector in your sheet is simply S

 

But

Werner_E_0-1689032916249.png

still throws an error and if you use Prime's error tracing you arrive at

Werner_E_1-1689032992339.png

The next position is

Werner_E_2-1689033115159.png

So I suggest you follow the error chain and manually evaluate the functions using the very same argument(s) you use in the offending function call. That way you may see which functions returns a data structure which is not compatible with the function you defined.

 

The reason for the root function failing may be the R.palmer function, because this function does not return a scalar but a 2x1 vector

Werner_E_3-1689033595689.png

Not sure if the R.palmer function is supposed to return that vector.

Using just the first element of this 2x1 vector makes at least the root function work

Werner_E_4-1689033674819.png

 

Announcements

Top Tags