About

  MEDIA

ABOUT ME:

DAN

COCA

 

 

WELCOME

"Thanks for the visit, stay tune and watch me grow even further with your support."

 

My Name is Daniel Coca;  I have a passion for computers, animation and scripting. I see the world as infinite possible states , and in this reality i choose to make all my dreams come true.

 

A  Infinite set of numbers   put in a one- to -one correspondence demonstrating the property of countably infinite sets in JavaScript:

 

function infinite_One(a) { numbers = []; for ( var i =  0 ; i < a ; i++) { numbers[i] = i }  return numbers}      // a = the amount of numbers you want.

function infinite_Two(b){

    var n = [];

  for ( var i = 0 ; i < b.length ; i++){

    n[i] = b[i];

  }

n.forEach( function (v, i, a) { a[i] = v /2});

return n

}

n1 = infinite_One(100);

infinite_Two(n1)