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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Average of an array

Abhishek71992
5-Regular Member

Average of an array

Hi team,

I am not able to find the average of a function. Can you please help.

 

Abhishek71992_0-1603266733756.png

 



TIA

6 REPLIES 6
LucMeekes
23-Emerald III
(To:Abhishek71992)

Use the function 'mean' to get the average of an array.

If your array is:

LucMeekes_0-1603272710650.png

 

Then its average is:

LucMeekes_1-1603272727402.png

or just:

LucMeekes_2-1603272742783.png

Success!
Luc

LucMeekes
23-Emerald III
(To:LucMeekes)

Your integral appears to fail because you have an evaluation ( the =  ) after the definition. That often results in problems.

If I delete that =  (and delete the never ending program you wrote to create an array) I get:

LucMeekes_0-1603274353247.png

LucMeekes_1-1603274365745.png

Success!
Luc


@LucMeekes wrote:

Your integral appears to fail because you have an evaluation ( the =  ) after the definition.

I agree that inline evaluations often are the cause for problems, but this time the reason for the failing is the zero which was typed in the "placeholder" for the unit of the result 😉

Abhishek71992
5-Regular Member
(To:LucMeekes)

Thanks

Delete your second definiton of V.s

The attached sheet should help

Werner_E_0-1603275415099.png

 

 

 

 

Abhishek71992
5-Regular Member
(To:Werner_E)

Thank you

Top Tags