Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Strange array calculation behaviour

$
0
0

@Bjorn_De wrote:

Hi! I have two arrays, with both the same size. I want to do some simple calculations such as:

arr = (arr1 ./ arr2) .* 100 

maximum(arr1) is 31.0 and maximum(arr2) is 48.
So I assume that the highest value or arr should be (31/48) * 100 = 64.583
But if I do maximum(arr) I get 180.0

I have no idea where this value comes from.
I use Julia 1.1.0 on Linux
Thanks for you help!

Posts: 4

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles