Firstly, thank you very much in advance. I need to express a non-linear graph comprised (piecewise) of the following linear elements:
- A line from $(x=0,y=100)$ to $(x=10,y=100.5)$
- A line from $(x=10,y=100.5)$ to $(x=30,y=99.5)$
- A line from $(x=30,y=99.5)$ to $(x=40,y=100.5)$
I need to implement this in a program I am writing in C++.