% P3

clc
aExact = [2*rand(1,1);3*randn(1,1)]
lambdaExact = -4*rand(1,1)

tau = linspace(0,5)';
y = aExact(1) + aExact(2)*exp(lambdaExact*tau) + .001*randn(100,1);

[a,lambda] = expoFit(tau,y)