Difference between revisions of "ZCubes/Consecutive Number Sequences & Smarandache Numbers"

From ZCubes Wiki
Jump to navigation Jump to search
 
(3 intermediate revisions by one other user not shown)
Line 9: Line 9:
  
 
==Code==
 
==Code==
1..30
+
  1..30
 
   .allslices()
 
   .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
 
   .$$(r=>r.reverse().str())
 
   .$$(r=>r.reverse().str())
  
PRIMES(30)
+
  PRIMES(30)
 
   .allslices()
 
   .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
PRIMES(100)
+
  PRIMES(100)
 
   .allslices()
 
   .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
 +
"0."+PRIMES(100).join()
  
"0."+PRIMES(100).join()
+
ODDS(100)
 
 
ODDS(100)
 
 
   .allslices()
 
   .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
ODDS(30)
+
ODDS(30)
 
   .allslices()
 
   .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
EVENS(30)
+
EVENS(30)
 
     .slice(1)
 
     .slice(1)
  .allslices()
+
    .allslices()
  .$$(r=>r.str())
+
    .$$(r=>r.str())
  
1..30.$("x^2")
+
1..30.$("x^2")
  .allslices()
+
  .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
1..30.$("x^3")
+
1..30.$("x^3")
  .allslices()
+
  .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
TRIANGULARSEQUENCE(10)
+
TRIANGULARSEQUENCE(10)
.allslices()
+
  .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
FIBONNACI(10)
+
FIBONNACI(10)
.allslices()
+
  .allslices()
 
   .$$(r=>r.str())
 
   .$$(r=>r.str())
  
FIBONNACI(10)
+
FIBONNACI(10)
 
     .slice(1)
 
     .slice(1)
.allslices()
+
    .allslices()
  .$$(r=>r.str())
+
    .$$(r=>r.str())
  
<<[[Learn_ZCubes | Learn ZCubes ]]
 
 
<br/>
 
<br/>
&copy; Copyright 1996-2020, ZCubes, Inc.
+
*[[Z3 | Z3 home]]
 +
*[[Z^3 Language Documentation]]
 +
*[[ZCubes_Videos | ZCubes Videos and Tutorials]]
 +
*[[Main_Page | About ZCubes ]]
 +
<br/>
 +
<br/>
 +
&copy; Copyright 1996-2021, ZCubes, Inc.

Latest revision as of 00:18, 11 March 2021

Consecutive Number Sequences & Smarandache Numbers


In ZCubes, you can generate a series of numbers and apply your functions on the series of numbers. The video demonstrates how to generate special numbers such as the Smarandache-Wellin Number. Using ZCubes you can generate Copeland-Erdős-constant primes, concatenate odd numbers or even numbers, work with Fibonacci numbers and much more.

Video


Consecutive Number Sequences & Smarandache Numbers














Code

 1..30
  .allslices()
  .$$(r=>r.str())
  .$$(r=>r.reverse().str())
 PRIMES(30)
  .allslices()
  .$$(r=>r.str())
 PRIMES(100)
  .allslices()
  .$$(r=>r.str())
"0."+PRIMES(100).join()
ODDS(100)
 .allslices()
  .$$(r=>r.str())
ODDS(30)
 .allslices()
  .$$(r=>r.str())
EVENS(30)
   .slice(1)
   .allslices()
   .$$(r=>r.str())
1..30.$("x^2")
  .allslices()
  .$$(r=>r.str())
1..30.$("x^3")
  .allslices()
  .$$(r=>r.str())
TRIANGULARSEQUENCE(10)
  .allslices()
  .$$(r=>r.str())
FIBONNACI(10)
  .allslices()
  .$$(r=>r.str())
FIBONNACI(10)
   .slice(1)
   .allslices()
   .$$(r=>r.str())




© Copyright 1996-2021, ZCubes, Inc.