You should use 10^-2.0. The way you’re trying to do things would require that the power function produce different types of outputs for different input values, which would make optimization/compilation difficult.
As a side note, I think you’ll find it’s more effective not to use the word “stupid”. — John On Jun 6, 2014, at 5:05 PM, Zahirul ALAM <[email protected]> wrote: > 10^2 returns 100; > but 10^-2 or 10^(-2) returns ERROR: DomainError in power_by_squaring at > intfuncs.jl:60 in ^ at intfuncs.jl:84 > > do I have to use 1/10^2 instead? > > This seems rather stupid. is it a Bug? I am using the nightly build version > downloaded a couple of days ago. I am new to Julia and trying to convert my a > large Mathematica code in Julia.
