i’m bulding a function dynamicly. How can I disply the function’s latex ?

Is this what you are looking for?

hello,

Yes this is what I’ve asked, thanks.

However, in case where f’ is more complex formula, is there a way that the CL will translate the Latex of f’ function.

Thanks

בתאריך יום ג׳, 22 באוק׳ 2024 ב-18:31 מאת Stein Lee Schreiber via Computation Layer Support Forum <notifications@desmos.discoursemail.com>:

If you want the point label to be exactly what is typed in the input, you can use the `pointLabel`

sink. Your point just has to be named, and you *can* use conditional logic if you desire.

```
pointLabel("P_f"): when p1.submitted p1.latex otherwise ``
```

For point names with longer subscript do * not* use curly braces as you do with number sinks.

thanks, but it seems I was not clear with my question. Tha student will only input the { a, b, & c } parameters and teh Latex of a quadratic formula is constructed dynamicly based on those parameters. What I asked is there is a way to properly show the formula (actually that main issue is {ax^2} where for a=-1 it should be {-x^2}.

Thanks for the clarification. If you use `formatLatex( )`

it will strip out unnecessary coefficients of 1, and additions of 0.

```
myExpression = `-1x^2+0x+5`
```

The above would format to `-x^2+5`