Again a very basic problem, I need to create arrays with numerical
values, and do very simple math operations on each elements. I’ve
tried to install ruby-gsl as suggested but I don’t have admin rights
on the machine. Here is my try:
the result is wrong, and it all seems over-sophisticated to me. I
must have missed a basic technique.
I need three arrays: ‘aspectRatio’ is just [0.5, 0.6, 0.7, 0.8, 0.9,
1.0], but I want to construct it as a range (call me lazy). The
second is constructed doing the same calculation on every element of
‘aspectRatio’. The third one needs to access elements of the same
index from the previous two arrays, and multiply them together to
form the new array.
Here is the result I’d expect:
and the result I get:
Any help / advice appreciated,