## Find The Length of a Coastline - Programming - Part 1

About a week ago I wrote an article where I hypothesized that I could find the length of a coast-line using an algorithm based on a map or satellite image.

... please wait

Skip to main content # math

## Find The Length of a Coastline - Programming - Part 1

## Spirographs

## Find The Length of a Coastline Hypothesis

## Find a Fibonacci Number using Javascript

Subscribe to math

Jeremy Aaron Heminger Web Developer Located in Southern California

About a week ago I wrote an article where I hypothesized that I could find the length of a coast-line using an algorithm based on a map or satellite image.

Inspired by this video I decided to make a good ole' spriograph program. It's true that I was playing around with these types of programs when I was like, 15...well to be fair I guess I started playing around with recursive for loops and writing vectors when I was like ... "8". But, I really didn't have a real understanding on what I was doing until my teen years after taking my first programming classes in junior high. Mr. Jones...Big guy.

So, I was watching a Numberfile video on YouTube about finding the length of the British coast line.

The end conclusion in the video was that mathematically, it was impossible.

In the comments another poster suggested that a physicist would simply lay down a string along the coast and stretch it out to measure it as a single line.

Well, this got me to thinking about how I might approach this as a programmer.

Today I was watching this nifty video on Triponacci Numbers: https://youtu.be/e7SnRPubg-g and decided to better understand the math I would recreate his demonstrations using Javascript...(always helps me).

So here's my function