close Warning: Can't synchronize with repository "(default)" (/var/svn/tolp does not appear to be a Subversion repository.). Look in the Trac log for more information.

Opened 17 years ago

Closed 17 years ago

#545 closed defect (fixed)

Fail in FibonacciMin function with low tolerance

Reported by: Víctor de Buen Remiro Owned by: Víctor de Buen Remiro
Priority: highest Milestone:
Component: Math Version: head
Severity: blocker Keywords:
Cc:

Description

FibonacciMin function fails when a low tolerance (1.E-12) is used. It explores points out the interval and can even be hanged if tolerance is very small (1.E-500)

Real tolerance = 1.E-12;
Real S2(Real delta)
{

WriteLn("S2("<<delta+")="<<(delta2));
delta
2

};
Real delta_=0.5;
Real s2_ = FibonacciMin(S2,delta_,-1,1,tolerance);

Change History (2)

comment:1 Changed 17 years ago by Víctor de Buen Remiro

Owner: changed from danirus to Víctor de Buen Remiro

comment:2 Changed 17 years ago by Víctor de Buen Remiro

bug_file_loc: http://cvs.tol-project.org/viewcvs.cgi/tol_tests/tol/Bugzilla/bug_000545
Resolution: fixed
Status: newclosed

Problem has been fixed by using BArray<BINT64> instead of BArray<int> to store fibonacci series in order to avoid numerical errors

Note: See TracTickets for help on using tickets.