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
#lang r5rs | |
(define amb-fail '*) | |
(define initialize-amb-fail | |
(lambda () | |
(set! amb-fail | |
(lambda () | |
(display "amb tree exhausted"))))) | |
(initialize-amb-fail) |
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
import numpy as np | |
from pylab import * | |
raw = np.array([ | |
[0, 0.0], | |
[0.15708, 0.156313], | |
[0.314159, 0.308879], | |
[0.471239, 0.453952], | |
[0.628319, 0.587785], | |
[0.785398, 0.706871], |