#include<iostream>
using namespace std;

#include<wxmaths.h>
using namespace wxmaths;

int main()
{
Realfunction1d *f; cout << "Enter a function...";
cin >> f; cout << "f(pointer) = " << *f << endl << "f = " << f << endl;
cout << "Enter x..."; double x; cin >> x;
double y = (*f)(x); cout << "y = " << y << endl;
double dy = (*f).derivative(x); cout << "dy/dx = " << dy << endl;
}
