title: Normalizing from values [- 1, 1] to [0, 1]
body: <p>This function takes value from [-1, 1] and turns value to [0, 1](it's not an array)</p>
  
  <pre><code>function normalize(x){
   var y = 2 * x / 2;
   return y;
  }
  
  </code></pre>
  
  <p>With x=0.5 it would return x=0.25, but when x is 0, it returns 0, I need value 0,5.</p>