some numerical demo's in c++