aboutsummaryrefslogtreecommitdiffstats
path: root/ee1301/wk1/lab1/strap012_lab1_s_1.cpp
blob: db5c6aa4535e9cd9c530975d5483ed060d461d3b (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;
}