<?xml version="1.0" encoding="iso-8859-1"?>
<rss version="2.0" 
      xmlns:dc="http://purl.org/dc/elements/1.1/"
      xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
      xmlns:admin="http://webns.net/mvcb/"
      xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>DrQue.Net&#45;&#45; Andrew Que&#39;s corner of the net</title>
    <link>http://www.DrQue.com/</link>
    <description>Andrew Que&#39;s photoblog</description>
    <dc:language>en-us</dc:language>
    <dc:creator>Andrew Que</dc:creator>
    <dc:rights>Copyright 2005-2006</dc:rights>
    <dc:date>2013-06-19T03:06:37Z </dc:date>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>12</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
        <item>
          <title>06/01/2013 Computing Cosine with BC Math</title>
          <link>http://www.DrQue.net/index.php?ArticleNumber=2652#_2652</link>
          <description>06/01/2013 Computing Cosine with BC Math</description>
          <content:encoded>
<![CDATA[
    <table border="0" cellpadding="0" cellspacing="2">
      <tr>
        <td>
          <p class="Main">       When implementing <a href="http://en.wikipedia.org/wiki/Sine">sine</a>       and cosine for the <a href="http://www.php.net/manual/en/book.bc.php">bcmath</a>       version of my <a href="http://www.drque.net/Projects/GaussNewton/">Gauss-Newton       class</a>, I used the <a href="http://en.wikipedia.org/wiki/Maclaurin_series#List_of_Maclaurin_series_of_some_common_functions">Maclaurin       series</a>. Unfortunately, this ends up being slow to converge for       numbers close to <a href="http://en.wikipedia.org/wiki/%u03A0">&pi;</a>.       The slow <a href="http://en.wikipedia.org/wiki/Convergence_(mathematics)">convergence</a>       had required setting the bcmath scale to twice the current value in order       to get accurate calculations. This made the performance of the function       very slow.     </p>     <p class="Main">       I wrote about using some algebraic <a href="http://www.drque.net/index.php?ArticleNumber=2636#_2636">tricks to       speed the convergence</a> of natural log and the exponential       function, and I began to think about ways I could do this with my       trigonometric functions. I had investigated trying to use a modified       series:     </p>     <p align="center">       <img width="194" height="40" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m4366f74e.gif" alt="" />     </p>     <p class="Main">       It would have allowed me to do this:     </p>     <p align="center">       <img width="185" height="41" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m135a0ebf.gif" alt="" />     </p>     <p class="Main">       So I could just multiply the series result by the exponential of the       input. However, the series just seemed like a mess and I didn't get very       far with it.     </p>     <p class="Main">       My next line of thought was to see if I could use the <a href="https://en.wikipedia.org/wiki/Taylor_series">Taylor series</a>       speed up the convergence. I had done this <a href="http://www.drque.net/index.php?ArticleNumber=2144#_2144">in the past</a>       using a look-up table for some known points to quickly calculate the       Taylor series for the exponential function. Here is the general expression       for the Taylor series of a given function:     </p>     <p align="center">       <img width="173" height="43" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_3dda9684.gif" alt="" />     </p>     <p class="Main">       In this algorithm <em>f</em><sup>(</sup><sup><em>n</em></sup><sup>)</sup>       is the n<sup>th</sup> <a href="http://en.wikipedia.org/wiki/Derivative">derivative</a> of the       <a href="http://en.wikipedia.org/wiki/Function_(mathematics)">function</a>       <em>f</em>( <em>x</em> ). The variable <em>b</em> is some point we pick. What <em>b</em> allows us to do is pick a point close to       <em>x</em> and       compute the series starting there. The Maclaurin series is just a Taylor series where <em>b</em> is always zero. However, using the Taylor       series with the value of <em>b</em> closer to <em>x</em> than <em>x</em> is to zero will result in the Taylor series       converging faster than the Maclaurin       series.     </p>     <p class="Main">       So let us apply the Taylor series for cosine with any <em>b</em>:     </p>     <p align="center">       <img width="182" height="43" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m5d815c23.gif" alt="" />     </p>     <p class="Main">       Keep       in mind that cos<sup>(</sup><sup><em>n</em></sup><sup>)</sup> is the n<sup>th</sup>       derivative of cosine&mdash;not the power&mdash;as we are using <a href="http://en.wikipedia.org/wiki/Lagrange's_notation#Lagrange.27s_notation">Lagrange's       notation</a>. At first it doesn't look like this will be too useful.       Now we need cosine, all       it's derivatives, and those values calculated       for some <em>b</em>. However,       this is where the properties of sine become useful. Recall the following       about the sine function:     </p>     <p align="center">       <img width="114" height="73" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_6afe1ecd.gif" alt="" />     </p>     <p class="Main">       In       addition, there are some special points were we get an exact real number       for these trigonometric functions.     </p>     <p align="center">       <img width="166" height="108" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m4727da4.gif" alt="" />     </p>     <p class="Main">       So       we have four values that can be used for <em>b</em> and we       know how the derivatives will change. Time to put       this together.     </p>     <p class="Main">       Here       is the PHP implementation:     </p>      <div style="margin: 0 auto; border: 1px solid #FF0000; background-color: #000080; overflow: auto;height: 400px; width: 680px;">       <div style="color: #FFFF00; background-color: #000080; font-family: Courier New, Courier, mono; font-size: 14px; font-weight: bold;">         <span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Computes&nbsp;cosine&nbsp;of&nbsp;x.         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bccos</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$isSine&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">false&nbsp;</span><span style="color: #FFFFFF">)         <br />{         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Cosine&nbsp;and&nbsp;sine&nbsp;repeat&nbsp;in&nbsp;intervals&nbsp;of&nbsp;2*pi&nbsp;&gt;=&nbsp;x&nbsp;&gt;=&nbsp;-2*pi.&nbsp;&nbsp;So&nbsp;reduce         <br />&nbsp;&nbsp;//&nbsp;input&nbsp;down&nbsp;to&nbsp;this&nbsp;range.         <br />&nbsp;&nbsp;//&nbsp;To&nbsp;do&nbsp;this,&nbsp;get&nbsp;the&nbsp;whole&nbsp;number&nbsp;of&nbsp;how&nbsp;many&nbsp;times&nbsp;two&nbsp;pi&nbsp;divides&nbsp;into&nbsp;the         <br />&nbsp;&nbsp;//&nbsp;value.&nbsp;&nbsp;Then&nbsp;subtract&nbsp;off&nbsp;the&nbsp;whole&nbsp;number&nbsp;part&nbsp;times&nbsp;two&nbsp;pi.&nbsp;&nbsp;This&nbsp;is&nbsp;a         <br />&nbsp;&nbsp;//&nbsp;modulus&nbsp;remainder,&nbsp;but&nbsp;bcmod&nbsp;only&nbsp;returns&nbsp;the&nbsp;integer&nbsp;part&nbsp;of&nbsp;the         <br />&nbsp;&nbsp;//&nbsp;remainder.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$twoPi&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">bcpi</span><span style="color: #FFFFFF">(),&nbsp;</span><span style="color: #FFFF00">2&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$mod&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$twoPi&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;list(&nbsp;</span><span style="color: #FFFF00">$whole</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$fractional&nbsp;</span><span style="color: #FFFFFF">)&nbsp;=&nbsp;</span><span style="color: #FFFF00">explode</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #00FFFF">'.'</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$mod&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$x&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcsub</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$whole</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$twoPi&nbsp;</span><span style="color: #FFFFFF">)&nbsp;);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$correction&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcpi</span><span style="color: #FFFFFF">();         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Modify&nbsp;the&nbsp;scale&nbsp;for&nbsp;additional&nbsp;accuracy.         <br />&nbsp;&nbsp;//&nbsp;Done&nbsp;after&nbsp;the&nbsp;interval&nbsp;has&nbsp;been&nbsp;reduced&nbsp;to&nbsp;avoid&nbsp;rounds&nbsp;errors&nbsp;with&nbsp;pi.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcGetScale</span><span style="color: #FFFFFF">();         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">bcscale</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">5&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//-----------------------------------         <br />&nbsp;&nbsp;//&nbsp;The&nbsp;Taylor&nbsp;series&nbsp;for&nbsp;cosine&nbsp;is&nbsp;as&nbsp;follows:         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;inf         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&#92;&nbsp;&nbsp;&nbsp;&nbsp;d^n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;(x&nbsp;-&nbsp;b)^n         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp;&nbsp;&nbsp;&nbsp;----&nbsp;cos(x)&nbsp;---------         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;---&nbsp;&nbsp;dx^n&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n!         <br />&nbsp;&nbsp;//&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;n=0         <br />&nbsp;&nbsp;//&nbsp;We&nbsp;use&nbsp;the&nbsp;Taylor&nbsp;series&nbsp;to&nbsp;compute&nbsp;cosine.&nbsp;&nbsp;We&nbsp;could&nbsp;use&nbsp;the&nbsp;Maclaurin         <br />&nbsp;&nbsp;//&nbsp;series,&nbsp;but&nbsp;this&nbsp;converges&nbsp;slowly&nbsp;at&nbsp;points&nbsp;close&nbsp;to&nbsp;pi.&nbsp;&nbsp;So&nbsp;we&nbsp;center         <br />&nbsp;&nbsp;//&nbsp;on&nbsp;one&nbsp;of&nbsp;four&nbsp;points:&nbsp;0,&nbsp;pi/2,&nbsp;pi,&nbsp;and&nbsp;3/2&nbsp;pi.&nbsp;&nbsp;This&nbsp;is&nbsp;done&nbsp;because&nbsp;the         <br />&nbsp;&nbsp;//&nbsp;nth&nbsp;derivative&nbsp;is&nbsp;easy&nbsp;to&nbsp;compute&nbsp;at&nbsp;these&nbsp;points:&nbsp;it&nbsp;simply&nbsp;alternates         <br />&nbsp;&nbsp;//&nbsp;between&nbsp;1,&nbsp;0&nbsp;and&nbsp;-1.&nbsp;&nbsp;Where&nbsp;it&nbsp;starts&nbsp;depends&nbsp;on&nbsp;what&nbsp;value&nbsp;the&nbsp;input&nbsp;is         <br />&nbsp;&nbsp;//&nbsp;closest&nbsp;to.         <br />&nbsp;&nbsp;//-----------------------------------         <br />         <br />&nbsp;&nbsp;//&nbsp;First,&nbsp;figure&nbsp;out&nbsp;which&nbsp;point&nbsp;the&nbsp;input&nbsp;value&nbsp;is&nbsp;closest&nbsp;to.         <br />&nbsp;&nbsp;//&nbsp;NOTE:&nbsp;Regular&nbsp;numbers&nbsp;used&nbsp;here,&nbsp;not&nbsp;BC&nbsp;numbers.&nbsp;&nbsp;No&nbsp;reason&nbsp;to&nbsp;be&nbsp;that         <br />&nbsp;&nbsp;//&nbsp;that&nbsp;accurate&nbsp;yet.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">pi</span><span style="color: #FFFFFF">()&nbsp;*&nbsp;</span><span style="color: #FFFF00">7</span><span style="color: #FFFFFF">/</span><span style="color: #FFFF00">4</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$halfPi&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">pi</span><span style="color: #FFFFFF">()&nbsp;/&nbsp;</span><span style="color: #FFFF00">2</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;while&nbsp;(&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">&gt;=&nbsp;</span><span style="color: #FFFF00">$x&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">-=&nbsp;</span><span style="color: #FFFF00">$halfPi</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">&#43;=&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Figure&nbsp;out&nbsp;what&nbsp;point&nbsp;we&nbsp;are&nbsp;starting.         <br />&nbsp;&nbsp;//&nbsp;Now&nbsp;the&nbsp;value&nbsp;is&nbsp;needed&nbsp;as&nbsp;a&nbsp;BC&nbsp;number.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">2&nbsp;</span><span style="color: #FFFFFF">-&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">/&nbsp;</span><span style="color: #FFFF00">2</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$taylorPoint</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcpi</span><span style="color: #FFFFFF">()&nbsp;);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;The&nbsp;index&nbsp;for&nbsp;what&nbsp;the&nbsp;nth&nbsp;derivative&nbsp;will&nbsp;be.         <br />&nbsp;&nbsp;//&nbsp;Note&nbsp;that&nbsp;$taylorIndex&nbsp;is&nbsp;subtracted&nbsp;by&nbsp;one&nbsp;in&nbsp;order&nbsp;to&nbsp;iterate&nbsp;it.&nbsp;&nbsp;This         <br />&nbsp;&nbsp;//&nbsp;is&nbsp;the&nbsp;same&nbsp;as&nbsp;adding&nbsp;3&nbsp;and&nbsp;doing&nbsp;a&nbsp;modulus&nbsp;by&nbsp;4.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">%=&nbsp;</span><span style="color: #FFFF00">4</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;To&nbsp;do&nbsp;sine&nbsp;rather&nbsp;than&nbsp;cosine,&nbsp;simply&nbsp;add&nbsp;one&nbsp;to&nbsp;the&nbsp;starting&nbsp;index.         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;</span><span style="color: #FFFF00">$isSine&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">=&nbsp;(&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">)&nbsp;%&nbsp;</span><span style="color: #FFFF00">4</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;This&nbsp;is&nbsp;a&nbsp;look-up&nbsp;table&nbsp;for&nbsp;the&nbsp;derivatives.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndexMap&nbsp;</span><span style="color: #FFFFFF">=&nbsp;array(&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">,&nbsp;-</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">0&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Setup&nbsp;the&nbsp;series&nbsp;variables.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$x&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcsub</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$taylorPoint&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$power&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$newResult&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">=&nbsp;-</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;&lt;-&nbsp;Something&nbsp;not&nbsp;equal&nbsp;to&nbsp;$newResult         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$n&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$fact&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;while&nbsp;(&nbsp;</span><span style="color: #FFFF00">bccomp</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$newResult</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)         <br />&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Get&nbsp;the&nbsp;nth&nbsp;derivative&nbsp;of&nbsp;the&nbsp;Taylor&nbsp;point.         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$derivative&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$taylorIndexMap</span><span style="color: #FFFFFF">[&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">];         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Don't&nbsp;bother&nbsp;doing&nbsp;any&nbsp;addition&nbsp;of&nbsp;derivative&nbsp;is&nbsp;zero.         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;</span><span style="color: #FFFF00">0&nbsp;</span><span style="color: #FFFFFF">!=&nbsp;</span><span style="color: #FFFF00">$derivative&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$newResult</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;-</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">==&nbsp;</span><span style="color: #FFFF00">$derivative&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcneg</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$power&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;else         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$power</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$accumulator</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$fact&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$newResult&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcadd</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$result</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$n&nbsp;</span><span style="color: #FFFFFF">&#43;=&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$power&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$power</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$x&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$fact&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$fact</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$n&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">=&nbsp;(&nbsp;</span><span style="color: #FFFF00">$taylorIndex&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">3&nbsp;</span><span style="color: #FFFFFF">)&nbsp;%&nbsp;</span><span style="color: #FFFF00">4</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Cut&nbsp;off&nbsp;the&nbsp;last&nbsp;few&nbsp;used&nbsp;to&nbsp;account&nbsp;for&nbsp;accumulated&nbsp;error--they&nbsp;are         <br />&nbsp;&nbsp;//&nbsp;incorrect&nbsp;anyway.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcround</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$result</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">-&nbsp;</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">bcscale</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">$result</span><span style="color: #FFFFFF">;         <br />         <br />}         <br />         <br /></span><span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Computes&nbsp;cosine&nbsp;of&nbsp;x.         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bcsin</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x&nbsp;</span><span style="color: #FFFFFF">)         <br />{         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">bccos</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$x</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">true&nbsp;</span><span style="color: #FFFFFF">);         <br />}         <br />         <br /></span><span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Return&nbsp;the&nbsp;BC&nbsp;math&nbsp;scale.         <br />&nbsp;*         <br />&nbsp;*&nbsp;This&nbsp;function&nbsp;will&nbsp;return&nbsp;the&nbsp;last&nbsp;value&nbsp;passed&nbsp;to&nbsp;bcscale.         <br />&nbsp;*         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bcGetScale</span><span style="color: #FFFFFF">()         <br />{         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">strlen</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">bcadd</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">0&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)&nbsp;-&nbsp;</span><span style="color: #FFFF00">2</span><span style="color: #FFFFFF">;         <br />}         <br />         <br /></span><span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Rounds&nbsp;a&nbsp;value&nbsp;to&nbsp;the&nbsp;number&nbsp;of&nbsp;places&nbsp;requested.         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bcRound</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$places&nbsp;</span><span style="color: #FFFFFF">)         <br />{         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Round&nbsp;result&nbsp;by&nbsp;adding&nbsp;5x10^(-places).         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;-</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">==&nbsp;</span><span style="color: #FFFF00">bccomp</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #00FFFF">&quot;0&quot;&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcadd</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #00FFFF">&quot;-0.&quot;&nbsp;</span><span style="color: #FFFFFF">.&nbsp;</span><span style="color: #FFFF00">str_pad</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #00FFFF">&quot;&quot;</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$places</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #00FFFF">&quot;0&quot;&nbsp;</span><span style="color: #FFFFFF">)&nbsp;.&nbsp;</span><span style="color: #00FFFF">&quot;5&quot;&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;else         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcadd</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #00FFFF">&quot;0.&quot;&nbsp;</span><span style="color: #FFFFFF">.&nbsp;</span><span style="color: #FFFF00">str_pad</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #00FFFF">&quot;&quot;</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$places</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #00FFFF">&quot;0&quot;&nbsp;</span><span style="color: #FFFFFF">)&nbsp;.&nbsp;</span><span style="color: #00FFFF">&quot;5&quot;&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Split&nbsp;number&nbsp;into&nbsp;the&nbsp;whole&nbsp;and&nbsp;fractional&nbsp;parts.         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">list(&nbsp;</span><span style="color: #FFFF00">$integer</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$fractional&nbsp;</span><span style="color: #FFFFFF">)&nbsp;=&nbsp;</span><span style="color: #FFFF00">explode</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #00FFFF">&quot;.&quot;</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;If&nbsp;are&nbsp;result&nbsp;uses&nbsp;all&nbsp;the&nbsp;digits,&nbsp;cut&nbsp;off&nbsp;the&nbsp;last&nbsp;few&nbsp;used&nbsp;to&nbsp;account         <br />&nbsp;&nbsp;//&nbsp;for&nbsp;rounding&nbsp;error--they&nbsp;are&nbsp;incorrect&nbsp;anyway.         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;</span><span style="color: #FFFF00">strlen</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$fractional&nbsp;</span><span style="color: #FFFFFF">)&nbsp;&gt;&nbsp;</span><span style="color: #FFFF00">$places&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$fractional&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">substr</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$fractional</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$places&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$integer&nbsp;</span><span style="color: #FFFFFF">.&nbsp;</span><span style="color: #00FFFF">&quot;.&quot;&nbsp;</span><span style="color: #FFFFFF">.&nbsp;</span><span style="color: #FFFF00">$fractional</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">;         <br />}         <br />         <br /></span><span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Negate&nbsp;value.         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bcneg</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">)         <br />{         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Already&nbsp;negative?         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;</span><span style="color: #00FFFF">'-'&nbsp;</span><span style="color: #FFFFFF">==&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">[&nbsp;</span><span style="color: #FFFF00">0&nbsp;</span><span style="color: #FFFFFF">]&nbsp;)         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">substr</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;else         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$value&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #00FFFF">&quot;-</span><span style="color: #FFFF00">$value</span><span style="color: #00FFFF">&quot;</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">$value</span><span style="color: #FFFFFF">;         <br />}         <br />         <br /></span><span style="color: #C0C0C0">/*         <br />&nbsp;*&nbsp;Computes&nbsp;constant&nbsp;pi.         <br />&nbsp;*         <br />&nbsp;*&nbsp;Implementation&nbsp;uses&nbsp;Spigot&nbsp;algorithms.&nbsp;&nbsp;Should&nbsp;converge&nbsp;rapidly.         <br />&nbsp;*&nbsp;Verified&nbsp;to&nbsp;1000&nbsp;decimal&nbsp;places.         <br />&nbsp;*         <br />&nbsp;*&nbsp;@author&nbsp;Andrew&nbsp;Que.         <br />&nbsp;*&nbsp;@license&nbsp;Public&nbsp;domain.         <br />&nbsp;*/         <br /></span><span style="color: #FFFFFF">function&nbsp;</span><span style="color: #FFFF00">bcpi</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$desiredScale&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0&nbsp;</span><span style="color: #FFFFFF">)         <br />{         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Cache&nbsp;value&nbsp;of&nbsp;Pi&nbsp;so&nbsp;it&nbsp;is&nbsp;not&nbsp;recalculated&nbsp;if&nbsp;the&nbsp;scale&nbsp;isn't&nbsp;changed.         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">static&nbsp;</span><span style="color: #FFFF00">$pi&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">NAN</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;static&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Turn&nbsp;up&nbsp;the&nbsp;scale&nbsp;for&nbsp;the&nbsp;duration&nbsp;of&nbsp;this&nbsp;function&nbsp;to&nbsp;avoid&nbsp;rounding         <br />&nbsp;&nbsp;//&nbsp;error.         <br />&nbsp;&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcGetScale</span><span style="color: #FFFFFF">();         <br />         <br />&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;Has&nbsp;the&nbsp;scale&nbsp;increased?         <br />&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;(&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">&gt;&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;&nbsp;&nbsp;||&nbsp;(&nbsp;</span><span style="color: #FFFF00">$desiredScale&nbsp;</span><span style="color: #FFFFFF">&gt;&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)         <br />&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">max</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$desiredScale</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;$$$FUTURE&nbsp;-&nbsp;Arbitrary.&nbsp;&nbsp;Test&nbsp;and&nbsp;determine&nbsp;what&nbsp;is&nbsp;actually&nbsp;needed.         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">bcscale</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">5&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$newResult&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFFFF">=&nbsp;-</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;while&nbsp;(&nbsp;</span><span style="color: #FFFF00">bccomp</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$newResult</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)         <br />&nbsp;&nbsp;&nbsp;&nbsp;{         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$newResult</span><span style="color: #FFFFFF">;         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">4</span><span style="color: #FFFFFF">,&nbsp;(&nbsp;</span><span style="color: #FFFF00">8&nbsp;</span><span style="color: #FFFFFF">*&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">1&nbsp;</span><span style="color: #FFFFFF">)&nbsp;);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcsub</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$accumulator</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">2</span><span style="color: #FFFFFF">,&nbsp;(&nbsp;</span><span style="color: #FFFF00">8&nbsp;</span><span style="color: #FFFFFF">*&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">4&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)&nbsp;);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcsub</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$accumulator</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">,&nbsp;(&nbsp;</span><span style="color: #FFFF00">8&nbsp;</span><span style="color: #FFFFFF">*&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">5&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)&nbsp;);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcsub</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$accumulator</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">,&nbsp;(&nbsp;</span><span style="color: #FFFF00">8&nbsp;</span><span style="color: #FFFFFF">*&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">&#43;&nbsp;</span><span style="color: #FFFF00">6&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)&nbsp;);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcmul</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$accumulator</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcdiv</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">bcpow</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">16</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">)&nbsp;)&nbsp;);         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$newResult&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">bcadd</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$newResult</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$accumulator&nbsp;</span><span style="color: #FFFFFF">);         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$index&nbsp;</span><span style="color: #FFFFFF">&#43;=&nbsp;</span><span style="color: #FFFF00">1</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #C0C0C0">//&nbsp;If&nbsp;are&nbsp;result&nbsp;uses&nbsp;all&nbsp;the&nbsp;digits,&nbsp;cut&nbsp;off&nbsp;the&nbsp;last&nbsp;few&nbsp;used&nbsp;to&nbsp;account         <br />&nbsp;&nbsp;&nbsp;&nbsp;//&nbsp;for&nbsp;rounding&nbsp;error--they&nbsp;are&nbsp;incorrect&nbsp;anyway.         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFFFF">if&nbsp;(&nbsp;</span><span style="color: #FFFF00">strlen</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">)&nbsp;&gt;&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">)         <br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$result&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">substr</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$result</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">0</span><span style="color: #FFFFFF">,&nbsp;</span><span style="color: #FFFF00">$piScale&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">bcscale</span><span style="color: #FFFFFF">(&nbsp;</span><span style="color: #FFFF00">$scale&nbsp;</span><span style="color: #FFFFFF">);         <br />         <br />&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="color: #FFFF00">$pi&nbsp;</span><span style="color: #FFFFFF">=&nbsp;</span><span style="color: #FFFF00">$result</span><span style="color: #FFFFFF">;         <br />&nbsp;&nbsp;}         <br />         <br />&nbsp;&nbsp;return&nbsp;</span><span style="color: #FFFF00">$pi</span><span style="color: #FFFFFF">;         <br />}</span>       </div>     </div>        <p class="Main">       The       very first step is to get the input into a suitable range. This can       be done quickly using the <a href="http://en.wikipedia.org/wiki/Modulo_operation">modulo operation</a>       which represents how much is left over after an integer division has been       preformed.     </p>     <p align="center">       <img width="130" height="42" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_2eda58b6.gif" alt="" />     </p>     <p class="Main">       This       is used to put the input into the &plusmn;2&pi;       range. All trigonometric functions repeat themselves in       this period, so it makes sense simply to narrow the input down to this       range.     </p>     <p align="center">       <img width="283" height="42" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m35aa8cef.gif" alt="" />     </p>     <p class="Main">       Then       the closest <em>b</em> point       must be chosen. This is done starting at 7/4 &pi; and       dropping by &pi;/2 increments if the current value is greater than the       input value. The 7/4 &pi;       = 2&pi;       &ndash; &pi;/4 because       we are looking for a cutoff point midway between 2&pi;       and 3/2 &pi;.       Subtracting by &pi;/2 each       time because our <em>b</em> points       are separated by &pi;/2. The       number of subtractions are counted. In this way, <em>b</em> can be       calculated. If <em>n</em>       subtractions were made, then <em>b</em> = 2&pi;       &ndash; &pi;<em>n</em>/2 =       &pi;(2 &ndash;       <em>n</em>/2).      </p>     <p class="Main">       The       next part is the derivative table.     </p>     <p align="center">       <img width="249" height="115" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_569f687b.gif" alt="" />     </p>     <p class="Main">       The       cells in the columns represent the function of the in the top row where       <em>x</em> is the       value in the row's left most column. Notice how the values simply shift to       the left on each subsequent row, and the       table repeats every 4 rows. So the number of subtractions used above to       calculate <em>b</em> can be       used as a starting index into this table.     </p>     <p class="Main">       Now       the summation loop itself. Recall the Taylor series summation:     </p>     <p align="center">       <img width="182" height="43" style="background: white" src="/Public/2013-06-01/CosineTaylorseries_html_m5d815c23.gif" alt="" />     </p>     <p class="Main">       We know       that cos<sup>(</sup><sup><em>n</em></sup><sup>)</sup>( <em>b</em> ) is       just the one of       the values from the derivative       table. Calculating <em>n</em>! in the       loop is also easy,       because <em>a</em><sub><em>n</em></sub>! =       <em>a</em><sub><em>n</em></sub><em> * a</em><sub><em>n</em></sub><sub>-1</sub> where       <em>a</em><sub>0</sub> = 1. The       same kind of trick can be used for       (<em>x</em> &ndash;       <em>b</em>)<sup><em>n</em></sup>. Here       <em>p</em><sub><em>n</em></sub> = (<em>x - b) * p</em><sub><em>n</em></sub><sub>-1</sub>. That makes the       loop itself small and simple.     </p>     <p class="Main">       The       very last trick employed in the code is for computing sine. Cosine and       sine are 90&ordm; out of phase. Simply by starting at the next location in       the derivative table, the exact       same code for cosine can be used for sine.     </p>     <p class="Main">       I       found an interesting side-effect that took       a while to trace down. The       resolution for the cosine operation is increased to account for rounding       error during the function. This can result in it's own rounding error. The       easiest example is cos( 2/3 &pi;       ). The correct answer is -0.5. However, we can       not exactly calculate Pi to an infinite number of places. So the function       is always passed some approximate of Pi which results in something like       cos( 2/3 * 3.14159 ) =       -0.499998467&middot;&middot;&middot;. For a more accurate       representation of Pi, the more decimal places until the calculation stops       being 9. For cos( 2/3 * 3.1415926535 ) = -0.4999999999481578&middot;&middot;&middot;. But       the answer will only ever equal -0.5 when exactly 2/3 Pi is used. The only       way I found to get around this is to per-calculate Pi to greater precision       then necessary, and that does get rid of the round errors. By using 10       decimal digits of Pi, we can expect 9 digits of cosine. Then rounding       after 9 digits results in cos( 2/3 * 3.1415926535 ) = -0.5 and that is       what we're looking for.     </p>     <p class="Main">       Tests show that the average speed improvement of almost 240 times using       the Taylor series method over the straight Maclaurin series. The function       is now as fast as the others I implemented. I have to give a shout out to       my calculus professor, <a href="http://www.rock.uwc.edu/aboutus/directory/directory_detail.asp?ID=71">Dr.       Stredulinsky</a> who       taught me Taylor series, and an other to my discrete math and differential       equations professor <a href="http://www.rock.uwc.edu/aboutus/directory/directory_detail.asp?ID=7">Dr.       Fuller</a>. These two professors have really made a difference in my       understanding of mathematics. I didn't       just learn the subjects to pass a test&mdash;I understood the subjects       enough to apply them here.     </p>
          </td>
        </tr>
        <tr>
          <td>
            <table width="100%" cellpadding="0" cellspacing="0">
              <tr>
                <td align="center">
                  <table class="CommentTableBody" width="98%">
                    <tr>
                      <td class="CommentTableCell">
                        1 comment has been made
                      </td>
                    </tr>
                    <tr>
                      <td class="CommentTableCell">
                        <b>From </b><br/>
                        <small>
                          June 3rd, 2013 at 10:37AM
                        </small>
                        <br />

                          <table width="100%">
                            <tr>
                              <td class="CommentTableSubCell">
                                &nbsp;&nbsp;&nbsp;Interesting, keep the mind sharp and some fast &quot;fun&quot; with PHP.  BTW - happy birthday!  Indulge in some sushi today.<br />
                              </td>
                            </tr>
                          </table>

                        </td>
                      </tr>
                      <tr>
                        <td class="CommentTableCell"> 
                          <div style="text-align: center">
                            <a href="http://www.DrQue.net/index.php?ArticleNumber=2652&amp;CommentArticle=2652#_2652" >
                              + Add a comment
                            </a>
                          </div>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>
            </td>
          </tr>
        </table>

]]>          </content:encoded>
          <dc:subject>Daily photos</dc:subject>
          <dc:date>2013-06-01T10:06:15Z</dc:date>
        </item>
          <item>
            <title>05/31/2013</title>
            <link>http://www.DrQue.net/index.php?ArticleNumber=2651#_2651</link>
            <description>05/31/2013</description>
            <content:encoded>
