Skip to main content
14-Alexandrite
December 4, 2024
Solved

read the value

  • December 4, 2024
  • 1 reply
  • 756 views

I used this function to specify which matric is the longest , which is c in row 3 >> this is  correct 

YA_10963798_2-1733315260003.png

 

YA_10963798_1-1733315189500.png

 

Now I need it to read the bigest number in matric c which is 78 >>> what function should I use and can it be written with the same g function I used ?

 

Best answer by Werner_E

How about

Werner_E_0-1733317042446.png

Note that both indices are vector indices. 1 because you have set ORIGIN to 1.

 

You could also do it in one go (at the cost of readability)

Werner_E_0-1733318924007.png

 

In case two or more of the vectors in L have the same maximal length, this approach will give you just the highest value in the first one of them and not the overall highest value which would be 312 in the example below.

Werner_E_1-1733317403218.png

If this is an issue you could use

Werner_E_2-1733317831509.png

 

 

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
December 4, 2024

How about

Werner_E_0-1733317042446.png

Note that both indices are vector indices. 1 because you have set ORIGIN to 1.

 

You could also do it in one go (at the cost of readability)

Werner_E_0-1733318924007.png

 

In case two or more of the vectors in L have the same maximal length, this approach will give you just the highest value in the first one of them and not the overall highest value which would be 312 in the example below.

Werner_E_1-1733317403218.png

If this is an issue you could use

Werner_E_2-1733317831509.png

 

 

 

14-Alexandrite
December 4, 2024

Thank you king