Skip to content

Commit e3e9ef0

Browse files
Start to do some experiments with Microdown.
1 parent 24af120 commit e3e9ef0

File tree

3 files changed

+29
-38
lines changed

3 files changed

+29
-38
lines changed

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

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
"
2-
A Fixpoint is just a little utility. it calculates the fixpoint of a block with one variable. a starting value for the variable is necessary. the variable does not need to be numerical, it can be anything the block can eat and spit out.
3-
example:
4-
a:=Fixpoint block: [:x| 1/ (1+x )] value: 20.0.
5-
a evaluate.
6-
""-->0.6180339887498948""
2+
`PMFixpoint` is just a little utility. It calculates the fixpoint of a block with one variable. A starting value for the variable is necessary. The variable does not need to be numerical, it can be anything the block can eat and spit out.
73
4+
Example:
5+
6+
```
7+
| a |
8+
a := PMFixpoint block: [:x| 1/(1+x)] value: 20.0.
9+
a evaluate
10+
```
811
"
912
Class {
1013
#name : #PMFixpoint,
@@ -18,7 +21,7 @@ Class {
1821
'verbose',
1922
'equalityTest'
2023
],
21-
#category : 'Math-Core-Process'
24+
#category : #'Math-Core-Process'
2225
}
2326

2427
{ #category : #'instance-creation' }

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
"
2-
A PMIterativeProcess class is an abstract base class for processes which follow an iterative pattern.
2+
A `PMIterativeProcess` class is an abstract base class for processes which follow an iterative pattern.
33
4-
Subclasses of PMIterativeProcess will redefine
5-
initializeIterations
6-
evaluateIteration
7-
finalizeIterations
4+
Subclasses of `PMIterativeProcess` will redefine:
5+
- `initializeIterations`
6+
- `evaluateIteration`
7+
- `finalizeIterations`
88
9-
The instance variable result is used to store the most recent/best result, and is accessible through the result selector.
9+
The instance variable `result` is used to store the most recent/best result, and is accessible through the result selector.
1010
11-
The maximumIterations: method allows control of the amount of work this method is allowed to do. Each evaluation of the iteration increments the instance variable iterations. When this number exceeds maximumIterations, the evaluate method will stop the process, and answer result.
11+
The maximumIterations: method allows control of the amount of work this method is allowed to do. Each evaluation of the iteration increments the instance variable `iterations`. When this number exceeds `maximumIterations,` the evaluate method will stop the process, and answer `result`.
1212
1313
"
1414
Class {
@@ -21,7 +21,7 @@ Class {
2121
'result',
2222
'iterations'
2323
],
24-
#category : 'Math-Core-Process'
24+
#category : #'Math-Core-Process'
2525
}
2626

2727
{ #category : #default }

src/Math-Core/PMFloatingPointMachine.class.st

Lines changed: 12 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,16 @@
11
"
2-
A PMFloatingPointMachine represents the numerical precision of this system.
3-
4-
Instance Variables
5-
6-
defaultNumericalPrecision: The relative
7-
numerical precision that can be expected for a general numerical computation. One should consider to numbers a and b equal if the relative difference between them is less than the default machine precision.
8-
9-
largestExponentArgument: natural logarithm of largest number
10-
11-
largestNumber: The largest positive number that can be represented in the machine
12-
13-
machinePrecision: r^{-(n+1)}, with the largest n such that (1 + r^-n) - 1 != 0
14-
15-
negativeMachinePrecision: r^{-(n+1)}, with the largest n such that (1 - r^-n) - 1 != 0
16-
17-
radix: The radix of the floating point representation. This is often 2.
18-
19-
smallNumber: A number that can be added to some value without noticeably changing the result of the computation
20-
21-
smallestNumber: The smallest positive number different from 0.
22-
23-
24-
largestExponentArgument
25-
- xxxxx
2+
A `PMFloatingPointMachine` represents the numerical precision of this system.
3+
4+
##Instance Variables
5+
6+
- `defaultNumericalPrecision` The relative numerical precision that can be expected for a general numerical computation. One should consider to numbers a and b equal if the relative difference between them is less than the default machine precision,
7+
- `largestExponentArgument` Natural logarithm of largest number,
8+
- `largestNumber` The largest positive number that can be represented in the machine,
9+
- `machinePrecision` $r^{-(n+1)}$, with the largest n such that $(1 + r^{-n}) - 1$ != 0,
10+
- `negativeMachinePrecision` $r^{-(n+1)}$, with the largest n such that $(1 - r^{-n}) - 1$ != 0,
11+
- `radix` The radix of the floating point representation. This is often 2,
12+
- `smallNumber` A number that can be added to some value without noticeably changing the result of the computation,
13+
- `smallestNumber` The smallest positive number different from 0.
2614
2715
This class is detailed in Object Oriented Implementation of Numerical Methods, Section 1.4.1 and 1.4.2.
2816

0 commit comments

Comments
 (0)