mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-26 02:21:43 +08:00
removed compiler warnings
This commit is contained in:
parent
37afd67496
commit
936ae5b410
@ -4,14 +4,14 @@
|
|||||||
#include "jkqtplotter/jkqtplotter.h"
|
#include "jkqtplotter/jkqtplotter.h"
|
||||||
#include "jkqtplotter/jkqtpgraphsevaluatedfunction.h"
|
#include "jkqtplotter/jkqtpgraphsevaluatedfunction.h"
|
||||||
|
|
||||||
double sinc(double x, void* params) {
|
double sinc(double x, void* /*params*/) {
|
||||||
return 10.0*sin(x)/x;
|
return 10.0*sin(x)/x;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct SincSqr {
|
struct SincSqr {
|
||||||
public:
|
public:
|
||||||
inline SincSqr(double amplitude): a(amplitude) {}
|
inline SincSqr(double amplitude): a(amplitude) {}
|
||||||
inline double operator()(double x, void* params) {
|
inline double operator()(double x, void* /*params*/) {
|
||||||
return a*sin(x)*sin(x)/x/x;
|
return a*sin(x)*sin(x)/x/x;
|
||||||
}
|
}
|
||||||
private:
|
private:
|
||||||
|
Loading…
Reference in New Issue
Block a user