<![CDATA[
        <table border="0" cellpadding="0" cellspacing="2">
          <tr>
            <td>
              <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                <tr>

                  <td>
                    <img src="http://www.DrQue.net/Gallery/2013_05_26/300x300/127.jpg" style="border: 0px" alt="" />
                  </td>

                </tr>
                <tr>

                  <td align="center">
                    <table width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center">
                          <table style="margin-top: 4px">
                            <tr>
                              <td>
                                <small>
                                  (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                </small>
<br />                                <small>
                                  (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                </small>
<br />                                <small>
                                  (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                </small>
<br />                                <small>
                                  (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                </small>
<br />                                <small>
                                  (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                </small>
                                <small>
                                  (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                </small>
<br />                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>

                </tr>
              </table>
              &nbsp;&nbsp; Ben standing in a sea of bizarre firearms at House on the Rock.
            </td>
          </tr>
          <tr>
            <td>
              <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                  <td align="center">
                    <table class="CommentTableBody" width="98%">
                      <tr>
                        <td class="CommentTableCell"> 
                          <div style="text-align: center">No comments have been added </div>
                          </td>
                        </tr>
                        <tr>
                          <td class="CommentTableCell"> 
                            <div style="text-align: center">
                              <a href="http://www.DrQue.net/index.php?ArticleNumber=2651&amp;CommentArticle=2651#_2651" >
                                + Add a comment
                              </a>
                            </div>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>
              </td>
            </tr>
          </table>

]]>            </content:encoded>
            <dc:subject>Daily photos</dc:subject>
            <dc:date>2013-05-31T05:05:52Z</dc:date>
          </item>
            <item>
              <title>05/30/2013</title>
              <link>http://www.DrQue.net/index.php?ArticleNumber=2650#_2650</link>
              <description>05/30/2013</description>
              <content:encoded>
<![CDATA[
          <table border="0" cellpadding="0" cellspacing="2">
            <tr>
              <td>
                <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                  <tr>

                    <td>
                      <img src="http://www.DrQue.net/Gallery/2013_05_26/300x300/131.jpg" style="border: 0px" alt="" />
                    </td>

                  </tr>
                  <tr>

                    <td align="center">
                      <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="center">
                            <table style="margin-top: 4px">
                              <tr>
                                <td>
                                  <small>
                                    (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                  </small>
<br />                                  <small>
                                    (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                  </small>
<br />                                  <small>
                                    (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                  </small>
<br />                                  <small>
                                    (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                  </small>
<br />                                  <small>
                                    (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                  </small>
                                  <small>
                                    (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                  </small>
<br />                                </td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>

                  </tr>
                </table>
                &nbsp;&nbsp; The Ivory City at House on the Rock.
              </td>
            </tr>
            <tr>
              <td>
                <table width="100%" cellpadding="0" cellspacing="0">
                  <tr>
                    <td align="center">
                      <table class="CommentTableBody" width="98%">
                        <tr>
                          <td class="CommentTableCell"> 
                            <div style="text-align: center">No comments have been added </div>
                            </td>
                          </tr>
                          <tr>
                            <td class="CommentTableCell"> 
                              <div style="text-align: center">
                                <a href="http://www.DrQue.net/index.php?ArticleNumber=2650&amp;CommentArticle=2650#_2650" >
                                  + Add a comment
                                </a>
                              </div>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>

]]>              </content:encoded>
              <dc:subject>Daily photos</dc:subject>
              <dc:date>2013-05-30T05:05:52Z</dc:date>
            </item>
              <item>
                <title>05/29/2013</title>
                <link>http://www.DrQue.net/index.php?ArticleNumber=2649#_2649</link>
                <description>05/29/2013</description>
                <content:encoded>
<![CDATA[
            <table border="0" cellpadding="0" cellspacing="2">
              <tr>
                <td>
                  <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                    <tr>

                      <td>
                        <img src="http://www.DrQue.net/Gallery/2013_05_26/300x300/Amber2.jpg" style="border: 0px" alt="" />
                      </td>

                    </tr>
                    <tr>

                      <td align="center">
                        <table width="100%" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center">
                              <table style="margin-top: 4px">
                                <tr>
                                  <td>
                                    <small>
                                      (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                    </small>
<br />                                    <small>
                                      (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                    </small>
<br />                                    <small>
                                      (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                    </small>
<br />                                    <small>
                                      (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                    </small>
<br />                                    <small>
                                      (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                    </small>
                                    <small>
                                      (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                    </small>
<br />                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>

                    </tr>
                  </table>
                  &nbsp;&nbsp; Amber in front of her favorite bookcase at House on the Rock.
                </td>
              </tr>
              <tr>
                <td>
                  <table width="100%" cellpadding="0" cellspacing="0">
                    <tr>
                      <td align="center">
                        <table class="CommentTableBody" width="98%">
                          <tr>
                            <td class="CommentTableCell"> 
                              <div style="text-align: center">No comments have been added </div>
                              </td>
                            </tr>
                            <tr>
                              <td class="CommentTableCell"> 
                                <div style="text-align: center">
                                  <a href="http://www.DrQue.net/index.php?ArticleNumber=2649&amp;CommentArticle=2649#_2649" >
                                    + Add a comment
                                  </a>
                                </div>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>
                  </td>
                </tr>
              </table>

]]>                </content:encoded>
                <dc:subject>Daily photos</dc:subject>
                <dc:date>2013-05-29T05:05:52Z</dc:date>
              </item>
                <item>
                  <title>05/28/2013</title>
                  <link>http://www.DrQue.net/index.php?ArticleNumber=2648#_2648</link>
                  <description>05/28/2013</description>
                  <content:encoded>
<![CDATA[
              <table border="0" cellpadding="0" cellspacing="2">
                <tr>
                  <td>
                    <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                      <tr>

                        <td>
                          <img src="http://www.DrQue.net/Gallery/2013_05_26/300x300/114.jpg" style="border: 0px" alt="" />
                        </td>

                      </tr>
                      <tr>

                        <td align="center">
                          <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="center">
                                <table style="margin-top: 4px">
                                  <tr>
                                    <td>
                                      <small>
                                        (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                      </small>
<br />                                      <small>
                                        (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                      </small>
<br />                                      <small>
                                        (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                      </small>
<br />                                      <small>
                                        (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                      </small>
<br />                                      <small>
                                        (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                      </small>
                                      <small>
                                        (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                      </small>
<br />                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                          </table>
                        </td>

                      </tr>
                    </table>
                    &nbsp;&nbsp; House on the Rock.
                  </td>
                </tr>
                <tr>
                  <td>
                    <table width="100%" cellpadding="0" cellspacing="0">
                      <tr>
                        <td align="center">
                          <table class="CommentTableBody" width="98%">
                            <tr>
                              <td class="CommentTableCell"> 
                                <div style="text-align: center">No comments have been added </div>
                                </td>
                              </tr>
                              <tr>
                                <td class="CommentTableCell"> 
                                  <div style="text-align: center">
                                    <a href="http://www.DrQue.net/index.php?ArticleNumber=2648&amp;CommentArticle=2648#_2648" >
                                      + Add a comment
                                    </a>
                                  </div>
                                </td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>
                    </td>
                  </tr>
                </table>

]]>                  </content:encoded>
                  <dc:subject>Daily photos</dc:subject>
                  <dc:date>2013-05-28T04:05:52Z</dc:date>
                </item>
                  <item>
                    <title>05/27/2013 Gauss-Newton page complete.</title>
                    <link>http://www.DrQue.net/index.php?ArticleNumber=2647#_2647</link>
                    <description>05/27/2013 Gauss-Newton page complete.</description>
                    <content:encoded>
<![CDATA[
                <table border="0" cellpadding="0" cellspacing="2">
                  <tr>
                    <td>
                      &nbsp;&nbsp; After several weeks of work, I have completed the implementation, documentation, and website for my Gauss-Newton class.&nbsp; The page is linked in the <a href="http://www.drque.net/Projects.html">projects</a> section. <div style="width: 75%; border: 2px solid red; margin: auto; text-align: center;font-size: large"><a href="http://www.drque.net/Projects/GaussNewton/">View the Gauss-Newton project page.</a> </div> &nbsp;&nbsp; The release includes 16 functions (5 of which don't converge) with a test suite.&nbsp; Functions are define with both conventional floating point as well as BC Math for arbitrary precision.&nbsp; I included four demos on the page, and I'm pretty happy with the inline-demo method I used to place them on the page.&nbsp; The code is displayed, run, and it's output also displayed.&nbsp; This makes adding additional demos easy.&nbsp; The documentation was done in <a href="http://www.phpdoc.org/">phpDocumentor</a>.&nbsp; I have mixed feelings about it as I think the documentation layout has become less intuitive in more recent versions.&nbsp; However, it functions so I'm not going to complain too badly.<br />&nbsp;&nbsp; I ran across a couple of problems when trying to publish this website.&nbsp; First, I had called my <a href="http://www.drque.net/Projects/PolynomialRegression/">polynomial regression class</a> &quot;least-square regression.&quot;&nbsp; This is partly correct, but not the best description.&nbsp; So I renamed it, which required changing a lot of locations both on the website and in software.&nbsp; The second complication was getting documented software and a test suite.&nbsp; I had implemented several functions, but not bothered to test them.&nbsp; Once implemented and tested using regular floating-point, I had to do the implementation in BC Math.&nbsp; None of this was hard, just time consuming.&nbsp; The BC Math implementation required creating three new functions: Pi, sine and cosine.&nbsp; I'll probably write an article about this in the future.&nbsp; <br />&nbsp;&nbsp; For building the website, I generally use a simple template that I have used on most of my project pages.&nbsp; I pick some colors, and do a fade for the background.&nbsp; The fade has always been a cosine fade because I think those look better.&nbsp; I've setup my image editor to do this, but it's not a perfect cosine fade because I simply gave it a bunch of points to mimic the fade.&nbsp; When my fade looked too grainy, I decided to do the fade with PHP.&nbsp; This is an other side project I plan to clean up and publish.<br />&nbsp;&nbsp; Lastly, I found the comment system that I wrote back in 2003 had issues as well.&nbsp; I used several deprecated functions, and the captcha didn't want to work.&nbsp; I brought it back to the world of the functional, but it could use some cleanup.<br />&nbsp;&nbsp; It has been a lot of work to get all of this assembled, but hopefully someone will find this library useful.
                    </td>
                  </tr>
                  <tr>
                    <td>
                      <table width="100%" cellpadding="0" cellspacing="0">
                        <tr>
                          <td align="center">
                            <table class="CommentTableBody" width="98%">
                              <tr>
                                <td class="CommentTableCell"> 
                                  <div style="text-align: center">No comments have been added </div>
                                  </td>
                                </tr>
                                <tr>
                                  <td class="CommentTableCell"> 
                                    <div style="text-align: center">
                                      <a href="http://www.DrQue.net/index.php?ArticleNumber=2647&amp;CommentArticle=2647#_2647" >
                                        + Add a comment
                                      </a>
                                    </div>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>
                      </td>
                    </tr>
                  </table>

]]>                    </content:encoded>
                    <dc:subject>Daily photos</dc:subject>
                    <dc:date>2013-05-27T23:05:52Z</dc:date>
                  </item>
                    <item>
                      <title>05/26/2013</title>
                      <link>http://www.DrQue.net/index.php?ArticleNumber=2646#_2646</link>
                      <description>05/26/2013</description>
                      <content:encoded>
<![CDATA[
                  <table border="0" cellpadding="0" cellspacing="2">
                    <tr>
                      <td>
                        <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                          <tr>

                            <td>
                              <img src="http://www.DrQue.net/Gallery/2013_05_26/300x300/102.jpg" style="border: 0px" alt="" />
                            </td>

                          </tr>
                          <tr>

                            <td align="center">
                              <b>The Organ Room</b>
                              <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td align="center">
                                    <table style="margin-top: 4px">
                                      <tr>
                                        <td>
                                          <small>
                                            (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                          </small>
<br />                                          <small>
                                            (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                          </small>
<br />                                          <small>
                                            (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                          </small>
<br />                                          <small>
                                            (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                          </small>
<br />                                          <small>
                                            (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                          </small>
                                          <small>
                                            (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                          </small>
<br />                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </td>

                          </tr>
                        </table>
                        &nbsp;&nbsp; Amber, Ben, Joliene, Liz and I traveled to House On The Rock and spent the day.&nbsp; I had toured this place in November with Amber, but the last area had been closed.&nbsp; Turns out The Organ Room was my favorite place at the attraction.&nbsp; Influenced by Dante's <span style="font-style: italic;">Inferno</span>, the room consists of old industrial machinery and pipe organ parts in the strange labyrinth.&nbsp; It was fantastic.&nbsp; We walked until it hurt, and I took over 1,100 shots and proofed 164.&nbsp; As I had found before, the trick to shooting at this location is a high ISO.&nbsp; Almost all my indoor shots were taken at ISO 6400 because of how dark everything is.&nbsp; I saw many people using a flash, which I'm sure completely destroyed the feel.&nbsp; The resulting images are grainy, but because of how the lighting is setup the grain isn't too noticeable.&nbsp; I did try a couple of HDR shots, but those are difficult without a tripod.
                      </td>
                    </tr>
                    <tr>
                      <td>
                        <table width="100%" cellpadding="0" cellspacing="0">
                          <tr>
                            <td align="center">
                              <table class="CommentTableBody" width="98%">
                                <tr>
                                  <td class="CommentTableCell"> 
                                    <div style="text-align: center">No comments have been added </div>
                                    </td>
                                  </tr>
                                  <tr>
                                    <td class="CommentTableCell"> 
                                      <div style="text-align: center">
                                        <a href="http://www.DrQue.net/index.php?ArticleNumber=2646&amp;CommentArticle=2646#_2646" >
                                          + Add a comment
                                        </a>
                                      </div>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                          </table>
                        </td>
                      </tr>
                    </table>

]]>                      </content:encoded>
                      <dc:subject>Daily photos</dc:subject>
                      <dc:date>2013-05-26T23:05:52Z</dc:date>
                    </item>
                      <item>
                        <title>05/25/2013</title>
                        <link>http://www.DrQue.net/index.php?ArticleNumber=2645#_2645</link>
                        <description>05/25/2013</description>
                        <content:encoded>
<![CDATA[
                    <table border="0" cellpadding="0" cellspacing="2">
                      <tr>
                        <td>
                          <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                            <tr>

                              <td>
                                <img src="http://www.DrQue.net/Gallery/2013_05_18/300x300/2.jpg" style="border: 0px" alt="" />
                              </td>

                            </tr>
                            <tr>

                              <td align="center">
                                <table width="100%" cellpadding="0" cellspacing="0">
                                  <tr>
                                    <td align="center">
                                      <table style="margin-top: 4px">
                                        <tr>
                                          <td>
                                            <small>
                                              (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                            </small>
<br />                                            <small>
                                              (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                            </small>
<br />                                            <small>
                                              (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                            </small>
<br />                                            <small>
                                              (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                            </small>
<br />                                            <small>
                                              (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                            </small>
                                            <small>
                                              (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                            </small>
<br />                                          </td>
                                        </tr>
                                      </table>
                                    </td>
                                  </tr>
                                </table>
                              </td>

                            </tr>
                          </table>
                          &nbsp;&nbsp; Xiphos's lasers and lights, always turning the basement into something cool.
                        </td>
                      </tr>
                      <tr>
                        <td>
                          <table width="100%" cellpadding="0" cellspacing="0">
                            <tr>
                              <td align="center">
                                <table class="CommentTableBody" width="98%">
                                  <tr>
                                    <td class="CommentTableCell"> 
                                      <div style="text-align: center">No comments have been added </div>
                                      </td>
                                    </tr>
                                    <tr>
                                      <td class="CommentTableCell"> 
                                        <div style="text-align: center">
                                          <a href="http://www.DrQue.net/index.php?ArticleNumber=2645&amp;CommentArticle=2645#_2645" >
                                            + Add a comment
                                          </a>
                                        </div>
                                      </td>
                                    </tr>
                                  </table>
                                </td>
                              </tr>
                            </table>
                          </td>
                        </tr>
                      </table>

]]>                        </content:encoded>
                        <dc:subject>Daily photos</dc:subject>
                        <dc:date>2013-05-25T13:05:52Z</dc:date>
                      </item>
                        <item>
                          <title>05/24/2013</title>
                          <link>http://www.DrQue.net/index.php?ArticleNumber=2644#_2644</link>
                          <description>05/24/2013</description>
                          <content:encoded>
<![CDATA[
                      <table border="0" cellpadding="0" cellspacing="2">
                        <tr>
                          <td>
                            <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                              <tr>

                                <td>
                                  <img src="http://www.DrQue.net/Gallery/2013_05_18/300x300/Xiphos&amp;Maggie2.jpg" style="border: 0px" alt="" />
                                </td>

                              </tr>
                              <tr>

                                <td align="center">
                                  <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                      <td align="center">
                                        <table style="margin-top: 4px">
                                          <tr>
                                            <td>
                                              <small>
                                                (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                              </small>
<br />                                              <small>
                                                (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                              </small>
<br />                                              <small>
                                                (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                              </small>
<br />                                              <small>
                                                (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                              </small>
<br />                                              <small>
                                                (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                              </small>
                                              <small>
                                                (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                              </small>
<br />                                            </td>
                                          </tr>
                                        </table>
                                      </td>
                                    </tr>
                                  </table>
                                </td>

                              </tr>
                            </table>
                            &nbsp;&nbsp; Xiphos and Maggie looking epic in lasers.
                          </td>
                        </tr>
                        <tr>
                          <td>
                            <table width="100%" cellpadding="0" cellspacing="0">
                              <tr>
                                <td align="center">
                                  <table class="CommentTableBody" width="98%">
                                    <tr>
                                      <td class="CommentTableCell"> 
                                        <div style="text-align: center">No comments have been added </div>
                                        </td>
                                      </tr>
                                      <tr>
                                        <td class="CommentTableCell"> 
                                          <div style="text-align: center">
                                            <a href="http://www.DrQue.net/index.php?ArticleNumber=2644&amp;CommentArticle=2644#_2644" >
                                              + Add a comment
                                            </a>
                                          </div>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>
                                </tr>
                              </table>
                            </td>
                          </tr>
                        </table>

]]>                          </content:encoded>
                          <dc:subject>Daily photos</dc:subject>
                          <dc:date>2013-05-24T13:05:52Z</dc:date>
                        </item>
                          <item>
                            <title>05/23/2013</title>
                            <link>http://www.DrQue.net/index.php?ArticleNumber=2643#_2643</link>
                            <description>05/23/2013</description>
                            <content:encoded>
<![CDATA[
                        <table border="0" cellpadding="0" cellspacing="2">
                          <tr>
                            <td>
                              <table border="0" style="float: left; margin: 5px;" cellpadding="0" cellspacing="0">
                                <tr>

                                  <td>
                                    <img src="http://www.DrQue.net/Gallery/2013_05_18/300x300/Allison.jpg" style="border: 0px" alt="" />
                                  </td>

                                </tr>
                                <tr>

                                  <td align="center">
                                    <table width="100%" cellpadding="0" cellspacing="0">
                                      <tr>
                                        <td align="center">
                                          <table style="margin-top: 4px">
                                            <tr>
                                              <td>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Gallery/" onclick="window.open(this.href,'_blank');return false;">Gallery</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Computers/" onclick="window.open(this.href,'_blank');return false;">Computers</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Includes/" onclick="window.open(this.href,'_blank');return false;">Includes</a>)
                                                </small>
<br />                                                <small>
                                                  (<a href="http://www.DrQue.net//Proxy/" onclick="window.open(this.href,'_blank');return false;">Proxy</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//NewsAdmin/" onclick="window.open(this.href,'_blank');return false;">NewsAdmin</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Images/" onclick="window.open(this.href,'_blank');return false;">Images</a>)
                                                </small>
<br />                                                <small>
                                                  (<a href="http://www.DrQue.net//Temp/" onclick="window.open(this.href,'_blank');return false;">Temp</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Public/" onclick="window.open(this.href,'_blank');return false;">Public</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Templates/" onclick="window.open(this.href,'_blank');return false;">Templates</a>)
                                                </small>
<br />                                                <small>
                                                  (<a href="http://www.DrQue.net//freecap/" onclick="window.open(this.href,'_blank');return false;">freecap</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Utilities/" onclick="window.open(this.href,'_blank');return false;">Utilities</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Stories/" onclick="window.open(this.href,'_blank');return false;">Stories</a>)
                                                </small>
<br />                                                <small>
                                                  (<a href="http://www.DrQue.net//PublicLogs/" onclick="window.open(this.href,'_blank');return false;">PublicLogs</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//GalleryNew/" onclick="window.open(this.href,'_blank');return false;">GalleryNew</a>)
                                                </small>
                                                <small>
                                                  (<a href="http://www.DrQue.net//Code/" onclick="window.open(this.href,'_blank');return false;">Code</a>)
                                                </small>
<br />                                              </td>
                                            </tr>
                                          </table>
                                        </td>
                                      </tr>
                                    </table>
                                  </td>

                                </tr>
                              </table>
                              &nbsp;&nbsp; Allison also graduated.&nbsp; Liz and I attended her art showing at UW Milwaukee.
                            </td>
                          </tr>
                          <tr>
                            <td>
                              <table width="100%" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td align="center">
                                    <table class="CommentTableBody" width="98%">
                                      <tr>
                                        <td class="CommentTableCell"> 
                                          <div style="text-align: center">No comments have been added </div>
                                          </td>
                                        </tr>
                                        <tr>
                                          <td class="CommentTableCell"> 
                                            <div style="text-align: center">
                                              <a href="http://www.DrQue.net/index.php?ArticleNumber=2643&amp;CommentArticle=2643#_2643" >
                                                + Add a comment
                                              </a>
                                            </div>
                                          </td>
                                        </tr>
                                      </table>
                                    </td>
                                  </tr>
                                </table>
                              </td>
                            </tr>
                          </table>

]]>                            </content:encoded>
                            <dc:subject>Daily photos</dc:subject>
                            <dc:date>2013-05-23T13:05:52Z</dc:date>
                          </item>
                        </channel>
                      </rss>
