Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Engineering LibreTexts

4: Vectors

( \newcommand{\kernel}{\mathrm{null}\,}\)

In the previous chapter we used a loop to compute the elements of a sequence, but we were only able to store the last element. In this chapter, we’ll use a vector to store all of the elements. We’ll also learn how to select elements from a vector, and how to perform vector arithmetic and common vector operations like reduce and apply.


This page titled 4: Vectors is shared under a CC BY-NC 4.0 license and was authored, remixed, and/or curated by Allen B. Downey (Green Tea Press) via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?