Difference between revisions of "Manuals/calci/NTHELEMENT"

From ZCubes Wiki
Jump to navigation Jump to search
 
Line 11: Line 11:
  
 
==Examples==
 
==Examples==
# NTHelement(4,[9,8,6,10,5,2]) = 5
+
#NTHELEMENT(4,[9,8,6,10,5,2]) = 5
#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==
 
==Related Videos==

Latest revision as of 00:12, 28 January 2020

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