# Dynamic function text

**URL:** <https://cl.desmos.com/t/dynamic-function-text/5177>\
**Category:** Questions\
**Created:** [October 20, 2023, 9:00pm UTC](https://cl.desmos.com/t/dynamic-function-text/5177 "2023-10-20T21:00:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Itzik](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/itzik/32/4888_2.png) [@Itzik](https://cl.desmos.com/u/Itzik)\
**Post date:** [October 20, 2023, 9:00pm UTC](https://cl.desmos.com/t/dynamic-function-text/5177/1 "2023-10-20T21:00:14Z")

</div>

I would like the student to input the slope of a line ( m value ), and to show the function text as well as present the line…

How can I dynamically amend the point’s label to show the function’s text, i.e. the number of [m].

thanks  
Itzik  
 ![dynamicformula](https://canada1.discourse-cdn.com/flex031/uploads/desmos/original/2X/e/e87e679eb16306c9d07deff39c6fbd4ad885cc08.png)

---

<div class="post-metadata">

**Author:** ![Adam.Kelly](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/adam.kelly/32/1644_2.png) [@Adam.Kelly](https://cl.desmos.com/u/Adam.Kelly)\
**Post date:** [October 20, 2023, 10:03pm UTC](https://cl.desmos.com/t/dynamic-function-text/5177/2 "2023-10-20T22:03:40Z")

</div>

Try something like this?  
[https://teacher.desmos.com/activitybuilder/custom/6532f791fd1c76b4c2286771](https://teacher.desmos.com/activitybuilder/custom/6532f791fd1c76b4c2286771)

Takes advantage of the “number” sink for the graph component.

---

<div class="post-metadata">

**Author:** ![Itzik](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/itzik/32/4888_2.png) [@Itzik](https://cl.desmos.com/u/Itzik)\
**Post date:** [October 21, 2023, 5:45am UTC](https://cl.desmos.com/t/dynamic-function-text/5177/3 "2023-10-21T05:45:26Z")

</div>

Thank you so much, exactly what I needed.
