Simple problem related to `macro` keyword

Hi all, I’ve found a solution, so I’ll put it here just in case anyone else has the same issue in the future:

The following equivalent code works:

macro tt(u) 2*exp(1e0*u) //
cout<<"tt(2)="<<tt(2)<<endl;

So, for some reason, you must include a coefficient in standard form next to your argument. So, if you just want exp(u) you must write exp(1e0*u).

Apologies, I know this is a very simple issue and probably didn’t need putting here.