Skip to main content
12-Amethyst
October 19, 2021
Solved

Need help with nested looping

  • October 19, 2021
  • 1 reply
  • 1261 views

Hi All,


I need help in achieving some calculation, which involves multiple looping inside.

I am attaching the Mathcad sheet with some description of what I need t to achieve inside.

I appreciate any approach through looping/ programming etc.

 

Thanks a lot

Best answer by Eng_ReyD_497

Thanks @LucMeekes  for the great help...

I took your great solution, learned from it, and made minor modifications...

 

Now, I need to do the looping and generate a plot (as shown in the attached sheet) for each loop

 

Thanks again, I appreciate it...

1 reply

23-Emerald IV
October 19, 2021

You don't need a nested loop. You need to make use of vectorisation.

See attached file.

 

If I have more time later, I'll finish the 'outer loop'.

 

Did that, updated file attached.

 

Success!
Luc

 

 

Eng_ReyD_49712-AmethystAuthorAnswer
12-Amethyst
October 20, 2021

Thanks @LucMeekes  for the great help...

I took your great solution, learned from it, and made minor modifications...

 

Now, I need to do the looping and generate a plot (as shown in the attached sheet) for each loop

 

Thanks again, I appreciate it...