cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

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

AATaylor
5-Regular Member

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

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

1 ACCEPTED SOLUTION

Accepted Solutions

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

b.png

Worksheet attached.

View solution in original post

4 REPLIES 4

You may use a range variable to do the job

b.png

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

b.png

Worksheet attached.

AATaylor
5-Regular Member
(To:Werner_E)

Even better! Thanks!

Many thanks and kind regards

AATaylor
5-Regular Member
(To:Werner_E)

Brilliant, that's exactly what I was looking for, thanks. Can;t believe I didn't think of that myself...

 

 

Top Tags