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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more