Skip to content

Instantly share code, notes, and snippets.

@radiodario
Last active August 29, 2015 14:00
Show Gist options
  • Save radiodario/11404256 to your computer and use it in GitHub Desktop.
Save radiodario/11404256 to your computer and use it in GitHub Desktop.
Some other test
var $now = Date.now();
var pi = Math.PI;
function sinc(x) => (x==0)?1:Math.sin(pi*x)/(pi*x);
proc source(start, end, step) {
var N = (end - start) / step, HZ = 1 / step;
emitter -hz HZ -limit N -start (start*1000) -reset 1 }
source(-5,5,0.1) | put x=time/1000, y=(sinc(3*x)+1)*10
-> timechart -duration 10 -columns y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment