This file contains hidden or 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
# Changes to defaults for "make" | |
# ============================================================ | |
# How many cores do we have? Find out from /proc/cpuinfo (using regexp matching | |
# the start of info for a new processor). | |
NCORES=`grep --count '^processor[[:space:]]*:' /proc/cpuinfo` | |
# Apparently make runs fastest with one more job than there are cores. | |
NJOBS=$(($NCORES + 1)) | |
export MAKEFLAGS="-j$NJOBS" |
This file contains hidden or 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
#!/usr/bin/env python | |
import subprocess as subp | |
from multiprocessing import Pool | |
import itertools | |
import sys | |
import numbers | |
import argparse |
This file contains hidden or 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
(define (q t) (abs (- t 5)) |
This file contains hidden or 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
;; Just use the transformation from the example then pull out the velocity from the tuple. | |
(define (velocity-transform coordinate-transform) | |
(compose (lambda (tuple) (velocity tuple)) (F->C coordinate-transform))) | |
;; ;; Or explicitly using Gamma-bar this is: | |
;; (define (velocity-transform coordinate-transform) | |
;; (define (f-bar q-prime) | |
;; (define q (compose coordinate-transform (Gamma q-prime))) | |
;; (Gamma q)) | |
;; (compose (lambda (x) (velocity x)) (Gamma-bar f-bar))) |
NewerOlder