It is at very initial stage. Getting this reviewed can speed up things with lesser mistakes.
|1073 ↗||(On Diff #60916)|
fabs instead of abs.
add comment: "first sample"
add comment "second sample"
add space before
Can you use the DEBUG() macro instead of qDebug()?
using an absolute error of 0.01 depends heavily on tValue. Why is the error so big? Can you use relative errors instead?
Sorry, I didn't get. Add space before?
QDEBUG and DEBUG macro are not working in my pc, may be due to some setting. I have to check for it. I will use the macro, once I will fix the setting.
I tried using relative error. But, I am not getting what value of delta to use. If I use as small as 0.1 also then the test is not passing for values:
which is very more accurate than expected.
I meant to add an empty line to make it more readable.
I thought that you already fixed it for you. If it's not working for you, please add a TODO-comment when using qDebug().
the problem here is that the expected value is not known more precise? An absolute error of 0.01 make not much sense here.