aboutsummaryrefslogtreecommitdiffstats
path: root/OLD/ee1301/wk1/lab1/strap012_lab1_s_1.cpp
blob: 32176b5a251e4332a65c0335a85b88a8af6770af (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <iostream>
#include <math.h>
using namespace std;

int main()
{
    int x=20;
    double h = 1e-14;
    cout << (pow(x+h, 3)-pow(x,3))/h << endl;
}