Lists

Overview

You can make lists in Desmos using square brackets like this:


You can create lists with evenly spaced elements. [1,...,10] is a list of the integers between 1 and 10. [1,3,...,11] is a list of the odd integers between 1 and 11. Table columns are available as lists in the rest of the system.

You can use lists anywhere in expressions that you would use a number. 

 

More Resources

Have more questions? Submit a request

32 Comments

  • 0
    Avatar
    Serge Ballif

    Flexagontnt, there are no easy ways to remove an element from a list. However, there is usually a way to accomplish what you want through other methods. I don't know exactly what you are attempting, but the usual method is to create another list and use some sort of algebraic condition to build yet another list. For example, you can create a new list that consists of the 1st, 4th, 5th, and 7th items in your original list. See https://www.desmos.com/calculator/oqbemuj3wd for some advanced list techniques.

  • 1
    Avatar
    Sean Kelleher

    Some of Serge Ballif's (and some other) list techniques wrapped up in functions:

     

    https://www.desmos.com/calculator/woupzse8ex

Article is closed for comments.
Powered by Zendesk