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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Average of an array

Abhishek71992
6-Contributor

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

Werner_E
25-Diamond I
(To:LucMeekes)


@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 😉

Thanks

Delete your second definiton of V.s

The attached sheet should help

Werner_E_0-1603275415099.png

 

 

 

 

Thank you

Announcements

Top Tags