Skip to content

Instantly share code, notes, and snippets.

@ry ry/orig.js
Created Jan 19, 2018

Embed
What would you like to do?
import { grad, linspace, plot } from "propel";
f = x => x.tanh();
x = linspace(-4, 4, 200);
plot(x, f(x),
x, grad(f)(x),
x, grad(grad(f))(x),
x, grad(grad(grad(f)))(x),
x, grad(grad(grad(grad(f))))(x))
(async (__global, __import) => {
void (({_:{grad:__global.grad},_:{linspace:__global.linspace},_:{plot:__global.plot}} = {_:await __import("propel")}))
f = x => x.tanh();
x = linspace(-4, 4, 200);
return (plot(x, f(x),
x, grad(f)(x),
x, grad(grad(f))(x),
x, grad(grad(grad(f)))(x),
x, grad(grad(grad(grad(f))))(x)))
})
//# sourceURL=__cell1__.js
@geremachek

This comment has been minimized.

Copy link

geremachek commented Feb 5, 2018

x.txt
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.