Difference between revisions of "Manuals/calci/ODDSET"

From ZCubes Wiki
Jump to navigation Jump to search
Line 8: Line 8:
 
*Array of values are starting the numbering from 1 and so on.
 
*Array of values are starting the numbering from 1 and so on.
 
*So from array of values  function will return the 1st,3rd,5th,7th,9th,11th values and so on.
 
*So from array of values  function will return the 1st,3rd,5th,7th,9th,11th values and so on.
 +
 +
==Examples==
 +
#ODDSET([1,2,3,4,5,6,7,8,9],2) = 1 3 5 7 9
 +
#ODDSET([-10,-23,-12,65,11,65,100,17,34],4) = -10 -12 11 100 34
 +
#ODDSET([20,30,40,50,10,-10,-20,-30,10],3) = 20  40 10 -20 10
 +
 +
==See Also==
 +
*[[Manuals/calci/ODD  | ODD ]]
 +
*[[Manuals/calci/ODDS  | ODDS ]]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]
 +
 +
==References==
 +
*[https://www.mathsisfun.com/numbers/even-odd.html Odds]
 +
*[[Z_API_Functions | List of Main Z Functions]]
 +
*[[ Z3 |  Z3 home ]]

Revision as of 14:01, 17 April 2017

ODDSET (Array,Every)


  • is any set of values.

Description

  • This function shows the odd set of values from the given set of values.
  • In , Array is the set of values and Every is any real number.
  • ODD SET shows the odd number of values.
  • Array of values are starting the numbering from 1 and so on.
  • So from array of values function will return the 1st,3rd,5th,7th,9th,11th values and so on.

Examples

  1. ODDSET([1,2,3,4,5,6,7,8,9],2) = 1 3 5 7 9
  2. ODDSET([-10,-23,-12,65,11,65,100,17,34],4) = -10 -12 11 100 34
  3. ODDSET([20,30,40,50,10,-10,-20,-30,10],3) = 20 40 10 -20 10

See Also

References