-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #451 from gfngfn/dev-0-1-0-refine-testing-mechanism
Refine testing mechanism
- Loading branch information
Showing
37 changed files
with
1,157 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
6f999952b41a3e7480a833f72ac173327765ddba refs/heads/temp-dev-saphe | ||
7ffc504e51d1bc5bf4ad5ce7e8cb333616eb8f7e refs/heads/temp-dev-saphe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
use open Basic | ||
|
||
module Float :> sig | ||
type t = float | ||
val ~lift : float -> code float | ||
val persistent ~abs : float -> float | ||
val persistent ~max : float -> float -> float | ||
val persistent ~min : float -> float -> float | ||
val persistent ~pi : float | ||
val persistent ~power : float -> float -> float | ||
val persistent ~sqrt : float -> float | ||
end = struct | ||
|
||
type t = float | ||
|
||
val ~lift x = | ||
lift-float x | ||
|
||
val persistent ~abs x = | ||
if x >=. 0. then x else 0. -. x | ||
|
||
val persistent ~max x1 x2 = | ||
if x1 >=. x2 then x1 else x2 | ||
|
||
val persistent ~min x1 x2 = | ||
if x1 <=. x2 then x1 else x2 | ||
|
||
val persistent ~pi = | ||
3.1415926536 | ||
|
||
val persistent ~power y x = | ||
exp (y *. log x) | ||
|
||
val persistent ~sqrt = | ||
power 0.5 | ||
|
||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.