import numpy as np

Numpy Arrays#

squares = np.empty(5)
for n in range(5):
    squares[n] = n**2
    
#print squares
squares1 = [n**2 for n in range(5)]

print (squares, squares1)
print (type(squares), type(squares1))
[ 0.  1.  4.  9. 16.] [0, 1, 4, 9, 16]
<class 'numpy.ndarray'> <class 'list'>
squares1 = np.asarray(squares1)

print (type(squares1))
<class 'numpy.ndarray'>
\[ \large \sin(x) \]
x = np.linspace(0, 3*np.pi,1000)
z1 = np.sin(x)
print(x)
print(z1)
[0.         0.00943421 0.01886842 0.02830264 0.03773685 0.04717106
 0.05660527 0.06603949 0.0754737  0.08490791 0.09434212 0.10377633
 0.11321055 0.12264476 0.13207897 0.14151318 0.15094739 0.16038161
 0.16981582 0.17925003 0.18868424 0.19811846 0.20755267 0.21698688
 0.22642109 0.2358553  0.24528952 0.25472373 0.26415794 0.27359215
 0.28302637 0.29246058 0.30189479 0.311329   0.32076321 0.33019743
 0.33963164 0.34906585 0.35850006 0.36793427 0.37736849 0.3868027
 0.39623691 0.40567112 0.41510534 0.42453955 0.43397376 0.44340797
 0.45284218 0.4622764  0.47171061 0.48114482 0.49057903 0.50001325
 0.50944746 0.51888167 0.52831588 0.53775009 0.54718431 0.55661852
 0.56605273 0.57548694 0.58492115 0.59435537 0.60378958 0.61322379
 0.622658   0.63209222 0.64152643 0.65096064 0.66039485 0.66982906
 0.67926328 0.68869749 0.6981317  0.70756591 0.71700013 0.72643434
 0.73586855 0.74530276 0.75473697 0.76417119 0.7736054  0.78303961
 0.79247382 0.80190803 0.81134225 0.82077646 0.83021067 0.83964488
 0.8490791  0.85851331 0.86794752 0.87738173 0.88681594 0.89625016
 0.90568437 0.91511858 0.92455279 0.93398701 0.94342122 0.95285543
 0.96228964 0.97172385 0.98115807 0.99059228 1.00002649 1.0094607
 1.01889491 1.02832913 1.03776334 1.04719755 1.05663176 1.06606598
 1.07550019 1.0849344  1.09436861 1.10380282 1.11323704 1.12267125
 1.13210546 1.14153967 1.15097389 1.1604081  1.16984231 1.17927652
 1.18871073 1.19814495 1.20757916 1.21701337 1.22644758 1.23588179
 1.24531601 1.25475022 1.26418443 1.27361864 1.28305286 1.29248707
 1.30192128 1.31135549 1.3207897  1.33022392 1.33965813 1.34909234
 1.35852655 1.36796077 1.37739498 1.38682919 1.3962634  1.40569761
 1.41513183 1.42456604 1.43400025 1.44343446 1.45286867 1.46230289
 1.4717371  1.48117131 1.49060552 1.50003974 1.50947395 1.51890816
 1.52834237 1.53777658 1.5472108  1.55664501 1.56607922 1.57551343
 1.58494765 1.59438186 1.60381607 1.61325028 1.62268449 1.63211871
 1.64155292 1.65098713 1.66042134 1.66985555 1.67928977 1.68872398
 1.69815819 1.7075924  1.71702662 1.72646083 1.73589504 1.74532925
 1.75476346 1.76419768 1.77363189 1.7830661  1.79250031 1.80193453
 1.81136874 1.82080295 1.83023716 1.83967137 1.84910559 1.8585398
 1.86797401 1.87740822 1.88684243 1.89627665 1.90571086 1.91514507
 1.92457928 1.9340135  1.94344771 1.95288192 1.96231613 1.97175034
 1.98118456 1.99061877 2.00005298 2.00948719 2.01892141 2.02835562
 2.03778983 2.04722404 2.05665825 2.06609247 2.07552668 2.08496089
 2.0943951  2.10382931 2.11326353 2.12269774 2.13213195 2.14156616
 2.15100038 2.16043459 2.1698688  2.17930301 2.18873722 2.19817144
 2.20760565 2.21703986 2.22647407 2.23590828 2.2453425  2.25477671
 2.26421092 2.27364513 2.28307935 2.29251356 2.30194777 2.31138198
 2.32081619 2.33025041 2.33968462 2.34911883 2.35855304 2.36798726
 2.37742147 2.38685568 2.39628989 2.4057241  2.41515832 2.42459253
 2.43402674 2.44346095 2.45289516 2.46232938 2.47176359 2.4811978
 2.49063201 2.50006623 2.50950044 2.51893465 2.52836886 2.53780307
 2.54723729 2.5566715  2.56610571 2.57553992 2.58497414 2.59440835
 2.60384256 2.61327677 2.62271098 2.6321452  2.64157941 2.65101362
 2.66044783 2.66988204 2.67931626 2.68875047 2.69818468 2.70761889
 2.71705311 2.72648732 2.73592153 2.74535574 2.75478995 2.76422417
 2.77365838 2.78309259 2.7925268  2.80196102 2.81139523 2.82082944
 2.83026365 2.83969786 2.84913208 2.85856629 2.8680005  2.87743471
 2.88686892 2.89630314 2.90573735 2.91517156 2.92460577 2.93403999
 2.9434742  2.95290841 2.96234262 2.97177683 2.98121105 2.99064526
 3.00007947 3.00951368 3.0189479  3.02838211 3.03781632 3.04725053
 3.05668474 3.06611896 3.07555317 3.08498738 3.09442159 3.1038558
 3.11329002 3.12272423 3.13215844 3.14159265 3.15102687 3.16046108
 3.16989529 3.1793295  3.18876371 3.19819793 3.20763214 3.21706635
 3.22650056 3.23593478 3.24536899 3.2548032  3.26423741 3.27367162
 3.28310584 3.29254005 3.30197426 3.31140847 3.32084268 3.3302769
 3.33971111 3.34914532 3.35857953 3.36801375 3.37744796 3.38688217
 3.39631638 3.40575059 3.41518481 3.42461902 3.43405323 3.44348744
 3.45292166 3.46235587 3.47179008 3.48122429 3.4906585  3.50009272
 3.50952693 3.51896114 3.52839535 3.53782956 3.54726378 3.55669799
 3.5661322  3.57556641 3.58500063 3.59443484 3.60386905 3.61330326
 3.62273747 3.63217169 3.6416059  3.65104011 3.66047432 3.66990854
 3.67934275 3.68877696 3.69821117 3.70764538 3.7170796  3.72651381
 3.73594802 3.74538223 3.75481644 3.76425066 3.77368487 3.78311908
 3.79255329 3.80198751 3.81142172 3.82085593 3.83029014 3.83972435
 3.84915857 3.85859278 3.86802699 3.8774612  3.88689542 3.89632963
 3.90576384 3.91519805 3.92463226 3.93406648 3.94350069 3.9529349
 3.96236911 3.97180332 3.98123754 3.99067175 4.00010596 4.00954017
 4.01897439 4.0284086  4.03784281 4.04727702 4.05671123 4.06614545
 4.07557966 4.08501387 4.09444808 4.1038823  4.11331651 4.12275072
 4.13218493 4.14161914 4.15105336 4.16048757 4.16992178 4.17935599
 4.1887902  4.19822442 4.20765863 4.21709284 4.22652705 4.23596127
 4.24539548 4.25482969 4.2642639  4.27369811 4.28313233 4.29256654
 4.30200075 4.31143496 4.32086918 4.33030339 4.3397376  4.34917181
 4.35860602 4.36804024 4.37747445 4.38690866 4.39634287 4.40577708
 4.4152113  4.42464551 4.43407972 4.44351393 4.45294815 4.46238236
 4.47181657 4.48125078 4.49068499 4.50011921 4.50955342 4.51898763
 4.52842184 4.53785606 4.54729027 4.55672448 4.56615869 4.5755929
 4.58502712 4.59446133 4.60389554 4.61332975 4.62276396 4.63219818
 4.64163239 4.6510666  4.66050081 4.66993503 4.67936924 4.68880345
 4.69823766 4.70767187 4.71710609 4.7265403  4.73597451 4.74540872
 4.75484294 4.76427715 4.77371136 4.78314557 4.79257978 4.802014
 4.81144821 4.82088242 4.83031663 4.83975084 4.84918506 4.85861927
 4.86805348 4.87748769 4.88692191 4.89635612 4.90579033 4.91522454
 4.92465875 4.93409297 4.94352718 4.95296139 4.9623956  4.97182982
 4.98126403 4.99069824 5.00013245 5.00956666 5.01900088 5.02843509
 5.0378693  5.04730351 5.05673772 5.06617194 5.07560615 5.08504036
 5.09447457 5.10390879 5.113343   5.12277721 5.13221142 5.14164563
 5.15107985 5.16051406 5.16994827 5.17938248 5.1888167  5.19825091
 5.20768512 5.21711933 5.22655354 5.23598776 5.24542197 5.25485618
 5.26429039 5.2737246  5.28315882 5.29259303 5.30202724 5.31146145
 5.32089567 5.33032988 5.33976409 5.3491983  5.35863251 5.36806673
 5.37750094 5.38693515 5.39636936 5.40580358 5.41523779 5.424672
 5.43410621 5.44354042 5.45297464 5.46240885 5.47184306 5.48127727
 5.49071148 5.5001457  5.50957991 5.51901412 5.52844833 5.53788255
 5.54731676 5.55675097 5.56618518 5.57561939 5.58505361 5.59448782
 5.60392203 5.61335624 5.62279046 5.63222467 5.64165888 5.65109309
 5.6605273  5.66996152 5.67939573 5.68882994 5.69826415 5.70769836
 5.71713258 5.72656679 5.736001   5.74543521 5.75486943 5.76430364
 5.77373785 5.78317206 5.79260627 5.80204049 5.8114747  5.82090891
 5.83034312 5.83977734 5.84921155 5.85864576 5.86807997 5.87751418
 5.8869484  5.89638261 5.90581682 5.91525103 5.92468524 5.93411946
 5.94355367 5.95298788 5.96242209 5.97185631 5.98129052 5.99072473
 6.00015894 6.00959315 6.01902737 6.02846158 6.03789579 6.04733
 6.05676422 6.06619843 6.07563264 6.08506685 6.09450106 6.10393528
 6.11336949 6.1228037  6.13223791 6.14167212 6.15110634 6.16054055
 6.16997476 6.17940897 6.18884319 6.1982774  6.20771161 6.21714582
 6.22658003 6.23601425 6.24544846 6.25488267 6.26431688 6.2737511
 6.28318531 6.29261952 6.30205373 6.31148794 6.32092216 6.33035637
 6.33979058 6.34922479 6.358659   6.36809322 6.37752743 6.38696164
 6.39639585 6.40583007 6.41526428 6.42469849 6.4341327  6.44356691
 6.45300113 6.46243534 6.47186955 6.48130376 6.49073797 6.50017219
 6.5096064  6.51904061 6.52847482 6.53790904 6.54734325 6.55677746
 6.56621167 6.57564588 6.5850801  6.59451431 6.60394852 6.61338273
 6.62281695 6.63225116 6.64168537 6.65111958 6.66055379 6.66998801
 6.67942222 6.68885643 6.69829064 6.70772485 6.71715907 6.72659328
 6.73602749 6.7454617  6.75489592 6.76433013 6.77376434 6.78319855
 6.79263276 6.80206698 6.81150119 6.8209354  6.83036961 6.83980383
 6.84923804 6.85867225 6.86810646 6.87754067 6.88697489 6.8964091
 6.90584331 6.91527752 6.92471173 6.93414595 6.94358016 6.95301437
 6.96244858 6.9718828  6.98131701 6.99075122 7.00018543 7.00961964
 7.01905386 7.02848807 7.03792228 7.04735649 7.05679071 7.06622492
 7.07565913 7.08509334 7.09452755 7.10396177 7.11339598 7.12283019
 7.1322644  7.14169861 7.15113283 7.16056704 7.17000125 7.17943546
 7.18886968 7.19830389 7.2077381  7.21717231 7.22660652 7.23604074
 7.24547495 7.25490916 7.26434337 7.27377759 7.2832118  7.29264601
 7.30208022 7.31151443 7.32094865 7.33038286 7.33981707 7.34925128
 7.35868549 7.36811971 7.37755392 7.38698813 7.39642234 7.40585656
 7.41529077 7.42472498 7.43415919 7.4435934  7.45302762 7.46246183
 7.47189604 7.48133025 7.49076447 7.50019868 7.50963289 7.5190671
 7.52850131 7.53793553 7.54736974 7.55680395 7.56623816 7.57567237
 7.58510659 7.5945408  7.60397501 7.61340922 7.62284344 7.63227765
 7.64171186 7.65114607 7.66058028 7.6700145  7.67944871 7.68888292
 7.69831713 7.70775135 7.71718556 7.72661977 7.73605398 7.74548819
 7.75492241 7.76435662 7.77379083 7.78322504 7.79265925 7.80209347
 7.81152768 7.82096189 7.8303961  7.83983032 7.84926453 7.85869874
 7.86813295 7.87756716 7.88700138 7.89643559 7.9058698  7.91530401
 7.92473823 7.93417244 7.94360665 7.95304086 7.96247507 7.97190929
 7.9813435  7.99077771 8.00021192 8.00964613 8.01908035 8.02851456
 8.03794877 8.04738298 8.0568172  8.06625141 8.07568562 8.08511983
 8.09455404 8.10398826 8.11342247 8.12285668 8.13229089 8.14172511
 8.15115932 8.16059353 8.17002774 8.17946195 8.18889617 8.19833038
 8.20776459 8.2171988  8.22663301 8.23606723 8.24550144 8.25493565
 8.26436986 8.27380408 8.28323829 8.2926725  8.30210671 8.31154092
 8.32097514 8.33040935 8.33984356 8.34927777 8.35871199 8.3681462
 8.37758041 8.38701462 8.39644883 8.40588305 8.41531726 8.42475147
 8.43418568 8.44361989 8.45305411 8.46248832 8.47192253 8.48135674
 8.49079096 8.50022517 8.50965938 8.51909359 8.5285278  8.53796202
 8.54739623 8.55683044 8.56626465 8.57569887 8.58513308 8.59456729
 8.6040015  8.61343571 8.62286993 8.63230414 8.64173835 8.65117256
 8.66060677 8.67004099 8.6794752  8.68890941 8.69834362 8.70777784
 8.71721205 8.72664626 8.73608047 8.74551468 8.7549489  8.76438311
 8.77381732 8.78325153 8.79268575 8.80211996 8.81155417 8.82098838
 8.83042259 8.83985681 8.84929102 8.85872523 8.86815944 8.87759365
 8.88702787 8.89646208 8.90589629 8.9153305  8.92476472 8.93419893
 8.94363314 8.95306735 8.96250156 8.97193578 8.98136999 8.9908042
 9.00023841 9.00967263 9.01910684 9.02854105 9.03797526 9.04740947
 9.05684369 9.0662779  9.07571211 9.08514632 9.09458053 9.10401475
 9.11344896 9.12288317 9.13231738 9.1417516  9.15118581 9.16062002
 9.17005423 9.17948844 9.18892266 9.19835687 9.20779108 9.21722529
 9.22665951 9.23609372 9.24552793 9.25496214 9.26439635 9.27383057
 9.28326478 9.29269899 9.3021332  9.31156741 9.32100163 9.33043584
 9.33987005 9.34930426 9.35873848 9.36817269 9.3776069  9.38704111
 9.39647532 9.40590954 9.41534375 9.42477796]
