Skip to main content
1-Visitor
June 29, 2018
Solved

Integrate a function between varying limits and return the result as a vector

  • June 29, 2018
  • 1 reply
  • 2149 views

Hi,

I would like to integrate a function between a certain number of pairs of limits. The number of pairs is set by a variable, n.th. I'd then like to return the result as an n.th x 1 vector. Could anyone help please?

 

Please see attached.

 

Many thanks and kind regards

Best answer by Werner_E

And if you want it to be done by a more generic function, you could do it that way:

b.png

Worksheet attached.

1 reply

25-Diamond I
June 29, 2018

You may use a range variable to do the job

b.png

Werner_E25-Diamond IAnswer
25-Diamond I
June 29, 2018

And if you want it to be done by a more generic function, you could do it that way:

b.png

Worksheet attached.

AATaylor1-VisitorAuthor
1-Visitor
June 29, 2018

Even better! Thanks!

Many thanks and kind regards