MATLAB: Is 10^5 more expensive than 10e5

computational efficiency

As Jan mentioned in this post, what's the reason behind it?

Best Answer

10^N is a computational expression whereas 10EN is a literal constant. So, the former requires computation (and the exponential is moderately compute-intensive) whereas the latter simply is a conversion from character to numeric representation. Takes (comparatively) little processing internally to do so.