[ 0.00000000e+00  9.43407223e-03  1.88673048e-02  2.82988581e-02
  3.77278927e-02  4.71535694e-02  5.65750492e-02  6.59914936e-02
  7.54020646e-02  8.48059245e-02  9.42022363e-02  1.03590164e-01
  1.12968871e-01  1.22337524e-01  1.31695289e-01  1.41041332e-01
  1.50374822e-01  1.59694928e-01  1.69000820e-01  1.78291671e-01
  1.87566653e-01  1.96824941e-01  2.06065711e-01  2.15288141e-01
  2.24491409e-01  2.33674696e-01  2.42837185e-01  2.51978061e-01
  2.61096510e-01  2.70191721e-01  2.79262883e-01  2.88309190e-01
  2.97329837e-01  3.06324020e-01  3.15290939e-01  3.24229795e-01
  3.33139795e-01  3.42020143e-01  3.50870051e-01  3.59688730e-01
  3.68475395e-01  3.77229264e-01  3.85949559e-01  3.94635503e-01
  4.03286322e-01  4.11901248e-01  4.20479513e-01  4.29020354e-01
  4.37523010e-01  4.45986726e-01  4.54410746e-01  4.62794323e-01
  4.71136709e-01  4.79437162e-01  4.87694944e-01  4.95909319e-01
  5.04079556e-01  5.12204928e-01  5.20284712e-01  5.28318189e-01
  5.36304643e-01  5.44243365e-01  5.52133646e-01  5.59974786e-01
  5.67766086e-01  5.75506853e-01  5.83196397e-01  5.90834035e-01
  5.98419086e-01  6.05950876e-01  6.13428734e-01  6.20851995e-01
  6.28219997e-01  6.35532086e-01  6.42787610e-01  6.49985923e-01
  6.57126385e-01  6.64208361e-01  6.71231219e-01  6.78194336e-01
  6.85097090e-01  6.91938869e-01  6.98719062e-01  7.05437067e-01
  7.12092285e-01  7.18684125e-01  7.25211999e-01  7.31675326e-01
  7.38073532e-01  7.44406046e-01  7.50672305e-01  7.56871752e-01
  7.63003834e-01  7.69068007e-01  7.75063729e-01  7.80990468e-01
  7.86847695e-01  7.92634891e-01  7.98351539e-01  8.03997130e-01
  8.09571163e-01  8.15073141e-01  8.20502575e-01  8.25858981e-01
  8.31141882e-01  8.36350809e-01  8.41485297e-01  8.46544890e-01
  8.51529138e-01  8.56437596e-01  8.61269828e-01  8.66025404e-01
  8.70703900e-01  8.75304901e-01  8.79827996e-01  8.84272783e-01
  8.88638867e-01  8.92925858e-01  8.97133376e-01  9.01261046e-01
  9.05308500e-01  9.09275378e-01  9.13161327e-01  9.16966002e-01
  9.20689063e-01  9.24330180e-01  9.27889027e-01  9.31365289e-01
  9.34758657e-01  9.38068827e-01  9.41295506e-01  9.44438405e-01
  9.47497247e-01  9.50471757e-01  9.53361672e-01  9.56166735e-01
  9.58886695e-01  9.61521310e-01  9.64070347e-01  9.66533578e-01
  9.68910783e-01  9.71201752e-01  9.73406281e-01  9.75524172e-01
  9.77555239e-01  9.79499299e-01  9.81356181e-01  9.83125718e-01
  9.84807753e-01  9.86402137e-01  9.87908727e-01  9.89327390e-01
  9.90657999e-01  9.91900435e-01  9.93054589e-01  9.94120357e-01
  9.95097645e-01  9.95986366e-01  9.96786440e-01  9.97497797e-01
  9.98120372e-01  9.98654111e-01  9.99098966e-01  9.99454898e-01
  9.99721874e-01  9.99899872e-01  9.99988874e-01  9.99988874e-01
  9.99899872e-01  9.99721874e-01  9.99454898e-01  9.99098966e-01
  9.98654111e-01  9.98120372e-01  9.97497797e-01  9.96786440e-01
  9.95986366e-01  9.95097645e-01  9.94120357e-01  9.93054589e-01
  9.91900435e-01  9.90657999e-01  9.89327390e-01  9.87908727e-01
  9.86402137e-01  9.84807753e-01  9.83125718e-01  9.81356181e-01
  9.79499299e-01  9.77555239e-01  9.75524172e-01  9.73406281e-01
  9.71201752e-01  9.68910783e-01  9.66533578e-01  9.64070347e-01
  9.61521310e-01  9.58886695e-01  9.56166735e-01  9.53361672e-01
  9.50471757e-01  9.47497247e-01  9.44438405e-01  9.41295506e-01
  9.38068827e-01  9.34758657e-01  9.31365289e-01  9.27889027e-01
  9.24330180e-01  9.20689063e-01  9.16966002e-01  9.13161327e-01
  9.09275378e-01  9.05308500e-01  9.01261046e-01  8.97133376e-01
  8.92925858e-01  8.88638867e-01  8.84272783e-01  8.79827996e-01
  8.75304901e-01  8.70703900e-01  8.66025404e-01  8.61269828e-01
  8.56437596e-01  8.51529138e-01  8.46544890e-01  8.41485297e-01
  8.36350809e-01  8.31141882e-01  8.25858981e-01  8.20502575e-01
  8.15073141e-01  8.09571163e-01  8.03997130e-01  7.98351539e-01
  7.92634891e-01  7.86847695e-01  7.80990468e-01  7.75063729e-01
  7.69068007e-01  7.63003834e-01  7.56871752e-01  7.50672305e-01
  7.44406046e-01  7.38073532e-01  7.31675326e-01  7.25211999e-01
  7.18684125e-01  7.12092285e-01  7.05437067e-01  6.98719062e-01
  6.91938869e-01  6.85097090e-01  6.78194336e-01  6.71231219e-01
  6.64208361e-01  6.57126385e-01  6.49985923e-01  6.42787610e-01
  6.35532086e-01  6.28219997e-01  6.20851995e-01  6.13428734e-01
  6.05950876e-01  5.98419086e-01  5.90834035e-01  5.83196397e-01
  5.75506853e-01  5.67766086e-01  5.59974786e-01  5.52133646e-01
  5.44243365e-01  5.36304643e-01  5.28318189e-01  5.20284712e-01
  5.12204928e-01  5.04079556e-01  4.95909319e-01  4.87694944e-01
  4.79437162e-01  4.71136709e-01  4.62794323e-01  4.54410746e-01
  4.45986726e-01  4.37523010e-01  4.29020354e-01  4.20479513e-01
  4.11901248e-01  4.03286322e-01  3.94635503e-01  3.85949559e-01
  3.77229264e-01  3.68475395e-01  3.59688730e-01  3.50870051e-01
  3.42020143e-01  3.33139795e-01  3.24229795e-01  3.15290939e-01
  3.06324020e-01  2.97329837e-01  2.88309190e-01  2.79262883e-01
  2.70191721e-01  2.61096510e-01  2.51978061e-01  2.42837185e-01
  2.33674696e-01  2.24491409e-01  2.15288141e-01  2.06065711e-01
  1.96824941e-01  1.87566653e-01  1.78291671e-01  1.69000820e-01
  1.59694928e-01  1.50374822e-01  1.41041332e-01  1.31695289e-01
  1.22337524e-01  1.12968871e-01  1.03590164e-01  9.42022363e-02
  8.48059245e-02  7.54020646e-02  6.59914936e-02  5.65750492e-02
  4.71535694e-02  3.77278927e-02  2.82988581e-02  1.88673048e-02
  9.43407223e-03  1.22464680e-16 -9.43407223e-03 -1.88673048e-02
 -2.82988581e-02 -3.77278927e-02 -4.71535694e-02 -5.65750492e-02
 -6.59914936e-02 -7.54020646e-02 -8.48059245e-02 -9.42022363e-02
 -1.03590164e-01 -1.12968871e-01 -1.22337524e-01 -1.31695289e-01
 -1.41041332e-01 -1.50374822e-01 -1.59694928e-01 -1.69000820e-01
 -1.78291671e-01 -1.87566653e-01 -1.96824941e-01 -2.06065711e-01
 -2.15288141e-01 -2.24491409e-01 -2.33674696e-01 -2.42837185e-01
 -2.51978061e-01 -2.61096510e-01 -2.70191721e-01 -2.79262883e-01
 -2.88309190e-01 -2.97329837e-01 -3.06324020e-01 -3.15290939e-01
 -3.24229795e-01 -3.33139795e-01 -3.42020143e-01 -3.50870051e-01
 -3.59688730e-01 -3.68475395e-01 -3.77229264e-01 -3.85949559e-01
 -3.94635503e-01 -4.03286322e-01 -4.11901248e-01 -4.20479513e-01
 -4.29020354e-01 -4.37523010e-01 -4.45986726e-01 -4.54410746e-01
 -4.62794323e-01 -4.71136709e-01 -4.79437162e-01 -4.87694944e-01
 -4.95909319e-01 -5.04079556e-01 -5.12204928e-01 -5.20284712e-01
 -5.28318189e-01 -5.36304643e-01 -5.44243365e-01 -5.52133646e-01
 -5.59974786e-01 -5.67766086e-01 -5.75506853e-01 -5.83196397e-01
 -5.90834035e-01 -5.98419086e-01 -6.05950876e-01 -6.13428734e-01
 -6.20851995e-01 -6.28219997e-01 -6.35532086e-01 -6.42787610e-01
 -6.49985923e-01 -6.57126385e-01 -6.64208361e-01 -6.71231219e-01
 -6.78194336e-01 -6.85097090e-01 -6.91938869e-01 -6.98719062e-01
 -7.05437067e-01 -7.12092285e-01 -7.18684125e-01 -7.25211999e-01
 -7.31675326e-01 -7.38073532e-01 -7.44406046e-01 -7.50672305e-01
 -7.56871752e-01 -7.63003834e-01 -7.69068007e-01 -7.75063729e-01
 -7.80990468e-01 -7.86847695e-01 -7.92634891e-01 -7.98351539e-01
 -8.03997130e-01 -8.09571163e-01 -8.15073141e-01 -8.20502575e-01
 -8.25858981e-01 -8.31141882e-01 -8.36350809e-01 -8.41485297e-01
 -8.46544890e-01 -8.51529138e-01 -8.56437596e-01 -8.61269828e-01
 -8.66025404e-01 -8.70703900e-01 -8.75304901e-01 -8.79827996e-01
 -8.84272783e-01 -8.88638867e-01 -8.92925858e-01 -8.97133376e-01
 -9.01261046e-01 -9.05308500e-01 -9.09275378e-01 -9.13161327e-01
 -9.16966002e-01 -9.20689063e-01 -9.24330180e-01 -9.27889027e-01
 -9.31365289e-01 -9.34758657e-01 -9.38068827e-01 -9.41295506e-01
 -9.44438405e-01 -9.47497247e-01 -9.50471757e-01 -9.53361672e-01
 -9.56166735e-01 -9.58886695e-01 -9.61521310e-01 -9.64070347e-01
 -9.66533578e-01 -9.68910783e-01 -9.71201752e-01 -9.73406281e-01
 -9.75524172e-01 -9.77555239e-01 -9.79499299e-01 -9.81356181e-01
 -9.83125718e-01 -9.84807753e-01 -9.86402137e-01 -9.87908727e-01
 -9.89327390e-01 -9.90657999e-01 -9.91900435e-01 -9.93054589e-01
 -9.94120357e-01 -9.95097645e-01 -9.95986366e-01 -9.96786440e-01
 -9.97497797e-01 -9.98120372e-01 -9.98654111e-01 -9.99098966e-01
 -9.99454898e-01 -9.99721874e-01 -9.99899872e-01 -9.99988874e-01
 -9.99988874e-01 -9.99899872e-01 -9.99721874e-01 -9.99454898e-01
 -9.99098966e-01 -9.98654111e-01 -9.98120372e-01 -9.97497797e-01
 -9.96786440e-01 -9.95986366e-01 -9.95097645e-01 -9.94120357e-01
 -9.93054589e-01 -9.91900435e-01 -9.90657999e-01 -9.89327390e-01
 -9.87908727e-01 -9.86402137e-01 -9.84807753e-01 -9.83125718e-01
 -9.81356181e-01 -9.79499299e-01 -9.77555239e-01 -9.75524172e-01
 -9.73406281e-01 -9.71201752e-01 -9.68910783e-01 -9.66533578e-01
 -9.64070347e-01 -9.61521310e-01 -9.58886695e-01 -9.56166735e-01
 -9.53361672e-01 -9.50471757e-01 -9.47497247e-01 -9.44438405e-01
 -9.41295506e-01 -9.38068827e-01 -9.34758657e-01 -9.31365289e-01
 -9.27889027e-01 -9.24330180e-01 -9.20689063e-01 -9.16966002e-01
 -9.13161327e-01 -9.09275378e-01 -9.05308500e-01 -9.01261046e-01
 -8.97133376e-01 -8.92925858e-01 -8.88638867e-01 -8.84272783e-01
 -8.79827996e-01 -8.75304901e-01 -8.70703900e-01 -8.66025404e-01
 -8.61269828e-01 -8.56437596e-01 -8.51529138e-01 -8.46544890e-01
 -8.41485297e-01 -8.36350809e-01 -8.31141882e-01 -8.25858981e-01
 -8.20502575e-01 -8.15073141e-01 -8.09571163e-01 -8.03997130e-01
 -7.98351539e-01 -7.92634891e-01 -7.86847695e-01 -7.80990468e-01
 -7.75063729e-01 -7.69068007e-01 -7.63003834e-01 -7.56871752e-01
 -7.50672305e-01 -7.44406046e-01 -7.38073532e-01 -7.31675326e-01
 -7.25211999e-01 -7.18684125e-01 -7.12092285e-01 -7.05437067e-01
 -6.98719062e-01 -6.91938869e-01 -6.85097090e-01 -6.78194336e-01
 -6.71231219e-01 -6.64208361e-01 -6.57126385e-01 -6.49985923e-01
 -6.42787610e-01 -6.35532086e-01 -6.28219997e-01 -6.20851995e-01
 -6.13428734e-01 -6.05950876e-01 -5.98419086e-01 -5.90834035e-01
 -5.83196397e-01 -5.75506853e-01 -5.67766086e-01 -5.59974786e-01
 -5.52133646e-01 -5.44243365e-01 -5.36304643e-01 -5.28318189e-01
 -5.20284712e-01 -5.12204928e-01 -5.04079556e-01 -4.95909319e-01
 -4.87694944e-01 -4.79437162e-01 -4.71136709e-01 -4.62794323e-01
 -4.54410746e-01 -4.45986726e-01 -4.37523010e-01 -4.29020354e-01
 -4.20479513e-01 -4.11901248e-01 -4.03286322e-01 -3.94635503e-01
 -3.85949559e-01 -3.77229264e-01 -3.68475395e-01 -3.59688730e-01
 -3.50870051e-01 -3.42020143e-01 -3.33139795e-01 -3.24229795e-01
 -3.15290939e-01 -3.06324020e-01 -2.97329837e-01 -2.88309190e-01
 -2.79262883e-01 -2.70191721e-01 -2.61096510e-01 -2.51978061e-01
 -2.42837185e-01 -2.33674696e-01 -2.24491409e-01 -2.15288141e-01
 -2.06065711e-01 -1.96824941e-01 -1.87566653e-01 -1.78291671e-01
 -1.69000820e-01 -1.59694928e-01 -1.50374822e-01 -1.41041332e-01
 -1.31695289e-01 -1.22337524e-01 -1.12968871e-01 -1.03590164e-01
 -9.42022363e-02 -8.48059245e-02 -7.54020646e-02 -6.59914936e-02
 -5.65750492e-02 -4.71535694e-02 -3.77278927e-02 -2.82988581e-02
 -1.88673048e-02 -9.43407223e-03 -2.44929360e-16  9.43407223e-03
  1.88673048e-02  2.82988581e-02  3.77278927e-02  4.71535694e-02
  5.65750492e-02  6.59914936e-02  7.54020646e-02  8.48059245e-02
  9.42022363e-02  1.03590164e-01  1.12968871e-01  1.22337524e-01
  1.31695289e-01  1.41041332e-01  1.50374822e-01  1.59694928e-01
  1.69000820e-01  1.78291671e-01  1.87566653e-01  1.96824941e-01
  2.06065711e-01  2.15288141e-01  2.24491409e-01  2.33674696e-01
  2.42837185e-01  2.51978061e-01  2.61096510e-01  2.70191721e-01
  2.79262883e-01  2.88309190e-01  2.97329837e-01  3.06324020e-01
  3.15290939e-01  3.24229795e-01  3.33139795e-01  3.42020143e-01
  3.50870051e-01  3.59688730e-01  3.68475395e-01  3.77229264e-01
  3.85949559e-01  3.94635503e-01  4.03286322e-01  4.11901248e-01
  4.20479513e-01  4.29020354e-01  4.37523010e-01  4.45986726e-01
  4.54410746e-01  4.62794323e-01  4.71136709e-01  4.79437162e-01
  4.87694944e-01  4.95909319e-01  5.04079556e-01  5.12204928e-01
  5.20284712e-01  5.28318189e-01  5.36304643e-01  5.44243365e-01
  5.52133646e-01  5.59974786e-01  5.67766086e-01  5.75506853e-01
  5.83196397e-01  5.90834035e-01  5.98419086e-01  6.05950876e-01
  6.13428734e-01  6.20851995e-01  6.28219997e-01  6.35532086e-01
  6.42787610e-01  6.49985923e-01  6.57126385e-01  6.64208361e-01
  6.71231219e-01  6.78194336e-01  6.85097090e-01  6.91938869e-01
  6.98719062e-01  7.05437067e-01  7.12092285e-01  7.18684125e-01
  7.25211999e-01  7.31675326e-01  7.38073532e-01  7.44406046e-01
  7.50672305e-01  7.56871752e-01  7.63003834e-01  7.69068007e-01
  7.75063729e-01  7.80990468e-01  7.86847695e-01  7.92634891e-01
  7.98351539e-01  8.03997130e-01  8.09571163e-01  8.15073141e-01
  8.20502575e-01  8.25858981e-01  8.31141882e-01  8.36350809e-01
  8.41485297e-01  8.46544890e-01  8.51529138e-01  8.56437596e-01
  8.61269828e-01  8.66025404e-01  8.70703900e-01  8.75304901e-01
  8.79827996e-01  8.84272783e-01  8.88638867e-01  8.92925858e-01
  8.97133376e-01  9.01261046e-01  9.05308500e-01  9.09275378e-01
  9.13161327e-01  9.16966002e-01  9.20689063e-01  9.24330180e-01
  9.27889027e-01  9.31365289e-01  9.34758657e-01  9.38068827e-01
  9.41295506e-01  9.44438405e-01  9.47497247e-01  9.50471757e-01
  9.53361672e-01  9.56166735e-01  9.58886695e-01  9.61521310e-01
  9.64070347e-01  9.66533578e-01  9.68910783e-01  9.71201752e-01
  9.73406281e-01  9.75524172e-01  9.77555239e-01  9.79499299e-01
  9.81356181e-01  9.83125718e-01  9.84807753e-01  9.86402137e-01
  9.87908727e-01  9.89327390e-01  9.90657999e-01  9.91900435e-01
  9.93054589e-01  9.94120357e-01  9.95097645e-01  9.95986366e-01
  9.96786440e-01  9.97497797e-01  9.98120372e-01  9.98654111e-01
  9.99098966e-01  9.99454898e-01  9.99721874e-01  9.99899872e-01
  9.99988874e-01  9.99988874e-01  9.99899872e-01  9.99721874e-01
  9.99454898e-01  9.99098966e-01  9.98654111e-01  9.98120372e-01
  9.97497797e-01  9.96786440e-01  9.95986366e-01  9.95097645e-01
  9.94120357e-01  9.93054589e-01  9.91900435e-01  9.90657999e-01
  9.89327390e-01  9.87908727e-01  9.86402137e-01  9.84807753e-01
  9.83125718e-01  9.81356181e-01  9.79499299e-01  9.77555239e-01
  9.75524172e-01  9.73406281e-01  9.71201752e-01  9.68910783e-01
  9.66533578e-01  9.64070347e-01  9.61521310e-01  9.58886695e-01
  9.56166735e-01  9.53361672e-01  9.50471757e-01  9.47497247e-01
  9.44438405e-01  9.41295506e-01  9.38068827e-01  9.34758657e-01
  9.31365289e-01  9.27889027e-01  9.24330180e-01  9.20689063e-01
  9.16966002e-01  9.13161327e-01  9.09275378e-01  9.05308500e-01
  9.01261046e-01  8.97133376e-01  8.92925858e-01  8.88638867e-01
  8.84272783e-01  8.79827996e-01  8.75304901e-01  8.70703900e-01
  8.66025404e-01  8.61269828e-01  8.56437596e-01  8.51529138e-01
  8.46544890e-01  8.41485297e-01  8.36350809e-01  8.31141882e-01
  8.25858981e-01  8.20502575e-01  8.15073141e-01  8.09571163e-01
  8.03997130e-01  7.98351539e-01  7.92634891e-01  7.86847695e-01
  7.80990468e-01  7.75063729e-01  7.69068007e-01  7.63003834e-01
  7.56871752e-01  7.50672305e-01  7.44406046e-01  7.38073532e-01
  7.31675326e-01  7.25211999e-01  7.18684125e-01  7.12092285e-01
  7.05437067e-01  6.98719062e-01  6.91938869e-01  6.85097090e-01
  6.78194336e-01  6.71231219e-01  6.64208361e-01  6.57126385e-01
  6.49985923e-01  6.42787610e-01  6.35532086e-01  6.28219997e-01
  6.20851995e-01  6.13428734e-01  6.05950876e-01  5.98419086e-01
  5.90834035e-01  5.83196397e-01  5.75506853e-01  5.67766086e-01
  5.59974786e-01  5.52133646e-01  5.44243365e-01  5.36304643e-01
  5.28318189e-01  5.20284712e-01  5.12204928e-01  5.04079556e-01
  4.95909319e-01  4.87694944e-01  4.79437162e-01  4.71136709e-01
  4.62794323e-01  4.54410746e-01  4.45986726e-01  4.37523010e-01
  4.29020354e-01  4.20479513e-01  4.11901248e-01  4.03286322e-01
  3.94635503e-01  3.85949559e-01  3.77229264e-01  3.68475395e-01
  3.59688730e-01  3.50870051e-01  3.42020143e-01  3.33139795e-01
  3.24229795e-01  3.15290939e-01  3.06324020e-01  2.97329837e-01
  2.88309190e-01  2.79262883e-01  2.70191721e-01  2.61096510e-01
  2.51978061e-01  2.42837185e-01  2.33674696e-01  2.24491409e-01
  2.15288141e-01  2.06065711e-01  1.96824941e-01  1.87566653e-01
  1.78291671e-01  1.69000820e-01  1.59694928e-01  1.50374822e-01
  1.41041332e-01  1.31695289e-01  1.22337524e-01  1.12968871e-01
  1.03590164e-01  9.42022363e-02  8.48059245e-02  7.54020646e-02
  6.59914936e-02  5.65750492e-02  4.71535694e-02  3.77278927e-02
  2.82988581e-02  1.88673048e-02  9.43407223e-03  3.67394040e-16]
