# Latex and simpleFunction

Can I enter a Latex expression directly into the simpleFunction argument or must I use another input source? If so, do I use standard LateX math mode()?

You can feed simpleFunction a latex string like…

function("f"): simpleFunction("x^2")


Note that if you do this, you may need to use \\ in certain places where you would normally just use \ (see example below)

function("f"): simpleFunction("\\max\\left(5,7,\\frac{1}{2}\\right)")


If you’re unsure about how to structure your latex you can always type your expression into the Desmos calculator and then simply copy/paste that into CL. (Again your may have to replace single backslashes with doubles)

Let me know if that doesn’t answer your question or doesn’t make any sense.

1 Like

That is very helpful, thanks. I’ll try it out.

Bruce