[ 
https://issues.apache.org/jira/browse/MATH-937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13590463#comment-13590463
 ] 

Christoph Höger commented on MATH-937:
--------------------------------------

I had a look at TestProblem4. Here (in class Bounce) a sign variable is 
introduced. This quirk seems to fix my problem too. This might be a problem 
with the event detection funtion g. 

The documentation states that: 

> The switching function must be continuous in its roots neighborhood

So it needs to be continuous _after_ an event as well? The documentation should 
clearly state that if it is the case IMO, since events are usually used to 
implement non-continuous behavior in a system.
                
> NoBracketingException after event was found
> -------------------------------------------
>
>                 Key: MATH-937
>                 URL: https://issues.apache.org/jira/browse/MATH-937
>             Project: Commons Math
>          Issue Type: Bug
>    Affects Versions: 3.1.1
>            Reporter: Christoph Höger
>         Attachments: ApacheCommonsBouncingBall.java, 
> ApacheCommonsBouncingBallTest.java
>
>
> The BracketingNthOrderBrentSolver used by the EmbeddedRungeKuttaIntegrator 
> fails, if an event is detected twice with a NoBracketingException.
> The problem lies in line EventState.java line 262 (version 3.1.1). Here the 
> event detection function f is applied to an arbitrary choosen value of time. 
> If the event detector crosses zero before this time, the solver throws the 
> mentioned exception.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to