Hi,

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:

puts longAxis

puts shortAxis

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:

0.035717

0.037954

0.039956

0.041774

0.043447

0.045000

and the result I get:

0.045

0.045

0.045

Any help / advice appreciated,

Best regards

baptiste