Python 3.5.2 |Anaconda 4.1.1 (x86_64)| (default, Jul 2 2016, 17:52:12)

Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.

? -> Introduction and overview of IPython's features.

%quickref -> Quick reference.

help -> Python's own help system.

object? -> Details about 'object', use 'object??' for extra details.

%guiref -> A brief reference about the graphical user interface.

In [1]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

In [2]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

In [3]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

In [4]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

In [5]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

In [6]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

Traceback (most recent call last):

File "<ipython-input-6-4e57395f6e21>", line 1, in <module>

runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 714, in runfile

execfile(filename, namespace)

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 89, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/iaingray/Documents/TeX/snake code/project III/waves.py", line 22, in <module>

prin(linspace(1,-1,8))

NameError: name 'prin' is not defined

In [7]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

In [8]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

Traceback (most recent call last):

File "<ipython-input-8-4e57395f6e21>", line 1, in <module>

runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 714, in runfile

execfile(filename, namespace)

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 89, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/iaingray/Documents/TeX/snake code/project III/waves.py", line 12, in <module>

from numpy import repeat, linspace, astype, int16

ImportError: cannot import name 'astype'

In [9]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

File "/Users/iaingray/Documents/TeX/snake code/project III/waves.py", line 12

from numpy import repeat, linspace,, int16

^

SyntaxError: invalid syntax

In [10]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

Traceback (most recent call last):

File "<ipython-input-10-4e57395f6e21>", line 1, in <module>

runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 714, in runfile

execfile(filename, namespace)

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 89, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/iaingray/Documents/TeX/snake code/project III/waves.py", line 23, in <module>

print(linspace(1,-1,8,endpoint=false))

NameError: name 'false' is not defined

In [11]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

Traceback (most recent call last):

File "<ipython-input-11-4e57395f6e21>", line 1, in <module>

runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 714, in runfile

execfile(filename, namespace)

File "/Users/iaingray/anaconda/lib/python3.5/site-packages/spyderlib/widgets/externalshell/sitecustomize.py", line 89, in execfile

exec(compile(f.read(), filename, 'exec'), namespace)

File "/Users/iaingray/Documents/TeX/snake code/project III/waves.py", line 23, in <module>

print(linspace(1,-1,8,endpoint=false))

NameError: name 'false' is not defined

In [12]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

[ 1. 0.75 0.5 0.25 0. -0.25 -0.5 -0.75]

In [13]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

[ 1. 0.75 0.5 0.25 0. -0.25 -0.5 -0.75]

[1 0 0 0 0 0 0 0]

In [14]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

[ 1. 0.75 0.5 0.25 0. -0.25 -0.5 -0.75]

[32767 0 0 0 0 0 0 0]

In [15]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

[ 3.27670000e+04 2.45751250e+04 1.63832500e+04 8.19137500e+03

-5.00000000e-01 -8.19237500e+03 -1.63842500e+04 -2.45761250e+04]

In [16]: runfile('/Users/iaingray/Documents/TeX/snake code/project III/waves.py', wdir='/Users/iaingray/Documents/TeX/snake code/project III')

63

[ 1. 0.71428571 0.42857143 0.14285714 -0.14285714 -0.42857143

-0.71428571 -1. ]

[ 32767 24575 16383 8191 0 -8192 -16384 -24576]

In [17]: