straight line curve to be horizontal line

Thread Starter

chandimajaya85

Joined Sep 27, 2023
41
Hi,

I am running tests and I am getting straight line curve on a graph. I am trying to do C++ program that it could do straight line curve to be flatter when the test is running live so basically it will happen in the background. Is there formula that I can run repetitive iteration to make the curve horizontal when it is running in the background. As I have learned from GCSE of gradient of slope that I could use formula to calculate y2-y1/x2-x1. Anyone can help on this. Any suggestions. Thank you
 

WBahn

Joined Mar 31, 2012
32,942
You need to provide a lot more information about that you are trying to do. This is pretty incomprehensible (at least to me). What curve is it you are talking about? What does it mean to make it horizontal? Why does it matter whether the test is running and whether itis running in the background?

An estimate of the slope of a curve is (y2-y1)/(x2-x1) -- which is very, very different than the formula you gave. But, so what? Finding the slope of a curve does not change the curve.

Please describe the actual problem you are trying to solve. Not how you are trying to solve it, but the problem itself.
 

Papabravo

Joined Feb 24, 2006
22,084
Hi,

I am running tests and I am getting straight line curve on a graph. I am trying to do C++ program that it could do straight line curve to be flatter when the test is running live so basically it will happen in the background. Is there formula that I can run repetitive iteration to make the curve horizontal when it is running in the background. As I have learned from GCSE of gradient of slope that I could use formula to calculate y2-y1/x2-x1. Anyone can help on this. Any suggestions. Thank you
A "straight line curve" is an oxymoron. That is a word which contradicts itself. A straight line is fundamentally different than a curve. How can you not know this? You should at least try to appear literate in your posts.
 

WBahn

Joined Mar 31, 2012
32,942
Let's try to be more civil -- the TS is probably a non-native English speaker using translation software. Even if they are a native English speaker, the fine-print on what words mean varies quite a bit.

Also, the term 'curve' is a generalization that encompasses linear relationships -- it is merely a relationship that has a slope that is everywhere constant. While, in most context, we mean it so imply something that is not linear, we also use it in plenty of contexts in which this is not implied, such as "power curve" or "learning curve" -- we don't preclude a linear relationship just because we use the term 'curve'.
 
Top