No problem, this is a very difficult bit of punctuation:

julia> testarray.^2
4-element Array{Int64,1}:
  1
  4
  9
 16


This is easy for Matlab users to guess but probably not for others.


On Mon, Jul 14, 2014 at 2:26 PM, <[email protected]> wrote:

> Hi Julia users,
> I am absolutely embarrassed to ask this question, but I have not been able
> to find the correct combination of query words to yield the desired answer
> in the documentation or Google. Anyhow, what function could I use to raise
> an array to a power?
>
> testarray = Int64[1,2,3,4]
> pow(testarray,2)
>
> or
>
> power(testarray,2)
>
> do not work.
>
> Thank you for your help.
>
> Regards,
> WX
>

Reply via email to