Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 29713 invoked from network); 24 Mar 2010 22:13:51 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 24 Mar 2010 22:13:51 -0000 Received: (qmail 24855 invoked by uid 500); 24 Mar 2010 22:13:51 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 24755 invoked by uid 500); 24 Mar 2010 22:13:51 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 24747 invoked by uid 99); 24 Mar 2010 22:13:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 22:13:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Mar 2010 22:13:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7C9C0234C506 for ; Wed, 24 Mar 2010 22:13:27 +0000 (UTC) Message-ID: <645508493.475581269468807509.JavaMail.jira@brutus.apache.org> Date: Wed, 24 Mar 2010 22:13:27 +0000 (UTC) From: "Luc Maisonobe (JIRA)" To: issues@commons.apache.org Subject: [jira] Resolved: (MATH-358) ODE integrator goes past specified end of integration range In-Reply-To: <244082191.464961269451647702.JavaMail.jira@brutus.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MATH-358?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Luc Maisonobe resolved MATH-358. -------------------------------- Resolution: Fixed fixed in subversion repository as of r927202 > ODE integrator goes past specified end of integration range > ----------------------------------------------------------- > > Key: MATH-358 > URL: https://issues.apache.org/jira/browse/MATH-358 > Project: Commons Math > Issue Type: Bug > Affects Versions: 2.0 > Environment: Linux > Reporter: Luc Maisonobe > Assignee: Luc Maisonobe > Priority: Critical > Fix For: 2.1 > > > End of integration range in ODE solving is handled as an event. > In some cases, numerical accuracy in events detection leads to error in events location. > The following test case shows the end event is not handled properly and an integration that should cover a 60s range in fact covers a 160s range, more than twice the specified range. > {code} > public void testMissedEvent() throws IntegratorException, DerivativeException { > final double t0 = 1878250320.0000029; > final double t = 1878250379.9999986; > FirstOrderDifferentialEquations ode = new FirstOrderDifferentialEquations() { > > public int getDimension() { > return 1; > } > > public void computeDerivatives(double t, double[] y, double[] yDot) > throws DerivativeException { > yDot[0] = y[0] * 1.0e-6; > } > }; > DormandPrince853Integrator integrator = new DormandPrince853Integrator(0.0, 100.0, > 1.0e-10, 1.0e-10); > double[] y = { 1.0 }; > integrator.setInitialStepSize(60.0); > double finalT = integrator.integrate(ode, t0, y, t, y); > Assert.assertEquals(t, finalT, 1.0e-6); > } > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.