Skip to content

Commit

Permalink
Update procedure inexact? to built-in
Browse files Browse the repository at this point in the history
Signed-off-by: yamacir-kit <[email protected]>
  • Loading branch information
yamacir-kit committed Oct 2, 2023
1 parent a49c8ec commit 25d48e8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 15 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Procedures for each standard are provided by the following R7RS-style libraries:
cmake -B build -DCMAKE_BUILD_TYPE=Release
cd build
make package
sudo apt install build/meevax_0.5.8_amd64.deb
sudo apt install build/meevax_0.5.9_amd64.deb
```

or
Expand Down Expand Up @@ -131,9 +131,9 @@ sudo rm -rf /usr/local/share/meevax

| Target Name | Description
|-------------|-------------
| `all` | Build shared-library `libmeevax.0.5.8.so` and executable `meevax`
| `all` | Build shared-library `libmeevax.0.5.9.so` and executable `meevax`
| `test` | Test executable `meevax`
| `package` | Generate debian package `meevax_0.5.8_amd64.deb`
| `package` | Generate debian package `meevax_0.5.9_amd64.deb`
| `install` | Copy files into `/usr/local` directly

## Usage
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.5.8
0.5.9
12 changes: 1 addition & 11 deletions basis/r4rs.ss
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
rational?
integer?
exact?
inexact?
= < > <= >=
+ * - /
abs
Expand Down Expand Up @@ -332,17 +333,6 @@
(car alist)
(assoc (cdr alist)))))))

(define (inexact? z)
(define (inexact-complex? x)
(and (imaginary? x)
(or (inexact? (real-part x))
(inexact? (imag-part x)))))
(define (floating-point? z)
(or (single-float? z)
(double-float? z)))
(or (inexact-complex? z)
(floating-point? z)))

(define (zero? n)
(= n 0))

Expand Down

0 comments on commit 25d48e8

Please sign in to comment.