mirror of
https://github.com/dlang/phobos.git
synced 2025-04-28 06:00:35 +03:00
Fix unittest, which assumes real > double.
This commit is contained in:
parent
cf71348d8d
commit
211dd50b6b
1 changed files with 2 additions and 2 deletions
|
@ -1498,8 +1498,8 @@ T findRoot(T, R)(scope R delegate(T) f, in T a, in T b,
|
|||
//++numCalls;
|
||||
if (x>float.max)
|
||||
x = float.max;
|
||||
if (x<-double.max)
|
||||
x = -double.max;
|
||||
if (x<-float.max)
|
||||
x = -float.max;
|
||||
// This has a single real root at -59.286543284815
|
||||
return 0.386*x*x*x + 23*x*x + 15.7*x + 525.2;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue