square - 16., 25., 36., 49., 64., 81.])...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
def square(x): ''' Squares its argument. Parameters ---------- x : array_like Value to be squared. Returns ------- output : same type as x, possibly promoted The (elementwise) square of x. Examples -------- >>> import numpy as np >>> import square >>> square.square(np.arange(10.)) array([ 0., 1., 4., 9.,
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 16., 25., 36., 49., 64., 81.]) Revisions---------2007-09-11 0.1 [email protected] Initial version 2007-10-28 0.2 [email protected] Updated header 2008-11-01 0.3 [email protected] Updated docstring 2009-09-15 0.4 [email protected] Updated docstring ''' return x**2...
View Full Document

This note was uploaded on 11/09/2009 for the course AST 4762 taught by Professor Harrington during the Fall '09 term at University of Central Florida.

Ask a homework question - tutors are online