@@ -6,7 +6,7 @@ From the Octave command-line run:
6
6
7
7
8
8
``` octave
9
- pkg install 'https://github.com/gnu-octave/apa/releases/download/v0.1.6 /apa-0.1.6 .zip'
9
+ pkg install 'https://github.com/gnu-octave/apa/releases/download/v0.1.7 /apa-0.1.7 .zip'
10
10
pkg load apa
11
11
pkg test apa
12
12
```
@@ -15,10 +15,10 @@ From the Matlab command-line run (also works for Octave):
15
15
16
16
17
17
``` octave
18
- urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.6 /apa-0.1.6 .zip', ...
19
- 'apa-0.1.6 .zip');
20
- unzip ('apa-0.1.6 .zip');
21
- cd (fullfile ('apa-0.1.6 ', 'inst'))
18
+ urlwrite ('https://github.com/gnu-octave/apa/releases/download/v0.1.7 /apa-0.1.7 .zip', ...
19
+ 'apa-0.1.7 .zip');
20
+ unzip ('apa-0.1.7 .zip');
21
+ cd (fullfile ('apa-0.1.7 ', 'inst'))
22
22
install_apa
23
23
test_apa
24
24
```
@@ -37,11 +37,11 @@ rop = op1 + 1
37
37
```
38
38
39
39
rop =
40
-
40
+
41
41
5 1 1
42
42
1 5 1
43
43
1 1 5
44
-
44
+
45
45
46
46
47
47
However, you can adjust the binary precision.
@@ -59,11 +59,11 @@ A(3,3) = A(3,3) + too_small
59
59
60
60
too_small = 8.673617379884035e-19
61
61
A =
62
-
62
+
63
63
1 1 1
64
64
1 1 1
65
65
1 1 1
66
-
66
+
67
67
68
68
69
69
@@ -72,11 +72,11 @@ B = A - ones (3)
72
72
```
73
73
74
74
B =
75
-
75
+
76
76
0 0 0
77
77
0 0 0
78
78
0 0 0
79
-
79
+
80
80
81
81
82
82
The same calculation using APA and quadruple precision (113 binary digits):
@@ -88,11 +88,11 @@ A(3,3) = A(3,3) + too_small
88
88
```
89
89
90
90
A =
91
-
91
+
92
92
1 1 1
93
93
1 1 1
94
94
1 1 1.00000000000000000086736173798840355
95
-
95
+
96
96
97
97
98
98
@@ -103,11 +103,11 @@ B = A - ones (3)
103
103
```
104
104
105
105
B =
106
-
106
+
107
107
0 * 2^(-1) 0 * 2^(-1) 0 * 2^(-1)
108
108
0 * 2^(-1) 0 * 2^(-1) 0 * 2^(-1)
109
109
0 * 2^(-1) 0 * 2^(-1) 1 * 2^(-60)
110
-
110
+
111
111
112
112
113
113
The high-level MPFR interface is the preferred choice for quick numerical
@@ -161,11 +161,11 @@ rop % Note rop vs. ret!
161
161
```
162
162
163
163
rop =
164
-
164
+
165
165
6 2 2
166
166
2 6 2
167
167
2 2 6
168
-
168
+
169
169
170
170
171
171
In the low-level interface the type checks are stricter,
0 commit comments