Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Fibonacci Sequence in streamtools
{"blocks":[{"label":"","type":"identity","id":1,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":295,"y":325}},{"label":"","type":"+","id":2,"inputs":[{"name":"x","value":null,"type":"number"},{"name":"y","value":{"data":1},"type":"number"}],"outputs":[{"name":"x+y","type":"number"}],"source":null,"position":{"x":293,"y":203}},{"label":"","type":"latch","id":3,"inputs":[{"name":"in","value":null,"type":"any"},{"name":"ctrl","value":null,"type":"boolean"}],"outputs":[{"name":"true","type":"any"},{"name":"false","type":"any"}],"source":null,"position":{"x":191,"y":133}},{"label":"","type":"first","id":4,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"first","type":"any"}],"source":null,"position":{"x":133,"y":231}},{"label":"","type":"identity","id":5,"inputs":[{"name":"in","value":{"data":0},"type":"any"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":62,"y":133}},{"label":"","type":"^","id":6,"inputs":[{"name":"base","value":null,"type":"number"},{"name":"exponent","value":null,"type":"number"}],"outputs":[{"name":"power","type":"number"}],"source":null,"position":{"x":488,"y":166}},{"label":"","type":"sqrt","id":7,"inputs":[{"name":"in","value":{"data":5},"type":"number"}],"outputs":[{"name":"squareRoot","type":"number"}],"source":null,"position":{"x":271,"y":36}},{"label":"","type":"+","id":8,"inputs":[{"name":"x","value":{"data":1},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x+y","type":"number"}],"source":null,"position":{"x":416,"y":105}},{"label":"","type":"-","id":9,"inputs":[{"name":"x","value":null,"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x-y","type":"number"}],"source":null,"position":{"x":725,"y":162}},{"label":"","type":"-","id":10,"inputs":[{"name":"x","value":{"data":1},"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x-y","type":"number"}],"source":null,"position":{"x":534,"y":282}},{"label":"","type":"sqrt","id":11,"inputs":[{"name":"in","value":{"data":5},"type":"number"}],"outputs":[{"name":"squareRoot","type":"number"}],"source":null,"position":{"x":397,"y":215}},{"label":"","type":"^","id":12,"inputs":[{"name":"base","value":null,"type":"number"},{"name":"exponent","value":null,"type":"number"}],"outputs":[{"name":"power","type":"number"}],"source":null,"position":{"x":620,"y":359}},{"label":"","type":"/","id":13,"inputs":[{"name":"x","value":null,"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x/y","type":"number"}],"source":null,"position":{"x":791,"y":402}},{"label":"","type":"^","id":14,"inputs":[{"name":"base","value":{"data":2},"type":"number"},{"name":"exponent","value":null,"type":"number"}],"outputs":[{"name":"power","type":"number"}],"source":null,"position":{"x":410,"y":411}},{"label":"","type":"log","id":15,"inputs":[{"name":"log","value":null,"type":"any"}],"outputs":[],"source":null,"position":{"x":968,"y":642}},{"label":"","type":"delay","id":17,"inputs":[{"name":"in","value":null,"type":"any"},{"name":"duration","value":{"data":"1s"},"type":"string"}],"outputs":[{"name":"out","type":"any"}],"source":null,"position":{"x":720,"y":525}},{"label":"","type":"*","id":37,"inputs":[{"name":"x","value":null,"type":"number"},{"name":"y","value":null,"type":"number"}],"outputs":[{"name":"x*y","type":"number"}],"source":null,"position":{"x":605,"y":412}},{"label":"","type":"sqrt","id":38,"inputs":[{"name":"in","value":{"data":5},"type":"number"}],"outputs":[{"name":"squareRoot","type":"number"}],"source":null,"position":{"x":430,"y":496}},{"label":"","type":"ToString","id":44,"inputs":[{"name":"in","value":null,"type":"any"}],"outputs":[{"name":"out","type":"string"}],"source":null,"position":{"x":400,"y":617}},{"label":"","type":"concat","id":45,"inputs":[{"name":"a","value":{"data":"iteration_"},"type":"string"},{"name":"b","value":null,"type":"string"}],"outputs":[{"name":"a+b","type":"string"}],"source":null,"position":{"x":728,"y":686}},{"label":"","type":"set","id":48,"inputs":[{"name":"key","value":null,"type":"string"},{"name":"value","value":null,"type":"any"}],"outputs":[{"name":"object","type":"object"}],"source":null,"position":{"x":826,"y":600}}],"sources":[],"links":[],"connections":[{"from":{"id":8,"route":0},"to":{"id":6,"route":0},"id":25},{"from":{"id":2,"route":0},"to":{"id":12,"route":1},"id":30},{"from":{"id":2,"route":0},"to":{"id":44,"route":0},"id":47},{"from":{"id":5,"route":0},"to":{"id":3,"route":0},"id":52},{"from":{"id":37,"route":0},"to":{"id":13,"route":1},"id":41},{"from":{"id":5,"route":0},"to":{"id":4,"route":0},"id":19},{"from":{"id":2,"route":0},"to":{"id":1,"route":0},"id":20},{"from":{"id":1,"route":0},"to":{"id":2,"route":0},"id":21},{"from":{"id":17,"route":0},"to":{"id":48,"route":1},"id":50},{"from":{"id":2,"route":0},"to":{"id":14,"route":1},"id":33},{"from":{"id":10,"route":0},"to":{"id":12,"route":0},"id":43},{"from":{"id":7,"route":0},"to":{"id":8,"route":1},"id":24},{"from":{"id":2,"route":0},"to":{"id":6,"route":1},"id":26},{"from":{"id":44,"route":0},"to":{"id":45,"route":1},"id":46},{"from":{"id":48,"route":0},"to":{"id":15,"route":0},"id":51},{"from":{"id":38,"route":0},"to":{"id":37,"route":1},"id":39},{"from":{"id":14,"route":0},"to":{"id":37,"route":0},"id":40},{"from":{"id":4,"route":0},"to":{"id":3,"route":1},"id":23},{"from":{"id":6,"route":0},"to":{"id":9,"route":0},"id":27},{"from":{"id":11,"route":0},"to":{"id":10,"route":1},"id":28},{"from":{"id":12,"route":0},"to":{"id":9,"route":1},"id":31},{"from":{"id":9,"route":0},"to":{"id":13,"route":0},"id":32},{"from":{"id":13,"route":0},"to":{"id":17,"route":0},"id":35},{"from":{"id":3,"route":0},"to":{"id":2,"route":0},"id":42},{"from":{"id":45,"route":0},"to":{"id":48,"route":0},"id":49}],"groups":[]}
@mikedewar

This comment has been minimized.

Copy link
Owner Author

mikedewar commented Nov 10, 2015

by @nikhan

@mikedewar

This comment has been minimized.

Copy link
Owner Author

mikedewar commented Nov 10, 2015

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.