from matplotlib import pyplot as plt
%matplotlib inline
a = range(5)
b = range(5)
plt.figure()
plt.plot(a,b)
[<matplotlib.lines.Line2D at 0x7f04d83b5160>]
../../_images/1_Basic_Numpy_7_1.png
plt.figure()
plt.plot(x,z1)
[<matplotlib.lines.Line2D at 0x7f04d82ba670>]
../../_images/1_Basic_Numpy_8_1.png
y = np.arange(-np.pi/2, 2*np.pi, 0.01)
z2 = np.cos(y)
xx, yy = np.meshgrid(x, y)
z = np.sin(xx) * np.cos(yy)

plt.figure(figsize=(10,10))
plt.imshow(z, origin='lower')
<matplotlib.image.AxesImage at 0x7f04d82a68b0>
../../_images/1_Basic_Numpy_10_1.png
z = np.sin(x) * np.cos(y[:, np.newaxis])

plt.figure(figsize=(10,8))
plt.pcolormesh(x,y,z)
plt.axis('tight')
(-0.0047171060864711605,
 9.42949506685585,
 -1.5757963267948965,
 6.28420367320511)
../../_images/1_Basic_Numpy_11_1.png
plt.figure(figsize=(10,8))
plt.contour(x,y,z)
plt.axis('tight')
(0.0, 9.42477796076938, -1.5707963267948966, 6.27920367320511)
../../_images/1_Basic_Numpy_12_1.png
mask = z > 0.9
Z = np.ma.masked_array(z, mask)
print (Z[-1])
[0.0 0.009433997444892279 0.018867155229113926 0.028298633766727217
 0.03772759362125359 0.047153195580386574 0.056574600730684835
 0.06599097053223855 0.07540146689330256 0.08480525224488959
 0.09420148961531712 0.10358934270470077 0.11296797595938832
 0.1223365546463268 0.13169424492735704 0.14104021393342833
 0.15037362983872665 0.15969366193471052 0.1689994807040469
 0.17829025789444145 0.18756516659235598 0.19682338129660681
 0.20606407799183757 0.2152864342218593 0.22448962916285245
 0.233672843696423 0.24283526048250711 0.25197606403211736
 0.2610944407799245 0.27018957915666736 0.27926066966138596
 0.2883069049334697 0.2973274798245158 0.3063215914699903
 0.3152884393606858 0.3242272254139701 0.33313715404481836
 0.34201743223662295 0.3508672696117751 0.35968587850201134
 0.36847247401851874 0.3772262741217932 0.3859464996912437
 0.39463237459453687 0.40328312575667574 0.4118979832288061
 0.42047618025674516 0.4290169533492251 0.4375195423458469
 0.44598319048473717 0.4544071444699031 0.4627906545382783
 0.4711329745264545 0.47943336193709307 0.48769107800500994
 0.4959053877629282 0.5040755601068933 0.5122008678613436
 0.5202805878438319 0.5283140009293916 0.5363003921145412
 0.5442390505809218 0.5521292697585636 0.5599703473887724
 0.5677615855866336 0.5755022909031263 0.5831917743868433
 0.5908293516453096 0.5984143429058966 0.6059460730763236
 0.6134238718047446 0.6208470735394106 0.628215017587908
 0.6355270481759607 0.642782514505798 0.6499807708140773
 0.6571211764293599 0.6642030958291316 0.6712258986963692
 0.6781889599756387 0.6850916599287287 0.6919333841898089
 0.6987135238201113 0.7054314753621282 0.7120866408933212
 0.7186784280793395 0.725206250226739 0.7316695263352015
 0.7380676811492443 0.744400145209421 0.7506663549030054
 0.7568657525141548 0.7629977862735493 0.7690619104075009
 0.7750575851865292 0.7809842769734 0.7868414582706202 0.7926286077673876
 0.7983452103859895 0.8039907573276458 0.8095647461177952
 0.8150666806508157 0.8204960712341818 0.8258524346320467
 0.8311352941082543 0.8363441794687688 0.8414786271035246
 0.8465381800276889 0.8515223879223351 0.8564308071745236
 0.8612630009167833 0.8660185390659962 0.8706969983616755
 0.8752979624036373 0.8798210216890624 0.8842657736489424
 0.8886318226839112 0.8929187801994536 0.8971262646404928 -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 0.8971262646404929 0.8929187801994538 0.8886318226839113
 0.8842657736489425 0.8798210216890626 0.8752979624036374
 0.8706969983616758 0.8660185390659964 0.8612630009167833
 0.8564308071745237 0.8515223879223354 0.8465381800276891
 0.8414786271035247 0.8363441794687689 0.8311352941082545
 0.8258524346320469 0.8204960712341819 0.815066680650816
 0.8095647461177953 0.8039907573276461 0.7983452103859897
 0.7926286077673877 0.7868414582706206 0.7809842769734002
 0.7750575851865293 0.7690619104075012 0.7629977862735495
 0.7568657525141551 0.7506663549030056 0.744400145209421
 0.7380676811492446 0.7316695263352017 0.7252062502267395
 0.7186784280793397 0.7120866408933213 0.7054314753621285
 0.6987135238201115 0.6919333841898089 0.6850916599287289
 0.6781889599756389 0.6712258986963695 0.6642030958291318 0.65712117642936
 0.6499807708140777 0.6427825145057983 0.6355270481759612
 0.6282150175879083 0.6208470735394108 0.6134238718047449
 0.605946073076324 0.5984143429058967 0.59082935164531 0.5831917743868436
 0.5755022909031268 0.5677615855866338 0.5599703473887725
 0.552129269758564 0.544239050580922 0.5363003921145416 0.528314000929392
 0.5202805878438321 0.5122008678613439 0.5040755601068935
 0.4959053877629283 0.4876910780050103 0.4794333619370933
 0.471132974526455 0.4627906545382786 0.45440714446990327
 0.44598319048473756 0.4375195423458471 0.42901695334922524
 0.4204761802567455 0.41189798322880633 0.4032831257566762
 0.3946323745945372 0.3859464996912439 0.37722627412179366
 0.36847247401851896 0.35968587850201184 0.35086726961177545
 0.3420174322366231 0.33313715404481875 0.32422722541397037
 0.3152884393606859 0.30632159146999066 0.297327479824516
 0.2883069049334702 0.2792606696613863 0.2701895791566675
 0.26109444077992494 0.25197606403211764 0.24283526048250764
 0.23367284369642335 0.22448962916285264 0.21528643422185978
 0.20606407799183787 0.19682338129660698 0.18756516659235636
 0.17829025789444167 0.1689994807040474 0.15969366193471088
 0.15037362983872685 0.14104021393342878 0.13169424492735732
 0.12233655464632691 0.11296797595938869 0.10358934270470099
 0.09420148961531759 0.0848052522448899 0.07540146689330271
 0.06599097053223899 0.05657460073068509 0.047153195580387094
 0.03772759362125394 0.028298633766727404 0.018867155229114387
 0.00943399744489257 1.2246370917468188e-16 -0.009433997444891882
 -0.0188671552291137 -0.028298633766726717 -0.037727593621253254
 -0.04715319558038641 -0.056574600730684405 -0.06599097053223829
 -0.07540146689330202 -0.08480525224488922 -0.09420148961531691
 -0.10358934270470031 -0.11296797595938801 -0.12233655464632666
 -0.13169424492735665 -0.1410402139334281 -0.15037362983872615
 -0.15969366193471018 -0.16899948070404672 -0.178290257894441
 -0.18756516659235567 -0.1968233812966063 -0.20606407799183718
 -0.21528643422185909 -0.22448962916285198 -0.2336728436964227
 -0.24283526048250698 -0.251976064032117 -0.2610944407799243
 -0.27018957915666686 -0.27926066966138563 -0.28830690493346955
 -0.2973274798245154 -0.30632159146999 -0.3152884393606857
 -0.3242272254139697 -0.33313715404481814 -0.34201743223662245
 -0.3508672696117748 -0.35968587850201117 -0.36847247401851835
 -0.37722627412179305 -0.3859464996912432 -0.3946323745945366
 -0.4032831257566756 -0.4118979832288057 -0.4204761802567449
 -0.429016953349225 -0.4375195423458465 -0.44598319048473695
 -0.45440714446990266 -0.462790654538278 -0.47113297452645436
 -0.4794333619370927 -0.4876910780050097 -0.49590538776292775
 -0.5040755601068929 -0.5122008678613433 -0.5202805878438316
 -0.5283140009293913 -0.5363003921145411 -0.5442390505809215
 -0.5521292697585635 -0.5599703473887719 -0.5677615855866333
 -0.5755022909031262 -0.583191774386843 -0.5908293516453095
 -0.5984143429058961 -0.6059460730763234 -0.6134238718047443
 -0.6208470735394103 -0.6282150175879078 -0.6355270481759606
 -0.6427825145057977 -0.6499807708140772 -0.6571211764293594
 -0.6642030958291313 -0.6712258986963691 -0.6781889599756383
 -0.6850916599287284 -0.6919333841898088 -0.6987135238201111
 -0.705431475362128 -0.7120866408933209 -0.7186784280793392
 -0.7252062502267389 -0.7316695263352012 -0.7380676811492441
 -0.7444001452094205 -0.7506663549030052 -0.7568657525141547
 -0.7629977862735491 -0.7690619104075004 -0.7750575851865292
 -0.7809842769733998 -0.7868414582706198 -0.7926286077673876
 -0.7983452103859893 -0.8039907573276455 -0.8095647461177952
 -0.8150666806508156 -0.8204960712341814 -0.8258524346320468
 -0.8311352941082542 -0.8363441794687686 -0.8414786271035242
 -0.8465381800276888 -0.851522387922335 -0.8564308071745231
 -0.8612630009167832 -0.866018539065996 -0.8706969983616752
 -0.8752979624036373 -0.8798210216890623 -0.8842657736489422
 -0.8886318226839112 -0.8929187801994536 -0.8971262646404926
 -0.901253901525349 -0.9053013234790713 -0.9092681702661327
 -0.9131540888224956 -0.9169587332870341 -0.9206817650323161
 -0.9243228526947446 -0.9278816722040485 -0.9313579068121266
 -0.9347512471212396 -0.9380613911115478 -0.9412880441679907
 -0.9444309191065107 -0.9474897361996119 -0.9504642232012585
 -0.9533541153711035 -0.9561591554980539 -0.9588790939231621
 -0.9615136885618464 -0.9640627049254384 -0.9665259161420527
 -0.9689031029767787 -0.9711940538511947 -0.9733985648621983
 -0.9755164398001546 -0.9775474901663594 -0.9794915351898175
 -0.9813484018433299 -0.9831179248588958 -0.984799946742421
 -0.9863943177877359 -0.9879008960899193 -0.9893195475579295
 -0.9906501459265379 -0.9918925727675675 -0.9930467175004335
 -0.9941124774019855 -0.9950897576156496 -0.9959784711598716
 -0.9967785389358588 -0.9974898897346194 -0.9981124602433008
 -0.998646195050825 -0.9990910466528194 -0.9994469754558462
 -0.9997139497809251 -0.9998919458663535 -0.9999809478698215
 -0.9999809478698215 -0.9998919458663535 -0.9997139497809251
 -0.9994469754558463 -0.9990910466528196 -0.9986461950508251
 -0.9981124602433009 -0.9974898897346195 -0.9967785389358589
 -0.9959784711598717 -0.9950897576156497 -0.9941124774019856
 -0.9930467175004336 -0.9918925727675676 -0.9906501459265379
 -0.9893195475579297 -0.9879008960899195 -0.986394317787736
 -0.9847999467424212 -0.983117924858896 -0.9813484018433302
 -0.9794915351898176 -0.9775474901663598 -0.9755164398001548
 -0.9733985648621984 -0.9711940538511951 -0.9689031029767791
 -0.9665259161420529 -0.9640627049254388 -0.9615136885618468
 -0.9588790939231622 -0.9561591554980542 -0.9533541153711038
 -0.9504642232012588 -0.9474897361996123 -0.9444309191065111
 -0.9412880441679912 -0.938061391111548 -0.9347512471212401
 -0.9313579068121272 -0.9278816722040487 -0.924322852694745
 -0.9206817650323167 -0.9169587332870343 -0.9131540888224962
 -0.9092681702661333 -0.9053013234790718 -0.9012539015253496
 -0.8971262646404932 -0.8929187801994541 -0.8886318226839114
 -0.8842657736489428 -0.8798210216890628 -0.8752979624036376
 -0.8706969983616758 -0.8660185390659967 -0.8612630009167834
 -0.8564308071745238 -0.8515223879223357 -0.846538180027689
 -0.8414786271035248 -0.8363441794687693 -0.8311352941082548
 -0.8258524346320469 -0.8204960712341821 -0.8150666806508163
 -0.8095647461177954 -0.8039907573276462 -0.79834521038599
 -0.7926286077673879 -0.7868414582706206 -0.7809842769734006
 -0.7750575851865295 -0.7690619104075013 -0.7629977862735499
 -0.7568657525141554 -0.7506663549030056 -0.7444001452094214
 -0.7380676811492449 -0.7316695263352018 -0.7252062502267395
 -0.7186784280793401 -0.7120866408933214 -0.7054314753621286
 -0.698713523820112 -0.691933384189809 -0.685091659928729
 -0.6781889599756393 -0.67122589869637 -0.664203095829132
 -0.6571211764293604 -0.6499807708140781 -0.6427825145057984
 -0.6355270481759612 -0.6282150175879088 -0.6208470735394109
 -0.613423871804745 -0.6059460730763244 -0.5984143429058968
 -0.5908293516453101 -0.583191774386844 -0.5755022909031273
 -0.5677615855866339 -0.559970347388773 -0.5521292697585645
 -0.5442390505809221 -0.5363003921145417 -0.5283140009293924
 -0.5202805878438322 -0.512200867861344 -0.504075560106894
 -0.4959053877629284 -0.48769107800501044 -0.4794333619370938
 -0.4711329745264555 -0.4627906545382787 -0.45440714446990377
 -0.44598319048473806 -0.4375195423458472 -0.42901695334922574
 -0.42047618025674605 -0.41189798322880644 -0.4032831257566763
 -0.3946323745945377 -0.385946499691244 -0.37722627412179377
 -0.3684724740185195 -0.35968587850201234 -0.35086726961177556
 -0.3420174322366237 -0.3331371540448193 -0.3242272254139705
 -0.31528843936068646 -0.3063215914699912 -0.2973274798245161
 -0.28830690493347033 -0.2792606696613868 -0.2701895791566677
 -0.26109444077992505 -0.2519760640321182 -0.2428352604825073
 -0.2336728436964235 -0.2244896291628532 -0.2152864342218603
 -0.20606407799183799 -0.19682338129660754 -0.18756516659235692
 -0.17829025789444178 -0.16899948070404752 -0.15969366193471143
 -0.15037362983872696 -0.14104021393342892 -0.1316942449273579
 -0.12233655464632703 -0.11296797595938882 -0.10358934270470156
 -0.09420148961531816 -0.08480525224489002 -0.07540146689330327
 -0.06599097053223955 -0.056574600730685216 -0.04715319558038722
 -0.03772759362125451 -0.02829863376672753 -0.018867155229114512
 -0.009433997444893137 -2.4492741834936377e-16 0.00943399744489176
 0.018867155229113135 0.02829863376672615 0.03772759362125313
 0.04715319558038584 0.056574600730683836 0.06599097053223817
 0.07540146689330189 0.08480525224488865 0.09420148961531678
 0.10358934270470019 0.11296797595938744 0.12233655464632655
 0.1316942449273565 0.14104021393342756 0.1503736298387256
 0.15969366193471007 0.16899948070404616 0.17829025789444042
 0.18756516659235556 0.19682338129660618 0.20606407799183662
 0.21528643422185897 0.22448962916285187 0.23367284369642213
 0.24283526048250684 0.25197606403211686 0.2610944407799237
 0.27018957915666636 0.2792606696613855 0.288306904933469
 0.29732747982451485 0.3063215914699899 0.3152884393606851
 0.32422722541396914 0.333137154044818 0.34201743223662234
 0.3508672696117743 0.35968587850201106 0.36847247401851824
 0.3772262741217925 0.38594649969124273 0.3946323745945365
 0.403283125756675 0.4118979832288052 0.42047618025674477
 0.42901695334922446 0.437519542345846 0.44598319048473684
 0.45440714446990255 0.4627906545382775 0.47113297452645425
 0.4794333619370926 0.4876910780050092 0.49590538776292725
 0.5040755601068928 0.5122008678613428 0.520280587843831
 0.5283140009293913 0.5363003921145405 0.544239050580921
 0.5521292697585634 0.5599703473887718 0.5677615855866328
 0.5755022909031262 0.5831917743868429 0.590829351645309
 0.5984143429058965 0.6059460730763233 0.6134238718047439
 0.6208470735394098 0.6282150175879077 0.6355270481759602
 0.6427825145057973 0.6499807708140771 0.6571211764293593
 0.664203095829131 0.671225898696369 0.6781889599756383 0.685091659928728
 0.6919333841898087 0.698713523820111 0.7054314753621276
 0.7120866408933204 0.7186784280793391 0.7252062502267386
 0.7316695263352009 0.738067681149244 0.7444001452094204
 0.7506663549030047 0.7568657525141546 0.762997786273549
 0.7690619104075004 0.7750575851865291 0.7809842769733997
 0.7868414582706198 0.792628607767387 0.7983452103859892
 0.8039907573276455 0.8095647461177945 0.8150666806508156
 0.8204960712341813 0.8258524346320462 0.831135294108254
 0.8363441794687685 0.8414786271035241 0.8465381800276888
 0.8515223879223349 0.8564308071745231 0.8612630009167827
 0.866018539065996 0.8706969983616751 0.8752979624036369
 0.8798210216890622 0.8842657736489421 0.8886318226839107
 0.8929187801994535 0.8971262646404926 -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
 -- -- -- -- -- -- -- -- -- -- -- -- 0.8971262646404936 0.8929187801994541
 0.8886318226839114 0.8842657736489433 0.879821021689063
 0.8752979624036377 0.8706969983616764 0.8660185390659968
 0.8612630009167834 0.8564308071745244 0.8515223879223357
 0.846538180027689 0.8414786271035254 0.8363441794687693
 0.8311352941082544 0.8258524346320476 0.8204960712341822
 0.8150666806508159 0.8095647461177959 0.8039907573276464
 0.7983452103859895 0.7926286077673884 0.7868414582706207
 0.7809842769734011 0.7750575851865301 0.7690619104075013
 0.7629977862735505 0.7568657525141556 0.7506663549030057
 0.7444001452094221 0.738067681149245 0.7316695263352019
 0.7252062502267402 0.7186784280793401 0.7120866408933215
 0.7054314753621294 0.6987135238201121 0.6919333841898091
 0.6850916599287298 0.6781889599756394 0.6712258986963694
 0.6642030958291327 0.6571211764293604 0.6499807708140776
 0.6427825145057992 0.6355270481759613 0.6282150175879081
 0.6208470735394117 0.6134238718047451 0.6059460730763252
 0.5984143429058976 0.5908293516453103 0.5831917743868449
 0.5755022909031274 0.567761585586634 0.5599703473887738
 0.5521292697585646 0.5442390505809223 0.5363003921145425
 0.5283140009293925 0.5202805878438324 0.5122008678613449
 0.5040755601068941 0.49590538776292853 0.4876910780050113
 0.4794333619370939 0.47113297452645475 0.4627906545382796
 0.4544071444699039 0.4459831904847374 0.43751954234584817
 0.42901695334922585 0.4204761802567453 0.4118979832288074
 0.4032831257566764 0.39463237459453704 0.38594649969124495
 0.3772262741217939 0.36847247401852046 0.3596858785020125
 0.35086726961177567 0.3420174322366246 0.3331371540448194
 0.3242272254139706 0.3152884393606874 0.30632159146999133
 0.2973274798245163 0.2883069049334713 0.27926066966138696
 0.2701895791566678 0.26109444077992605 0.2519760640321183
 0.24283526048250745 0.23367284369642446 0.2244896291628533
 0.21528643422185959 0.20606407799183898 0.19682338129660765
 0.18756516659235617 0.17829025789444278 0.16899948070404766
 0.15969366193471068 0.15037362983872796 0.14104021393342903
 0.1316942449273589 0.12233655464632803 0.11296797595938894
 0.10358934270470256 0.09420148961531828 0.08480525224489015
 0.07540146689330428 0.06599097053223967 0.056574600730685334
 0.047153195580388226 0.03772759362125463 0.02829863376672765
 0.01886715522911552 0.00943399744489326 3.673911275240456e-16]
plt.figure(figsize=(10,8))
plt.pcolormesh(x,y,np.ma.masked_invalid(Z))
plt.axis('tight')
(-0.0047171060864711605,
 9.42949506685585,
 -1.5757963267948965,
 6.28420367320511)
../../_images/1_Basic_Numpy_14_1.png