<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE article  PUBLIC "-//NLM//DTD Journal Publishing DTD v3.0 20080202//EN" "http://dtd.nlm.nih.gov/publishing/3.0/journalpublishing3.dtd"><article xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink" dtd-version="3.0" xml:lang="en" article-type="research article"><front><journal-meta><journal-id journal-id-type="publisher-id">AJCM</journal-id><journal-title-group><journal-title>American Journal of Computational Mathematics</journal-title></journal-title-group><issn pub-type="epub">2161-1203</issn><publisher><publisher-name>Scientific Research Publishing</publisher-name></publisher></journal-meta><article-meta><article-id pub-id-type="doi">10.4236/ajcm.2014.45037</article-id><article-id pub-id-type="publisher-id">AJCM-52614</article-id><article-categories><subj-group subj-group-type="heading"><subject>Articles</subject></subj-group><subj-group subj-group-type="Discipline-v2"><subject>Physics&amp;Mathematics</subject></subj-group></article-categories><title-group><article-title>
 
 
  Accuracy and Computational Cost of Interpolation Schemes While Performing &lt;i&gt;N&lt;/i&gt;-Body Simulations
 
</article-title></title-group><contrib-group><contrib contrib-type="author" xlink:type="simple"><name name-style="western"><surname>hafiq</surname><given-names>Ur Rehman</given-names></name><xref ref-type="aff" rid="aff1"><sub>1</sub></xref><xref ref-type="corresp" rid="cor1"><sup>*</sup></xref></contrib></contrib-group><aff id="aff1"><label>1</label><addr-line>Department of Mathematics, The University of Auckland, Auckland, New Zealand</addr-line></aff><author-notes><corresp id="cor1">* E-mail:<email>mailto:srehman@uet.edu.pk</email></corresp></author-notes><pub-date pub-type="epub"><day>11</day><month>11</month><year>2014</year></pub-date><volume>04</volume><issue>05</issue><fpage>446</fpage><lpage>454</lpage><history><date date-type="received"><day>31</day>	<month>October</month>	<year>2014</year></date><date date-type="rev-recd"><day>28</day>	<month>November</month>	<year>2014</year>	</date><date date-type="accepted"><day>15</day>	<month>December</month>	<year>2014</year></date></history><permissions><copyright-statement>&#169; Copyright  2014 by authors and Scientific Research Publishing Inc. </copyright-statement><copyright-year>2014</copyright-year><license><license-p>This work is licensed under the Creative Commons Attribution International License (CC BY). http://creativecommons.org/licenses/by/4.0/</license-p></license></permissions><abstract><p>
 
 
  The continuous approximations play a vital role in 
  <em>N</em>-body simulations. We constructed three different types, namely, one-step (cubic and quintic Hermite), two-step, and three-step Hermite interpolation schemes. The continuous approximations obtained by Hermite interpolation schemes and interpolants for ODEX2 and ERKN integrators are discussed in this paper. The primary focus of this paper is to measure the accuracy and computational cost of different types of interpolation schemes for a variety of gravitational problems. The gravitational problems consist of Kepler’s two-body problem and the more realistic problem involving the Sun and four gas-giants—Jupiter, Saturn, Uranus, and Neptune. The numerical experiments are performed for the different integrators together with one-step, two-step, and three-step Hermite interpolation schemes, as well as the interpolants.
 
