# Take parameters to use on graph

**URL:** <https://cl.desmos.com/t/take-parameters-to-use-on-graph/4364>\
**Category:** Questions\
**Created:** [June 22, 2022, 4:55pm UTC](https://cl.desmos.com/t/take-parameters-to-use-on-graph/4364 "2022-06-22T16:55:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Killer333](https://avatars.discourse-cdn.com/v4/letter/k/4da419/32.png) [@Killer333](https://cl.desmos.com/u/Killer333)\
**Post date:** [June 22, 2022, 4:55pm UTC](https://cl.desmos.com/t/take-parameters-to-use-on-graph/4364/1 "2022-06-22T16:55:36Z")

</div>

Hello,  
I’m trying to make an activity.  
I made a graph with a function y=ax+b and another function f(x) based on the parameters a and b. I would like a student to write a function inside math input (like y=5x-3) so I can take a and b from his input and show the new function f(x).

Thank for help!

---

<div class="post-metadata">

**Author:** ![Daniel\_Grubbs](https://yyz1.discourse-cdn.com/flex031/user_avatar/cl.desmos.com/daniel_grubbs/32/719_2.png) [@Daniel\_Grubbs](https://cl.desmos.com/u/Daniel_Grubbs)\
**Post date:** [June 22, 2022, 10:02pm UTC](https://cl.desmos.com/t/take-parameters-to-use-on-graph/4364/2 "2022-06-22T22:02:03Z")

</div>

Do you just want to graph the student’s input? Or do you need to extract a and b from the student input? Both are possible, but the second isn’t needed for the first.

To graph it, name the input, then in the graph’s CL:

```auto
function(`f`): simplefunction(inputName.latex)

```

In the graph (not the CL):

```auto
y=f(x)

```
