Skip to content

Commit 08f7add

Browse files
committed
Remove floating point machine
1 parent 5362c64 commit 08f7add

File tree

4 files changed

+4
-49
lines changed

4 files changed

+4
-49
lines changed

src/Math-Core-Process/PMIterativeProcess.class.st

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ PMIterativeProcess class >> defaultMaximumIterations [
3333
{ #category : #default }
3434
PMIterativeProcess class >> defaultPrecision [
3535
"Private - Answers the default precision for newly created instances."
36-
^PMFloatingPointMachine new defaultNumericalPrecision
36+
37+
self flag: #todo. "In Pharo 12 the default comparision precision of Float will be improved. When Pharo 12 will be the minimal version of Polymath we can use `Float defaultComparisonPrecision"
38+
^ Float machineEpsilon sqrt
3739
]
3840

3941
{ #category : #initialization }

src/Math-Helpers/PMFloatingPointMachine.class.st

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/Math-Tests-FunctionFit/PMGeneralFunctionFitTest.class.st

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@ PMGeneralFunctionFitTest >> setUp [
1616
super setUp.
1717

1818
PMMitchellMooreGenerator reset: 0.
19-
"Reset the FloatingPointMachine to make coverage consistent"
20-
PMFloatingPointMachine reset.
2119
f := [ :x :a :b | (a * x) sin / (b + x squared) ].
2220
col := (-4 to: 4 by: 0.1) collect: [ :i | i @ (f cull: i cull: 0.1 cull: 0.4) ]
2321
]

src/Math-Tests-Numerical/PMNumericalMethodsTestCase.class.st

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ PMNumericalMethodsTestCase >> setUp [
99
"Reset the seed of the random numbers (to get consistent results)"
1010

1111
super setUp.
12-
PMMitchellMooreGenerator reset: 0.
13-
"Reset the FloatingPointMachine to make coverage consistent"
14-
PMFloatingPointMachine reset
12+
PMMitchellMooreGenerator reset: 0
1513
]
1614

1715
{ #category : #'linear algebra' }

0 commit comments

Comments
 (0)