# Updated CL Documentation

**URL:** <https://cl.desmos.com/t/updated-cl-documentation/2936>\
**Category:** Announcements\
**Tags:** sketch, patterns\
**Created:** [March 18, 2021, 12:51am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936 "2021-03-18T00:51:19Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 18, 2021, 12:51am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/1 "2021-03-18T00:51:19Z")

</div>

We shipped some big changes to the CL documentation today! On top of the improved navigation you should now find better support for working in graphs, working with and transforming sketches, and interpreting math of all sorts.

As always, questions and feedback are welcome here!

> **[Computation Layer Documentation](https://classroom.amplify.com/computation-layer/documentation)**

---

<div class="post-metadata">

**Author:** ![SandiG](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sandig/32/1895_2.png) [@SandiG](https://cl.desmos.com/u/SandiG)\
**Post date:** [March 18, 2021, 2:55am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/2 "2021-03-18T02:55:19Z")

</div>

Awesome, can’t wait to try stuff out!

Is there any more documentation on the possibilities of `patterns`?

The script ~~doesn’t autocomplete (because beta feature?) and~~ parse options are not displayed. Is there a list anywhere?

I was just trying to check part of student’s numerator and denominator for writing rational functions in this post which has a linked activity:

> [@How do I check PART of an equation is correct?](https://cl.desmos.com/t/how-do-i-check-part-of-an-equation-is-correct/2919):
>
> I have some criteria that I want students to follow, but I like the idea of leaving some choice for them in what equation to write. Does anyone know how I could check PART of their equation? For rational functions, I could specify that the numerator must be degree three and a specific horizontal asymptote. I figured out how to check the HA with a workaround, checking their function value at an extreme x and comparing to the correct HA, but what about other criteria? I’m thinking specifically f…

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 18, 2021, 3:25am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/3 "2021-03-18T03:25:04Z")

</div>

Not currently. The feature is still being developed, but maybe in time.

 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/7/7d9faa54d90c86e3dd2cc03a34ef6733d86c0fcf.png)  
[https://teacher.desmos.com/computation-layer/documentation#interpreting-math](https://teacher.desmos.com/computation-layer/documentation#interpreting-math)

---

<div class="post-metadata">

**Author:** ![SandiG](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sandig/32/1895_2.png) [@SandiG](https://cl.desmos.com/u/SandiG)\
**Post date:** [March 18, 2021, 4:01am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/4 "2021-03-18T04:01:59Z")

</div>

Ok thanks for getting back to me.

---

<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:** [March 18, 2021, 3:44pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/5 "2021-03-18T15:44:29Z")

</div>

> [@SandiG](#):
>
> The script doesn’t autocomplete (because beta feature?) and parse options are not displayed. Is there a list anywhere?

It does autocomplete if you try it in the sample.  
 ![image](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/a/afc84a8eed592ac9941d9a41d2a41f0741b6adee.png)

---

<div class="post-metadata">

**Author:** ![Phillip\_Brockman](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/phillip_brockman/32/2433_2.png) [@Phillip\_Brockman](https://cl.desmos.com/u/Phillip_Brockman)\
**Post date:** [March 18, 2021, 9:33pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/6 "2021-03-18T21:33:12Z")

</div>

Index page is very helpful in the documentation!

---

<div class="post-metadata">

**Author:** ![Bryn](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/bryn/32/40_2.png) [@Bryn](https://cl.desmos.com/u/Bryn)\
**Post date:** [March 19, 2021, 9:24pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/7 "2021-03-19T21:24:24Z")

</div>

It’s true that it autocompletes to that point but it’s quite hard to work out how to use them. I wanted to parse a radical yesterday and could not work out how to get the components using the “autocomplete and guess” method (would welcome any examples in this forum…)

---

<div class="post-metadata">

**Author:** ![SandiG](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/sandig/32/1895_2.png) [@SandiG](https://cl.desmos.com/u/SandiG)\
**Post date:** [March 23, 2021, 5:14am UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/8 "2021-03-23T05:14:05Z")

</div>

Jay didn’t link it, but he’s posting tutorial/explanation videos 💜 for `patterns` over here

> [@Pattern Matching](https://cl.desmos.com/t/pattern-matching/2972):
>
> There have been quite a few questions recently about the pattern type in the CL documentation, so I thought I’d record a few short videos to help you get started. I’ll share here each time a new video is posted, and we’ll also keep them in a playlist on our YouTube channel. First up: Scientific Notation [[Scientific Pattern] ](https://www.youtube.com/watch?v=NtDJdVW5uMk)

---

<div class="post-metadata">

**Author:** ![NatalieV\_MEI](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/nataliev_mei/32/860_2.png) [@NatalieV\_MEI](https://cl.desmos.com/u/NatalieV_MEI)\
**Post date:** [March 24, 2021, 4:02pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/9 "2021-03-24T16:02:49Z")

</div>

Hi - I love this new documentation!

Can I just ask for clarification about the information for the history and last value of a math input. Are the explanations mixed up? It says the history gives the last value and the last value gives the history? Also, both seem to have the same commentary above the code?

 ![math input history last value](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/a/ab9c91a11cc7b62fd79c11267ae445eed5b1b0b8.png)

I can see similar explanations have been used for history & lastValue of an action button so there is a good chance I am missing something. My existing understanding matches the explanatory text above the code for the action button… ie history would allow us to store a list of values and lastValue would capture a single value.

Apologies if I am missing something obvious!

Thank you - Natalie

---

<div class="post-metadata">

**Author:** ![Kirk\_Parrott](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/kirk_parrott/32/2485_2.png) [@Kirk\_Parrott](https://cl.desmos.com/u/Kirk_Parrott)\
**Post date:** [March 26, 2021, 2:20pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/10 "2021-03-26T14:20:06Z")

</div>

I came to depend on my ability to search the old format. Is there a way to search the whole document now?

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 26, 2021, 2:22pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/11 "2021-03-26T14:22:48Z")

</div>

There is! Right at the top of the screen. There’s also an index you can access via the side bar

---

<div class="post-metadata">

**Author:** ![MwlBrian](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mwlbrian/32/2466_2.png) [@MwlBrian](https://cl.desmos.com/u/MwlBrian)\
**Post date:** [March 26, 2021, 2:33pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/12 "2021-03-26T14:33:48Z")

</div>

But the bar at the top only searches for components, sinks, sources. There doesn’t seem to be any way to search for phrases in the documentation and since everything is collapsed, you can’t even use the browser’s ctrl-F search without first expanding the relevant section. But if you knew where it was you wouldn’t need to search. While the index is helpful, it would be nice if a full-text search feature were included.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 26, 2021, 3:22pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/13 "2021-03-26T15:22:40Z")

</div>

That sounds like a good idea. Out of curiosity, what types of search terms have you used in the past or might want to in the future? No need to answer if you’re not comfortable.

---

<div class="post-metadata">

**Author:** ![MwlBrian](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mwlbrian/32/2466_2.png) [@MwlBrian](https://cl.desmos.com/u/MwlBrian)\
**Post date:** [March 26, 2021, 3:31pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/14 "2021-03-26T15:31:08Z")

</div>

I don’t recall specifically, but sometimes I remember having seen something in the example code, but I don’t remember what it was listed under, so even getting all of the hits for a certain sink would be nice since that would show me different places it is being used in the code and how it is being used, instead of currently where it just shows you the entry for the sink.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 26, 2021, 4:01pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/15 "2021-03-26T16:01:25Z")

</div>

Thats useful, 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:** [March 26, 2021, 4:15pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/16 "2021-03-26T16:15:53Z")

</div>

I tried searching for the beta pattern matching and it didn’t come up, but I agree with @MwlBrian, I like being able to search the whole documentation. Maybe I don’t know what a source or sink is called but know what it does and search for key terms that might be in its description.

---

<div class="post-metadata">

**Author:** ![JayChow](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/jaychow/32/1674_2.png) [@JayChow](https://cl.desmos.com/u/JayChow)\
**Post date:** [March 26, 2021, 4:20pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/17 "2021-03-26T16:20:34Z")

</div>

Awesome, thanks. Pattern matching is largely undocumented and won’t show up in search, but we’ll see what we can do about text search to make it easier to find things.

---

<div class="post-metadata">

**Author:** ![Kirk\_Parrott](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/kirk_parrott/32/2485_2.png) [@Kirk\_Parrott](https://cl.desmos.com/u/Kirk_Parrott)\
**Post date:** [March 29, 2021, 11:44pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/18 "2021-03-29T23:44:51Z")

</div>

Thanks. I’m really glad to find it!

---

<div class="post-metadata">

**Author:** ![mxepstein](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/mxepstein/32/116_2.png) [@mxepstein](https://cl.desmos.com/u/mxepstein)\
**Post date:** [October 2, 2023, 7:07pm UTC](https://cl.desmos.com/t/updated-cl-documentation/2936/19 "2023-10-02T19:07:06Z")

</div>

1. Is the best documentation for Pattern matching still this youtube playlist?  
[https://www.youtube.com/playlist?list=PLfM6zMGnbgOGIBiEb\_iChDNonjdp7sLrW](https://www.youtube.com/playlist?list=PLfM6zMGnbgOGIBiEb_iChDNonjdp7sLrW)
2. And is Patterns still the best way to check if a math input is a polynomial in standard form?
3. Hope you’re doing good Jay.
