Look at this code:

x = 0.1:100
m = 10.1
bb = x-m
display(typeof(x)) # FloatRange{Float64}
display(typeof(bb)) # FloatRange{Float64}

# x.^2.1 #correctly done
bb.^2.2 # error -> why ? 


The last line throw this error:
LoadError: DomainError:
while loading In[13], in expression starting on line 6

 in .^ at range.jl:653

x and bb are the same type of data
Why cannot elevate the "bb" range to a float exponent ?

Reply via email to