Vectors to Curves
How a computer turns numbers into a graph
What you’ll explore
A computer does not draw a continuous curve in one stroke. It evaluates a function at selected points, stores the results, then connects those samples. This first look traces that simple but powerful idea from a numerical vector to a graph.
Sample points, then evaluate
Step by step
- 01
Choose a starting value, an ending value, and a step size. Together, they define the x-values the computer will sample.
- 02
Evaluate the function once for each value in the vector. A smaller step creates more samples, which can make a plotted polyline look smoother while increasing the number of calculations.
- 03
Plot each (xᵢ, yᵢ) pair and connect neighboring points. The resulting line is a numerical approximation of the continuous function.
A small code example
MATLABxvec = 0.3:0.1:2.0;
y1 = 1 ./ xvec;
y2 = sqrt(4 - xvec.^2);
plot(xvec, y1, xvec, y2)
grid onRelated lessons
Lesson 00 · Foundations
What Makes a Set a Vector Space?
An uploaded lesson that introduces the closure conditions behind vector spaces and the idea of a shared algebraic structure.
Open lessonLesson 06 · Foundations
Linear Combinations and Span
See how changing the coefficients of a linear combination changes the resulting vector.
Open lesson