Hi,
I found some mistakes in the code you posted.
1. At the each end of the statement, semicolon (;) is needed.
2. Origin C is case sensitive, some functions you used is not right, such as Exp, Cos, etc.
3. Origin C will use parentheses, "()", for each function, but not square brackets, "[]".
The correct code should be:
double coff = 1;
double wxc = 4.68*10^(-6);
double wy = 1.8198*10^(-6);
double w0 = 2.64*10^7;
double L = 12*10^(-6);
double wz = 5.9515*10^(-6);
double r = 0;
y = ((1+r^2)^2+2*r^2*exp(-wxc^2*w0^2*Dd*t/(wxc^2+4*Dd*t))*cos(2*w0*L)+2*r^2*exp(-wxc^2*w0^2/4)+4*r*(1+r^2)*cos(w0*L)*exp(-wxc^2*w0^2/8*(1-wxc^2/(2*wxc^2+8*Dd*t))))/(Cc*pi^(3/2)*sqrt(4*Dd*t+wxc^2)*sqrt(4*Dd*t+wy^2)*sqrt(4*Dd*t+wz^2)*(1+r^2+2*exp((-(1/8)*w0^2*wxc^2))*r*cos(L*w0))^2)*exp(-(Vz*t)^2/(wz^2+4*Dd*t))-0.035*coff;
Penn