Skip to main content
14-Alexandrite
March 15, 2022
Solved

complex

  • March 15, 2022
  • 1 reply
  • 2711 views

Hi community

I calculate a matrix of numbers,sometimes in the matrix there are complexes.

how can i find them, because my matrix have lot of line.

Thanks

 

Best answer by Werner_E

@XDN wrote:

Hi community

I calculate a matrix of numbers,sometimes in the matrix there are complexes.

how can i find them, because my matrix have lot of line.

Thanks

 


I guess that with "complexes" you mean non-real number. After all 5 is a real number and as such its a complex number, too 😉

Not sure what exactly you have in mind if you write the you want to "find" those non-real numbers.

Here are a few suggestions - hope it helps:

Werner_E_0-1647358507439.png

 

Remarks:

"match" will fail if no non-real number is included in the vector

"trim" will fail if all vector elements are non-real

A workaround is to create modified "match" and "trim" functions:

Werner_E_1-1647359047665.png

Werner_E_2-1647359111348.png

 

Note: In Prime use "else" instead of "otherwise" and "try" instead of "on error"

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
March 15, 2022

@XDN wrote:

Hi community

I calculate a matrix of numbers,sometimes in the matrix there are complexes.

how can i find them, because my matrix have lot of line.

Thanks

 


I guess that with "complexes" you mean non-real number. After all 5 is a real number and as such its a complex number, too 😉

Not sure what exactly you have in mind if you write the you want to "find" those non-real numbers.

Here are a few suggestions - hope it helps:

Werner_E_0-1647358507439.png

 

Remarks:

"match" will fail if no non-real number is included in the vector

"trim" will fail if all vector elements are non-real

A workaround is to create modified "match" and "trim" functions:

Werner_E_1-1647359047665.png

Werner_E_2-1647359111348.png

 

Note: In Prime use "else" instead of "otherwise" and "try" instead of "on error"

 

 

XDN14-AlexandriteAuthor
14-Alexandrite
March 15, 2022

Yes ,that's exactly it

Danke

 

in robotic applications, the complexes show a tilting of the geometry with respect to the referential. With your solution, I know the robot positions which are out of the frame

 

XDN14-AlexandriteAuthor
14-Alexandrite
March 15, 2022

In P7 where i find "Im"?

I don't uderstand this "IM" it is a MC15 function?