I need to display the graph somehow:

Does anyone know what formula to apply to this function via code? :) ]]>

I need to display the graph somehow:

Does anyone know what formula to apply to this function via code? :) ]]>

That it the formula.

it says

y = sin(1/x);

and x goes from 0.9 to 2.8 in step 0.2

for for each value in x, you can get the y

and then paint it your self with QPainter or use QChart.

So im not sure what you are asking ?

]]>My problem is that I don't know how to implement this formula via QPainter :\

]]>Hi

Well it says to do like this

```
double y = 0;
double deltax = 0.2;
for (double x = 0.9; x <= 2.8; x += deltax ) {
y = sin(1.0 / x);
paint.drawPoint( 100 + int(x),100 + int(y));
}
```

However, since its very small values, drawing them directly is not very visible since

its super tiny.

So might be better to use QtCharts as it can zoom.

]]>