Skip to main content
1-Visitor
May 3, 2020
Solved

How To Multiply Each Cell Of The Array By Exponential Range Variables

  • May 3, 2020
  • 1 reply
  • 3494 views

Hi,

I have been trying to multiply each cell of the array by exponentially range variables.

To illustrate: first cell of the matrix should be multiply by 2, second row of the array should be multiply by 2^2, third row of the array should be multiply by 2^3 and so on... Below illustrated EL(GR) should have seen: First row;1.06, second row should have been 1.06^2, third row should have been 1,06^3 and so on. I would appreciated if you help me to sort this out... Regarding Mathcad sheet is also enclosed. 

fuatkabakcioglu_0-1588464391473.png

 

Best answer by Werner_E

You are asking for something contradictory! First you write that you want to multiply the value by 1,2,2^2, etc but later you want to take them to the power of 1,2,3, etc. You have to decide what you are looking for!

Not sure, are you looking for one of the following two variants or for something completely different?

Werner_E_0-1588469657783.png

 

1 reply

Werner_E25-Diamond IAnswer
25-Diamond I
May 3, 2020

You are asking for something contradictory! First you write that you want to multiply the value by 1,2,2^2, etc but later you want to take them to the power of 1,2,3, etc. You have to decide what you are looking for!

Not sure, are you looking for one of the following two variants or for something completely different?

Werner_E_0-1588469657783.png

 

1-Visitor
May 3, 2020

First of all, thank you for your quick respond and this is much appreciated.

 

I am so sorry for the conrtadiction yes you are right. What I want to do is as you illustrated in the EL3(GR).

But now another issue has emerged. How am I supposed to multiply FE(l1) and EL(GR) element by element? When I do this as expected I am having just a scaler result. But what I am trying to have is, first row of the FE(l1) should be multiply with the first row of the EL(GR) and so on. The resultant array should be a matrix with the same row number of the multipliers.

 

Please find regarding mathcad sheet enclosed.

Thank you so much in advance

Best Regards

 

 

23-Emerald IV
May 3, 2020

Use the vectorize operator. Select your multiplication and press [CTRL-_]  (That is: The Control key and the underscore key). That should result in an arrow above the multiplication, and tells Mathcad to multiply elements  of the vectors, element by element.

LucMeekes_0-1588520412062.png

 

Success!
Luc