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
from __future__ import division | |
import numpy | |
import matplotlib.pyplot as pyplot | |
import scipy.integrate | |
import random | |
USER = "Aaron Abraham" | |
USER_ID = "ztjd74" | |
t_half_rad = 20.8 #initial conditions |
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
const cons = (head, tail) => | |
bool => bool ? head : tail | |
const head = pair => pair(true) | |
const tail = pair => pair(false) | |
const pairToString = pair => "(" + head(pair) + "," + tail(pair) + ")" | |
const myPair = cons(1, 2) | |
console.log(pairToString(myPair)) |