mathematical linear functions

Hi,

I am just writing a programm providing mathematical calculations and displays them in a graph. But I now faced a problem in the setup of a linear function. Does one of you have any experience for a solution. In this case I would appriciate a comment on how to handle this.

Thank you for your help🙂

Linear function, do you mean y = ax + b ?


What is the problem exactly ?

That's what I ment. I am struggeling over leaving x as a variable wich is being entered by the user.

It is not clear what you are trying to do and what is the problem ?


What are exactly the user inputs ? a, b ? or x ? or all ?


In any case, drawing is just a matter of drawing a line in the coordinate system


What do you want to show to user ?


When you say you want to leave x as a variable, does that mean that you want the user to select several values of x and see the result ? Or do you want to draw the line for all values of x ?

The problem I face is how to set up an input of "y = ax + b" excluding "x". I want to use this for delivering "x" when entering the other variables. An other feature should include an output of a graph displaying the function of the given "y = ax + b".

Have you got any experience in setting up anything like this?

mathematical linear functions
 
 
Q