Published
Edited
Feb 26, 2021
Insert cell
md`# Double Compound Interest`
Insert cell
xAnnual = 1.1
Insert cell
yAnnual = 1.05
Insert cell
xDaily = Math.pow(xAnnual, 1 / 365)
Insert cell
xError = Math.pow(xDaily, 365) - xAnnual
Insert cell
yDaily = Math.pow(yAnnual, 1 / 365)
Insert cell
yError = Math.pow(yDaily, 365) - yAnnual
Insert cell
compoundDaily = xDaily * yDaily
Insert cell
compoundAnnual = Math.pow(compoundDaily, 365)
Insert cell
naiveCompoundAnnual = xAnnual * yAnnual
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