"line">  <span class="comment">/*</span></div><div class="line"><span class="comment">   * Create our data based upon sampling our function</span></div><div class="line"><span class="comment">   */</span></div><div class="line">  <span class="keywordflow">for</span> (i = 0; i &lt; xsamples; i ++) {</div><div class="line">    data.x[i] = (double)i/(<span class="keywordtype">double</span>)(xsamples - 1) * (xmax - xmin) + xmin;</div><div class="line">    data.ry[i] = fx(data.x[i]);</div><div class="line">    d