How can I create constants in Desmos which users cannot change with a slider?

704 Views Asked by At

I want to define a constant to use in a Desmos graph, but when I try to do this by creating an expression, Desmos allows users to change the value of that constant with a handy slider, e.g.,

Trying to define a constant for the speed of light in Desmos

Desmos suggested doing that by using a ratio of inbuilt constants, but this seems to obfuscate the intention. Is there a more straightforward way I can keep constants constant in Desmos?

2

There are 2 best solutions below

0
On BEST ANSWER

One way to do this is to create a helper function $$ C_{onstant}(x) = x $$ and then use it to assign values to your constants like this: $$ c=C_{onstant}\left(299792458\right) $$ which eliminates the slider in Desmos

Successfully define a constant for the speed of light in Desmos

0
On

Another way is to restrict the domain of $c$ as such:

enter image description here

This way the slider becomes unusable:

enter image description here