</p></abstract><kwd-group><kwd>&lt;i&gt;N&lt;/i&gt;-Body Simulation</kwd><kwd> Integrators</kwd><kwd> Interpolation Schemes</kwd></kwd-group></article-meta></front><body><sec id="s1"><title>1. Numerical Integrators and Interpolants</title><p>Explicit Runge-Kutta-Nystr&#246;m methods (ERKN) were introduced by E. J. Nystr&#246;m in 1925 [<xref ref-type="bibr" rid="scirp.52614-ref1">1</xref>] . Here, we are using two variable-step-size ERKN integrators: Integrator ERKN689 is a nine stage, 6-8 FSAL pair [<xref ref-type="bibr" rid="scirp.52614-ref2">2</xref>] and ERKN101217 is a seventeen stage, 10-12 non-FSAL pair [<xref ref-type="bibr" rid="scirp.52614-ref2">2</xref>] . Dormand and Prince [<xref ref-type="bibr" rid="scirp.52614-ref3">3</xref>] and then Baker et al. [<xref ref-type="bibr" rid="scirp.52614-ref4">4</xref>] developed continuous approximation with embedded Runge-Kutta-Nystr&#246;m methods, in which a third RKN pro- cess of order p<sup>*</sup> was used to approximate the solutions, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x5.png" xlink:type="simple"/></inline-formula>and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x6.png" xlink:type="simple"/></inline-formula>, where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x7.png" xlink:type="simple"/></inline-formula> with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x8.png" xlink:type="simple"/></inline-formula> typically in (0, 1]. For ERKN101217, we used three existing interpolants: a 23-stage interpolant with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x9.png" xlink:type="simple"/></inline-formula>, a 26-stage interpolant with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x10.png" xlink:type="simple"/></inline-formula>, and a 29-stage interpolant with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x11.png" xlink:type="simple"/></inline-formula>. The coefficients for these interpolants are not tabulated in this paper but are freely available on-line [<xref ref-type="bibr" rid="scirp.52614-ref4">4</xref>] . For ERKN689, we used an 8th-order interpolant with 12 stages. The coefficients for the continuous approximation of ERKN689 were provided by P. W. Sharp (private communication).</p><p>For the direct numerical approximation of systems of second-order ODEs, Hairer, N&#248;rsett and Wanner [<xref ref-type="bibr" rid="scirp.52614-ref5">5</xref>] developed an extrapolation code ODEX2 based on the explicit midpoint rule with order selection and step-size control. The ODEX2 integrator is good for all tolerances, especially for high arithmetic precision, for example, 10<sup>−</sup><sup>20</sup> or 10<sup>−</sup><sup>30</sup>. For ODEX2 integrator we used the built-in interpolant.</p><p>St&#246;rmer methods are an important class of numerical methods for solving systems of second-order ordinary differential equations. St&#246;rmer methods were introduced by St&#246;rmer [<xref ref-type="bibr" rid="scirp.52614-ref6">6</xref>] . These methods have long been utilized for accurate long-term simulations of the solar system [<xref ref-type="bibr" rid="scirp.52614-ref7">7</xref>] . Grazier [<xref ref-type="bibr" rid="scirp.52614-ref8">8</xref>] recommended a fixed-step-size St&#246;rmer method of order 13 that used backward differences in summed form, summing from the highest to lowest differences. In this paper we consider an order-13, fixed-step-size St&#246;rmer method and refer to it as the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x12.png" xlink:type="simple"/></inline-formula> integrator.</p><sec id="s1_1"><title>1.1. Hermite Interpolation Schemes</title><p>Hermite interpolation uses derivative and function values and is named after Charles Hermite (1822-1901). We used four schemes: one-step (cubic and quintic Hermite), two-step and three-step Hermite interpolation schemes. The cubic Hermite interpolation polynomial is of degree 3, while the quintic, two-step and three-step Hermite interpolation polynomials are of degrees 5, 8 and 11, respectively. The interpolation schemes are derived using a Newton divided difference approach, which is described in Section 1.1.1. There is a second approach, which we call the direct approach that is frequently used by other researchers; for example, see [<xref ref-type="bibr" rid="scirp.52614-ref9">9</xref>] . This approach is particularly suited for cubic and quintic Hermite interpolation schemes, and we describe it in Sections 1.1.2 and 1.1.3.</p><sec id="s1_1_1"><title>1.1.1. Newton Divided Difference Approach</title><p>To determine the interpolating polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x13.png" xlink:type="simple"/></inline-formula> for the m points<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x14.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x15.png" xlink:type="simple"/></inline-formula>, using the Newton divided difference (NDD) approach, we write <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x16.png" xlink:type="simple"/></inline-formula> as</p><disp-formula id="scirp.52614-formula617"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x17.png"  xlink:type="simple"/></disp-formula><p>where the a’s are calculated from the divided differences. The i<sup>th</sup> divided difference can be calculated using</p><disp-formula id="scirp.52614-formula618"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x18.png"  xlink:type="simple"/></disp-formula><p>see <xref ref-type="table" rid="table1">Table 1</xref>. We now discuss how the NDD must be modified when derivative values are used. Let us consider the first-order differences in <xref ref-type="table" rid="table1">Table 1</xref>. For example, if <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x19.png" xlink:type="simple"/></inline-formula> then we have</p><disp-formula id="scirp.52614-formula619"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x20.png"  xlink:type="simple"/></disp-formula><p>Similarly, for the second-order differences in <xref ref-type="table" rid="table1">Table 1</xref>, if, for example, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x21.png" xlink:type="simple"/></inline-formula>then we find</p><disp-formula id="scirp.52614-formula620"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x22.png"  xlink:type="simple"/></disp-formula><p>Hence, for Hermite interpolation schemes we can use the NDD approach if the derivatives replace the corresponding divided differences.</p></sec><sec id="s1_1_2"><title>1.1.2. Cubic Hermite Interpolation</title><p>In this section and the next, we describe the direct approach for obtaining the cubic and quintic Hermite polynomials. The cubic Hermite interpolation polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula> for the time-step from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x25.png" xlink:type="simple"/></inline-formula> interpolates the data <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x26.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x27.png" xlink:type="simple"/></inline-formula> at time<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x28.png" xlink:type="simple"/></inline-formula>, for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x23.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x24.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x25.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x26.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x27.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x28.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x29.png" xlink:type="simple"/></inline-formula> and 0. In the direct approach, the cubic Hermite interpolation polynomial is written as</p><table-wrap id="table1" ><label><xref ref-type="table" rid="table1">Table 1</xref></label><caption><title> An illustrative Newton divided difference table</title></caption><table><tbody><thead><tr><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x30.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x31.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x32.png" xlink:type="simple"/></inline-formula></th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th></tr></thead><tr><td align="center" valign="middle" >0</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x33.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x34.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x35.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >1</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x36.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x37.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x38.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x39.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x40.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >2</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x41.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x42.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x43.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x44.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x45.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x46.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x47.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >3</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x48.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x49.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x50.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x51.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x52.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x53.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >4</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x54.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x55.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x56.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x57.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr><tr><td align="center" valign="middle" >5</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x58.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x59.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td><td align="center" valign="middle" ></td></tr></tbody></table></table-wrap><disp-formula id="scirp.52614-formula621"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x60.png"  xlink:type="simple"/></disp-formula><p>where,</p><disp-formula id="scirp.52614-formula622"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x61.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula623"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x62.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula624"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x63.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula625"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x64.png"  xlink:type="simple"/></disp-formula><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x65.png" xlink:type="simple"/></inline-formula> with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x66.png" xlink:type="simple"/></inline-formula>. Since the values of y and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x67.png" xlink:type="simple"/></inline-formula> at both ends of each step are interpolated, the piecewise defined approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x65.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x66.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x67.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x68.png" xlink:type="simple"/></inline-formula> formed from the cubic Hermite polynomial is continuous and has a continuous first derivative.</p></sec><sec id="s1_1_3"><title>1.1.3. Quintic Hermite Interpolation</title><p>The quintic Hermite interpolation polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula> for the time-step from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula> interpolates the data<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x72.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x73.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x74.png" xlink:type="simple"/></inline-formula> at time<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x75.png" xlink:type="simple"/></inline-formula>, for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x69.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x70.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x71.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x72.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x73.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x74.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x75.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x76.png" xlink:type="simple"/></inline-formula> and 0. As for cubic Hermite interpolation, the quintic Hermite interpolation polynomial can be derived using a direct approach and written as</p><disp-formula id="scirp.52614-formula626"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x77.png"  xlink:type="simple"/></disp-formula><p>where,</p><disp-formula id="scirp.52614-formula627"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x78.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula628"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x79.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula629"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x80.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula630"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x81.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula631"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x82.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula632"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x83.png"  xlink:type="simple"/></disp-formula><p>and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x84.png" xlink:type="simple"/></inline-formula> with<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x85.png" xlink:type="simple"/></inline-formula>, as before. Since the values of y, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x86.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x87.png" xlink:type="simple"/></inline-formula> at both ends of each step are interpolated, the piecewise defined approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x84.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x85.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x86.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x87.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x88.png" xlink:type="simple"/></inline-formula> formed from the quintic Hermite polynomial is continuous and has continuous first and second derivatives.</p></sec><sec id="s1_1_4"><title>1.1.4. Two-Step Hermite Interpolation Polynomial</title><p>The two-step Hermite interpolation polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula> for the two-time-steps from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula> to <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula> interpolates the data<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x93.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x94.png" xlink:type="simple"/></inline-formula> at time<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x95.png" xlink:type="simple"/></inline-formula>, with <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x96.png" xlink:type="simple"/></inline-formula> and 0. The two-step Hermite interpolation polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x89.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x90.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x91.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x92.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x93.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x94.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x95.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x96.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x97.png" xlink:type="simple"/></inline-formula> can then be written in Horner’s nested multiplication form as</p><disp-formula id="scirp.52614-formula633"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x98.png"  xlink:type="simple"/></disp-formula><p>where the coefficients<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x99.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x100.png" xlink:type="simple"/></inline-formula>, are obtained using a NDD table. Since the values of y, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x101.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x102.png" xlink:type="simple"/></inline-formula> at both ends of each step are interpolated, the piecewise defined approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x99.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x100.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x101.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x102.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x103.png" xlink:type="simple"/></inline-formula> formed from the two-step Hermite polynomial is continuous and has continuous first and second derivatives.</p></sec><sec id="s1_1_5"><title>1.1.5. Three-Step Hermite Interpolation Polynomial</title><p>Similarly, the three-step Hermite interpolation polynomial interpolates the data<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula> at time<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula>, for <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x108.png" xlink:type="simple"/></inline-formula> and 0. Hence, it is the degree-11 polynomial <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x109.png" xlink:type="simple"/></inline-formula> defined over a three-time-step from <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x110.png" xlink:type="simple"/></inline-formula> to<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x111.png" xlink:type="simple"/></inline-formula>. Using Horner’s nested multiplication form, we can write <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x104.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x105.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x106.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x107.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x108.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x109.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x110.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x111.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x112.png" xlink:type="simple"/></inline-formula> as</p><disp-formula id="scirp.52614-formula634"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x113.png"  xlink:type="simple"/></disp-formula><p>As for the two-step Hermite interpolation polynomial, the coefficients<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula>, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x115.png" xlink:type="simple"/></inline-formula>, of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x116.png" xlink:type="simple"/></inline-formula> are obtained using NDD. Since the values of y, <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x117.png" xlink:type="simple"/></inline-formula>, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x117.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x118.png" xlink:type="simple"/></inline-formula> at both ends of each step are interpolated, the piecewise defined approximation <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x114.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x115.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x116.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x117.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x118.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x119.png" xlink:type="simple"/></inline-formula> formed from the three-step Hermite polynomial is continuous and has continuous first and second derivatives.</p><p>We compared the maximum error in position and the CPU-time for P<sub>3</sub> and P<sub>5</sub> evaluated using NDD and the direct approach. The comparison was done for one period of Kepler problem for eccentricities of 0.05 to 0.9 (see Section 2.1 for more details on the experiment), and the Jovian problem [<xref ref-type="bibr" rid="scirp.52614-ref10">10</xref>] .</p><p>For the two-body problem, no significant differences in the maximum error as CPU-time were observed between these two approaches. For the Jovian problem, the direct approach takes approximately half the CPU-time of the NDD approach. The coefficients of the polynomial for the NDD approach depend on the components of the solution vector. For the direct approach the coefficients are independent of the components, so they can be used as a vector to approximate polynomials and that will save CPU-time.</p><p>In the rest of the paper, cubic and quintic Hermite interpolation schemes are implemented using the direct approach. For two-step and three-step Hermite interpolation schemes we implemented the NDD approach, because it is really difficult to find the coefficients for the direct approach.</p></sec></sec></sec><sec id="s2"><title>2. Numerical Experiments</title><p>Here, we examine the error growth in the position and velocity for the Kepler problem. The experiments for short-term integrations are performed using four different types of interpolation schemes applied to the Kepler problem over the interval of 2π.</p><sec id="s2_1"><title>2.1. Kepler Problem with Different Eccentricities</title><p>The solution to the Kepler problem is periodic with period 2π. We do not have to calculate the reference solution, so the Kepler problem is well suited for testing the accuracy of integration over a short time interval. This assumes the step-size is chosen so that <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x120.png" xlink:type="simple"/></inline-formula> is hit exactly.</p><p>The error in the position and velocity of the Kepler problem is given by the L<sub>2</sub>-norm</p><disp-formula id="scirp.52614-formula635"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x121.png"  xlink:type="simple"/></disp-formula><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x122.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x123.png" xlink:type="simple"/></inline-formula> are the vectors of the numerical and true solutions, and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x123.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x124.png" xlink:type="simple"/></inline-formula> and <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x122.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x123.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x124.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x125.png" xlink:type="simple"/></inline-formula> are the vectors of the derivatives to the numerical and true solutions, respectively.</p><p>The graphs in <xref ref-type="fig" rid="fig1">Figure 1</xref> are for experiments performed with the cubic, quintic, two-step, and three-step Hermite interpolation schemes applied to the Kepler problem over the interval <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x126.png" xlink:type="simple"/></inline-formula> for eccentricities in the range [0.05, 0.9]; note that, in reality, planets and test particles do not have eccentricity 0, and we used 0.05 as an approximate upper bound for the eccentricities of the Jovian planets. The selection of these interpolation schemes is motivated by the fact that they can be used with all the integrators described in this paper. The interpolants, on the other hand, are related to specific integrators; for example, the 12-stage interpolant can only be used with the ERKN689 integrator. For the experiments shown in <xref ref-type="fig" rid="fig1">Figure 1</xref>, the interval of integration is subdivided into 30 evenly spaced sub-intervals; experiments with different numbers of sub-intervals are recorded in <xref ref-type="table" rid="table2">Table 2</xref>. We then evaluate the position and velocity at 10 evenly spaced points on each sub-interval using different interpolation schemes. Note that we also tested with up to 100 sample points and observed a variation in the error of not more than 1%. The information, such as, positions, velocities, and times, are saved in separate files. In a post-processing step, we then calculate the errors in the positions and velocities with respect to the analytical solution that we obtain at the stored values of time. The velocity polynomials for all these interpolation schemes are obtained by differentiating their corresponding position polynomials.</p><p>From <xref ref-type="fig" rid="fig1">Figure 1</xref>, we observe a clear pattern; as the eccentricity increases, the maximum error in the position also increases. The variation in the error is understandable, because the error depends upon the eccentricity. To illustrate this fact, recall that the analytical solution to the Kepler problem is given by</p><disp-formula id="scirp.52614-formula636"><label>(1)</label><graphic position="anchor" xlink:href="http://html.scirp.org/file/5-1100394x127.png"  xlink:type="simple"/></disp-formula><fig id="fig1"  position="float"><label><xref ref-type="fig" rid="fig1">Figure 1</xref></label><caption><title> The maximum global error in position for the cubic, quintic, 2-step, and 3-step Hermite interpolation schemes against different eccentricities applied to the two-body problem over a period of 2π</title></caption><graphic mimetype="image"   position="float"  xlink:type="simple"  xlink:href="http://html.scirp.org/file/5-1100394x128.png"/></fig><table-wrap id="table2" ><label><xref ref-type="table" rid="table2">Table 2</xref></label><caption><title> The maximum global error in position for eccentricity 0.05 attained by different interpolation schemes applied to the Kepler problem over the interval [0, 2π] with four choices of numbers of evenly spaced sub-intervals. The dash means the combination is not used</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >N<sub>sub</sub></th><th align="center" valign="middle" >Cubic</th><th align="center" valign="middle" >Quintic</th><th align="center" valign="middle" >2-step</th><th align="center" valign="middle" >3-step</th></tr></thead><tr><td align="center" valign="middle" >17</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x129.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x130.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x131.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x132.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >79</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x133.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x134.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x135.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x136.png" xlink:type="simple"/></inline-formula></td></tr><tr><td align="center" valign="middle" >255</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x137.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x138.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x139.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >-</td></tr><tr><td align="center" valign="middle" >1080</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x140.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x141.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" >-</td><td align="center" valign="middle" >-</td></tr></tbody></table></table-wrap><p>where <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x142.png" xlink:type="simple"/></inline-formula> is the eccentric anomaly satisfying <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x142.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x143.png" xlink:type="simple"/></inline-formula> and the interpolation error, for example, for the</p><p>y<sub>1</sub>-component of this solution can be written as<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x144.png" xlink:type="simple"/></inline-formula>. The first three derivatives of y<sub>1</sub> are</p><disp-formula id="scirp.52614-formula637"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x145.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula638"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x146.png"  xlink:type="simple"/></disp-formula><disp-formula id="scirp.52614-formula639"><graphic  xlink:href="http://html.scirp.org/file/5-1100394x147.png"  xlink:type="simple"/></disp-formula><p>It is clear that these and all subsequent derivatives are expected to involve the factor<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x148.png" xlink:type="simple"/></inline-formula>. Since the minimum value of <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x148.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x149.png" xlink:type="simple"/></inline-formula> gets smaller and smaller as e increases, it is expected that the error increases as e increases; a similar argument holds for the y<sub>2</sub>-component. Indeed, for all interpolation schemes the minimum error in the position occurs at eccentricity 0.05 and the maximum error at eccentricity 0.9 in <xref ref-type="fig" rid="fig1">Figure 1</xref>. We also observe in <xref ref-type="fig" rid="fig1">Figure 1</xref> that, for small eccentricity like e = 0.05, the difference in the errors between consecutive interpolation schemes is approximately two orders of magnitude. As e increases to 1, this difference decreases and all four errors in <xref ref-type="fig" rid="fig1">Figure 1</xref> appear to converge. We also computed the error in the velocity and found that it is nearly two orders of magnitude larger than the error in the position. These experiments were also performed in quadruple-precision, but there was hardly any difference between the estimated errors obtained in double- and quadruple-precision. For example, using a 3-step interpolation scheme with eccentricity 0.05 and 0.9, the differences between the estimated errors in the position obtained in double- and quadruple-precision are 4.40 &#215; 10<sup>−</sup><sup>15</sup> and 1.67 &#215; 10<sup>−</sup><sup>14</sup>, respectively. We conclude that the interpolation schemes are not affected a great deal by the round-off error when using 30 evenly spaced sub-intervals.</p><p>As mentioned earlier, the same sets of experiments described in <xref ref-type="fig" rid="fig1">Figure 1</xref>, were also done with different numbers of sub-intervals. We experimented with 17, 79, 255, and 1080 evenly spaced sub-intervals over the interval<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x150.png" xlink:type="simple"/></inline-formula>. The associated errors for e = 0.05 are shown in <xref ref-type="table" rid="table2">Table 2</xref>. This particular selection of the number of sub-intervals is due to the fact that we wish to maintain the best observed accuracy of the integrators ODEX2, ERKN101217, ERKN689, and<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x150.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x151.png" xlink:type="simple"/></inline-formula>; see [<xref ref-type="bibr" rid="scirp.52614-ref10">10</xref>] and note that we use a time-step of 4 days for<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x150.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x151.png" xlink:type="simple"/></inline-formula><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x152.png" xlink:type="simple"/></inline-formula>. For example, the ODEX2 integrator applied to the Jovian problem achieves best accuracy using tolerance 10<sup>−</sup><sup>16</sup> and an average time-step of approximately 260 days over one million years. Since Jupiter’s orbital period is approximately 4320 Earth days, a time-step of 260 days gives approximately 17 steps.</p><p>The results in <xref ref-type="table" rid="table2">Table 2</xref> show reasonably good agreement with the expected values calculated from the orders of the polynomial, discounting the possible increase in round-off error from using a higher-order interpolation scheme and a large number of sub-intervals. For example, using the cubic Hermite interpolation scheme, and going from 17 to 79 sub-intervals, the expected value is <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x153.png" xlink:type="simple"/></inline-formula> which has very good agreement with the value 0.15 &#215; 10<sup>−</sup><sup>08</sup> mentioned in <xref ref-type="table" rid="table2">Table 2</xref>.</p><p>From <xref ref-type="table" rid="table2">Table 2</xref> we find that the accuracy for a given interpolation scheme improves if the number of sub-in- tervals increases. We also deduce from <xref ref-type="table" rid="table2">Table 2</xref> that it makes no sense to use any of the four interpolation schemes with ODEX2 if the required maximum global error is 10<sup>−</sup><sup>15</sup> and 17 sub-intervals are used. For 79 sub- intervals (used for ERKN101217) only the 2-step and 3-step Hermite interpolation schemes achieve the required accuracy. Similarly, for ERKN689, the quintic and 2-step interpolation schemes achieve the required accuracy, whereas for the <inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x154.png" xlink:type="simple"/></inline-formula> integrator, only the quintic Hermite interpolation scheme does.</p></sec><sec id="s2_2"><title>2.2. Computational Cost of Interpolation Schemes</title><p>Let us now consider the CPU-time by looking at individual interpolation schemes. Our expectation, at least for the interpolation schemes, is that the CPU-time is proportional to the number of multiplications. If one interpolation scheme uses twice as many multiplications then the CPU-time is expected to be twice as large. There will not be many divisions, and the number of subtractions and additions is typically proportional to the number of multiplications. Normally, when timing a program, an overhead is introduced. Therefore, care has been taken not to include such overheads in the final results. We also checked reproducibility of the results and observed a maximum variation of not more than 2.5%.</p><p>As discussed earlier, there are two different approaches to form interpolation schemes. Here, the experiments are performed using a direct approach for cubic and quintic Hermite interpolation, and the Newton divided difference approach for 2-step and 3-step Hermite interpolation schemes. In most cases, interpolation schemes are split into two subroutines, one for finding the coefficients and one for evaluating the polynomials. For ERKN689 and ERKN101217, with the interpolants we have additional stage derivatives (function evaluations). Overall, we have three different groups of interpolation schemes:</p><p>1) For cubic and quintic Hermite interpolation schemes, we evaluate the coefficients of the polynomial, which are independent of the components, and the polynomial as one subroutine.</p><p>2) For 2-step and 3-step Hermite interpolation schemes, we have two subroutines:</p><p>a) The calculation of the coefficients by forming a Newton divided difference table;</p><p>b) The evaluation of the polynomial.</p><p>3) For the interpolants, we have three subroutines:</p><p>a) The evaluation of the coefficients<inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x155.png" xlink:type="simple"/></inline-formula>;</p><p>b) The evaluation of the additional stage derivatives;</p><p>c) The evaluation of the polynomial using a) and b).</p><p>For ODEX2, the pieces of information required to form the interpolant are considered part of the integration, and we only consider the evaluation of the polynomial; see <xref ref-type="table" rid="table5">Table 5</xref>.</p><p>Since the coefficients of the polynomials for cubic and quintic interpolations are independent of the components, the experiments for these interpolation schemes are performed as one unit. As can be seen from the formulae in Sections 1.1.2 and 1.1.3, the quintic Hermite interpolation scheme uses approximately 93% more multiplications than cubic Hermite interpolation when applied to the Jovian problem. When we did our experiment, we found that the quintic Hermite interpolation scheme uses approximately 96% more CPU-time than cubic Hermite interpolation, which is in good agreement with the expected value.</p><p><xref ref-type="table" rid="table3">Table 3</xref> shows the CPU-time for finding the stage derivatives of the pairs (without the cost of additional stage derivatives) used in ERKN689 and ERKN101217 when applied to the Jovian problem. With ERKN689 we use the property FSAL (first same as last), so that we need only 8 derivative evaluations per step. Similarly, the 12-stage interpolant has effectively 11 stage derivatives. Observe from <xref ref-type="table" rid="table3">Table 3</xref> that the average CPU-time consumed per stage is approximately 8.74 &#215; 10<sup>−</sup><sup>07</sup> and 8.71 &#215; 10<sup>−</sup><sup>07</sup> for ERKN689 and ERKN101217, respectively. Therefore, the expected CPU-time for ERKN689 with a 12-stage interpolant is approximately 9.61 &#215; 10<sup>−</sup><sup>06</sup>. For ERKN101217, the expected CPU-time for finding coefficients is approximately 2.00 &#215; 10<sup>−</sup><sup>05</sup>, 2.26 &#215; 10<sup>−</sup><sup>05</sup>, and 2.52 &#215; 10<sup>−</sup><sup>05</sup> with 23-stage, 26-stage, and 29-stage interpolants, respectively.</p><p><xref ref-type="table" rid="table4">Table 4</xref> gives the CPU time needed to find the coefficients of the interpolation schemes and evaluate all the derivatives for the interpolants when solving the Jovian problem. We observe that all values in <xref ref-type="table" rid="table4">Table 4</xref> have reasonably good agreement with the prescribed values for CPU-time. Note also that the 3-step Hermite interpolation scheme in <xref ref-type="table" rid="table4">Table 4</xref> uses approximately 96% more multiplications than the 2-step Hermite interpolation scheme, which is reasonably well matched by our finding of 93%.</p><p><xref ref-type="table" rid="table5">Table 5</xref> shows the CPU-time for evaluating the position and velocity components using the different interpolation polynomials. The 3-step interpolation scheme uses approximately 76% more CPU-time than the 2-step interpolation, which is again in agreement with the CPU-times observed in <xref ref-type="table" rid="table4">Table 4</xref>. Similarly, the difference in</p><table-wrap id="table3" ><label><xref ref-type="table" rid="table3">Table 3</xref></label><caption><title> The CPU-time in seconds for evaluating the stage derivatives (without the cost of additional function evaluations) for ERKN689 and ERKN101217 applied to the Jovian problem</title></caption><table><tbody><thead><tr><th align="center" valign="middle"  rowspan="2"  >Integrator</th><th align="center" valign="middle" >ERKN689</th><th align="center" valign="middle" >ERKN101217</th></tr></thead><tr><td align="center" valign="middle" >9-stage</td><td align="center" valign="middle" >17-stage</td></tr><tr><td align="center" valign="middle" >CPU-time</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x156.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x157.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><table-wrap id="table4" ><label><xref ref-type="table" rid="table4">Table 4</xref></label><caption><title> The CPU-time in seconds for finding the coefficients of the interpolation schemes and evaluating all the stage derivatives of the interpolants applied to the Jovian problem</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Interpolation</th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th><th align="center" valign="middle" >ERKN689</th><th align="center" valign="middle"  colspan="3"  >ERKN101217</th></tr></thead><tr><td align="center" valign="middle" >Polynomial</td><td align="center" valign="middle" >2-step</td><td align="center" valign="middle" >3-step</td><td align="center" valign="middle" >12-stage</td><td align="center" valign="middle" >23-stage</td><td align="center" valign="middle" >26-stage</td><td align="center" valign="middle" >29-stage</td></tr><tr><td align="center" valign="middle" >CPU-time</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x158.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x159.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x160.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x161.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x162.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x163.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><table-wrap id="table5" ><label><xref ref-type="table" rid="table5">Table 5</xref></label><caption><title> The CPU-time in seconds for evaluating the position and velocity polynomials using different interpolation polynomials applied to the Jovian problem</title></caption><table><tbody><thead><tr><th align="center" valign="middle" >Interpolation</th><th align="center" valign="middle" ></th><th align="center" valign="middle" ></th><th align="center" valign="middle" >ERKN68</th><th align="center" valign="middle"  colspan="3"  >ERKN101217</th><th align="center" valign="middle" >ODEX2</th></tr></thead><tr><td align="center" valign="middle" >Polynomial</td><td align="center" valign="middle" >2-step</td><td align="center" valign="middle" >3-step</td><td align="center" valign="middle" >12-stage</td><td align="center" valign="middle" >23-stage</td><td align="center" valign="middle" >26-stage</td><td align="center" valign="middle" >29-stage</td><td align="center" valign="middle" >Interpolant</td></tr><tr><td align="center" valign="middle" >CPU-time</td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x164.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x165.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x166.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x167.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x168.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x169.png" xlink:type="simple"/></inline-formula></td><td align="center" valign="middle" ><inline-formula><inline-graphic xlink:href="http://html.scirp.org/file/5-1100394x170.png" xlink:type="simple"/></inline-formula></td></tr></tbody></table></table-wrap><p>CPU-time between the 23-stage and 29-stage interpolants is twice the difference between the 23-stage and 26- stage interpolants which is in good agreement with the difference observed in <xref ref-type="table" rid="table4">Table 4</xref>.</p></sec></sec><sec id="s3"><title>3. Summary</title><p>The primary objective of this paper was to discuss the accuracy and computational cost of different interpolation schemes while performing N-body simulations. The interpolation schemes play a vital role in these kinds of simulations. We constructed three different types, namely, one-step (cubic and quintic Hermite), two-step and three-step Hermite interpolation schemes. For short-term simulations, we investigated the performance of these interpolation schemes applied to the Kepler problem over the interval [0, 2] for eccentricities in the range [0.05, 0.9]. We observed that the maximum error in position was monotonically increasing as a function of eccentricity. For a given number of sub-intervals we used in this paper, the higher-order interpolation schemes achieve better accuracy and for a given interpolation scheme the accuracy improves if the number of sub-intervals is increased. We also investigated the CPU-time by looking at individual interpolation schemes. Our expectation, at least for the interpolation schemes, was that the CPU-time was proportional to the number of multiplications. For example, the quintic Hermite interpolation scheme uses approximately 93% more multiplications than cubic Hermite interpolation when applied to the Jovian problem. When we did our experiment, we found that the quintic Hermite interpolation scheme used approximately 96% more CPU-time than cubic Hermite interpolation, which was in good agreement with the expected value. We also checked reproducibility of the results and observed a maximum variation of not more than 2.5%.</p></sec><sec id="s4"><title>Acknowledgements</title><p>The author is grateful to the Higher Education Commission (HEC) of Pakistan for providing the funding to carry out this research. Special thanks go to Dr. P. W. Sharp and Prof. H. M. Osinga for their valuable suggestions, discussions, and guidance throughout this research.</p></sec><sec id="s5"><title>Cite this paper</title><p>Shafiq UrRehman,11, (2014) Accuracy and Computational Cost of Interpolation Schemes While Performing N-Body Simulations. American Journal of Computational Mathematics,04,446-454. doi: 10.4236/ajcm.2014.45037</p></sec></body><back><ref-list><title>References</title><ref id="scirp.52614-ref1"><label>1</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>Nystr&amp;ouml;m</surname><given-names> E.J. </given-names></name>,<etal>et al</etal>. (<year>1925</year>)<article-title>&amp;UUML;ber die numerische Integration von Differentialgleichungen</article-title><source> Acta Societatis Scientiarum Fennicae</source><volume> 50</volume>,<fpage> 1</fpage>-<lpage>54</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.52614-ref2"><label>2</label><mixed-citation publication-type="other" xlink:type="simple">Dormand, J., El-Mikkawy, M.E.A. and Prince, P. (1987) Higher Order Embedded Runge-Kutta-Nystr&amp;ouml;m Formulae. IMA Journal of Numerical Analysis, 7, 423-430. http://dx.doi.org/10.1093/imanum/7.4.423</mixed-citation></ref><ref id="scirp.52614-ref3"><label>3</label><mixed-citation publication-type="other" xlink:type="simple">Dormand, J.R. and Prince, P.J. (1987) New Runge-Kutta Algorithms for Numerical Simulation in Dynamical Astronomy. Celestial Mechanics, 18, 223-232. http://dx.doi.org/10.1007/BF01230162</mixed-citation></ref><ref id="scirp.52614-ref4"><label>4</label><mixed-citation publication-type="other" xlink:type="simple">Baker, T.S., Dormand, J.R. and Prince, P.J. (1999) Continuous Approximation with Embedded Runge-Kutta-Nystr&amp;ouml;m Methods. Applied Numerical Mathematics, 29, 171-188. http://dx.doi.org/10.1016/S0168-9274(98)00065-8</mixed-citation></ref><ref id="scirp.52614-ref5"><label>5</label><mixed-citation publication-type="other" xlink:type="simple">Hairer, E., N&amp;oslash;rsett, S.P. and Wanner, G. (1987) Solving Ordinary Differential Equations I: Nonstiff Problems. Springer-Verlag, Berlin.</mixed-citation></ref><ref id="scirp.52614-ref6"><label>6</label><mixed-citation publication-type="journal" xlink:type="simple"><name name-style="western"><surname>St&amp;ouml;rmer</surname><given-names> C. </given-names></name>,<etal>et al</etal>. (<year>1907</year>)<article-title>Sur les trajectoires des corpuscles électrisés</article-title><source> Acta Societatis Scientiarum Fennicae</source><volume> 24</volume>,<fpage> 221</fpage>-<lpage>247</lpage>.<pub-id pub-id-type="doi"></pub-id></mixed-citation></ref><ref id="scirp.52614-ref7"><label>7</label><mixed-citation publication-type="other" xlink:type="simple">Grazier, K.R., Newman, W.I., Kaula, W.M. and Hyman, J.M. (1999) Dynamical Evolution of Planetesimals in Outer Solar System. ICARUS, 140, 341-352. http://dx.doi.org/10.1006/icar.1999.6146</mixed-citation></ref><ref id="scirp.52614-ref8"><label>8</label><mixed-citation publication-type="other" xlink:type="simple">Grazier, K.R. (1997) The Stability of Planetesimal Niches in the Outer Solar System: A Numerical Investigation. Ph.D. Thesis, University of California, Berkeley.</mixed-citation></ref><ref id="scirp.52614-ref9"><label>9</label><mixed-citation publication-type="other" xlink:type="simple">Grazier, K.R., Newman, W.I. and Sharp, P.W. (2013) A Multirate St&amp;ouml;rmer Algorithm for Close Encounters. The Astronomical Journal, 145, 112-119. http://dx.doi.org/10.1088/0004-6256/145/4/112</mixed-citation></ref><ref id="scirp.52614-ref10"><label>10</label><mixed-citation publication-type="other" xlink:type="simple">Rehman, S. (2013) Jovian Problem: Performance of Some High-Order Numerical Integrators. American Journal of Computational Mathematics, 3, 195-204. http://dx.doi.org/10.4236/ajcm.2013.33028</mixed-citation></ref></ref-list></back></article>