Published
Edited
Jan 3, 2021
2 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deltaP = (1 + priceChangeA) / (1 + priceChangeB)
Insert cell
impermanentLoss = {
const rA = assetRatio, rB = 1 - assetRatio
return 1 - Math.pow(deltaP, rA) / (rA * deltaP + rB)
}
Insert cell
Insert cell
html`<style>
body, html { box-sizing: border-box; }
* { box-sizing: inherit; }

body input[type=text],
body input[type=number] {
font-size: 18px;
border: 4px solid transparent;
border-bottom: 1px solid #c0c0c0;
padding: 4px;
padding-bottom: 7px;
min-width: 24px;
width: 8em;
}

table.borderless td {
border: 0;
padding: 8px 2px;
}

</style>`
Insert cell
Insert cell
import { form } from '@mbostock/form-input'
Insert cell
import { slider } from '@jashkenas/inputs'
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more