Difference between revisions of "Manuals/calci/NTHELEMENT"

From ZCubes Wiki
Jump to navigation Jump to search
Line 14: Line 14:
 
#NTHelement(6,[102,541,87.2,98,32.14,89.009,-54.32,-32.1,102]) = -54.32
 
#NTHelement(6,[102,541,87.2,98,32.14,89.009,-54.32,-32.1,102]) = -54.32
 
#NTHelement(3,[1/2,3/2,7/6,9/8,11/12,19/21]) = 1.125
 
#NTHelement(3,[1/2,3/2,7/6,9/8,11/12,19/21]) = 1.125
 +
 +
==Related Videos==
 +
 +
{{#ev:youtube|v=tcXnzvxoA6M|280|center|Nth}}
  
 
==See Also==
 
==See Also==

Revision as of 15:00, 25 January 2019

NTHELEMENT (Th,Array)


  • is any positive Integer.

Description

  • This function shows the Nth element from the given set of values.
  • In , is the position of the number in the given array.Array is the set of values.
  • Here position of the numbers are starting from 0 to the nth value.
  • So it is showing the nth value of the given set of values.
  • This function will return the result as NaN when the Nth number value is beyond the set of values.
  • Also when Th value is negative or in decimals this function will return as NaN.

Examples

  1. NTHelement(4,[9,8,6,10,5,2]) = 5
  2. NTHelement(6,[102,541,87.2,98,32.14,89.009,-54.32,-32.1,102]) = -54.32
  3. NTHelement(3,[1/2,3/2,7/6,9/8,11/12,19/21]) = 1.125

Related Videos

Nth

See Also

References