title: How to create a sin wave with upper and lower amplitude bounds
body: <p>I can't for the life of my wrap my head around this seemingly easy problem.</p>
  
  <p>I am trying to create a sine wave with upper and lower bounds for the amplitude (ie. highest point is 3 and lowest point is 0.4)</p>
  
  <p>Using regular math I am able to get a sine wave in an array from 1 to -1 but I don't know how to change those bounds.</p>
  
  <pre><code>    static int MAX_POINTS = 100;
  static int CYCLES = 1;
  static double[] list = new double[100];
  
   public static void SineCurve()
    {
      double phaseMultiplier = 2 * Math.PI * CYCLES / MAX_POINTS; 
      for (int i = 0; i &lt; MAX_POINTS; i++)
      {
        double cycleX = i * phaseMultiplier;
        double sineResult = Math.sin(cycleX);
        list[i]= sineResult;
  
      }
  
      for(int i=0;i&lt;list.length;i++){
          System.out.println(list[i]);
      }
    }
  </code></pre>
  
  <p>Any tips would be greatly appreciated.</p>