Digital differential analyzer
x0:
y0:
x1:
y1:
Solve
Solution
dx =
|x1 - x0|
:
dy =
|y1 - y0|
:
steps:
x Increment =
dx / steps
:
y Increment =
dy / steps
:
Table
Iteration
x
y
x (plot)
y (plot)
{#each x_axis as _, i}
{i + 1}
{x_axis[i]}
{y_axis[i]}
{x_axis_floored[i]}
{y_axis_floored[i]}
{/each}
Graph