# Interval Notation

**URL:** <https://cl.desmos.com/t/interval-notation/1993>\
**Category:** Questions\
**Created:** [November 20, 2020, 3:42pm UTC](https://cl.desmos.com/t/interval-notation/1993 "2020-11-20T15:42:09Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![baoutlaw](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@baoutlaw](https://cl.desmos.com/u/baoutlaw)\
**Post date:** [November 20, 2020, 3:42pm UTC](https://cl.desmos.com/t/interval-notation/1993/1 "2020-11-20T15:42:09Z")

</div>

I’m trying to get Desmos to accept an input of [-1,2). However, when I use this.latex=`[-1,2)`, it does not recognize an answer of [-1,2). I noticed that the code works if they are both parentheses or both brackets, but not if they are different. Any thoughts on how to work around this?

Thanks!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [November 20, 2020, 3:54pm UTC](https://cl.desmos.com/t/interval-notation/1993/2 "2020-11-20T15:54:04Z")

</div>

Maybe something here will help. Just note this is older and all double returns (i.e. `\\`) only need to be single now.

> [@Checking Answer for Interval Notation in LaTeX String](https://cl.desmos.com/t/checking-answer-for-interval-notation-in-latex-string/664):
>
> I ask my students to provide the domain of a function in interval notation on slide 5 of the activity linked below. I’d like the content of the note to change if the student input the correct answer, but I can’t quite get it to work with this string. Thoughts? Thanks!

---

<div class="post-metadata">

**Author:** ![baoutlaw](https://avatars.discourse-cdn.com/v4/letter/b/73ab20/32.png) [@baoutlaw](https://cl.desmos.com/u/baoutlaw)\
**Post date:** [November 20, 2020, 4:31pm UTC](https://cl.desmos.com/t/interval-notation/1993/3 "2020-11-20T16:31:55Z")

</div>

That’s interesting that it doesn’t like the tick marks but will work with quotations. It worked now. Thanks!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [November 20, 2020, 6:14pm UTC](https://cl.desmos.com/t/interval-notation/1993/4 "2020-11-20T18:14:52Z")

</div>

I think maybe because when you open brackets, [ , it will autofill a closing bracket, so making it latex does that. Not sure though. Not really in my wheelhouse yet.
