Published
Edited
Mar 15, 2019
Importers
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
aPN = new PN('c_05111')
Insert cell
aPN_str = aPN.toString()
Insert cell
Insert cell
Insert cell
Insert cell
{ // ((1/h) / (p²+p+4)) · exp(-T₀ √(p²+1))
let h = 0.1
let T0 = 0.03
let p_ = new PN("c_P_TRAP", 1/h);
let out =
new PN(1/h)
.div(
p_.mul(p_).add(p_).add(4)
)
.mul(
p_.mul(p_).add(1).pow(0.5).mul(-T0)
.exp()
);
return out.toString()
}
Insert cell
Type JavaScript, then Shift-Enter. Ctrl-space for more options. Arrow ↑/↓ to switch modes.

Insert cell
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