Published
Edited
Dec 13, 2019
Importers
Insert cell
Insert cell
Insert cell
md`Changing the number of points per spiral loop creates a different figure.`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
md`## Mathematical Basis

According to [Wolfram MathWorld](http://mathworld.wolfram.com/LogarithmicSpiral.html), there are many spiral types and corresponding equations. This exercise focuses on logarithmic spirals of the common polar form:

## ${tex.block`r=ae^{b\theta}`}
Where:
${tex`r`} is the distance from the origin,
${tex`\theta`} is the angle from the x-axis,
${tex`a`} is the initial radius at ${tex`\theta=0`}, and
${tex`b`} is the growth rate.`

Insert cell
Insert cell
Insert cell
md`### All of the preceding expressions can be written as JavaScript arrow functions:`
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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