I have attached an mcdx file. I don't understand what the issue is when lambda*c is raised to the power of e. Please let me know a work around for this problem.
There is no term missing. I see that you have changed lambda to the power of 3 instead of 2. However, even then I don't get a result. There is something wrong. Kindly help. The problem seems to be with e to the power of lambda X c.
LAmbda is a factor without units. However the program insists on giving it a unit of 1/m. So I multiplied the units by m to ensure that the result is without units. Anyway, the problem at hand seems to be to find a way out to compute e raised to lambda x c. Kindly let me know if there is a solution. Do you feel this is due to the units of lambda itself.
It's not "the program insists on giving it a unit of 1/m". That is YOUR doing.
YOU gave units to k, h and Ecm. With the formula provided for lambda, (without you multiplying it with m) the unit of 1/m comes out.
And, as FM states, lambda MUST have the unit 1/m or else c cannot have unit m. Note that you are using lambda time c as the argument to the sin as well as the exp functions. In both those functions the argument cannot have a unit; so the units of lambda and c must cancel out.