Difference between revisions of "Manuals/calci/NTHELEMENT"

From ZCubes Wiki
Jump to navigation Jump to search
(Created page with "NTHELEMENT")
 
Line 1: Line 1:
NTHELEMENT
+
<div style="font-size:30px">'''NTHELEMENT (Th,Array)'''</div><br/>
 +
*<math>Th</math> is any positive Integer.
 +
 
 +
==Description==
 +
*This function shows the Nth element from the given set of values.
 +
*In <math>NTHELEMENT (Th,Array)</math>,<math>Th</math> 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==
 +
# 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(3,[1/2,3/2,7/6,9/8,11/12,19/21]) = 1.125
 +
 
 +
==See Also==
 +
*[[Manuals/calci/NTH  | NTH ]]
 +
*[[Manuals/calci/NTHROOT  | NTHROOT ]]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]
 +
 
 +
==References==
 +
*[http://www.bbc.co.uk/bitesize/ks3/maths/algebra/linear_sequences/revision/3/ Nth term]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]

Revision as of 13:12, 12 April 2017

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

See Also

References