Vectors
Adding up the arrows…
Initializing Sorting Algorithms...
Sorting
Trees
Graphs
Preparing interactive visualizations...
Vectors
Adding up the arrows…
An arrow you can drag and a pair of numbers you can type are the same object. Move one and watch the other follow — and get the length for free from Pythagoras.
This arrow starts at the origin and its tip sits at the point (3, 2). Those two numbers are the whole vector: v = (3, 2). An arrow and a list of numbers are two ways of writing the same thing.
Green is how far across, red is how far up. Typing a component moves the tip; dragging the tip retypes the components.