Ndarray Average
Description
we can take the average of an ndaray using the average command.
Sage Cell
Code
import numpy as np
primes = np.array([2, 3, 5, 7, 11, 13, 17, 19])
print(np.average(primes))
Options
none
Tags
Primary Tags:
Secondary Tags:
A list of possible tags can be found at The WeBWorK Open Problem Library. For linear algebra tags see the Curated Courses Project.
Related Cells
Any related cells go here. Provide a link to the page containing the information about the cell.
Attribute
Permalink:
Author:
Date: 15 Apr 2019 00:14
Submitted by: Zane Corbiere