mirror of
https://github.com/allankoechke/JKQtPlotter.git
synced 2026-12-03 01:04:14 +00:00
fixed several compiler warnings (mostly Visual Studio): clean-up of use of math constants M_PI ... and j0()/j1()/...-functions etc.
This commit is contained in:
@@ -23,7 +23,7 @@ int main(int argc, char* argv[])
|
||||
QVector<double> X, Y1, Y2, Y3, Y4, Y5, Y6, Y7, P, C, S, RGB, LW;
|
||||
const int Ndata=10; // number of plot points in each curve
|
||||
for (int i=0; i<Ndata; i++) {
|
||||
const double x=double(i)/double(Ndata)*2.0*M_PI;
|
||||
const double x=double(i)/double(Ndata)*2.0*JKQTPSTATISTICS_PI;
|
||||
X<<x;
|
||||
Y1<<1.5+sin(x);
|
||||
Y2<<3.5+sin(x);
|
||||
|
||||
Reference in New Issue
Block a user