Updated CL Documentation

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!
https://teacher.desmos.com/computation-layer/documentation

10 Likes

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:

1 Like

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


https://teacher.desmos.com/computation-layer/documentation#interpreting-math

Ok thanks for getting back to me.

It does autocomplete if you try it in the sample.
image

Index page is very helpful in the documentation!

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…)

1 Like

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

1 Like

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?

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

1 Like

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

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

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.

3 Likes

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.

1 Like

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.

Thats useful, thanks!

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.

1 Like

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.

1 Like

Thanks. I’m really glad to find it!

  1. Is the best documentation for Pattern matching still this youtube playlist?
    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.
1 Like