index
int64 0
731k
| package
stringlengths 2
98
⌀ | name
stringlengths 1
76
| docstring
stringlengths 0
281k
⌀ | code
stringlengths 4
8.19k
| signature
stringlengths 2
42.8k
⌀ | embed_func_code
listlengths 768
768
|
---|---|---|---|---|---|---|
20,840 | precession.precession | eval_S1 |
Spin angular momentum of the heavier black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
S1: float
Magnitude of the primary spin.
Examples
--------
``S1 = precession.eval_S1(q,chi1)``
| def eval_S1(q, chi1):
"""
Spin angular momentum of the heavier black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
S1: float
Magnitude of the primary spin.
Examples
--------
``S1 = precession.eval_S1(q,chi1)``
"""
chi1 = np.atleast_1d(chi1).astype(float)
S1 = chi1*(eval_m1(q))**2
return S1
| (q, chi1) | [
0.012133661657571793,
0.03172336891293526,
0.019853483885526657,
-0.021102020516991615,
0.03344670310616493,
0.019009403884410858,
0.006954873912036419,
-0.03513486310839653,
-0.042907439172267914,
0.060597967356443405,
0.05497076362371445,
0.036119624972343445,
0.0020739329047501087,
0.04431424289941788,
-0.03553931787610054,
0.0387222059071064,
0.05395083129405975,
-0.019044572487473488,
-0.010603765025734901,
-0.04895668476819992,
-0.014613148756325245,
-0.00870018731802702,
0.04062138870358467,
0.0631302073597908,
-0.03988281637430191,
-0.04937872663140297,
0.04375152289867401,
-0.04941389709711075,
-0.09270820766687393,
-0.059753887355327606,
0.015597909688949585,
0.021207530051469803,
0.0007891276036389172,
0.022719841450452805,
0.020381033420562744,
-0.033745646476745605,
0.03444904834032059,
0.014516430906951427,
-0.0946073904633522,
-0.002804810181260109,
0.0012463380116969347,
0.06678789108991623,
0.01614304445683956,
-0.0009215647587552667,
0.007442858535796404,
0.005745904054492712,
0.02725677564740181,
0.07125448435544968,
0.01265241950750351,
0.05535763129591942,
0.01186109334230423,
-0.01741795986890793,
-0.057889875024557114,
-0.06291919201612473,
0.02057446911931038,
0.03119581937789917,
0.018657702952623367,
-0.020205184817314148,
0.0280305165797472,
-0.04100826010107994,
0.0496600866317749,
0.012344681657850742,
0.020205184817314148,
0.0410785973072052,
0.04449009150266647,
-0.014964848756790161,
0.034572143107652664,
0.04888634756207466,
0.0017057466320693493,
0.01360200997442007,
-0.06242680922150612,
0.0008918900857679546,
-0.03557448834180832,
0.02562136948108673,
0.01811256632208824,
0.03509969264268875,
-0.045545194298028946,
-0.03960145637392998,
0.010164139792323112,
0.0007528585265390575,
0.023810112848877907,
0.006752646528184414,
-0.0196952186524868,
-0.10614316165447235,
-0.1035405769944191,
0.04294260963797569,
0.013171177357435226,
-0.01849943771958351,
-0.01063893549144268,
0.036084454506635666,
-0.005671167746186256,
-0.013109629973769188,
-0.0451231524348259,
0.045615531504154205,
0.08982426673173904,
0.06003524735569954,
-0.039320096373558044,
-0.06654170155525208,
-0.04452526196837425,
-0.025885144248604774,
-0.018235662952065468,
0.060246266424655914,
0.014850546605885029,
0.017980679869651794,
0.009364021010696888,
-0.005345845129340887,
-0.0028971314895898104,
0.008480374701321125,
0.0075967269949615,
-0.029331807047128677,
-0.04688165336847305,
0.01858736202120781,
-0.11317716538906097,
-0.030633099377155304,
-0.07512319087982178,
-0.024742119014263153,
-0.05595552176237106,
0.042801931500434875,
0.013531669974327087,
0.01028723455965519,
0.0451231524348259,
0.004440216813236475,
-0.005389807745814323,
0.005402996204793453,
-0.01083237025886774,
0.026746809482574463,
0.0043830652721226215,
-0.01696074940264225,
-0.012327096424996853,
-0.02919112704694271,
0.017875170335173607,
0.026588546112179756,
0.01814773678779602,
0.0641501396894455,
-0.028276706114411354,
-0.023774942383170128,
-0.05616654455661774,
-0.07223924994468689,
0.05799538642168045,
-0.005227146204560995,
-0.0009710226440802217,
0.006730664987117052,
-0.02055688388645649,
-0.017171768471598625,
0.04132479056715965,
0.013434953056275845,
0.027731571346521378,
0.023880451917648315,
-0.026711640879511833,
0.021207530051469803,
-0.05616654455661774,
0.06826503574848175,
0.12640109658241272,
-0.04114893823862076,
0.0010897214524447918,
-0.023001201450824738,
0.08279025554656982,
-0.03995315730571747,
0.012696381658315659,
-0.057010624557733536,
-0.017110221087932587,
0.005490921437740326,
-0.025533443316817284,
0.010111385025084019,
-0.022350555285811424,
-0.038862887769937515,
-0.07772577553987503,
0.014920886605978012,
0.00032752094557508826,
0.018411511555314064,
0.025867559015750885,
-0.01663542538881302,
-0.01930834911763668,
0.007834125310182571,
0.001978314481675625,
0.002094815019518137,
-0.05335294082760811,
0.03246194124221802,
-0.02453109808266163,
-0.03163544461131096,
0.0004915561876259744,
-0.044032882899045944,
-0.0505041666328907,
-0.07456047087907791,
-0.019079742953181267,
0.09974221140146255,
0.013171177357435226,
0.010735652409493923,
0.011966603808104992,
0.005592035129666328,
0.035785507410764694,
-0.0022475849837064743,
-0.005495317745953798,
-0.014674696139991283,
0.03272571787238121,
-0.022385725751519203,
0.024777287617325783,
-0.03539863973855972,
-0.020416203886270523,
0.019114913418889046,
-0.007662671152502298,
0.014938471838831902,
-0.029490072280168533,
0.008370468392968178,
0.001989305019378662,
-0.0016793691320344806,
-0.06203993782401085,
0.043153632432222366,
0.022192291915416718,
-0.013716313056647778,
-0.003257624339312315,
0.00849795900285244,
-0.017875170335173607,
0.019466614350676537,
0.0015672646695747972,
0.001348551013506949,
0.04297778010368347,
-0.05806572362780571,
0.049976617097854614,
-0.004950182046741247,
0.038089144974946976,
0.01781362108886242,
-0.008031955920159817,
0.012898609973490238,
-0.033042244613170624,
0.023370487615466118,
-0.05697545409202576,
-0.03668234497308731,
-0.03942560777068138,
-0.003072981722652912,
0.04944906756281853,
-0.029753848910331726,
0.05331777036190033,
-0.06348191201686859,
-0.01662663370370865,
0.05686994269490242,
-0.019554538652300835,
0.029032861813902855,
-0.07301299273967743,
0.03327085077762604,
-0.03300707787275314,
-0.003818146651610732,
-0.02372218668460846,
0.05651824548840523,
-0.0030773780308663845,
-0.06130136922001839,
-0.04540451243519783,
0.023388072848320007,
-0.03237401694059372,
0.04385703057050705,
-0.008414430543780327,
-0.047971926629543304,
0.0029213109519332647,
-0.0064932676032185555,
0.019941408187150955,
-0.03362255170941353,
-0.013390989974141121,
0.057503003627061844,
0.015553947538137436,
0.0003030667721759528,
0.013303064741194248,
-0.05535763129591942,
0.004563312046229839,
0.03633064404129982,
-0.07849951088428497,
0.038089144974946976,
-0.06766714155673981,
0.06538109481334686,
0.0006654829485341907,
-0.023511167615652084,
0.015914440155029297,
0.022315386682748795,
-0.024619024246931076,
-0.028136026114225388,
0.008370468392968178,
0.014630733989179134,
0.010920295491814613,
-0.00831771269440651,
0.015509984456002712,
-0.0020024937111884356,
0.021400965750217438,
-0.04526383429765701,
0.06485354155302048,
0.02138338051736355,
0.00620311452075839,
0.03699887543916702,
0.0022574765607714653,
-0.05574450269341469,
0.057467833161354065,
0.019888654351234436,
0.013892163522541523,
-0.006902119144797325,
-0.006805401295423508,
-0.027925007045269012,
0.06833537667989731,
0.01813015155494213,
-0.04216887056827545,
-0.007693444844335318,
0.019062157720327377,
0.019167669117450714,
0.037350576370954514,
0.010296027176082134,
-0.043259140104055405,
0.0060448492877185345,
-0.03189922124147415,
-0.05609620362520218,
0.008084711618721485,
0.012951364740729332,
-0.008656224235892296,
-0.006449304986745119,
-0.02131303958594799,
0.021084435284137726,
-0.05402117222547531,
0.007135120686143637,
-0.011992981657385826,
-0.019607294350862503,
0.05602586269378662,
0.03073860891163349,
0.07009387761354446,
0.00721864914521575,
0.017461922019720078,
-0.0009017816628329456,
0.09179379045963287,
-0.017611393705010414,
-0.0272743608802557,
-0.0181829072535038,
-0.04709267616271973,
-0.01462194137275219,
-0.03399183601140976,
-0.026236845180392265,
-0.019484197720885277,
0.00015276983322110027,
0.029437318444252014,
0.02138338051736355,
-0.019871069118380547,
-0.027309531345963478,
0.03907390683889389,
-0.030984800308942795,
-0.034185271710157394,
-0.059789057821035385,
0.07301299273967743,
-0.017945509403944016,
0.04526383429765701,
0.014349373988807201,
-0.025867559015750885,
0.01584409922361374,
0.010981842875480652,
-0.0654866024851799,
0.007451650686562061,
-0.0030356135684996843,
-0.03200472891330719,
-0.02885701321065426,
0.028681162744760513,
0.0037170329596847296,
0.05915599688887596,
0.08806576579809189,
-0.005697545595467091,
-0.013936125673353672,
-0.020697563886642456,
-0.11303649097681046,
0.04026968777179718,
0.029753848910331726,
-0.05845259502530098,
-0.025902729481458664,
-0.014419713988900185,
-0.006836175452917814,
-0.052297838032245636,
0.017857585102319717,
0.014859339222311974,
-0.002358590252697468,
-0.059859395027160645,
0.0385463573038578,
-0.0830012783408165,
-0.0018673089798539877,
-0.004910615738481283,
0.021928515285253525,
0.011957811191678047,
0.02133062481880188,
-0.03724506497383118,
-0.02924388274550438,
0.02922629751265049,
-0.02372218668460846,
-0.05574450269341469,
-0.0028575651813298464,
-0.009337644092738628,
0.024619024246931076,
-0.043962541967630386,
-0.018464267253875732,
0.020029334351420403,
-0.022772597149014473,
0.0425909087061882,
0.00025031171389855444,
0.01783120632171631,
0.022737426683306694,
-0.041254449635744095,
0.08672930300235748,
0.0688629224896431,
0.024777287617325783,
-0.08180549740791321,
0.014454883523285389,
0.01261724904179573,
-0.056694094091653824,
-0.03042207844555378,
0.004497367888689041,
-0.034536972641944885,
-0.1074092835187912,
0.02444317378103733,
-0.008871641010046005,
-0.04339982196688652,
0.00620311452075839,
0.006378964986652136,
-0.04649478569626808,
-0.027766741812229156,
0.03509969264268875,
-0.04311846196651459,
-0.024706948548555374,
0.02177025005221367,
-0.06889809668064117,
-0.011720413342118263,
0.0826495811343193,
0.00710434652864933,
-0.0284525565803051,
-0.021471304818987846,
0.03826499730348587,
0.012916195206344128,
0.024355247616767883,
0.01939627341926098,
0.011614903807640076,
-0.018833553418517113,
0.0023256184067577124,
-0.019976578652858734,
0.02646544948220253,
-0.050293147563934326,
-0.04505281150341034,
-0.05279022082686424,
-0.009161793626844883,
-0.001947540557011962,
-0.0055260914377868176,
0.042450230568647385,
-0.011711620725691319,
0.03466006740927696,
0.03480074927210808,
0.03935526683926582,
-0.02400354854762554,
-0.028909767046570778,
-0.012722759507596493,
-0.010973050259053707,
0.042415060102939606,
-0.05947252735495567,
-0.05609620362520218,
-0.0402345173060894,
0.0069460817612707615,
-0.031037554144859314,
0.008383656851947308,
0.0830012783408165,
-0.008475977927446365,
-0.015404474921524525,
0.010603765025734901,
0.006093208212405443,
-0.02757330611348152,
0.0006907614297233522,
0.04751471430063248,
-0.019079742953181267,
0.016415612772107124,
0.018376342952251434,
0.024355247616767883,
0.04670580476522446,
0.017576225101947784,
0.006519644986838102,
-0.05778436362743378,
0.033833570778369904,
0.02876908704638481,
0.032092656940221786,
-0.008511148393154144,
0.03699887543916702,
0.010401537641882896,
-0.05637756362557411,
0.010427914559841156,
0.03861669823527336,
0.0033719269558787346,
-0.000008015435923880432,
-0.035785507410764694,
0.016046328470110893,
0.04744437336921692,
0.007003232836723328,
-0.04357567057013512,
-0.025937899947166443,
-0.054302532225847244,
-0.00792204961180687,
-0.015641871839761734,
-0.02725677564740181,
0.06355225294828415,
0.05215715989470482,
0.016784898936748505,
-0.0489918552339077,
0.02372218668460846,
0.017286071553826332,
0.0036181171890348196,
0.043610841035842896,
0.03198714554309845,
-0.01145663857460022,
0.0830012783408165,
-0.08335297554731369,
0.02521691471338272,
-0.027889836579561234,
0.02607857994735241,
-0.002683913102373481,
-0.036189965903759,
-0.055850014090538025,
0.0057634892873466015,
-0.006968062836676836,
-0.0410785973072052,
-0.004985352046787739,
0.0249179694801569,
0.009434361010789871,
-0.014463676139712334,
0.001467249821871519,
0.017989471554756165,
-0.05359913036227226,
-0.006480078678578138,
-0.04547485336661339,
-0.014938471838831902,
0.03145959600806236,
0.006502059753984213,
-0.014850546605885029,
-0.012828269973397255,
-0.01483296137303114,
-0.043610841035842896,
0.028294291347265244,
0.029384562745690346,
0.01048946287482977,
-0.004611670505255461,
-0.014876924455165863,
0.034976597875356674,
0.03033415414392948,
0.0010116880293935537,
-0.024337662383913994,
-0.04543968290090561,
-0.020398618653416634,
-0.016916785389184952,
-0.05497076362371445,
-0.03504693880677223,
0.09524045139551163,
0.05082069709897041,
-0.014384543523192406,
-0.020750319585204124,
-0.000954536662902683,
0.019941408187150955,
-0.04227438196539879,
-0.0017068457091227174,
-0.046776145696640015,
-0.06826503574848175,
-0.009742098860442638,
-0.005372222512960434,
0.051137227565050125,
0.01581772230565548,
0.02565653994679451,
0.003622513497248292,
-0.012177623808383942,
0.005213957279920578,
-0.0042401873506605625,
0.010322405025362968,
0.11556872725486755,
-0.02256157621741295,
-0.05518178269267082,
0.012010565958917141,
0.011518185958266258,
-0.017848791554570198,
0.01480658445507288,
-0.00379836349748075,
0.02210436575114727,
0.022737426683306694,
0.056623753160238266,
0.02328256145119667,
-0.07645965367555618,
0.0146043561398983,
0.037702277302742004,
-0.04062138870358467,
-0.06362259387969971,
0.008524336852133274,
0.035785507410764694,
-0.03462489694356918,
0.015466022305190563,
-0.016450783237814903,
0.007469235919415951,
0.024583853781223297,
-0.04019934684038162,
0.03353462740778923,
-0.06172340735793114,
0.07399775087833405,
0.026781979948282242,
-0.05321225896477699,
0.021647155284881592,
0.0035983340349048376,
0.014366958290338516,
-0.03001762367784977,
0.021928515285253525,
-0.06418531388044357,
-0.023985963314771652,
0.02213953621685505,
-0.014753828756511211,
-0.020310694351792336,
0.03353462740778923,
-0.003101557260379195,
0.003585145343095064,
0.02683473564684391,
-0.004042355809360743,
0.05131307989358902,
0.0021014094818383455,
-0.018024642020463943,
0.03924975544214249,
0.023511167615652084,
0.006651532370597124,
0.08391570299863815,
0.003708240343257785,
0.0761079490184784,
-0.02442558854818344,
-0.029032861813902855,
0.0012518333969637752,
-0.0037148348055779934,
-0.007693444844335318,
0.04227438196539879,
-0.0076802559196949005,
-0.05556865409016609,
0.01162369642406702,
-0.014402128756046295,
0.01816532202064991,
-0.09003528207540512,
-0.013118422590196133,
-0.04150063917040825,
-0.001426584436558187,
0.021823005750775337,
0.028874596580863,
-0.029771434143185616,
-0.01419990137219429,
0.01419990137219429,
-0.0442790724337101,
0.022368140518665314,
-0.048042263835668564,
0.05771402642130852,
-0.0007902266806922853,
0.055041100829839706,
0.014964848756790161,
0.026236845180392265,
-0.02175266481935978,
-0.015553947538137436,
-0.022649502381682396,
0.007077969145029783,
0.033306021243333817,
0.012626041658222675,
-0.05046899616718292,
0.052297838032245636,
-0.004734765738248825,
0.07434944808483124,
0.036541663110256195,
-0.023124296218156815,
-0.0077989548444747925,
-0.07062142342329025,
-0.07477149367332458,
-0.01143905334174633,
0.04698716476559639,
-0.027133680880069733,
-0.04420873150229454,
0.028136026114225388,
-0.016802484169602394,
-0.0008995835087262094,
0.06457217782735825,
-0.02481245808303356,
-0.04072690010070801,
-0.011280788108706474,
-0.0212954543530941,
-0.03471282124519348,
0.03998832777142525,
-0.06203993782401085,
-0.015281379222869873,
0.006559211295098066,
0.005104050971567631,
0.003972015809267759,
-0.026131335645914078,
0.050680018961429596,
-0.010339990258216858,
0.011122522875666618,
0.0488160066306591,
0.021524060517549515,
0.007363725919276476,
0.009794854559004307,
-0.011175277642905712,
0.012951364740729332,
-0.04185234010219574,
0.004668822046369314,
-0.0012968949740752578,
0.015255002304911613,
-0.012388643808662891,
-0.01771690510213375,
0.08321230113506317,
0.017980679869651794,
-0.010296027176082134,
0.016274932771921158,
-0.0019332527881488204,
0.027151266112923622,
0.040480706840753555,
-0.021998856216669083,
0.00044374691788107157,
0.023159466683864594,
-0.022209875285625458,
0.028698747977614403,
0.03300707787275314,
-0.0019156677881255746,
-0.019114913418889046,
-0.002301438944414258,
-0.00019948002591263503,
0.029507657513022423,
0.04072690010070801,
0.08757338672876358,
-0.015474814921617508,
0.02957799844443798,
0.005323863588273525,
0.03265537694096565,
0.06949598342180252,
0.011166485957801342,
-0.013206347823143005,
-0.0703752338886261,
0.04628376290202141,
-0.029824187979102135,
-0.011922641657292843,
0.04695199429988861,
0.06837054342031479,
0.021154774352908134,
-0.002380571560934186,
-0.011008220724761486,
-0.020029334351420403,
-0.023563921451568604,
-0.02762606181204319,
0.03935526683926582,
0.044349413365125656,
-0.03942560777068138,
-0.006150359753519297,
-0.0102696493268013,
-0.004328112117946148,
-0.01853460818529129,
-0.008238580077886581,
0.005187579896301031,
0.026289599016308784,
-0.04230954870581627,
-0.015149491839110851,
-0.02453109808266163,
-0.013892163522541523,
0.023581506684422493,
0.03228608891367912,
0.016494745388627052,
0.027502965182065964,
0.006844967603683472,
0.03664717450737953,
0.03953111916780472,
0.021488890051841736,
-0.018306002020835876,
-0.01457797922194004,
0.027925007045269012,
-0.00948711670935154,
0.013382197357714176,
-0.008519941009581089,
0.009364021010696888,
0.04237988963723183,
0.05679960548877716,
-0.013839407823979855,
-0.0029762641061097383,
0.012511739507317543,
-0.011166485957801342
] |
20,841 | precession.precession | eval_S2 |
Spin angular momentum of the lighter black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
S2: float
Magnitude of the secondary spin.
Examples
--------
``S2 = precession.eval_S2(q,chi2)``
| def eval_S2(q, chi2):
"""
Spin angular momentum of the lighter black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
S2: float
Magnitude of the secondary spin.
Examples
--------
``S2 = precession.eval_S2(q,chi2)``
"""
chi2 = np.atleast_1d(chi2).astype(float)
S2 = chi2*(eval_m2(q))**2
return S2
| (q, chi2) | [
0.04351678490638733,
0.03018556348979473,
-0.0016697220271453261,
-0.0296013280749321,
0.04748251289129257,
0.027034226804971695,
0.017544806003570557,
-0.021829208359122276,
-0.059485919773578644,
0.03686002641916275,
0.07768578082323074,
0.03546139970421791,
-0.01623469963669777,
0.024537943303585052,
-0.008542248979210854,
0.03636430948972702,
0.064336858689785,
-0.06504502147436142,
-0.018040522933006287,
-0.0015468995552510023,
-0.032345470041036606,
-0.03408047556877136,
0.02108563482761383,
0.011171314865350723,
-0.033814914524555206,
-0.02011190727353096,
0.003051751758903265,
-0.028043363243341446,
-0.09758523851633072,
-0.04634944722056389,
0.014703291468322277,
-0.01789003610610962,
0.011534249410033226,
0.046172406524419785,
0.04358759894967079,
-0.004162686876952648,
0.0171907227486372,
0.029565919190645218,
-0.09538992494344711,
0.0035939409863203764,
-0.009374343790113926,
0.04496852308511734,
-0.0007098254864104092,
0.013525965623557568,
0.012817800045013428,
-0.011428024619817734,
0.003961301874369383,
0.05583886802196503,
0.010852639563381672,
0.026149019598960876,
0.02050139755010605,
-0.04316269978880882,
-0.06971891969442368,
-0.02972525730729103,
0.024998249486088753,
0.012029965408146381,
-0.001282443874515593,
-0.002299325540661812,
0.05233344808220863,
-0.05806959047913551,
0.05636999383568764,
-0.01956307888031006,
-0.001355473417788744,
0.07049790024757385,
-0.006408900022506714,
0.019297515973448753,
0.016119621694087982,
0.030256381258368492,
0.003872781293466687,
0.06695707142353058,
-0.05484743416309357,
0.014791811816394329,
-0.02683948166668415,
0.01623469963669777,
-0.004337515216320753,
0.02926494926214218,
-0.008453728631138802,
-0.01577439159154892,
-0.0019917162135243416,
-0.005085515324026346,
0.005297964904457331,
-0.00573171628639102,
0.00029958729282952845,
-0.09241563081741333,
-0.11528938263654709,
0.062389399856328964,
0.04511015862226486,
-0.0022196569480001926,
-0.06886911392211914,
-0.002305964706465602,
-0.044224951416254044,
-0.03053964674472809,
-0.016367480158805847,
0.010870344005525112,
0.061539601534605026,
0.02876923233270645,
-0.044295765459537506,
-0.06125633418560028,
-0.037107884883880615,
-0.04730547219514847,
0.012853207997977734,
0.04532260820269585,
0.029955411329865456,
0.01763332635164261,
0.048190679401159286,
-0.04071952775120735,
-0.033761803060770035,
0.03241628780961037,
0.01149884145706892,
-0.013464001007378101,
-0.04727006331086159,
0.04581832140684128,
-0.0919199138879776,
-0.014473137445747852,
-0.12003409117460251,
0.002695455914363265,
-0.018341492861509323,
0.06883370876312256,
0.06607186049222946,
0.018819503486156464,
0.024608759209513664,
0.004709301982074976,
0.0063602132722735405,
0.0066788881085813046,
-0.03650594502687454,
0.04719924554228783,
-0.01678352802991867,
-0.010905751958489418,
-0.011711291037499905,
0.002695455914363265,
0.006484142504632473,
-0.020944001153111458,
0.04652648791670799,
0.03863044083118439,
-0.023776665329933167,
-0.03877207264304161,
-0.008865349926054478,
-0.05226263031363487,
0.0746406689286232,
0.007117065601050854,
0.0016011184779927135,
0.01005595363676548,
-0.06465553492307663,
-0.061008479446172714,
0.005674177780747414,
0.042419128119945526,
0.029477398842573166,
0.05371437221765518,
0.027406014502048492,
0.029796073213219643,
-0.041392285376787186,
0.0621415413916111,
0.14418254792690277,
-0.006475290283560753,
0.019881753250956535,
0.0008154971292242408,
0.08859153091907501,
-0.06022949516773224,
0.003762130392715335,
-0.04829690232872963,
-0.02244885452091694,
-0.024502534419298172,
-0.042419128119945526,
0.006758556701242924,
0.024768097326159477,
-0.009976284578442574,
-0.02397141046822071,
0.007577373180538416,
0.021298084408044815,
0.04096738621592522,
-0.041888002306222916,
-0.03937401622533798,
-0.03360246494412422,
-0.01799626089632511,
0.008573231287300587,
0.006754130590707064,
-0.03937401622533798,
0.009887764230370522,
0.00898927915841341,
-0.04918210953474045,
0.006240710616111755,
-0.05541396886110306,
-0.031247813254594803,
-0.05484743416309357,
-0.028344333171844482,
0.11189018934965134,
0.02627294883131981,
-0.012950580567121506,
0.011596214026212692,
-0.011073941364884377,
0.05311242863535881,
-0.004346366971731186,
0.011622769758105278,
-0.01673041470348835,
0.021156450733542442,
-0.004014414269477129,
0.022289516404271126,
0.018500829115509987,
-0.007240994833409786,
0.051023341715335846,
0.0015546451322734356,
0.043729234486818314,
-0.05598049983382225,
0.013384331949055195,
0.03572696074843407,
-0.027388310059905052,
-0.036134157329797745,
0.022820640355348587,
0.015145894140005112,
0.03115929290652275,
-0.035656142979860306,
0.015969136729836464,
-0.0028038937598466873,
-0.008139479905366898,
0.06369950622320175,
0.044224951416254044,
0.03020326793193817,
-0.040896572172641754,
-0.005585657432675362,
0.004740284290164709,
0.061539601534605026,
-0.027441421523690224,
-0.01534064020961523,
0.018996546044945717,
-0.03337230905890465,
0.034700121730566025,
-0.017952000722289085,
-0.03625808656215668,
-0.03477093577384949,
0.003463373053818941,
0.013145326636731625,
-0.007900473661720753,
0.056653257459402084,
-0.05173150822520256,
-0.014827219769358635,
0.052404265850782394,
-0.007577373180538416,
0.03870125859975815,
-0.07796904444694519,
0.05010272562503815,
-0.04266698658466339,
-0.024732688441872597,
-0.0516606904566288,
0.0296013280749321,
-0.020324356853961945,
-0.037072475999593735,
0.00574056850746274,
-0.024307789281010628,
0.011428024619817734,
0.07017922401428223,
0.0004832677950616926,
-0.03696624934673309,
-0.002154372865334153,
0.00934778805822134,
-0.016429444774985313,
-0.05300620570778847,
-0.010817231610417366,
0.027954842895269394,
0.008497988805174828,
0.0037068049423396587,
0.0008188166539184749,
-0.04535801336169243,
-0.04642026498913765,
0.018872616812586784,
-0.05364355444908142,
0.02873382531106472,
-0.09078684449195862,
0.02827351726591587,
0.014278391376137733,
-0.015800947323441505,
0.03586859256029129,
-0.007280828896909952,
-0.031212404370307922,
0.005820237100124359,
-0.0004962692619301379,
0.030433421954512596,
0.03285888954997063,
-0.01048970501869917,
0.03432833403348923,
-0.012251267209649086,
0.017934296280145645,
-0.0038528642617166042,
0.022254107519984245,
-0.0070329708978533745,
0.009746130555868149,
0.020395172759890556,
-0.01775725558400154,
-0.03785145655274391,
0.07634026557207108,
0.011073941364884377,
-0.022590486332774162,
-0.01336662843823433,
0.005775976926088333,
0.030805209651589394,
0.09956809878349304,
0.035656142979860306,
-0.05888397991657257,
-0.0048996214754879475,
0.03526665270328522,
0.009710722602903843,
0.012870912440121174,
0.029512807726860046,
-0.039409421384334564,
0.043800052255392075,
0.04496852308511734,
-0.03866584971547127,
0.042914845049381256,
-0.004025479778647423,
-0.017066793516278267,
0.005855645518749952,
-0.029884593561291695,
0.0013875622535124421,
-0.04624322056770325,
0.0051696100272238255,
-0.02351110242307186,
0.004691598005592823,
0.005820237100124359,
0.01363219041377306,
0.02827351726591587,
-0.0026467693969607353,
0.008042107336223125,
-0.0421004518866539,
0.08767091482877731,
-0.026697847992181778,
0.01575668714940548,
-0.005714012309908867,
-0.07697761803865433,
-0.006404473911970854,
0.028043363243341446,
-0.00391040276736021,
-0.004700450226664543,
0.0016719350824132562,
0.028450557962059975,
0.009020261466503143,
0.005806958768516779,
-0.06224776804447174,
0.03891370818018913,
-0.01693401299417019,
0.003932532854378223,
-0.03763900697231293,
0.025759529322385788,
-0.023086203262209892,
0.03452308103442192,
-0.021280379965901375,
-0.02822040393948555,
0.007595077622681856,
-0.010002841241657734,
-0.07209127396345139,
0.0002553269441705197,
-0.01647370494902134,
-0.015508829616010189,
-0.04695138707756996,
0.011321799829602242,
0.009383196011185646,
-0.005581231322139502,
0.09475257247686386,
-0.019864048808813095,
0.01193259283900261,
-0.01506622601300478,
-0.08802500367164612,
-0.0019607339054346085,
0.0801643580198288,
-0.04989027604460716,
-0.0296013280749321,
0.012286675162613392,
0.03337230905890465,
-0.06299134343862534,
0.03142485395073891,
0.017712995409965515,
-0.010843787342309952,
-0.06033572182059288,
0.010109066031873226,
-0.012755835428833961,
0.0038794204592704773,
0.003534189658239484,
0.030946843326091766,
-0.03788686543703079,
0.017305800691246986,
0.01245486456900835,
-0.039161566644907,
-0.0008188166539184749,
-0.020820071920752525,
-0.09014949947595596,
-0.009445160627365112,
0.017128758132457733,
0.05123579129576683,
-0.06731115281581879,
0.005253704730421305,
0.031300924718379974,
-0.03774523362517357,
-0.004780118819326162,
0.026680143550038338,
0.05498906970024109,
-0.015269823372364044,
0.006258414592593908,
0.0863962173461914,
0.04645567014813423,
0.014172166585922241,
-0.06274348497390747,
0.02101481892168522,
-0.03693084418773651,
-0.002480793045833707,
0.026627032086253166,
-0.012047669850289822,
-0.027884025126695633,
-0.09482339024543762,
0.009365491569042206,
0.02241344563663006,
-0.04178177937865257,
0.020306652411818504,
-0.039161566644907,
-0.08299702405929565,
-0.02540544606745243,
0.004948308225721121,
-0.054776620119810104,
-0.00717903021723032,
-0.007148047909140587,
-0.02016501873731613,
-0.011613917537033558,
0.06805472820997238,
0.0052846865728497505,
-0.052404265850782394,
-0.010241846553981304,
0.009843504056334496,
-0.001536940922960639,
0.006377917714416981,
-0.010560521855950356,
0.03581548109650612,
-0.001866680569946766,
-0.024307789281010628,
-0.01623469963669777,
0.06044194474816322,
-0.039480239152908325,
-0.0336378738284111,
-0.05449335277080536,
-0.02915872447192669,
0.02055451087653637,
-0.034257516264915466,
0.0564408078789711,
0.002739716088399291,
0.02158134989440441,
0.06755901128053665,
0.04217126965522766,
-0.0063867694698274136,
-0.005505988374352455,
-0.03485945984721184,
0.004341941326856613,
0.06026490405201912,
-0.02301538549363613,
-0.049996498972177505,
-0.005430745892226696,
0.006245136726647615,
-0.0025471835397183895,
0.03770982474088669,
0.04263157770037651,
-0.011312947608530521,
0.00681166909635067,
-0.007944734767079353,
-0.007953586056828499,
-0.038524214178323746,
-0.025157587602734566,
0.03342542424798012,
-0.027034226804971695,
0.032734960317611694,
0.002478579990565777,
0.012339787557721138,
0.04790741205215454,
-0.014499693177640438,
0.02336946874856949,
-0.048580169677734375,
-0.008564379066228867,
-0.00537320738658309,
0.029406582936644554,
-0.03930319845676422,
0.03795768320560455,
0.023599622771143913,
-0.04783659428358078,
-0.006470864173024893,
0.03894911706447601,
-0.005466154310852289,
-0.02292686514556408,
-0.018925728276371956,
-0.029441989958286285,
0.03926778957247734,
0.013703007251024246,
-0.06713411211967468,
-0.00358066288754344,
-0.0687628909945488,
0.01610191911458969,
-0.038984522223472595,
-0.007223290391266346,
0.06015867739915848,
0.04606617987155914,
-0.042312901467084885,
-0.035178132355213165,
0.035248950123786926,
0.007320663426071405,
0.026892593130469322,
0.01391545683145523,
0.04146310314536095,
-0.02822040393948555,
0.034735530614852905,
-0.037497375160455704,
-0.001534727867692709,
-0.039515648037195206,
0.013056805357336998,
-0.0382409505546093,
-0.029884593561291695,
-0.04702220484614372,
0.03834717348217964,
0.030291788280010223,
-0.013694155029952526,
0.04217126965522766,
0.008847645483911037,
0.032770369201898575,
-0.02016501873731613,
-0.006515124812722206,
0.03724951669573784,
-0.006258414592593908,
-0.016756972298026085,
-0.04542883113026619,
-0.038524214178323746,
0.00005691605474567041,
-0.006174319889396429,
0.021616758778691292,
-0.0764819011092186,
-0.010649042204022408,
-0.01678352802991867,
0.0343814454972744,
-0.055732641369104385,
0.012268971651792526,
-0.012392899952828884,
-0.02303308993577957,
0.011304095387458801,
-0.014552805572748184,
0.004521195776760578,
0.0018810651963576674,
-0.014667882584035397,
-0.04656189680099487,
-0.05201477184891701,
-0.04511015862226486,
-0.029371174052357674,
0.04822608456015587,
0.043339744210243225,
-0.021244971081614494,
0.027600759640336037,
-0.023157019168138504,
-0.015553089790046215,
-0.03820554167032242,
-0.019704710692167282,
-0.025741824880242348,
-0.01247256901115179,
0.023174723610281944,
-0.016429444774985313,
0.015889469534158707,
-0.00034523080103099346,
-0.009259266778826714,
-0.028362037613987923,
-0.01172899454832077,
-0.008856497704982758,
-0.015650462359189987,
0.037143293768167496,
0.06040653586387634,
-0.017580214887857437,
-0.026025090366601944,
0.004727006424218416,
0.021758392453193665,
0.006537254899740219,
-0.02770698443055153,
-0.004607503302395344,
0.022378036752343178,
0.007152474019676447,
0.08781255036592484,
0.015606202185153961,
-0.02149282954633236,
0.04967782646417618,
0.07803986221551895,
-0.04673893749713898,
-0.013242699205875397,
-0.00851126667112112,
0.03243399038910866,
0.011189018376171589,
0.028928570449352264,
-0.004594224970787764,
0.0005864497506991029,
-0.0011474498314782977,
-0.062424808740615845,
0.04539342224597931,
-0.0393386073410511,
0.05081089213490486,
0.0592026561498642,
-0.013933160342276096,
-0.002456449903547764,
-0.05371437221765518,
-0.007909325882792473,
-0.05357273668050766,
0.011923740617930889,
-0.008369633927941322,
0.0025162014644593,
-0.0005217189900577068,
-0.030946843326091766,
-0.02246655710041523,
0.05789254978299141,
-0.023174723610281944,
-0.01584520749747753,
-0.0025737397372722626,
0.006196449976414442,
-0.01193259283900261,
-0.0402592234313488,
0.025564782321453094,
0.014836071990430355,
0.01729694753885269,
0.0023657160345464945,
0.04071952775120735,
0.008267834782600403,
0.08901643007993698,
-0.010595929808914661,
-0.035744667053222656,
-0.018978841602802277,
0.004499065224081278,
-0.03785145655274391,
0.0755612850189209,
0.037532784044742584,
-0.015951432287693024,
-0.008847645483911037,
-0.01551768183708191,
0.00017081732221413404,
-0.05743224173784256,
-0.010224143043160439,
-0.02967214398086071,
-0.03408047556877136,
-0.0032730535604059696,
0.03351394459605217,
-0.0516606904566288,
-0.03307133913040161,
-0.012348639778792858,
-0.021174155175685883,
0.035691551864147186,
-0.023227835074067116,
0.09510666131973267,
-0.004935029894113541,
0.04146310314536095,
-0.013083362020552158,
0.029424285516142845,
-0.06065439432859421,
-0.021846912801265717,
0.008497988805174828,
0.038559623062610626,
0.023192428052425385,
0.019421445205807686,
-0.0353020615875721,
0.04050707817077637,
0.019881753250956535,
0.05498906970024109,
-0.0007634912035427988,
-0.054316312074661255,
0.039161566644907,
-0.05824663117527962,
-0.012968285009264946,
0.0006627988768741488,
0.07747332751750946,
0.017934296280145645,
-0.05247507989406586,
0.04606617987155914,
-0.04748251289129257,
-0.018536237999796867,
0.08377600461244583,
-0.011720143258571625,
-0.03682461753487587,
-0.019527669996023178,
0.01693401299417019,
-0.05035058408975601,
0.033814914524555206,
-0.029318060725927353,
-0.07035626471042633,
0.008794533088803291,
-0.014473137445747852,
0.007046249229460955,
-0.02871612086892128,
0.08136824518442154,
0.01361448597162962,
0.006045965012162924,
0.02441401407122612,
0.009808095172047615,
-0.005567952990531921,
0.03795768320560455,
0.010171030648052692,
0.019917162135243416,
-0.04107361286878586,
-0.056617848575115204,
-0.018447717651724815,
0.014924592338502407,
-0.06302674859762192,
-0.02345798909664154,
0.06458471715450287,
-0.005351077299565077,
-0.01575668714940548,
0.025989681482315063,
0.015836356207728386,
0.01871327869594097,
0.031389445066452026,
-0.012507976964116096,
0.04493311420083046,
0.01910277083516121,
-0.00852011889219284,
0.03485945984721184,
0.005120923276990652,
-0.04642026498913765,
0.003872781293466687,
-0.028149588033556938,
-0.011923740617930889,
0.001154088880866766,
0.04592454805970192,
0.046207815408706665,
-0.03873666375875473,
-0.005452875979244709,
-0.006847077514976263,
0.024998249486088753,
0.03632890060544014,
0.02627294883131981,
0.0077544148080050945,
-0.06904616206884384,
0.03489486500620842,
-0.02494513802230358,
-0.027618464082479477,
0.07527801394462585,
0.036541350185871124,
0.03636430948972702,
0.033690985292196274,
-0.04220667853951454,
-0.031336333602666855,
-0.03912615776062012,
-0.011277539655566216,
0.0487218014895916,
0.018359197303652763,
-0.026202132925391197,
-0.05304161459207535,
-0.027051931247115135,
0.021174155175685883,
-0.014039386063814163,
0.050563033670186996,
0.036612167954444885,
0.04181718826293945,
-0.022714415565133095,
-0.040400855243206024,
0.018996546044945717,
-0.039480239152908325,
-0.003377065295353532,
0.05084630101919174,
0.0329120010137558,
0.03107077069580555,
0.0037776215467602015,
0.07209127396345139,
0.0479782298207283,
-0.011587361805140972,
0.013251551426947117,
-0.006183172110468149,
-0.011861776001751423,
-0.0478011853992939,
0.007493278477340937,
0.03636430948972702,
0.028131883591413498,
0.05279375612735748,
0.04171096161007881,
0.009533680975437164,
0.011773255653679371,
-0.012800095602869987,
-0.0009421923896297812
] |
20,842 | precession.precession | eval_alpha |
Evaluate the precession angle spanned by L during an entire cycle.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
alpha: float
Azimuthal angle spanned by L about J during an entire cycle.
Examples
--------
``alpha = precession.eval_alpha(kappa,r,chieff,q,chi1,chi2)``
| def eval_alpha(kappa, r, chieff, q, chi1, chi2, precomputedroots=None):
"""
Evaluate the precession angle spanned by L during an entire cycle.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
alpha: float
Azimuthal angle spanned by L about J during an entire cycle.
Examples
--------
``alpha = precession.eval_alpha(kappa,r,chieff,q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
r = np.atleast_1d(r).astype(float)
u= eval_u(r=r,q=q)
with warnings.catch_warnings():
# If there are infinitely large separation in the array the following will throw a warning. You can safely ignore it because that value is not used, see below
if 0 in u:
warnings.filterwarnings("ignore", category=Warning)
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
bigC0, bigCplus, bigCminus,bigRplus,bigRminus = intertial_ingredients(kappa, r, chieff, q, chi1, chi2)
psiperiod = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]),return_psiperiod=True)
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
alpha = 2 * bigC0 * psiperiod * ( scipy.special.ellipk(m)
- bigCplus / (bigRplus - deltachiminus*(1-q)*r**(-1/2))
* ellippi( (1-q)*r**(-1/2)*(deltachiplus-deltachiminus) / (bigRplus - deltachiminus*(1-q)*r**(-1/2)), np.pi/2, m)
- bigCminus / (bigRminus - deltachiminus*(1-q)*r**(-1/2))
* ellippi( (1-q)*r**(-1/2)*(deltachiplus-deltachiminus) / (bigRminus - deltachiminus*(1-q)*r**(-1/2)), np.pi/2, m) )
# At infinitely large separation use the analytic result
if 0 in u:
mathcalY = 2 * q * (1+q)**3 * kappa * chieff - (1+q)**5 * kappa**2 +(1-q) *(chi1**2 -q**4 * chi2**2)
alphainf1= 2*np.pi*(4+3*q)*q/3/(1-q**2)
alphainf2 = 2*np.pi*(4*q+3)/3/(1-q**2)
alphainf = np.where(mathcalY>=0, alphainf1, alphainf2)
alpha =np.where(u>0,alpha,alphainf)
return alpha
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None) | [
-0.014474651776254177,
-0.021458923816680908,
-0.014839048497378826,
0.05955863371491432,
0.047047678381204605,
0.01488965842872858,
-0.04170319065451622,
-0.0656319186091423,
-0.044051527976989746,
0.04087317734956741,
0.05425463616847992,
-0.020406221970915794,
0.03251229226589203,
0.0037401283625513315,
-0.10316478461027145,
0.005169879645109177,
0.0359538197517395,
0.03067006543278694,
-0.032208628952503204,
-0.027714401483535767,
-0.04336322098970413,
-0.057858116924762726,
-0.005638028495013714,
0.0634860247373581,
-0.025851929560303688,
0.03569064289331436,
0.032228875905275345,
-0.009408523328602314,
-0.05137995257973671,
-0.02045683190226555,
0.02538631111383438,
0.02123623713850975,
-0.005425463896244764,
-0.006088463589549065,
0.035751376301050186,
-0.021924542263150215,
0.05336388945579529,
0.017804833129048347,
-0.05312095955014229,
-0.001436077756807208,
-0.0023483349941670895,
0.0026064494159072638,
0.06295967102050781,
-0.05251362919807434,
-0.03014371544122696,
-0.009443950839340687,
0.0043525174260139465,
0.06749438494443893,
0.020284757018089294,
0.009064370766282082,
0.0374114066362381,
-0.09733443707227707,
0.05474049970507622,
-0.013523170724511147,
-0.008457043208181858,
0.07510623335838318,
0.015365399420261383,
-0.0075055621564388275,
0.01035494264215231,
-0.10591800510883331,
0.03605503961443901,
-0.03129763901233673,
0.05287802591919899,
0.06405286490917206,
0.011336789466440678,
0.018746191635727882,
0.00027630262775346637,
0.007399279624223709,
0.015173078514635563,
0.04486129805445671,
-0.0077130659483373165,
-0.011630332097411156,
-0.015618452802300453,
-0.06777780503034592,
0.013543414883315563,
0.005142043810337782,
-0.03014371544122696,
-0.045306671410799026,
-0.005855654366314411,
-0.023948969319462776,
-0.02348335087299347,
-0.00905424915254116,
0.015729796141386032,
0.015790529549121857,
0.04299882426857948,
0.021074282005429268,
0.0064882878214120865,
-0.004580265376716852,
0.025528021156787872,
0.029091011732816696,
-0.01394830085337162,
-0.03696603327989578,
0.0022686233278363943,
0.045549601316452026,
0.04911259189248085,
0.04810037836432457,
0.03287668898701668,
-0.05364730954170227,
0.06457921117544174,
-0.04372761771082878,
0.060368407517671585,
0.04107562080025673,
0.04862673208117485,
0.0032998155802488327,
0.039375100284814835,
-0.008335577324032784,
-0.030872508883476257,
0.006447799038141966,
0.06393139809370041,
-0.028220508247613907,
-0.07680675387382507,
0.03540722280740738,
-0.04696670174598694,
-0.023199930787086487,
-0.0866454690694809,
-0.049072105437517166,
-0.05287802591919899,
0.03607528656721115,
0.007019700016826391,
0.04182465746998787,
0.03067006543278694,
-0.01847289502620697,
0.00002740093259490095,
0.010597874410450459,
0.03115592710673809,
-0.021884053945541382,
0.0211147703230381,
0.04927454888820648,
-0.025163624435663223,
-0.018310939893126488,
0.011235568672418594,
0.056481506675481796,
0.03929412364959717,
0.0016992532182484865,
-0.026580723002552986,
0.008796134032309055,
0.0068223183043301105,
-0.011944117955863476,
0.014140620827674866,
-0.013401704840362072,
0.03158105909824371,
-0.0018548810621723533,
-0.010425797663629055,
0.001084966235794127,
0.0033301820512861013,
0.021884053945541382,
0.07356766611337662,
-0.014292453415691853,
-0.03903094679117203,
0.032107409089803696,
0.0004950356087647378,
0.04032658040523529,
0.013229629024863243,
-0.037249453365802765,
0.06206892430782318,
-0.06304065138101578,
0.06040889397263527,
-0.004985150881111622,
-0.0096818208694458,
-0.04486129805445671,
-0.03467842936515808,
-0.0062504177913069725,
-0.01017780601978302,
0.010962271131575108,
0.00530399801209569,
0.021054038777947426,
-0.03214789554476738,
0.037249453365802765,
0.006047974806278944,
0.022410403937101364,
0.027957333251833916,
-0.010365065187215805,
-0.06899246573448181,
0.04135903716087341,
-0.049072105437517166,
-0.013513049110770226,
-0.02890881337225437,
-0.03429378941655159,
0.024455076083540916,
-0.02637828141450882,
-0.030062736943364143,
-0.013108163140714169,
-0.026196083053946495,
-0.037897270172834396,
0.03552868962287903,
0.05101555585861206,
0.07547062635421753,
-0.019404130056500435,
-0.000654142873827368,
-0.012247782200574875,
-0.04020511731505394,
0.00017144363664556295,
0.03552868962287903,
0.053323399275541306,
-0.007095615845173597,
0.008310271427035332,
0.030184203758835793,
0.017865566536784172,
-0.03228960558772087,
0.0006655302713625133,
-0.029091011732816696,
0.0016714173834770918,
-0.016893841326236725,
-0.011589842848479748,
0.05555026978254318,
-0.03212765231728554,
-0.060368407517671585,
-0.0021800545509904623,
0.019626816734671593,
0.03832240030169487,
-0.006184623576700687,
-0.02890881337225437,
-0.026702189818024635,
-0.004375292453914881,
-0.03370670601725578,
0.03996218368411064,
0.08065316081047058,
0.025811441242694855,
0.04235100746154785,
0.028180019930005074,
-0.005253387615084648,
-0.00784971471875906,
0.06502458453178406,
-0.02299748733639717,
0.0249814260751009,
0.012834865599870682,
0.04081244394183159,
0.08389224857091904,
-0.0429583378136158,
-0.05125848576426506,
0.012784254737198353,
-0.02085159532725811,
-0.057453230023384094,
-0.05061066895723343,
0.0076928217895329,
-0.0002963887236546725,
-0.01632700115442276,
0.03176325559616089,
-0.02874686010181904,
0.03852484002709389,
0.0035300941672176123,
0.01244010217487812,
0.02461702935397625,
0.03451647609472275,
-0.04283687099814415,
-0.01229839213192463,
0.03299815580248833,
0.01647883467376232,
-0.012976575642824173,
0.008254599757492542,
-0.03842362016439438,
-0.07502525299787521,
-0.002001652028411627,
0.0031682278495281935,
-0.018118619918823242,
-0.023544082418084145,
0.04749305173754692,
0.03795800358057022,
0.07170519232749939,
-0.023523839190602303,
0.02234967239201069,
-0.027107074856758118,
0.020173411816358566,
0.057210300117731094,
-0.061502084136009216,
0.01608407124876976,
-0.006078341510146856,
0.0011653106193989515,
0.019191564992070198,
-0.006549020763486624,
-0.022288938984274864,
0.051420439034700394,
-0.044415924698114395,
-0.011518988758325577,
-0.010127195157110691,
0.060732804238796234,
0.028929058462381363,
0.04457787796854973,
-0.049557968974113464,
0.0301639586687088,
-0.015577963553369045,
-0.03702676668763161,
-0.020811107009649277,
0.02639852464199066,
-0.07178617268800735,
0.009464194998145103,
-0.042391497641801834,
-0.0301639586687088,
0.09498610347509384,
-0.033726949244737625,
-0.0011937791714444757,
0.016509199514985085,
0.006493348628282547,
-0.021438678726553917,
0.14681142568588257,
0.006260539870709181,
-0.05789860710501671,
-0.053323399275541306,
0.05530733987689018,
-0.0014942800626158714,
0.02463727444410324,
0.005071189254522324,
0.06627973169088364,
-0.05150141566991806,
-0.023280907422304153,
-0.006533837411552668,
0.038119956851005554,
0.02362506091594696,
0.004949723370373249,
-0.02459678426384926,
-0.00942370668053627,
-0.014656850136816502,
0.000052745806897291914,
0.01746068149805069,
0.0019358580466359854,
-0.0873742625117302,
0.04103513062000275,
-0.021337458863854408,
0.047938425093889236,
0.03801873326301575,
0.0032542659901082516,
0.023787014186382294,
0.016914086416363716,
-0.011549354530870914,
0.010972392745316029,
-0.043282244354486465,
0.03320059925317764,
-0.00004910816642222926,
0.0217220988124609,
-0.0485052652657032,
-0.031095195561647415,
0.026074616238474846,
-0.05749372020363808,
0.01935352012515068,
-0.06571289151906967,
-0.023584572598338127,
-0.004370231181383133,
-0.043282244354486465,
0.01682298630475998,
-0.0308927521109581,
0.015739917755126953,
0.023422617465257645,
-0.06466019153594971,
0.02613534964621067,
-0.017055794596672058,
-0.030933240428566933,
0.07198861241340637,
-0.008532959036529064,
0.005592478904873133,
0.02184356562793255,
-0.017865566536784172,
0.008178683929145336,
0.02686414308845997,
0.05793909355998039,
0.04891015216708183,
0.04822184517979622,
-0.05109653249382973,
-0.033099379390478134,
0.02953638695180416,
-0.023280907422304153,
0.04672376811504364,
-0.00221421686001122,
-0.03340304270386696,
0.04648083820939064,
-0.01468721590936184,
-0.06109720095992088,
-0.03903094679117203,
-0.01162020955234766,
0.015567841939628124,
-0.03706725314259529,
0.016742009669542313,
-0.005511501803994179,
0.009565416723489761,
-0.021013550460338593,
0.020436588674783707,
0.06648217141628265,
0.0031555751338601112,
0.012905720621347427,
-0.027167806401848793,
-0.0007338547147810459,
0.05474049970507622,
0.012753888964653015,
-0.041278060525655746,
-0.0011184958275407553,
-0.00184602418448776,
-0.015527353622019291,
-0.006716035772114992,
-0.018057886511087418,
0.04482080787420273,
0.012055461294949055,
0.013725613243877888,
-0.033342309296131134,
0.07628040015697479,
-0.0034111591521650553,
-0.011255812831223011,
0.04708816483616829,
0.049315035343170166,
0.005278692580759525,
-0.08947966247797012,
0.02686414308845997,
0.022390160709619522,
-0.02874686010181904,
0.027188051491975784,
-0.0329374223947525,
0.008259661495685577,
-0.05121799558401108,
0.04595448821783066,
0.009079554118216038,
-0.021337458863854408,
0.0864025354385376,
-0.06065182760357857,
0.014555628411471844,
-0.0009236446931026876,
0.012328758835792542,
-0.08964161574840546,
-0.010587751865386963,
-0.04437543451786041,
-0.05741274356842041,
-0.02787635661661625,
0.03453671932220459,
0.01982926018536091,
-0.07502525299787521,
-0.024961182847619057,
0.0745798796415329,
0.04073146730661392,
0.03445574268698692,
-0.004899112973362207,
0.0037907392252236605,
-0.012956331484019756,
-0.009545172564685345,
0.003947632387280464,
-0.04034682363271713,
-0.007778859697282314,
-0.03965852037072182,
-0.020669396966695786,
0.04324175417423248,
0.0027557509019970894,
0.030002005398273468,
0.07518721371889114,
-0.03265400230884552,
0.017491046339273453,
0.025548266246914864,
0.0216006338596344,
-0.016873596236109734,
0.005602600984275341,
-0.010567507706582546,
0.01024359930306673,
0.0029961515683680773,
-0.0441729910671711,
-0.0137559799477458,
0.027228539809584618,
0.04022536054253578,
0.008740462362766266,
0.013128407299518585,
0.029799561947584152,
0.009605905041098595,
-0.0013209384633228183,
0.010010790079832077,
-0.029921026900410652,
0.00637188320979476,
0.02801806665956974,
0.05239216610789299,
0.0194851066917181,
0.02234967239201069,
0.039496567100286484,
0.04154123738408089,
0.009560354985296726,
-0.00829508900642395,
-0.025406556203961372,
-0.0480194017291069,
0.037370916455984116,
-0.03526551276445389,
-0.020183535292744637,
0.004355048295110464,
0.04081244394183159,
-0.00885686744004488,
-0.02224845066666603,
0.02888857014477253,
0.008335577324032784,
-0.05287802591919899,
-0.04976040869951248,
-0.04445641115307808,
-0.0002356559270992875,
0.005192654673010111,
0.03621699661016464,
-0.0329374223947525,
-0.01643834449350834,
-0.017045672982931137,
-0.011569598689675331,
-0.03696603327989578,
-0.042674917727708817,
0.011205201968550682,
0.044011037796735764,
0.0668465718626976,
-0.03289693593978882,
-0.015314788557589054,
0.07798092067241669,
-0.005197715945541859,
0.020274633541703224,
-0.014120376668870449,
0.030325913801789284,
0.014292453415691853,
-0.06429579108953476,
-0.007920569740235806,
0.017055794596672058,
-0.021539900451898575,
0.00936297420412302,
-0.03502258285880089,
-0.0489911288022995,
0.03530600294470787,
-0.03277546912431717,
-0.0651460513472557,
0.07656382024288177,
-0.04992236569523811,
-0.012328758835792542,
0.014778315089643002,
0.008386188186705112,
-0.018381794914603233,
-0.016033459454774857,
-0.03241107240319252,
-0.007687760517001152,
0.01136715617030859,
-0.016640787944197655,
0.03658139333128929,
0.007621966768056154,
0.0610567107796669,
-0.023787014186382294,
-0.037998490035533905,
-0.005364730954170227,
0.013776224106550217,
-0.056845903396606445,
-0.04336322098970413,
0.00509143341332674,
0.06704901158809662,
-0.04510422796010971,
0.011195080354809761,
-0.05121799558401108,
-0.04522569477558136,
-0.0037780865095555782,
-0.014363307505846024,
-0.0014246903592720628,
0.03427354618906975,
0.03287668898701668,
-0.08405420184135437,
0.017369581386446953,
-0.015790529549121857,
-0.019009366631507874,
0.03986096382141113,
-0.0024002110585570335,
0.017420193180441856,
0.017885809764266014,
-0.011144469492137432,
0.04672376811504364,
0.08174635469913483,
0.04660230502486229,
0.02799782156944275,
0.026560479775071144,
-0.05113701894879341,
-0.01885753497481346,
0.01350292656570673,
-0.012035217136144638,
-0.04299882426857948,
0.0007857306627556682,
-0.07911460101604462,
-0.05101555585861206,
-0.007890203036367893,
0.032471805810928345,
0.01544637605547905,
0.024657517671585083,
0.004281662404537201,
-0.038626063615083694,
-0.003838819218799472,
0.013330849818885326,
-0.05109653249382973,
-0.09887300431728363,
-0.018513383343815804,
0.005329303443431854,
-0.07903362065553665,
-0.028564661741256714,
-0.0209933053702116,
0.027714401483535767,
-0.06109720095992088,
-0.00008935946243582293,
-0.05591466650366783,
0.046156931668519974,
0.01257169060409069,
0.023948969319462776,
0.05992303043603897,
-0.0046992008574306965,
0.0018877779366448522,
-0.0489911288022995,
-0.012500835582613945,
-0.03303864598274231,
-0.045428138226270676,
-0.025528021156787872,
-0.0007433441933244467,
0.0083558214828372,
0.021155260503292084,
0.02575070783495903,
-0.023159442469477654,
-0.03666236996650696,
-0.04206758737564087,
-0.027410738170146942,
-0.02400970086455345,
-0.021560145542025566,
0.004193094093352556,
0.026823654770851135,
-0.01957620680332184,
-0.0019978561904281378,
-0.026702189818024635,
0.044780321419239044,
-0.026924876496195793,
0.015547597780823708,
0.006058096885681152,
0.025224357843399048,
0.03253253921866417,
-0.008168562315404415,
-0.014181109145283699,
0.061745017766952515,
0.05891082063317299,
-0.05931570380926132,
0.04648083820939064,
-0.0010678850812837481,
-0.003484544577077031,
-0.014656850136816502,
-0.044011037796735764,
0.07761652022600174,
-0.09514805674552917,
0.01732909306883812,
-0.010309393517673016,
0.046035464853048325,
0.05793909355998039,
-0.013118285685777664,
0.004398067016154528,
-0.03791751340031624,
0.013917934149503708,
0.04712865501642227,
-0.0005728495307266712,
-0.023787014186382294,
-0.006579387001693249,
-0.0439300611615181,
0.020143046975135803,
-0.03451647609472275,
0.0027102013118565083,
0.03425329923629761,
0.014039400033652782,
-0.04720963165163994,
-0.018756313249468803,
0.050043828785419464,
0.041662704199552536,
-0.03534649312496185,
0.0020193657837808132,
-0.03852484002709389,
0.006139073986560106,
-0.07765701413154602,
-0.01293608732521534,
0.01709628477692604,
0.05437610298395157,
-0.017055794596672058,
0.0013576311757788062,
-0.02386799082159996,
0.025021914392709732,
-0.10373162478208542,
-0.018169229850172997,
-0.010769950225949287,
-0.05223020911216736,
0.05061066895723343,
-0.01959645189344883,
-0.04218905419111252,
0.02876710519194603,
-0.02826099842786789,
-0.05818202346563339,
0.0031353309750556946,
-0.04789793863892555,
0.031985942274332047,
0.033585239201784134,
-0.02021390199661255,
0.015760162845253944,
0.02360481582581997,
-0.01043592020869255,
0.020679518580436707,
0.027916844934225082,
0.003512380411848426,
0.008836623281240463,
0.02109452709555626,
-0.0216006338596344,
0.03953705355525017,
0.03230985254049301,
-0.02137794718146324,
-0.062230877578258514,
-0.040286093950271606,
0.027167806401848793,
0.001838432508520782,
-0.02311895415186882,
0.04607595503330231,
-0.025062402710318565,
-0.07534916698932648,
0.05498342961072922,
-0.002819014247506857,
-0.02562924288213253,
0.05417365953326225,
0.0012045339681208134,
-0.025791196152567863,
0.0014816273469477892,
-0.021317213773727417,
0.05267558619379997,
0.020497320219874382,
-0.018493138253688812,
-0.060368407517671585,
-0.02400970086455345,
-0.0025874704588204622,
0.04384908452630043,
-0.0004504349490161985,
-0.05931570380926132,
-0.032856445759534836,
0.04988187551498413,
0.021782832220196724,
0.015011124312877655,
0.04538764804601669,
0.039516810327768326,
-0.014403796754777431,
-0.0019978561904281378,
0.039010703563690186,
-0.026843897998332977,
-0.0542951263487339,
0.01463660504668951,
0.02686414308845997,
-0.03579186648130417,
0.0026798348408192396,
-0.007262630853801966,
-0.018665215000510216,
0.03678383305668831,
0.014990880154073238,
0.06603679805994034,
-0.026054373010993004,
-0.06712999194860458,
-0.016266269609332085,
-0.05636003986001015,
-0.009499622508883476,
0.0015651349676772952,
0.023442862555384636,
-0.0001131622921093367,
-0.03125714883208275,
-0.026681944727897644,
0.04550911486148834,
0.00728287547826767,
-0.01985962688922882,
0.010527019388973713,
0.04773598164319992,
-0.015061735175549984,
0.009018821641802788,
0.026317548006772995,
0.005035761743783951,
0.025710219517350197,
0.018695581704378128,
-0.0026848961133509874,
0.03340304270386696,
0.011265935376286507,
-0.027835868299007416,
-0.01873607002198696,
-0.03678383305668831,
-0.002032018266618252,
-0.016377612948417664,
0.10219306498765945,
0.006483226548880339,
-0.00013957473856862634,
-0.00183590198867023,
0.0242526326328516
] |
20,843 | precession.precession | eval_bracket_omega |
Precession average of the precession frequency deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
bracket_omega: float
Precession-averaged precession frequency.
Examples
--------
``bracket_omega = precession.eval_bracket_omega(kappa,r,chieff,q,chi1,chi2)``
| def eval_bracket_omega(kappa, r, chieff, q, chi1, chi2, precomputedroots=None):
"""
Precession average of the precession frequency deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
bracket_omega: float
Precession-averaged precession frequency.
Examples
--------
``bracket_omega = precession.eval_bracket_omega(kappa,r,chieff,q,chi1,chi2)``
"""
alpha = eval_alpha(kappa, r, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
tau = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
bracket_omega = alpha / tau
return bracket_omega
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None) | [
0.005301546771079302,
0.008927266113460064,
-0.058299046009778976,
0.0061417073011398315,
0.05226067081093788,
0.03617631644010544,
-0.042232662439346313,
-0.02217664010822773,
0.0024104067124426365,
0.05154182016849518,
0.09266025573015213,
-0.02595062367618084,
0.020325591787695885,
-0.019984135404229164,
-0.061174459755420685,
-0.011555574834346771,
0.053590551018714905,
-0.0024665670935064554,
-0.02221258357167244,
-0.019858336076140404,
-0.024369144812226295,
-0.04442516714334488,
-0.02569902315735817,
0.008141019381582737,
0.004771392326802015,
0.02183518372476101,
0.007040274329483509,
0.035008180886507034,
-0.0590897835791111,
-0.03472064062952995,
0.04420951008796692,
-0.02250012382864952,
0.010710922069847584,
0.013855907134711742,
0.057544246315956116,
-0.04327499866485596,
0.023380720987915993,
-0.00737723708152771,
-0.0800803154706955,
-0.002167793456465006,
-0.005975472275167704,
0.014574761502444744,
0.016542622819542885,
-0.05531580001115799,
-0.0019341660663485527,
-0.006200114265084267,
0.046437956392765045,
0.09424173831939697,
0.0379195399582386,
0.0023901888635009527,
0.010486279614269733,
-0.054057806730270386,
-0.029095608741044998,
-0.05696916580200195,
-0.028053270652890205,
0.0525122694671154,
-0.00471298536285758,
-0.04726463928818703,
0.01318198163062334,
-0.06013212352991104,
0.06243245303630829,
-0.0010311059886589646,
0.05488448962569237,
0.015347529202699661,
0.0262561347335577,
0.019732536748051643,
0.035026151686906815,
0.0015994497807696462,
0.0017982576973736286,
-0.02623816393315792,
-0.02652570605278015,
-0.006415770389139652,
-0.011798188090324402,
-0.06351073831319809,
-0.030820857733488083,
-0.006218085531145334,
-0.031557682901620865,
-0.010459323413670063,
-0.005854165647178888,
0.012481098994612694,
-0.06523598730564117,
-0.0019184411503374577,
0.0016016961308196187,
-0.0070492601953446865,
0.03473861142992973,
0.0453956201672554,
-0.011492675170302391,
-0.012040801346302032,
-0.020235734060406685,
0.004376022610813379,
-0.019984135404229164,
-0.02985040470957756,
-0.0032865097746253014,
-0.008343197405338287,
-0.007130131125450134,
0.02611236460506916,
0.005386910866945982,
-0.09194140136241913,
0.04834292083978653,
-0.025034084916114807,
0.009053065441548824,
0.05678945034742355,
-0.008846394717693329,
-0.014404033310711384,
0.030928686261177063,
-0.009803368709981441,
-0.04568316042423248,
-0.003944710362702608,
0.04460487887263298,
-0.02979649044573307,
-0.04420951008796692,
0.02163749933242798,
0.020972559228539467,
-0.038386791944503784,
-0.012436171062290668,
0.012112686410546303,
-0.02217664010822773,
0.0713462382555008,
0.07634227722883224,
0.0009889856446534395,
0.04065118357539177,
-0.05581899732351303,
0.01487128809094429,
0.053914036601781845,
0.031324055045843124,
0.020217763260006905,
0.03705691546201706,
0.035942692309617996,
-0.04970874264836311,
0.024333201348781586,
0.05970080941915512,
0.03443309664726257,
0.057652074843645096,
-0.04909771680831909,
0.028754152357578278,
0.060958802700042725,
0.0178814884275198,
-0.061390116810798645,
-0.013837936334311962,
-0.0765579342842102,
0.05093079432845116,
0.0021340972743928432,
-0.024782484397292137,
-0.016542622819542885,
-0.08396212756633759,
0.031108397990465164,
0.015949569642543793,
-0.03304930403828621,
0.0014511861372739077,
0.023901889100670815,
-0.006829111371189356,
0.07734867185354233,
0.06473278254270554,
-0.0296347476541996,
0.027262531220912933,
-0.031917110085487366,
0.050463538616895676,
-0.024369144812226295,
-0.020433420315384865,
-0.07389817386865616,
-0.04352659732103348,
0.046545784920454025,
-0.008585810661315918,
-0.0048387846909463406,
0.032132767140865326,
0.002848458243533969,
-0.010594108141958714,
-0.020541246980428696,
-0.0018881144933402538,
0.024944227188825607,
0.03272581845521927,
0.0019701088313013315,
-0.015185786411166191,
-0.009758440777659416,
-0.0027698336634784937,
-0.00022141258523333818,
-0.07813940942287445,
-0.02990431897342205,
0.0011175930267199874,
-0.038710277527570724,
-0.031503766775131226,
-0.028250955045223236,
-0.005153283476829529,
-0.057400476187467575,
-0.025411482900381088,
0.020056022331118584,
0.024836398661136627,
0.023308834061026573,
0.014377076178789139,
0.0042142802849411964,
0.01808815822005272,
-0.03238436579704285,
0.030479401350021362,
0.06340290606021881,
0.042879629880189896,
-0.02938314899802208,
0.10135839134454727,
0.045862872153520584,
0.009740469045937061,
0.05660973861813545,
-0.01861831359565258,
0.050104111433029175,
-0.03382207080721855,
-0.006375334691256285,
0.057508304715156555,
-0.03267190605401993,
-0.016911035403609276,
0.011906016618013382,
-0.005332996603101492,
0.014835345558822155,
-0.02604047954082489,
0.012067758478224277,
0.011456732638180256,
-0.031342025846242905,
-0.004870234522968531,
0.07468891143798828,
0.0744013711810112,
0.0037649967707693577,
0.016785236075520515,
0.005014005582779646,
0.024171460419893265,
0.015724927186965942,
0.053231123834848404,
-0.031791310757398605,
0.023578405380249023,
0.013837936334311962,
-0.027370359748601913,
0.046545784920454025,
-0.030928686261177063,
-0.04561127349734306,
-0.002170040039345622,
0.021206187084317207,
-0.05553145706653595,
-0.07389817386865616,
0.008334211073815823,
-0.011097305454313755,
-0.0024777993094176054,
-0.008208411745727062,
0.013460537418723106,
0.017477134242653847,
0.02230243943631649,
0.019229339435696602,
0.008837409317493439,
0.02194301225244999,
-0.07785186916589737,
-0.038386791944503784,
0.035816892981529236,
0.016012469306588173,
0.0032146244775503874,
0.023704204708337784,
0.017333362251520157,
-0.038710277527570724,
-0.007839999161660671,
0.05581899732351303,
0.005899094045162201,
0.0676441416144371,
0.038889992982149124,
0.06232462450861931,
0.04776783660054207,
0.026561647653579712,
0.015581156127154827,
0.009533798322081566,
0.028466610237956047,
0.013909821398556232,
-0.005827208515256643,
0.02643584832549095,
-0.02273375168442726,
0.01515883021056652,
0.0066808476112782955,
0.03335481882095337,
-0.02250012382864952,
0.025285683572292328,
-0.020936617627739906,
-0.03741634264588356,
-0.028448639437556267,
0.027010932564735413,
0.038602448999881744,
0.04137003794312477,
-0.027496159076690674,
-0.006546062417328358,
-0.0386383943259716,
-0.06430147588253021,
-0.020217763260006905,
0.0015792319318279624,
-0.045755043625831604,
0.027190646156668663,
0.014952159486711025,
0.00565648078918457,
0.13255664706230164,
-0.000596985628362745,
0.019930221140384674,
-0.020846759900450706,
-0.009704526513814926,
0.0018656502943485975,
0.09481681883335114,
0.03463078290224075,
-0.04338282719254494,
-0.02172735705971718,
0.03842273727059364,
0.010108881630003452,
0.016740309074521065,
0.0005964240408502519,
0.04589881747961044,
-0.02230243943631649,
-0.0075614433735609055,
0.02580685168504715,
0.1203361302614212,
0.03763199597597122,
0.008253340609371662,
-0.008307253941893578,
-0.06911779195070267,
-0.015500285662710667,
-0.030928686261177063,
0.031899139285087585,
-0.021511700004339218,
-0.04442516714334488,
0.035241808742284775,
-0.02550133876502514,
0.046725496649742126,
0.004299644380807877,
-0.004034567158669233,
0.0070717246271669865,
0.061893314123153687,
0.005382418166846037,
0.024638714268803596,
-0.050715137273073196,
-0.06681746244430542,
0.03011997416615486,
0.016964949667453766,
-0.027729785069823265,
-0.03017388842999935,
0.0072469450533390045,
-0.07141812890768051,
0.03376815840601921,
-0.04172946512699127,
-0.07483268529176712,
-0.0030708536505699158,
0.0014702806947752833,
-0.019678622484207153,
0.01904962584376335,
0.01904962584376335,
-0.026903104037046432,
0.021475758403539658,
0.0032707848586142063,
-0.027208616957068443,
-0.0029742575716227293,
0.0528716966509819,
-0.02595062367618084,
-0.02916749380528927,
0.021439814940094948,
-0.008338704705238342,
0.006393305957317352,
0.028412697836756706,
0.02183518372476101,
-0.005885615479201078,
0.001816229079850018,
0.0005079713300801814,
-0.003908767830580473,
-0.016911035403609276,
-0.04352659732103348,
0.031629566103219986,
0.04496430605649948,
-0.007458108477294445,
0.05865847319364548,
0.007691735867410898,
-0.006869546603411436,
-0.060707204043865204,
0.04061524197459221,
-0.05506420135498047,
-0.03013794682919979,
-0.016884079203009605,
0.009875254705548286,
0.019175425171852112,
-0.03434324264526367,
0.016219139099121094,
0.08805958926677704,
0.020756904035806656,
-0.03330090269446373,
-0.006321420893073082,
-0.07612662017345428,
0.02979649044573307,
-0.0035223837476223707,
-0.027657900005578995,
-0.006860561203211546,
-0.010755850002169609,
0.02244620956480503,
-0.07131029665470123,
-0.04011204466223717,
0.0382789671421051,
0.0370209701359272,
-0.03026374615728855,
-0.028538497164845467,
0.014233305118978024,
0.003973913844674826,
-0.09287591278553009,
0.04392196983098984,
0.01885194145143032,
-0.07698924094438553,
-0.08475286513566971,
0.020361535251140594,
0.03971667215228081,
0.0023744639474898577,
-0.005926051177084446,
-0.004870234522968531,
0.042987458407878876,
-0.04086684063076973,
-0.011609489098191261,
0.0020408709533512592,
-0.023847974836826324,
0.06947722285985947,
-0.03398381546139717,
-0.028538497164845467,
-0.012481098994612694,
0.06419364362955093,
-0.04909771680831909,
-0.010090910829603672,
-0.05182936042547226,
-0.07519210875034332,
-0.042987458407878876,
0.03605051711201668,
-0.0057418448850512505,
-0.05851469933986664,
0.004369283560663462,
0.060743145644664764,
0.05495637282729149,
0.05466883257031441,
0.05520797148346901,
-0.013810979202389717,
-0.014224319718778133,
0.008397110737860203,
0.023272892460227013,
-0.012427185662090778,
-0.02206881158053875,
0.024476973339915276,
-0.021403871476650238,
-0.008698130957782269,
-0.002013913821429014,
0.016623495146632195,
0.08547171950340271,
-0.01093556359410286,
-0.010342509485781193,
0.061282288283109665,
0.04428139328956604,
-0.009169879369437695,
-0.04025581479072571,
0.014718531630933285,
0.038854047656059265,
-0.02586076594889164,
-0.039501018822193146,
-0.01479940302670002,
-0.014386061578989029,
0.02544742450118065,
0.024405086413025856,
0.010746864601969719,
0.07220886647701263,
0.010028011165559292,
-0.023434635251760483,
0.016156239435076714,
-0.010252652689814568,
-0.03799142315983772,
0.02548336796462536,
0.057723961770534515,
0.06437335908412933,
-0.004346819128841162,
-0.008176961913704872,
0.08288384228944778,
0.05581899732351303,
0.010261638090014458,
-0.017171621322631836,
-0.06911779195070267,
0.04043552652001381,
-0.0008991288486868143,
-0.02187112718820572,
0.007777099497616291,
-0.006451712921261787,
0.004964584019035101,
-0.03001214750111103,
0.04553939029574394,
0.050175994634628296,
-0.05966486781835556,
-0.07785186916589737,
0.0004933695890940726,
-0.02618424966931343,
0.015527242794632912,
0.01854642853140831,
0.0005919311661273241,
-0.020289648324251175,
-0.03781171143054962,
0.001919564325362444,
-0.06577512621879578,
-0.020415447652339935,
0.024243345484137535,
0.003908767830580473,
0.006393305957317352,
-0.03723662719130516,
-0.027945442125201225,
0.04938525706529617,
0.006658383645117283,
0.0006475300178863108,
0.019624710083007812,
0.010234680958092213,
0.014547804370522499,
-0.05822715908288956,
-0.02925734966993332,
-0.016389867290854454,
-0.04841480404138565,
-0.027370359748601913,
-0.021296044811606407,
-0.007732171565294266,
-0.021457785740494728,
-0.042879629880189896,
-0.06013212352991104,
0.05923355370759964,
0.0008468996384181082,
-0.008370154537260532,
-0.04338282719254494,
0.005225168541073799,
0.03472064062952995,
-0.009587712585926056,
-0.01836671493947506,
-0.011618474498391151,
-0.05121833458542824,
-0.023075208067893982,
0.031503766775131226,
0.0029697648715227842,
0.004227758850902319,
0.0011849856236949563,
-0.021296044811606407,
0.00032516903593204916,
-0.02593265101313591,
-0.042340490967035294,
-0.010504251345992088,
0.004928641486912966,
0.009569741785526276,
-0.05851469933986664,
0.023596376180648804,
0.0074176727794110775,
-0.03335481882095337,
0.03633806109428406,
0.039249420166015625,
-0.027442244812846184,
0.031054485589265823,
0.034864410758018494,
-0.04471270740032196,
0.01461070403456688,
-0.0033449167385697365,
0.006078807637095451,
-0.042987458407878876,
0.01888788491487503,
0.004883713088929653,
0.0256271380931139,
-0.013891849666833878,
0.03820708021521568,
0.08309949934482574,
-0.02158358506858349,
0.050571367144584656,
0.03448701277375221,
-0.08317138999700546,
0.017000893130898476,
-0.03243827819824219,
-0.002459827810525894,
-0.023093178868293762,
0.04349065572023392,
-0.04327499866485596,
0.028448639437556267,
0.028879951685667038,
0.0036032546777278185,
-0.0030641143675893545,
0.004901684354990721,
0.02178127132356167,
-0.0019083322258666158,
0.001167014241218567,
0.10718110203742981,
-0.050355710089206696,
-0.05172153189778328,
0.021511700004339218,
0.012427185662090778,
-0.057939618825912476,
-0.049888454377651215,
-0.019876308739185333,
0.02264389581978321,
-0.0367514006793499,
0.019822394475340843,
-0.04704898223280907,
0.027729785069823265,
0.04097466915845871,
-0.010710922069847584,
0.027046874165534973,
0.012013844214379787,
0.02564511075615883,
-0.05319518223404884,
-0.0003091632970608771,
-0.04115438088774681,
-0.045826930552721024,
-0.008698130957782269,
-0.0223383828997612,
0.021134302020072937,
-0.010558165609836578,
-0.00047146700671873987,
-0.03741634264588356,
-0.019678622484207153,
-0.05258415639400482,
0.01878005638718605,
-0.010477294214069843,
-0.05510014668107033,
0.03421744331717491,
0.025231769308447838,
0.028161097317934036,
0.042052946984767914,
-0.016362909227609634,
0.020810818299651146,
-0.025339597836136818,
-0.025087997317314148,
0.03935724496841431,
0.020469361916184425,
0.046078529208898544,
-0.003493180265650153,
-0.003632458159700036,
0.020954588428139687,
0.04694115370512009,
-0.017971346154808998,
0.000026886817067861557,
-0.035295721143484116,
-0.026723390445113182,
-0.03781171143054962,
-0.031395941972732544,
0.030982598662376404,
-0.10135839134454727,
-0.021044446155428886,
-0.020325591787695885,
0.053518667817115784,
0.020379506051540375,
-0.010198738425970078,
-0.04334688559174538,
-0.07145407050848007,
0.0256271380931139,
0.03362438827753067,
-0.0003274154441896826,
-0.06351073831319809,
-0.005274590104818344,
0.005279082804918289,
0.006541569717228413,
-0.013882864266633987,
0.0441376231610775,
0.02192504145205021,
0.02181721292436123,
-0.0363021194934845,
-0.00655954098328948,
0.021421844139695168,
0.05247632786631584,
-0.03013794682919979,
-0.057364534586668015,
-0.00036869337782263756,
0.016335953027009964,
-0.07540776580572128,
-0.023452606052160263,
0.07483268529176712,
-0.03207885101437569,
-0.029023723676800728,
-0.015994496643543243,
0.0039267390966415405,
-0.027729785069823265,
-0.14894650876522064,
0.013622280210256577,
-0.005634016823023558,
-0.053123295307159424,
0.016937993466854095,
0.0008205042104236782,
-0.026849189773201942,
0.01913948357105255,
0.06627832353115082,
-0.03279770538210869,
0.0028776617255061865,
-0.04863046109676361,
-0.012822555378079414,
0.03770388290286064,
0.013810979202389717,
0.07098681479692459,
0.013550394214689732,
-0.0010546933626756072,
0.020487334579229355,
0.03410961478948593,
0.03322901576757431,
0.0005012320470996201,
0.019966164603829384,
-0.013981706462800503,
0.04783971980214119,
0.04212483391165733,
0.010234680958092213,
-0.034451067447662354,
-0.02172735705971718,
0.0379195399582386,
-0.023883918300271034,
-0.005153283476829529,
-0.021421844139695168,
-0.027136731892824173,
-0.03319307416677475,
0.008442039601504803,
0.005252125672996044,
-0.017045821994543076,
0.03335481882095337,
0.03601457551121712,
0.024638714268803596,
-0.03745228424668312,
-0.016012469306588173,
0.016479723155498505,
0.01881599798798561,
-0.04805537685751915,
-0.03989638760685921,
0.007646807469427586,
-0.005872136913239956,
0.0644093006849289,
0.00655954098328948,
-0.008698130957782269,
-0.01842062920331955,
0.043095286935567856,
0.004937627352774143,
0.006294463761150837,
0.0025451919063925743,
0.035727035254240036,
-0.04500024765729904,
-0.012445156462490559,
0.03254610672593117,
0.0027630943804979324,
0.02255403809249401,
0.004843277391046286,
0.04456893727183342,
0.023254921659827232,
-0.0382789671421051,
0.006847082637250423,
-0.02629207819700241,
-0.004892698954790831,
0.04492836445569992,
-0.024512914940714836,
0.005292561370879412,
-0.04960091412067413,
-0.0296347476541996,
-0.0736825168132782,
0.07756432890892029,
0.008437546901404858,
0.000006695378942822572,
0.028340810909867287,
-0.03238436579704285,
-0.03299539163708687,
0.05535174533724785,
-0.04809131845831871,
-0.038854047656059265,
0.012049786746501923,
0.07914580404758453,
0.03694908693432808,
0.003830143017694354,
-0.0011557821417227387,
0.034864410758018494,
0.006393305957317352,
-0.006024893373250961,
0.020828789100050926,
-0.03351655974984169,
-0.003881810698658228,
-0.027729785069823265,
0.024872342124581337,
-0.008796973153948784,
-0.001141741988249123,
0.0009069913649000227,
0.05995240807533264,
-0.0005281890626065433,
-0.028179069980978966,
-0.0033494094386696815,
-0.03348061814904213
] |
20,844 | precession.precession | eval_bracket_theta |
Precession average of precession amplitude of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894. Additional keywords arguments are passed to `precession_average`.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
bracket_theta: float
Precession-averaged precession amplitude.
Examples
--------
``bracket_theta = precession.eval_bracket_theta(kappa,r,chieff,q,chi1,chi2)``
| def eval_bracket_theta(kappa, r, chieff, q, chi1, chi2, **kwargs):
"""
Precession average of precession amplitude of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894. Additional keywords arguments are passed to `precession_average`.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
bracket_theta: float
Precession-averaged precession amplitude.
Examples
--------
``bracket_theta = precession.eval_bracket_theta(kappa,r,chieff,q,chi1,chi2)``
"""
def _integrand(deltachi, kappa, r, chieff, q):
bracket_theta_integrand = eval_thetaL(deltachi, kappa, r, chieff, q)
return bracket_theta_integrand
bracket_theta = precession_average(kappa, r, chieff, q, chi1, chi2, _integrand, kappa, r, chieff, q, **kwargs)
return bracket_theta
| (kappa, r, chieff, q, chi1, chi2, **kwargs) | [
0.002874384168535471,
-0.007354773581027985,
-0.026937086135149002,
-0.0030363535042852163,
0.015512550249695778,
0.010375158861279488,
-0.053290173411369324,
0.0002522215072531253,
0.017967183142900467,
0.05664818361401558,
0.07869425415992737,
-0.017364930361509323,
0.025185082107782364,
-0.006907647475600243,
-0.08964429050683975,
-0.02054956555366516,
0.039237625896930695,
0.00002413142465229612,
-0.04730415344238281,
-0.04124513268470764,
-0.031791601330041885,
-0.038179121911525726,
-0.037814121693372726,
0.023506075143814087,
0.003999044187366962,
0.005990582052618265,
0.026134084910154343,
0.031426601111888885,
-0.05511517822742462,
0.0099645322188735,
0.04931166023015976,
-0.029619846493005753,
0.018332183361053467,
0.013112667016685009,
0.046537648886442184,
-0.07212423533201218,
0.003095666179433465,
-0.036335866898298264,
-0.0959223061800003,
-0.029565095901489258,
-0.03425535932183266,
0.017775557935237885,
0.01254691556096077,
-0.04299714043736458,
-0.029473844915628433,
-0.0005249743699096143,
0.0006992053822614253,
0.07070072740316391,
0.032850105315446854,
-0.0064650834538042545,
0.03115285001695156,
-0.046209149062633514,
-0.014444921165704727,
-0.04230363667011261,
-0.035423364490270615,
0.05449467524886131,
0.0028835092671215534,
-0.02396232821047306,
0.021845320239663124,
-0.08307427167892456,
0.07179573178291321,
0.0024683205410838127,
0.07475224137306213,
0.04858165606856346,
0.035277362912893295,
0.01606917753815651,
-0.004491795785725117,
0.0011092614149674773,
0.0007419789326377213,
-0.011278536170721054,
-0.03396335989236832,
-0.0034971674904227257,
-0.001506770495325327,
-0.06369270384311676,
-0.04818015545606613,
0.007427773904055357,
-0.07497124373912811,
0.005538892932236195,
0.009453530423343182,
0.029437344521284103,
-0.10380633175373077,
0.00013666157610714436,
-0.0024158514570444822,
-0.004726765211671591,
0.037996623665094376,
0.05661168321967125,
-0.019454563036561012,
-0.019527563825249672,
0.007934212684631348,
-0.011880788020789623,
-0.03438311070203781,
0.00692589720711112,
-0.0018158808816224337,
-0.00022014132991898805,
0.031572602689266205,
0.035021863877773285,
0.026353085413575172,
-0.08789228647947311,
0.026718085631728172,
-0.02356082573533058,
-0.0037458245642483234,
0.00840415246784687,
0.0017177867703139782,
-0.017410555854439735,
0.03255810588598251,
-0.04259563609957695,
-0.04825315624475479,
-0.000555771344806999,
0.058619190007448196,
-0.024528078734874725,
-0.04730415344238281,
-0.005383767187595367,
0.03250335529446602,
-0.006693209055811167,
-0.019436312839388847,
-0.0000566393428016454,
-0.029546845704317093,
0.04069763049483299,
0.029692845419049263,
-0.0033534483518451452,
0.07110223174095154,
-0.023232324048876762,
0.03701112046837807,
0.07752624899148941,
0.030203847214579582,
0.04157363250851631,
0.045150645077228546,
0.045734647661447525,
-0.037522122263908386,
0.0023679451551288366,
0.08562927693128586,
0.019235562533140182,
0.03624461591243744,
-0.037485621869564056,
-0.009175216779112816,
0.07380323857069016,
0.016151301562786102,
-0.04219413548707962,
0.009088529273867607,
-0.053874172270298004,
0.06416720896959305,
-0.010283907875418663,
-0.007135773077607155,
-0.011406286619603634,
-0.04321613907814026,
0.040077127516269684,
-0.01753830723464489,
-0.009083966724574566,
-0.002390757668763399,
0.010594159364700317,
0.016835680231451988,
0.05080816522240639,
0.05007816106081009,
-0.035131365060806274,
0.015330049209296703,
-0.05102716386318207,
0.053107671439647675,
-0.0032621980644762516,
0.004350357688963413,
-0.07354773581027985,
-0.033452358096838,
0.018094932660460472,
-0.0016299583949148655,
0.0319923534989357,
0.02414482831954956,
-0.003216572804376483,
0.015549049712717533,
0.004329826682806015,
-0.01655280403792858,
0.0014543015277013183,
0.030185597017407417,
-0.012026788666844368,
-0.0009216279722750187,
-0.002853852929547429,
-0.04934816062450409,
0.022922074422240257,
-0.05803518742322922,
-0.011497536674141884,
0.007601149380207062,
-0.03383560851216316,
-0.037558622658252716,
-0.04150063544511795,
-0.0077243372797966,
-0.04690265282988548,
-0.0025595708284527063,
0.03306910768151283,
0.030477598309516907,
0.031244101002812386,
0.008965341374278069,
0.007482524029910564,
-0.005443079862743616,
-0.030915599316358566,
0.03372610732913017,
0.06613821536302567,
0.032083604484796524,
-0.021662820130586624,
0.07124823331832886,
0.05427567660808563,
-0.031244101002812386,
0.06624771654605865,
0.008664215914905071,
0.014992423355579376,
-0.013076167553663254,
-0.024199578911066055,
0.04690265282988548,
-0.02686408720910549,
-0.04974966123700142,
0.021151818335056305,
0.0049183908849954605,
-0.009293842129409313,
-0.005014203488826752,
-0.019564062356948853,
0.017337555065751076,
-0.0021717569325119257,
-0.0042340136133134365,
0.06931372731924057,
0.0811762586236,
0.006611083634197712,
0.04025962948799133,
-0.0030774162150919437,
0.05190316587686539,
-0.014472296461462975,
0.01439929660409689,
-0.04748665168881416,
0.04055163264274597,
0.002835602965205908,
-0.009973657317459583,
0.0213890690356493,
-0.05004166066646576,
-0.046610649675130844,
0.01625167764723301,
-0.021078817546367645,
-0.0057989563792943954,
-0.05000516027212143,
-0.012702041305601597,
-0.022465823218226433,
-0.017401430755853653,
-0.011862537823617458,
-0.0017337555764243007,
0.04142763465642929,
0.006966960150748491,
0.03425535932183266,
-0.008910591714084148,
0.04270513728260994,
-0.06745221465826035,
-0.006697771605104208,
0.034401360899209976,
0.014609172008931637,
0.03348885849118233,
0.011899038217961788,
-0.00199495954439044,
-0.004046950489282608,
-0.022575322538614273,
0.0496036596596241,
-0.020969318225979805,
0.06194069981575012,
0.07628524303436279,
0.05734168365597725,
0.06442270427942276,
0.017894182354211807,
0.014809923246502876,
-0.015330049209296703,
0.025732582435011864,
0.020640816539525986,
-0.010959160514175892,
0.039420127868652344,
-0.019290313124656677,
-0.0026918835937976837,
0.012118038721382618,
0.0037823247257620096,
-0.06303570419549942,
0.06205020099878311,
-0.04102613404393196,
-0.010749285109341145,
-0.0008497683447785676,
0.030605347827076912,
0.04796115309000015,
0.029565095901489258,
-0.038945626467466354,
-0.038653623312711716,
0.026024583727121353,
-0.026353085413575172,
-0.00906115397810936,
0.01860593445599079,
-0.03956612944602966,
0.045990146696567535,
0.01419854536652565,
0.00878740381449461,
0.1600165218114853,
-0.012008538469672203,
0.021699320524930954,
-0.01436279620975256,
0.012391789816319942,
-0.012537790462374687,
0.13913844525814056,
0.052742671221494675,
-0.053290173411369324,
-0.009362280368804932,
0.02704658731818199,
0.00027118445723317564,
0.04799765348434448,
0.0030112597160041332,
0.08438827097415924,
-0.028305841609835625,
0.000869159062858671,
0.029565095901489258,
0.09796631336212158,
0.03728486970067024,
-0.04383664205670357,
-0.0156311746686697,
-0.0477786548435688,
-0.017821183428168297,
-0.009718156419694424,
-0.018505560234189034,
-0.051757168024778366,
-0.06719671934843063,
0.04770565405488014,
-0.020385315641760826,
0.04040563106536865,
-0.013587168417870998,
-0.00008412136230617762,
-0.018478184938430786,
0.06778071820735931,
-0.008559277281165123,
0.03989462926983833,
-0.05745118483901024,
-0.059130191802978516,
0.020093314349651337,
-0.019253812730312347,
-0.0145635474473238,
-0.038726624101400375,
0.039274126291275024,
-0.06796322017908096,
0.029656345024704933,
-0.028816843405365944,
-0.019527563825249672,
-0.030422847718000412,
0.0330326072871685,
-0.005730518605560064,
-0.009471780620515347,
0.0026987274177372456,
-0.018834060057997704,
0.018031058833003044,
0.04369064047932625,
-0.015622050501406193,
-0.0014805360697209835,
0.007601149380207062,
0.0009324639686383307,
-0.02058606594800949,
0.040077127516269684,
-0.017401430755853653,
0.008960778824985027,
0.03620811551809311,
0.04307013750076294,
-0.0026736336294561625,
0.01665317825973034,
0.00258694589138031,
-0.006314520258456469,
-0.009490030817687511,
-0.05077166482806206,
0.038580626249313354,
0.025878584012389183,
-0.022538822144269943,
0.066904716193676,
0.04102613404393196,
0.0061548324301838875,
-0.07248923182487488,
0.030203847214579582,
-0.059677693992853165,
-0.002212819643318653,
-0.011114286258816719,
-0.016899554058909416,
-0.029619846493005753,
-0.007076460402458906,
0.022575322538614273,
0.08037325739860535,
0.031609103083610535,
-0.022812573239207268,
-0.026699835434556007,
-0.05631968006491661,
0.0033580109011381865,
-0.02073206752538681,
0.010420783422887325,
0.008344839327037334,
-0.0094444053247571,
0.004322982858866453,
-0.051757168024778366,
-0.06391170620918274,
0.045698147267103195,
0.019363312050700188,
-0.02556833252310753,
-0.037960123270750046,
0.04500464349985123,
-0.010484659112989902,
-0.07635824382305145,
0.017474431544542313,
-0.002643977291882038,
-0.02865259163081646,
-0.07172273099422455,
0.02828759141266346,
0.031390100717544556,
-0.04339864104986191,
-0.024163078516721725,
-0.023761576041579247,
0.051866669207811356,
-0.025221580639481544,
0.006779897026717663,
0.0038712937384843826,
-0.015585550107061863,
0.013340792618691921,
-0.02795908972620964,
-0.04770565405488014,
-0.011150785721838474,
0.067525215446949,
-0.03286835551261902,
0.027867840602993965,
-0.04201163724064827,
-0.030733099207282066,
-0.060955196619033813,
0.04989566281437874,
0.027758339419960976,
-0.07380323857069016,
0.0018991467077285051,
0.0409531332552433,
0.06110119819641113,
0.05485967546701431,
0.01978306472301483,
-0.03383560851216316,
0.012300539761781693,
-0.015330049209296703,
-0.007336523849517107,
-0.012610790319740772,
-0.03710237145423889,
0.06964222341775894,
-0.029820596799254417,
0.012574290856719017,
-0.015120173804461956,
0.04723115265369415,
0.0743507370352745,
-0.015019798651337624,
-0.015038048848509789,
0.022484073415398598,
0.04073413088917732,
-0.003973950166255236,
-0.07577424496412277,
-0.0002647684304974973,
0.020896317437291145,
-0.04062462970614433,
-0.03195585310459137,
-0.017009055241942406,
-0.0014257858274504542,
0.0514286644756794,
0.021115317940711975,
0.03569711372256279,
0.06248820200562477,
0.018907060846686363,
-0.04102613404393196,
-0.0034606673289090395,
0.0024523516185581684,
-0.0405881293118,
0.05095416307449341,
0.05164766684174538,
0.053290173411369324,
0.01805843412876129,
0.022429322823882103,
0.030258597806096077,
0.025477081537246704,
0.0032621980644762516,
-0.020421816036105156,
-0.07774525135755539,
0.04332564026117325,
-0.0019048498943448067,
-0.023159325122833252,
0.02564133331179619,
0.02741158753633499,
0.017994558438658714,
-0.02374332584440708,
0.03352535888552666,
0.02733858861029148,
-0.0510636642575264,
-0.07570124417543411,
-0.009220842272043228,
-0.01680830493569374,
0.046245649456977844,
0.014025170356035233,
-0.013322543352842331,
-0.020202815532684326,
-0.052414167672395706,
-0.007998088374733925,
-0.027867840602993965,
-0.016242552548646927,
0.038909126073122025,
0.035423364490270615,
0.023834576830267906,
-0.05858268961310387,
-0.018834060057997704,
0.03173685073852539,
-0.0092619052156806,
0.0011155348038300872,
0.012191039510071278,
-0.004900140687823296,
0.054020173847675323,
-0.03996763005852699,
-0.027064837515354156,
0.030842600390315056,
-0.030039597302675247,
-0.011835163459181786,
-0.014408421702682972,
-0.03474811092019081,
0.0017485837452113628,
-0.05380117520689964,
-0.0477786548435688,
0.07606624811887741,
0.0046537648886442184,
-0.01864243485033512,
-0.039091624319553375,
0.003964825067669153,
0.05646568164229393,
0.000626775436103344,
-0.0352226123213768,
0.0029656344559043646,
-0.013879169709980488,
0.006469646003097296,
0.008956216275691986,
0.010904409922659397,
0.006104644853621721,
0.060407694429159164,
-0.046975649893283844,
-0.003608949249610305,
-0.007268086075782776,
-0.03609861806035042,
0.005862831603735685,
-0.012656415812671185,
0.012355289421975613,
-0.045552145689725876,
0.0481436550617218,
-0.024126578122377396,
-0.015421300195157528,
0.0427781380712986,
0.02857959270477295,
-0.02153506875038147,
0.02033056505024433,
-0.021918321028351784,
-0.027867840602993965,
0.01439929660409689,
0.015330049209296703,
-0.013286042958498001,
-0.03577011451125145,
-0.034729860723018646,
0.030331598594784737,
0.04226713627576828,
-0.029638094827532768,
0.022356322035193443,
0.10519333928823471,
0.015156674198806286,
0.045844148844480515,
0.02036706544458866,
-0.06234220042824745,
0.012245789170265198,
-0.012738540768623352,
-0.01561292540282011,
-0.024199578911066055,
0.015366549603641033,
-0.09044729173183441,
-0.018140558153390884,
0.01107778586447239,
-0.0017770994454622269,
0.01835043355822563,
-0.02443682961165905,
0.02204607054591179,
0.006820959504693747,
0.009029217064380646,
0.09198029339313507,
-0.02726558782160282,
-0.0800812616944313,
0.009471780620515347,
0.0202940646559,
-0.053983673453330994,
-0.0481436550617218,
-0.023214075714349747,
0.058728691190481186,
-0.00692589720711112,
0.02062256634235382,
-0.066065214574337,
0.014444921165704727,
0.066904716193676,
-0.006008831784129143,
0.03305085748434067,
-0.008372214622795582,
0.009029217064380646,
-0.02421782724559307,
0.03250335529446602,
-0.039091624319553375,
-0.045515645295381546,
-0.0029975720681250095,
-0.021991321817040443,
0.04821665585041046,
-0.016352051869034767,
0.0009341748664155602,
-0.059276189655065536,
-0.02770358882844448,
-0.02726558782160282,
0.0025413206312805414,
-0.004836265463382006,
-0.029218344017863274,
0.04164663329720497,
0.011424536816775799,
0.018332183361053467,
0.017948932945728302,
-0.038471125066280365,
0.02124306932091713,
-0.023268824443221092,
-0.0011885351268574595,
0.02686408720910549,
0.0156311746686697,
0.07307323813438416,
-0.03368960693478584,
0.010767534375190735,
0.004373170435428619,
0.05763368681073189,
-0.028780343011021614,
-0.022246820852160454,
-0.04690265282988548,
-0.00887865386903286,
-0.03173685073852539,
-0.04401914030313492,
0.013112667016685009,
-0.08548327535390854,
-0.01285716611891985,
-0.025677833706140518,
0.045150645077228546,
0.005461330059915781,
0.034364860504865646,
-0.0621597021818161,
-0.04296064004302025,
0.016041802242398262,
0.04354463890194893,
-0.005570830311626196,
-0.05763368681073189,
-0.027612339705228806,
-0.05062566325068474,
-0.0023565387818962336,
-0.020640816539525986,
0.03577011451125145,
0.03810612112283707,
-0.01439929660409689,
-0.03993112966418266,
-0.007706087548285723,
0.02190007083117962,
0.017666056752204895,
-0.011196411214768887,
-0.004208920057862997,
-0.008504527620971203,
0.030915599316358566,
-0.09782031923532486,
-0.012629040516912937,
0.022411072626709938,
-0.024455079808831215,
-0.02414482831954956,
-0.026079334318637848,
-0.006588271353393793,
0.011634412221610546,
-0.15884850919246674,
0.0377776212990284,
0.0050096409395337105,
-0.020896317437291145,
-0.004325264133512974,
0.010302158072590828,
0.013076167553663254,
0.008207963779568672,
0.009088529273867607,
-0.020166315138339996,
0.01104128547012806,
-0.029984846711158752,
-0.017228055745363235,
0.017565682530403137,
0.0011714256834238768,
0.004218044690787792,
0.030185597017407417,
-0.016014426946640015,
-0.014928548596799374,
0.023980576545000076,
0.046683650463819504,
-0.020239315927028656,
-0.00443932693451643,
0.02770358882844448,
0.05029716342687607,
0.02084156684577465,
0.02226507104933262,
-0.027393339201807976,
-0.00819883868098259,
0.03452911227941513,
-0.01168916281312704,
-0.019454563036561012,
0.014043420553207397,
-0.05726868659257889,
-0.05847318843007088,
-0.006871147081255913,
-0.005922144278883934,
-0.06194069981575012,
0.020750317722558975,
0.019509313628077507,
-0.0044119516387581825,
-0.008791965432465076,
-0.02124306932091713,
-0.005433955229818821,
0.026006333529949188,
-0.04675665125250816,
-0.032850105315446854,
0.0037572309374809265,
-0.0001103558242903091,
0.012738540768623352,
0.008335714228451252,
0.006090957205742598,
-0.017218930646777153,
0.05077166482806206,
0.010137908160686493,
-0.02345132641494274,
0.012172789312899113,
-0.0040857321582734585,
-0.039164625108242035,
-0.03292310610413551,
-0.002860696753486991,
-0.014755172654986382,
0.014782547950744629,
-0.007947900332510471,
0.05526117980480194,
-0.006592833902686834,
-0.028889842331409454,
-0.013149167411029339,
-0.0348576121032238,
0.022538822144269943,
0.030952099710702896,
0.004382295534014702,
0.014508796855807304,
-0.02230157144367695,
-0.0431431382894516,
-0.039018627256155014,
0.0726352334022522,
0.022356322035193443,
0.013432043604552746,
0.033817358314991,
-0.012720291502773762,
-0.044931646436452866,
0.059787191450595856,
-0.03715711832046509,
-0.05540717765688896,
-0.0018443965818732977,
0.08285526931285858,
0.0015866145258769393,
0.03577011451125145,
0.044749144464731216,
0.04872765764594078,
-0.005037016235291958,
0.025477081537246704,
0.014298921450972557,
0.006455958355218172,
-0.002404445316642523,
-0.023798076435923576,
0.012866291217505932,
-0.04766915366053581,
0.0038963875267654657,
0.014253295958042145,
0.04416514188051224,
0.025404082611203194,
-0.022538822144269943,
-0.004626390058547258,
-0.013988669961690903
] |
20,845 | precession.precession | eval_chi1 |
Dimensionless spin of the heavier black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
S1: float
Magnitude of the primary spin.
Returns
-------
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Examples
--------
``chi1 = precession.eval_chi1(q,S1)``
| def eval_chi1(q, S1):
"""
Dimensionless spin of the heavier black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
S1: float
Magnitude of the primary spin.
Returns
-------
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Examples
--------
``chi1 = precession.eval_chi1(q,S1)``
"""
S1 = np.atleast_1d(S1).astype(float)
chi1 = S1/(eval_m1(q))**2
return chi1
| (q, S1) | [
-0.00871968548744917,
0.013288836926221848,
0.023585014045238495,
-0.025045717135071754,
0.036909475922584534,
0.009619264863431454,
0.022729966789484024,
-0.0319751501083374,
-0.023585014045238495,
0.06975748389959335,
0.062347088009119034,
0.04838133975863457,
-0.003146301256492734,
0.0463862344622612,
-0.05632614344358444,
0.020111389458179474,
0.03894020989537239,
-0.012790059670805931,
0.011151222512125969,
-0.04499678686261177,
-0.016272589564323425,
0.0026386179961264133,
0.056611157953739166,
0.06979311257600784,
-0.0478825643658638,
-0.03245611488819122,
0.023780960589647293,
-0.0323670469224453,
-0.08030305057764053,
-0.06088638678193092,
-0.009280809201300144,
0.02404816262423992,
-0.014526871964335442,
0.028964675962924957,
0.00003896692942362279,
-0.03395244479179382,
0.05372537672519684,
-0.012620831839740276,
-0.09491008520126343,
0.008403496816754341,
-0.0017267917282879353,
0.07161008566617966,
0.01042087096720934,
-0.02128707803785801,
-0.0020585672464221716,
0.020289523527026176,
0.01900695636868477,
0.061883941292762756,
-0.04396360367536545,
0.04859510436654091,
-0.0015742640243843198,
-0.03242048621177673,
-0.04852385073900223,
-0.06138516217470169,
0.0004898699698969722,
0.007900266908109188,
0.01585397496819496,
-0.02996223047375679,
0.009574731811881065,
-0.02857278101146221,
0.01653088629245758,
0.03242048621177673,
0.028822168707847595,
0.03612568601965904,
0.0381564199924469,
-0.011373890563845634,
0.02435099147260189,
0.05814311280846596,
0.011667812243103981,
0.021750226616859436,
-0.05472293123602867,
0.011088875122368336,
-0.03359617292881012,
0.023371251299977303,
-0.00778002617880702,
0.03564472123980522,
-0.02084174193441868,
-0.03258080780506134,
0.03958149626851082,
0.01083058025687933,
0.004943233449012041,
0.015141435898840427,
-0.0019706133753061295,
-0.11215350776910782,
-0.09298623353242874,
0.03730137273669243,
0.029089370742440224,
-0.021465212106704712,
0.022017428651452065,
0.06191956624388695,
-0.03911834582686424,
-0.02992660365998745,
-0.028216511011123657,
0.029231877997517586,
0.09234494715929031,
0.06063699722290039,
-0.033418040722608566,
-0.04057904705405235,
-0.021447399631142616,
-0.023317812010645866,
-0.009227368980646133,
0.0486307293176651,
0.04186161607503891,
0.03712323680520058,
0.006025400944054127,
-0.025793882086873055,
-0.008643978275358677,
-0.0058339061215519905,
-0.010189295746386051,
-0.03258080780506134,
-0.05401039123535156,
0.01157874520868063,
-0.0781654343008995,
-0.024190669879317284,
-0.03489655628800392,
-0.04257415607571602,
-0.0721801146864891,
0.02513478323817253,
0.003814305877313018,
0.015016742050647736,
0.030514447018504143,
0.004273002501577139,
0.006688951980322599,
0.0004403263155836612,
-0.004618138074874878,
0.04556681588292122,
-0.01597866788506508,
-0.03373868390917778,
-0.02917843870818615,
-0.024101603776216507,
0.04717002809047699,
0.0239412821829319,
0.00801160093396902,
0.061634551733732224,
-0.022640900686383247,
-0.016468537971377373,
-0.047490667551755905,
-0.049699537456035614,
0.08614586293697357,
0.014304203912615776,
-0.005784919019788504,
-0.01877538114786148,
-0.008488111197948456,
-0.007112021557986736,
0.04314418509602547,
0.031476374715566635,
0.04784693941473961,
-0.0030728208366781473,
-0.018383484333753586,
0.012335817329585552,
-0.03879770264029503,
0.06526849418878555,
0.13958622515201569,
-0.04952140152454376,
-0.01229128334671259,
-0.025241663679480553,
0.06890244036912918,
-0.04211100563406944,
0.02427973784506321,
-0.05450917035341263,
0.011480771005153656,
0.0004709431959781796,
-0.015257223509252071,
-0.0012113149277865887,
-0.024190669879317284,
-0.046778131276369095,
-0.04499678686261177,
-0.009565824642777443,
0.006662231869995594,
0.0037007450591772795,
0.015301757492125034,
-0.025348545983433723,
-0.009824119508266449,
0.015943041071295738,
-0.002605217741802335,
-0.005018940661102533,
-0.06683608144521713,
0.030941970646381378,
-0.022943729534745216,
-0.047561921179294586,
0.006475190632045269,
-0.051979660987854004,
-0.04567369818687439,
-0.037835776805877686,
-0.0006702312384732068,
0.07937674969434738,
0.03687385097146034,
0.02353157289326191,
-0.00024117746215779334,
0.01197064109146595,
0.0002900252875406295,
-0.0025695906952023506,
-0.011079968884587288,
0.0009797399397939444,
0.060245100408792496,
-0.01086620707064867,
0.03245611488819122,
-0.02839464507997036,
-0.03112010471522808,
0.031743574887514114,
-0.005477637052536011,
0.024190669879317284,
-0.019737306982278824,
0.0045045772567391396,
0.01198845449835062,
0.0004714998649433255,
-0.05757308378815651,
0.032901450991630554,
0.029944416135549545,
-0.012932567857205868,
0.008287709206342697,
0.012184402905404568,
-0.04467614367604256,
0.025206036865711212,
-0.0194522924721241,
0.015515518374741077,
0.01236253697425127,
-0.06687171012163162,
0.01662885956466198,
-0.01873975433409214,
0.03951024264097214,
0.023585014045238495,
0.004885339643806219,
0.03284800797700882,
-0.03332897275686264,
0.030692581087350845,
-0.029231877997517586,
-0.02835901826620102,
-0.03662446141242981,
-0.006613244768232107,
0.03543096035718918,
-0.01694059558212757,
0.05906941369175911,
-0.05554234981536865,
-0.03397025540471077,
0.04175473749637604,
-0.03112010471522808,
0.022872475907206535,
-0.05931880325078964,
0.0327233150601387,
-0.024440059438347816,
-0.0036094512324780226,
-0.01604992151260376,
0.06419968605041504,
-0.003814305877313018,
-0.07702537626028061,
-0.07004249840974808,
0.024938836693763733,
-0.017670946195721626,
0.039937764406204224,
-0.03625037893652916,
-0.07624158263206482,
0.0018002722645178437,
-0.03183264285326004,
0.012611925601959229,
-0.03951024264097214,
-0.025206036865711212,
0.020040135830640793,
0.012941474094986916,
-0.018650686368346214,
0.006056574638932943,
-0.03837018087506294,
0.00185593927744776,
0.04859510436654091,
-0.08593210577964783,
0.02843027375638485,
-0.051944032311439514,
0.05956818908452988,
0.004333122633397579,
-0.012968194670975208,
0.020378591492772102,
0.035110317170619965,
0.004996673669666052,
-0.03206421807408333,
0.008964620530605316,
0.005370756611227989,
0.017537346109747887,
-0.006693405564874411,
0.00831442978233099,
-0.01011804211884737,
0.019915441051125526,
-0.05173027142882347,
0.04838133975863457,
0.007726585958153009,
-0.00008336139580933377,
0.05265657231211662,
-0.017092010006308556,
-0.05739494785666466,
0.05290595814585686,
0.012549578212201595,
0.002464936813339591,
0.0034713968634605408,
-0.03471842035651207,
-0.002505016978830099,
0.07196635752916336,
0.016619952395558357,
-0.049699537456035614,
-0.01707419566810131,
0.023246558383107185,
0.046029966324567795,
0.00798933394253254,
0.010198202915489674,
-0.046101219952106476,
-0.0017646453343331814,
-0.021785855293273926,
-0.0426454097032547,
0.007628611754626036,
0.01636165753006935,
-0.01311070192605257,
0.005905160214751959,
-0.019844187423586845,
0.03986651077866554,
-0.06067262589931488,
0.012353630736470222,
0.0036228112876415253,
-0.016032109037041664,
0.0699356198310852,
0.022534020245075226,
0.0441417396068573,
0.01836567185819149,
0.014482337981462479,
0.005873986519873142,
0.05771559104323387,
-0.0014284163480624557,
-0.030817275866866112,
-0.04097094386816025,
-0.028038376942276955,
-0.0254376120865345,
-0.017947055399417877,
-0.018917888402938843,
-0.02704082429409027,
0.02581169456243515,
0.02700519561767578,
0.016851527616381645,
-0.007637518458068371,
-0.00875531230121851,
0.05614800751209259,
-0.023104049265384674,
-0.051908403635025024,
-0.06045886501669884,
0.056504275649785995,
-0.042182259261608124,
0.01679808646440506,
-0.008114028722047806,
-0.02805618941783905,
-0.0039189597591757774,
-0.004090414382517338,
-0.051979660987854004,
0.016094455495476723,
-0.007704318966716528,
-0.013930121436715126,
-0.0714675784111023,
0.060957640409469604,
-0.0008305523078888655,
0.06669357419013977,
0.0894235372543335,
-0.0224449522793293,
-0.02196398936212063,
-0.011489678174257278,
-0.08151436597108841,
0.06950809806585312,
0.02816307172179222,
-0.046778131276369095,
-0.024849768728017807,
-0.024404432624578476,
-0.0015152569394558668,
-0.020895181223750114,
0.02012920379638672,
-0.014206229709088802,
0.019701680168509483,
-0.058713145554065704,
0.025116970762610435,
-0.07488775998353958,
-0.0010682506253942847,
0.009628172032535076,
0.008853286504745483,
0.0035626909229904413,
0.017706573009490967,
-0.04342919960618019,
-0.003420183202251792,
0.04057904705405235,
-0.02061016671359539,
-0.052086539566516876,
-0.003934546839445829,
-0.04186161607503891,
0.008911180309951305,
-0.03897583857178688,
0.018490364775061607,
0.014206229709088802,
-0.016824807971715927,
0.03961712121963501,
-0.0022957089822739363,
0.04285917058587074,
0.02053891308605671,
-0.047419413924217224,
0.08657338470220566,
0.06377216428518295,
0.023780960589647293,
-0.09868653863668442,
-0.0050278473645448685,
0.013003821484744549,
-0.053440362215042114,
-0.008813206106424332,
0.005700305104255676,
-0.018543805927038193,
-0.07153882831335068,
0.00027777854120358825,
0.016717927530407906,
-0.026613300666213036,
-0.005629051476716995,
-0.01079495344310999,
-0.029534706845879555,
-0.010260549373924732,
0.038690824061632156,
-0.05614800751209259,
-0.04781131073832512,
0.019683867692947388,
-0.057929351925849915,
-0.017047476023435593,
0.09719020873308182,
0.023068422451615334,
-0.06818990409374237,
-0.007637518458068371,
0.03022943250834942,
0.004339802544564009,
0.027664294466376305,
0.030354125425219536,
0.007022954523563385,
0.007196635473519564,
-0.019541358575224876,
-0.045246172696352005,
0.03879770264029503,
-0.04278791695833206,
-0.05739494785666466,
-0.048274461179971695,
-0.013217583298683167,
-0.00615454837679863,
0.03338241204619408,
0.035110317170619965,
0.005624598357826471,
0.01154311839491129,
0.022961542010307312,
0.03338241204619408,
-0.035591281950473785,
-0.025936389341950417,
-0.004640404600650072,
0.01856161840260029,
0.02499227598309517,
-0.03250955417752266,
-0.06455595791339874,
-0.025206036865711212,
0.008844380266964436,
-0.020556725561618805,
0.003340022638440132,
0.0729639083147049,
0.0034179564099758863,
-0.02329999767243862,
0.013368997722864151,
0.008888913318514824,
0.006314869504421949,
-0.0004369863017927855,
0.05297721177339554,
-0.018917888402938843,
0.002801165683194995,
0.003233141964301467,
0.03015817701816559,
0.046706877648830414,
-0.0012135416036471725,
0.015827253460884094,
-0.04770442843437195,
0.0463862344622612,
0.06191956624388695,
0.04278791695833206,
0.01744827814400196,
0.050554584711790085,
0.008510378189384937,
-0.04877323657274246,
0.027521787211298943,
0.033685240894556046,
-0.00830106995999813,
0.0007414850406348705,
-0.022676527500152588,
0.03968837484717369,
-0.003204195061698556,
-0.003912279848009348,
-0.04991329833865166,
-0.051908403635025024,
-0.031779203563928604,
0.009904280304908752,
-0.0017613052623346448,
-0.015435357578098774,
0.06811864674091339,
0.02737927995622158,
0.018383484333753586,
-0.04567369818687439,
0.010563378222286701,
0.03457591310143471,
0.0036027710884809494,
0.02274778112769127,
0.02819869853556156,
-0.013083982281386852,
0.08244066685438156,
-0.07495901733636856,
0.022623086348176003,
-0.014411084353923798,
0.017599692568182945,
0.01735030487179756,
-0.02176804095506668,
-0.037657640874385834,
-0.0029458999633789062,
-0.026987383142113686,
-0.045353055000305176,
0.003380103036761284,
0.012611925601959229,
0.013208676129579544,
-0.01873975433409214,
-0.01907820999622345,
0.028679661452770233,
-0.047597549855709076,
0.0064974576234817505,
-0.02061016671359539,
0.012513951398432255,
0.04421299323439598,
0.00831442978233099,
-0.02670236863195896,
-0.012433790601789951,
0.006221348885446787,
-0.049699537456035614,
0.03338241204619408,
0.03397025540471077,
-0.014295296743512154,
-0.022997168824076653,
-0.023050609976053238,
0.059603817760944366,
0.008679605089128017,
0.0246894471347332,
-0.07136069983243942,
-0.018757566809654236,
-0.04257415607571602,
-0.01042087096720934,
-0.03712323680520058,
-0.050447702407836914,
0.12020518630743027,
0.04207537695765495,
-0.012620831839740276,
-0.00824762973934412,
-0.005914066918194294,
0.04424862191081047,
-0.03908271715044975,
-0.0022912556305527687,
-0.03457591310143471,
-0.07567155361175537,
-0.010750419460237026,
-0.03655320778489113,
0.043856725096702576,
0.05002018064260483,
0.03625037893652916,
-0.003934546839445829,
-0.012834593653678894,
-0.0007531751180067658,
-0.005896253511309624,
0.004466723650693893,
0.10310427099466324,
-0.03112010471522808,
-0.027878055348992348,
-0.008501471020281315,
0.011391703970730305,
-0.0018303324468433857,
0.00028195357299409807,
-0.004199521616101265,
-0.014705006033182144,
0.04866635799407959,
0.059461310505867004,
0.03430871292948723,
-0.08293944597244263,
0.004774005617946386,
0.0034558100160211325,
-0.0531197190284729,
-0.06088638678193092,
-0.008465844206511974,
0.01881100796163082,
-0.029231877997517586,
0.023727521300315857,
-0.004738378804177046,
0.007272342685610056,
-0.014820793643593788,
-0.04057904705405235,
0.02846590057015419,
-0.0591050423681736,
0.07417522370815277,
0.02985535003244877,
-0.06295274943113327,
0.010055694729089737,
0.0064395638182759285,
0.02887560985982418,
-0.025419799610972404,
0.005718118976801634,
-0.07531528174877167,
-0.020022323355078697,
0.024529125541448593,
-0.015720373019576073,
-0.012211122550070286,
0.007824559696018696,
0.009450037032365799,
0.0021699012722820044,
0.02696956880390644,
-0.007579624652862549,
0.03395244479179382,
-0.00834560301154852,
-0.046706877648830414,
0.032153286039829254,
0.03169013559818268,
0.02866184711456299,
0.08906727284193039,
-0.004228468518704176,
0.05091085284948349,
-0.019238529726862907,
-0.042930424213409424,
0.007882453501224518,
-0.015898507088422775,
-0.030015669763088226,
0.019844187423586845,
0.006653325166553259,
-0.03687385097146034,
0.014428897760808468,
-0.030211618170142174,
0.013974654488265514,
-0.08814097195863724,
-0.008973527699708939,
-0.007027407642453909,
0.02217775024473667,
0.026203591376543045,
0.030959783121943474,
-0.021572092548012733,
-0.03676696866750717,
0.024475686252117157,
-0.04250290244817734,
0.026773622259497643,
-0.031618881970644,
0.07845044881105423,
-0.024564754217863083,
0.06968623399734497,
0.0026675646658986807,
0.018178630620241165,
-0.0075529045425355434,
-0.030247244983911514,
-0.03550221398472786,
-0.021108943969011307,
0.017092010006308556,
-0.039973389357328415,
-0.053618498146533966,
0.06419968605041504,
0.01737702451646328,
0.03787140175700188,
0.027860242873430252,
-0.03694510459899902,
-0.015257223509252071,
-0.03662446141242981,
-0.07752415537834167,
-0.00703186122700572,
0.055043574422597885,
-0.03133386746048927,
-0.019701680168509483,
0.03022943250834942,
-0.005397476721554995,
0.023335624486207962,
0.1006103903055191,
-0.059354428201913834,
-0.06330901384353638,
-0.04328669235110283,
-0.012905847281217575,
-0.006831459701061249,
0.025081343948841095,
-0.07837919890880585,
-0.028074003756046295,
0.01578271947801113,
-0.014883141033351421,
0.016575418412685394,
-0.0202004574239254,
0.03961712121963501,
-0.008122934959828854,
0.02832339145243168,
0.025223851203918457,
0.03607224300503731,
0.031137917190790176,
0.0006084407796151936,
0.005562250968068838,
-0.0009051461238414049,
-0.06145641580224037,
-0.004667125176638365,
-0.01120466273277998,
0.030763834714889526,
0.00911158137023449,
-0.006132281385362148,
0.07552904635667801,
0.012968194670975208,
-0.012228935956954956,
-0.009966627694666386,
0.007855732925236225,
0.024404432624578476,
0.03975962847471237,
-0.02356719970703125,
-0.008786486461758614,
0.03694510459899902,
-0.017662039026618004,
0.02274778112769127,
0.037942659109830856,
-0.0073747700080275536,
-0.00776221277192235,
0.001691164798103273,
-0.03201077878475189,
0.037194494158029556,
0.021198010072112083,
0.05297721177339554,
-0.03733700141310692,
0.055720485746860504,
0.0034558100160211325,
0.043037306517362595,
0.05817874148488045,
0.0019694999791681767,
0.008942353539168835,
-0.05226467549800873,
0.045923084020614624,
-0.0032776754815131426,
-0.014143882319331169,
0.06633730232715607,
0.07118256390094757,
0.005580064374953508,
-0.015025648288428783,
-0.013956841081380844,
-0.022302445024251938,
-0.026542047038674355,
-0.03819204494357109,
0.05016268789768219,
0.05176589637994766,
-0.046065591275691986,
0.02196398936212063,
-0.03138730674982071,
0.02312186360359192,
-0.0404009148478508,
-0.008158561773598194,
-0.00595860043540597,
0.05009143427014351,
-0.031476374715566635,
-0.0010543338721618056,
-0.045281801372766495,
-0.011587652377784252,
0.04838133975863457,
0.04072155803442001,
0.010216016322374344,
0.02591857500374317,
0.0022255685180425644,
0.03525282442569733,
0.021750226616859436,
0.01676245965063572,
-0.008292162790894508,
-0.019202902913093567,
0.015800533816218376,
-0.013262116350233555,
0.016913874074816704,
-0.014785166829824448,
0.013306650333106518,
0.04072155803442001,
0.05767996609210968,
-0.005437556654214859,
-0.008523738011717796,
0.04015152528882027,
0.00067802460398525
] |
20,846 | precession.precession | eval_chi2 |
Dimensionless spin of the lighter black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
S2: float
Magnitude of the secondary spin.
Returns
-------
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Examples
--------
``chi2 = precession.eval_chi2(q,S2)``
| def eval_chi2(q, S2):
"""
Dimensionless spin of the lighter black hole.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
S2: float
Magnitude of the secondary spin.
Returns
-------
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Examples
--------
``chi2 = precession.eval_chi2(q,S2)``
"""
S2 = np.atleast_1d(S2).astype(float)
chi2 = S2/(eval_m2(q))**2
return chi2
| (q, S2) | [
0.02481415867805481,
0.008914518170058727,
0.003233522642403841,
-0.03719444200396538,
0.050628744065761566,
0.023242060095071793,
0.03138839453458786,
-0.0127375777810812,
-0.04341138154268265,
0.04416169971227646,
0.08375002443790436,
0.04919956251978874,
-0.02120547741651535,
0.028190599754452705,
-0.03120974451303482,
0.01596216857433319,
0.05262959748506546,
-0.05695287138223648,
0.0017663786420598626,
0.006444714032113552,
-0.03258533403277397,
-0.030495155602693558,
0.03508640080690384,
0.01749853789806366,
-0.047806113958358765,
-0.00840090587735176,
-0.014059570617973804,
-0.011737151071429253,
-0.08946674317121506,
-0.046305473893880844,
-0.009432596154510975,
-0.011406652629375458,
0.0031330331694334745,
0.05227230489253998,
0.02552874945104122,
-0.010147186927497387,
0.04126760736107826,
0.006060621701180935,
-0.10518773645162582,
0.008802862837910652,
-0.016230139881372452,
0.04816340655088425,
-0.003251387272030115,
-0.015435157343745232,
-0.006815407890826464,
0.00736028328537941,
-0.006239269394427538,
0.05134333670139313,
-0.03615828603506088,
0.0235457606613636,
0.009504055604338646,
-0.05920383334159851,
-0.06835059076547623,
-0.02931608073413372,
0.0002875110658351332,
-0.009271813556551933,
-0.006132080685347319,
-0.015479818917810917,
0.03553301841020584,
-0.05398732051253319,
0.021223342046141624,
-0.001535253250040114,
0.007708646357059479,
0.06463471800088882,
0.00009944254270521924,
0.022866899147629738,
0.00786942895501852,
0.03730162978172302,
0.01099576335400343,
0.07396013289690018,
-0.04852070286870003,
0.02367081493139267,
-0.022598927840590477,
0.01219270285218954,
-0.025510884821414948,
0.03481842949986458,
0.011701421812176704,
-0.008802862837910652,
0.029959211125969887,
-0.0022531936410814524,
-0.014934943988919258,
0.002882926492020488,
0.016909001395106316,
-0.09346845000982285,
-0.10711713135242462,
0.05795329809188843,
0.06074020266532898,
0.0002642031467985362,
-0.036658499389886856,
0.018579356372356415,
-0.07567514479160309,
-0.043089814484119415,
-0.006239269394427538,
-0.007815835066139698,
0.06463471800088882,
0.027886899188160896,
-0.03360362350940704,
-0.0339430533349514,
-0.020473022013902664,
-0.04448326677083969,
0.013648680411279202,
0.03360362350940704,
0.05016425997018814,
0.03812341019511223,
0.03998134657740593,
-0.05952540040016174,
-0.043304190039634705,
0.018177399411797523,
-0.003269252134487033,
-0.011156545951962471,
-0.05663130804896355,
0.040660206228494644,
-0.05623828247189522,
-0.01329138595610857,
-0.07874788343906403,
-0.01865081489086151,
-0.038409244269132614,
0.054416075348854065,
0.05848924070596695,
0.019579783082008362,
0.015461954288184643,
0.005332632455974817,
0.02442113496363163,
-0.008182062767446041,
-0.02802981622517109,
0.05902518704533577,
-0.03596177324652672,
-0.025314372032880783,
-0.027869034558534622,
0.000889888615347445,
0.038194868713617325,
-0.023349247872829437,
0.03883799910545349,
0.03442540392279625,
-0.025367967784404755,
-0.036694228649139404,
-0.0018222060753032565,
-0.03153131157159805,
0.09947101771831512,
0.027654657140374184,
0.001348789781332016,
-0.019276082515716553,
-0.054809100925922394,
-0.047806113958358765,
-0.000013136883353581652,
0.05616682395339012,
0.053272731602191925,
0.031977929174900055,
0.028047682717442513,
0.021616365760564804,
-0.030405830591917038,
0.060847390443086624,
0.1564953476190567,
-0.01040622591972351,
0.0055380770936608315,
-0.008936849422752857,
0.07638973742723465,
-0.06270533055067062,
0.02283116988837719,
-0.04755600541830063,
0.0037158711347728968,
-0.026922201737761497,
-0.03063807263970375,
-0.0021381890401244164,
0.025064265355467796,
-0.014014908112585545,
0.0022777575068175793,
-0.015479818917810917,
0.02670782431960106,
0.02811914123594761,
-0.047770384699106216,
-0.04473337158560753,
-0.023474302142858505,
-0.012237364426255226,
0.005287970416247845,
-0.0008005648269318044,
-0.05616682395339012,
0.00890558585524559,
0.01434540655463934,
-0.06152625381946564,
0.003494794713333249,
-0.06367002427577972,
-0.02406383864581585,
-0.019186757504940033,
-0.007967685349285603,
0.09589806199073792,
0.047448817640542984,
-0.0045666806399822235,
0.001629043254069984,
-0.00433220574632287,
0.022849034518003464,
0.003997241146862507,
0.01287156343460083,
-0.006377721205353737,
0.04787757247686386,
0.011763948015868664,
0.02520718425512314,
0.019579783082008362,
-0.020347967743873596,
0.06849350780248642,
0.002164986217394471,
0.050057072192430496,
-0.03873081132769585,
0.008204394020140171,
0.0470915213227272,
-0.023117005825042725,
-0.03606896102428436,
0.020598074421286583,
0.023563625290989876,
0.03530077636241913,
-0.025135725736618042,
0.015185050666332245,
-0.03478270024061203,
-0.005185248330235481,
0.03381800279021263,
0.056845683604478836,
0.0001382425834890455,
-0.04934248328208923,
-0.038016222417354584,
-0.0027422416023910046,
0.06577806919813156,
-0.017266295850276947,
-0.004631440620869398,
0.0349077507853508,
-0.03310341015458107,
0.04341138154268265,
0.0013901020865887403,
-0.0273330919444561,
-0.03646198660135269,
-0.003530524205416441,
0.0094147315248847,
0.0008681159233674407,
0.06659984588623047,
-0.0443403497338295,
-0.027100849896669388,
0.03737308830022812,
-0.01868654415011406,
0.03196006640791893,
-0.05613109469413757,
0.05002134293317795,
-0.03310341015458107,
-0.02415316365659237,
-0.046698495745658875,
0.03976696729660034,
-0.02195579744875431,
-0.05019999295473099,
-0.01904384046792984,
-0.015149321407079697,
0.027172308415174484,
0.065956711769104,
-0.03235309198498726,
-0.05952540040016174,
-0.007829233072698116,
-0.017212701961398125,
-0.023563625290989876,
-0.05920383334159851,
-0.025010671466588974,
-0.00971843209117651,
0.010236511006951332,
-0.01865081489086151,
-0.006627827882766724,
-0.028315654024481773,
-0.04655557870864868,
0.02742241509258747,
-0.06241948902606964,
0.02604682743549347,
-0.07803329825401306,
0.020991099998354912,
0.010013201273977757,
-0.002668549306690693,
0.027958357706665993,
0.007337952498346567,
-0.005797116551548243,
0.006516173016279936,
0.005622935015708208,
0.02631479874253273,
0.04015999287366867,
-0.007681849412620068,
0.02256319858133793,
-0.01692686602473259,
0.012076581828296185,
-0.015292239375412464,
0.014845619909465313,
-0.018436437472701073,
0.004939607810229063,
0.03919529542326927,
-0.036694228649139404,
-0.035675935447216034,
0.07446034252643585,
-0.00036846078000962734,
-0.03244241327047348,
-0.00013880085316486657,
-0.027404550462961197,
0.050628744065761566,
0.09911371767520905,
0.03769465535879135,
-0.06735016405582428,
-0.011933662928640842,
0.0315670408308506,
0.03544369339942932,
-0.013836260885000229,
0.02917316183447838,
-0.04541223496198654,
0.03873081132769585,
0.0509503111243248,
-0.018490033224225044,
0.03644412010908127,
0.00886092334985733,
-0.0212412066757679,
0.01644451729953289,
-0.03456832095980644,
0.021080423146486282,
-0.04994988441467285,
0.009173557162284851,
-0.0027958357241004705,
0.003959278576076031,
0.015461954288184643,
0.011942596174776554,
0.011665691621601582,
0.008825194090604782,
0.007324554026126862,
-0.025796720758080482,
0.05166490375995636,
-0.010915371589362621,
0.006417917087674141,
-0.027011524885892868,
-0.05956112965941429,
-0.011629962362349033,
0.04162490367889404,
0.003608682658523321,
-0.011174410581588745,
0.03367508202791214,
0.02847643569111824,
0.006489376071840525,
0.021634230390191078,
-0.04155344516038895,
0.05616682395339012,
-0.008838593028485775,
-0.018543627113103867,
-0.03540796414017677,
0.013836260885000229,
-0.04448326677083969,
0.006475977599620819,
-0.038766540586948395,
-0.0334249772131443,
-0.006650159135460854,
-0.019329676404595375,
-0.054023049771785736,
0.00804807711392641,
-0.023956650868058205,
0.004227250348776579,
-0.08353564143180847,
0.0433756522834301,
-0.001489474787376821,
0.005238842684775591,
0.09732723981142044,
-0.037623196840286255,
0.009003842249512672,
-0.007851564325392246,
-0.054058779031038284,
0.033389247953891754,
0.08174916356801987,
-0.03908810764551163,
-0.026439853012561798,
-0.003930248320102692,
0.03601536899805069,
-0.030923908576369286,
0.03547942265868187,
-0.007838166318833828,
0.009709499776363373,
-0.05613109469413757,
-0.0009490656666457653,
-0.008235656656324863,
-0.0006498308503068984,
0.012183770537376404,
0.021634230390191078,
-0.041196148842573166,
0.00906190276145935,
0.0029275885317474604,
-0.01732882298529148,
0.016515975818037987,
-0.01680181175470352,
-0.08768027275800705,
-0.01249640341848135,
-0.023170601576566696,
0.03355003148317337,
-0.060633014887571335,
0.04298262670636177,
0.026689959689974785,
-0.03196006640791893,
-0.008199927397072315,
0.019722701981663704,
0.07238803058862686,
-0.013809463940560818,
-0.00004532486491370946,
0.08646546304225922,
0.050628744065761566,
0.019508324563503265,
-0.08189208805561066,
-0.0006716035422869027,
-0.03126334026455879,
-0.009111030027270317,
0.048949457705020905,
-0.01496174093335867,
-0.010540211573243141,
-0.061740629374980927,
-0.010299037210643291,
0.04258960112929344,
-0.01922248862683773,
0.008695675060153008,
-0.04512639716267586,
-0.06420596688985825,
-0.009003842249512672,
0.013630815781652927,
-0.06920810043811798,
-0.031013233587145805,
-0.00444162730127573,
-0.013523627072572708,
-0.024760564789175987,
0.07974831014871597,
0.026511311531066895,
-0.08775173127651215,
0.0009786541340872645,
0.015122524462640285,
-0.0026841810904443264,
0.013496830128133297,
0.00556487450376153,
0.02577885612845421,
0.029994942247867584,
-0.044590454548597336,
-0.04237522557377815,
0.06956540048122406,
-0.026154017075896263,
-0.047984760254621506,
-0.051379065960645676,
-0.03592604398727417,
0.021616365760564804,
0.0030682734213769436,
0.04319700226187706,
0.023599354550242424,
-0.0024742700625211,
0.05237949267029762,
0.04001707583665848,
-0.016685690730810165,
-0.0027601062320172787,
-0.030262913554906845,
0.034443266689777374,
0.04644839093089104,
-0.004099963698536158,
-0.05716725066304207,
0.004149091895669699,
0.00815526582300663,
0.0069359950721263885,
0.03346070647239685,
0.038194868713617325,
0.0043969652615487576,
-0.0010623952839523554,
-0.0019818723667412996,
-0.010263307951390743,
-0.012692916207015514,
-0.024921348318457603,
0.038587894290685654,
-0.03178141638636589,
0.012183770537376404,
-0.011326261796057224,
0.023170601576566696,
0.05998988449573517,
-0.033031951636075974,
0.029012378305196762,
-0.04848497360944748,
0.01236241776496172,
0.025903910398483276,
0.03883799910545349,
-0.01961551234126091,
0.04862789064645767,
0.025010671466588974,
-0.04037436842918396,
0.016408788040280342,
0.033871594816446304,
-0.015310104005038738,
-0.0292267557233572,
-0.01126373466104269,
-0.006123148370534182,
-0.007994482293725014,
0.0003966536314692348,
-0.07245948910713196,
-0.02895878441631794,
-0.051414795219898224,
0.025635939091444016,
-0.023652950301766396,
0.00910209771245718,
0.06349137425422668,
0.021544907242059708,
-0.03919529542326927,
-0.029387539252638817,
0.02817273512482643,
0.022813305258750916,
0.032549601048231125,
-0.004222783725708723,
0.04023145139217377,
-0.03187074139714241,
0.032370954751968384,
-0.03451472520828247,
0.0020968769676983356,
-0.026296934112906456,
-0.00010844470671145245,
-0.017650388181209564,
-0.01560487225651741,
-0.03315700590610504,
0.029941346496343613,
0.013461100868880749,
-0.018722273409366608,
0.044054511934518814,
-0.005859643220901489,
0.03589031472802162,
-0.02093750610947609,
-0.023331383243203163,
0.047627463936805725,
-0.007762240711599588,
-0.01564953476190567,
-0.02367081493139267,
-0.015944303944706917,
0.0094147315248847,
-0.0059355683624744415,
0.005846244748681784,
-0.07374574989080429,
0.006668023765087128,
-0.020919639617204666,
0.04605536535382271,
-0.050843123346567154,
-0.007659518159925938,
-0.02958405204117298,
-0.029852023348212242,
0.032978355884552,
-0.029012378305196762,
0.024760564789175987,
-0.04301835596561432,
0.006194607354700565,
-0.06849350780248642,
-0.03940967097878456,
-0.03192433714866638,
-0.04827059805393219,
0.06902945041656494,
0.026118287816643715,
-0.014265015721321106,
0.04394732415676117,
-0.02309914119541645,
0.005980230402201414,
-0.03430034965276718,
-0.022634657099843025,
-0.02120547741651535,
-0.02526077814400196,
0.023134870454669,
-0.0433756522834301,
0.007949820719659328,
0.030530884861946106,
0.002764572389423847,
-0.04012426361441612,
-0.017748644575476646,
-0.012031919322907925,
-0.00840090587735176,
0.030298642814159393,
0.05227230489253998,
-0.027100849896669388,
-0.00569886015728116,
-0.0160068292170763,
0.018222060054540634,
0.027100849896669388,
-0.04076739400625229,
0.0010456470772624016,
-0.012898360379040241,
0.0343896746635437,
0.08925236761569977,
0.026350529864430428,
-0.02481415867805481,
0.04015999287366867,
0.04244668409228325,
-0.05998988449573517,
-0.010433022864162922,
-0.0263683944940567,
0.02367081493139267,
0.013407506980001926,
0.03658704087138176,
0.004204919096082449,
0.00414462573826313,
-0.03451472520828247,
-0.06324127316474915,
0.0414462573826313,
-0.03701579570770264,
0.05352283641695976,
0.06316981464624405,
-0.018525762483477592,
-0.011111884377896786,
-0.04809194803237915,
0.007806902751326561,
-0.05134333670139313,
-0.005234376527369022,
-0.020169319584965706,
0.008972578682005405,
0.0017831269651651382,
-0.03562234342098236,
-0.018311385065317154,
0.030262913554906845,
-0.01758786104619503,
-0.018347114324569702,
-0.004452792927622795,
0.004265212919563055,
-0.01803448051214218,
-0.054594721645116806,
-0.004437161143869162,
0.013916652649641037,
0.024296080693602562,
0.03081672079861164,
0.03530077636241913,
-0.003651111386716366,
0.06227657198905945,
-0.013934517279267311,
-0.052701059728860855,
-0.0039235493168234825,
-0.006909198127686977,
-0.05541650205850601,
0.0499856136739254,
0.0461982823908329,
-0.006538504268974066,
-0.002659616991877556,
-0.027583198621869087,
-0.0009172440622933209,
-0.05766746401786804,
-0.00896811205893755,
0.011040424928069115,
-0.004314340651035309,
0.0020633803214877844,
0.03980269655585289,
-0.037051524966955185,
-0.06367002427577972,
-0.0031374995596706867,
-0.029994942247867584,
0.0358724482357502,
-0.003852090099826455,
0.1131196990609169,
-0.01838284358382225,
0.04676995798945427,
-0.024706970900297165,
0.015220779925584793,
-0.040874581784009933,
-0.03919529542326927,
-0.0036332467570900917,
0.005037863738834858,
0.006029358599334955,
-0.032370954751968384,
-0.0368371456861496,
0.051950737833976746,
0.03451472520828247,
0.025993233546614647,
-0.007668450474739075,
-0.06563515216112137,
0.02794049307703972,
-0.029566187411546707,
-0.018311385065317154,
0.007806902751326561,
0.08189208805561066,
0.015765655785799026,
-0.031138285994529724,
0.04394732415676117,
-0.040052805095911026,
0.004899411927908659,
0.11983684450387955,
-0.04676995798945427,
-0.05791756883263588,
-0.050235722213983536,
0.025671668350696564,
-0.025671668350696564,
0.019025975838303566,
-0.04183927923440933,
-0.07610390335321426,
0.023617219179868698,
-0.031977929174900055,
0.026350529864430428,
-0.021830743178725243,
0.07113749533891678,
0.015319036319851875,
0.022456010803580284,
0.0029566187877207994,
0.027779709547758102,
0.016864338889718056,
0.03240668401122093,
0.024653377011418343,
0.007373681757599115,
-0.0603114478290081,
-0.05938247963786125,
-0.020973235368728638,
0.02631479874253273,
-0.038373515009880066,
-0.01815953478217125,
0.06295543164014816,
-0.01020078081637621,
-0.020115725696086884,
0.0016926865791901946,
0.019954944029450417,
0.014113164506852627,
0.03033437207341194,
-0.0157835204154253,
0.03622974455356598,
0.028976649045944214,
-0.0037895634304732084,
0.022938359528779984,
0.008597418665885925,
-0.039123836904764175,
0.009486190043389797,
-0.02331351861357689,
-0.03740881755948067,
0.011406652629375458,
0.021937932819128036,
0.008651012554764748,
-0.06392013281583786,
0.02252746932208538,
-0.0005750221316702664,
0.04359002783894539,
0.030048536136746407,
0.018230993300676346,
0.026547040790319443,
-0.05488055944442749,
0.03346070647239685,
0.0047654262743890285,
-0.02274184674024582,
0.09346845000982285,
0.040052805095911026,
0.0259575042873621,
0.018990246579051018,
-0.0471629798412323,
-0.03187074139714241,
-0.043089814484119415,
-0.02177714928984642,
0.05427315831184387,
0.027690386399626732,
-0.032549601048231125,
-0.020312238484621048,
-0.0452335849404335,
0.03990988805890083,
-0.034443266689777374,
0.05484483018517494,
0.017695050686597824,
0.06377721577882767,
-0.014666972681879997,
-0.024796294048428535,
-0.0020555646624416113,
-0.03499707579612732,
0.019204622134566307,
0.05209365487098694,
0.030137859284877777,
0.028798002749681473,
0.007449607364833355,
0.07474617660045624,
0.03271038457751274,
-0.014461527578532696,
0.02322419546544552,
-0.020955370739102364,
-0.018632950261235237,
-0.05059301480650902,
0.012594659812748432,
0.02486775442957878,
0.029941346496343613,
0.03887372836470604,
0.05073593556880951,
0.010397293604910374,
0.007324554026126862,
0.021098287776112556,
0.01236241776496172
] |
20,847 | precession.precession | eval_chieff |
Eftective spin.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chieff: float
Effective spin.
Examples
--------
``chieff = precession.eval_chieff(theta1,theta2,q,chi1,chi2)``
| def eval_chieff(theta1, theta2, q, chi1, chi2):
"""
Eftective spin.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chieff: float
Effective spin.
Examples
--------
``chieff = precession.eval_chieff(theta1,theta2,q,chi1,chi2)``
"""
theta1 = np.atleast_1d(theta1).astype(float)
theta2 = np.atleast_1d(theta2).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
chieff = (chi1*np.cos(theta1) + q*chi2*np.cos(theta2))/(1+q)
return chieff
| (theta1, theta2, q, chi1, chi2) | [
0.05079472437500954,
0.005588136147707701,
-0.0001345400814898312,
-0.032704923301935196,
0.012707636691629887,
-0.009474756196141243,
-0.00786279421299696,
0.027242163196206093,
-0.04205430671572685,
0.02645409293472767,
0.09557145833969116,
0.036645278334617615,
-0.015421106480062008,
0.048358868807554245,
-0.054233577102422714,
-0.009134452790021896,
0.044669266790151596,
-0.05355297029018402,
-0.032364621758461,
-0.03313478082418442,
-0.02994667738676071,
-0.04617376625537872,
0.013916607946157455,
0.025271987542510033,
-0.035552725195884705,
0.023337632417678833,
0.042734913527965546,
-0.016916649416089058,
-0.03145117685198784,
-0.019451012834906578,
-0.0037097521126270294,
-0.007285173982381821,
-0.031057141721248627,
0.05366043373942375,
-0.00296421954408288,
-0.030036231502890587,
0.009573264978826046,
0.03797066956758499,
-0.028943678364157677,
0.03641243651509285,
-0.04617376625537872,
0.050364866852760315,
0.04710512235760689,
-0.010674772784113884,
-0.07221591472625732,
0.024573469534516335,
-0.0265615563839674,
0.06680688261985779,
0.008610565215349197,
-0.000328829133650288,
0.016755452379584312,
-0.09721923619508743,
0.0025298853870481253,
-0.005520971026271582,
-0.01386287622153759,
0.036716919392347336,
0.006761286407709122,
-0.02597050368785858,
0.02699141390621662,
-0.040119949728250504,
0.054555971175432205,
-0.028066055849194527,
0.033546727150678635,
0.03814977407455444,
0.005767242982983589,
0.02663319930434227,
0.020042065531015396,
0.02561229094862938,
-0.005798586644232273,
0.04481255263090134,
-0.033510904759168625,
0.031146693974733353,
0.004025428090244532,
-0.0351945124566555,
0.007249352987855673,
0.03703931346535683,
-0.05401865020394325,
0.006188144441694021,
0.03542735055088997,
0.027922770008444786,
-0.01446288451552391,
-0.009797148406505585,
-0.020454009994864464,
-0.10216259211301804,
-0.03936770185828209,
0.026060057803988457,
0.027851127088069916,
-0.07400698214769363,
-0.0071777100674808025,
0.0024761531967669725,
-0.03936770185828209,
-0.034281063824892044,
0.0034813908860087395,
-0.00058937375433743,
0.10445515811443329,
0.0024806309957057238,
-0.03700349107384682,
-0.015179311856627464,
-0.01738232746720314,
-0.016424104571342468,
0.007218008860945702,
0.05333804339170456,
0.040119949728250504,
0.0369318462908268,
0.036896027624607086,
-0.03779156133532524,
-0.05781571567058563,
0.007634432520717382,
0.07515326887369156,
-0.03639452904462814,
-0.12093299627304077,
0.01103298645466566,
-0.044525980949401855,
0.033367618918418884,
-0.06118292734026909,
-0.027224252000451088,
-0.04875290393829346,
0.029498910531401634,
0.02874666079878807,
0.007365772500634193,
0.04492001608014107,
-0.001345540746115148,
0.020597295835614204,
0.006380684208124876,
-0.0023843608796596527,
0.02167193777859211,
-0.03700349107384682,
0.027116788551211357,
0.005950827617198229,
-0.07128455489873886,
0.042842376977205276,
-0.03374374657869339,
0.017400238662958145,
0.04169609397649765,
-0.01245688647031784,
0.0004984209663234651,
0.016907693818211555,
-0.023337632417678833,
0.09707595407962799,
0.005852318834513426,
0.03349299356341362,
-0.014498705975711346,
-0.008843404240906239,
-0.018179353326559067,
0.004903052002191544,
0.012241958640515804,
0.0052299220114946365,
0.0015627079410478473,
-0.02258538268506527,
-0.013674813322722912,
-0.02396450750529766,
0.04782154783606529,
0.06487252563238144,
-0.07289651781320572,
0.03958262875676155,
-0.03392285108566284,
0.04882454872131348,
-0.03718259930610657,
0.021510742604732513,
-0.056382860988378525,
0.0014753933064639568,
-0.000597769336309284,
-0.003732140641659498,
0.08675939589738846,
0.06569641828536987,
0.01871667429804802,
0.01688978262245655,
-0.007464281283318996,
-0.00882997177541256,
0.03883038088679314,
-0.02287195436656475,
-0.038293059915304184,
-0.04413194581866264,
0.013513617217540741,
0.01748083531856537,
-0.014668856747448444,
-0.048323050141334534,
-0.031684014946222305,
0.008185186423361301,
-0.009591176174581051,
-0.028979500755667686,
-0.04728422686457634,
-0.04373791068792343,
-0.060000818222761154,
0.028316805139183998,
0.06687852740287781,
0.04939768835902214,
0.050364866852760315,
0.027707841247320175,
-0.014928562566637993,
0.0028992933221161366,
-0.01174941472709179,
-0.013522572815418243,
0.07651447504758835,
0.04929022490978241,
-0.00854787789285183,
-0.005538881756365299,
0.03718259930610657,
-0.060251571238040924,
0.023033151403069496,
-0.01138224545866251,
0.02863919734954834,
0.0008585938485339284,
-0.00809115543961525,
0.013513617217540741,
0.001089193974621594,
-0.03607213497161865,
0.025236165151000023,
-0.0019914451986551285,
-0.02885412611067295,
-0.00870459619909525,
0.006246353965252638,
-0.04900365322828293,
0.024645112454891205,
0.011937476694583893,
0.04886036738753319,
0.06899198889732361,
-0.048323050141334534,
-0.028764571994543076,
0.026543647050857544,
0.07594133913516998,
0.010952388867735863,
0.0471409410238266,
0.008538922294974327,
0.02684812806546688,
0.015582302585244179,
-0.023212257772684097,
-0.002751530148088932,
-0.038293059915304184,
-0.012949430383741856,
0.026400361210107803,
-0.0011541201965883374,
0.019468922168016434,
-0.05358879268169403,
-0.030913855880498886,
0.08847881853580475,
-0.034531816840171814,
0.04595883563160896,
-0.062329210340976715,
0.08274739980697632,
-0.02192268706858158,
0.020436100661754608,
-0.006067247129976749,
0.02244209684431553,
-0.014839008450508118,
-0.048394691199064255,
0.050400689244270325,
-0.0050597707740962505,
-0.05126040056347847,
0.011901655234396458,
-0.0011451649479568005,
-0.011292691342532635,
-0.013110626488924026,
0.01850174553692341,
-0.038293059915304184,
-0.01296734157949686,
0.024358542636036873,
-0.008489668369293213,
0.03954681009054184,
0.013253912329673767,
0.010352380573749542,
-0.0020295053254812956,
-0.007907570339739323,
0.060466498136520386,
-0.07157112658023834,
-0.0058388859033584595,
-0.06641285121440887,
0.023624204099178314,
-0.01198225375264883,
-0.04341552034020424,
-0.07114127278327942,
0.02699141390621662,
-0.004544838331639767,
-0.01036133524030447,
0.0012727786088362336,
0.006143367383629084,
0.04943351075053215,
0.006344862747937441,
0.0085299676284194,
0.01576140895485878,
-0.02564811147749424,
-0.04004830867052078,
-0.015179311856627464,
0.014212134294211864,
-0.0293735358864069,
-0.0030515342950820923,
-0.036501992493867874,
0.016943514347076416,
0.09155946224927902,
0.008525489829480648,
-0.034352708607912064,
-0.030072052031755447,
-0.013603171333670616,
-0.013101671822369099,
0.10259244590997696,
0.040728915482759476,
-0.04606630280613899,
-0.016845006495714188,
0.06870541721582413,
0.00878071691840887,
0.025057058781385422,
0.04724840819835663,
-0.035660188645124435,
-0.06866959482431412,
-0.014194224029779434,
-0.06519491970539093,
0.05885453522205353,
0.0007248233305290341,
-0.04710512235760689,
0.009913568384945393,
0.03721841797232628,
-0.040334880352020264,
-0.027385449036955833,
0.03531988710165024,
-0.02104506455361843,
0.005803064443171024,
0.05301564931869507,
0.010218050330877304,
0.06763077527284622,
-0.02174358069896698,
0.021761491894721985,
-0.026758573949337006,
0.10409694164991379,
0.020454009994864464,
0.020436100661754608,
-0.07923690229654312,
-0.05344550684094429,
0.013173314742743969,
0.006394117139279842,
-0.012949430383741856,
-0.054591789841651917,
0.003994084428995848,
0.02794068120419979,
-0.0052299220114946365,
-0.02152865193784237,
0.029212338849902153,
0.023194346576929092,
0.035230331122875214,
-0.003060489660128951,
0.024268988519906998,
-0.0019097275799140334,
-0.02441227436065674,
0.019504744559526443,
0.02736753784120083,
-0.007822494953870773,
-0.015698721632361412,
0.0006699718651361763,
-0.01696142554283142,
0.03392285108566284,
-0.021188348531723022,
-0.03265119343996048,
-0.03797066956758499,
0.038543809205293655,
0.00824787374585867,
-0.016513658687472343,
0.07372041046619415,
-0.031218336895108223,
-0.04903947561979294,
-0.009779238142073154,
-0.054555971175432205,
0.0070792012847959995,
-0.03557063639163971,
-0.026060057803988457,
-0.00802399031817913,
-0.07103380560874939,
-0.031361620873212814,
-0.030913855880498886,
0.03334970772266388,
0.018806226551532745,
0.004157519433647394,
-0.009734461084008217,
0.056454502046108246,
-0.005588136147707701,
0.010424023494124413,
0.015859918668866158,
0.006407550070434809,
0.0036627366207540035,
0.056167930364608765,
-0.040334880352020264,
-0.03782738372683525,
0.018430102616548538,
-0.008561311289668083,
-0.09557145833969116,
0.00930460449308157,
-0.0731830894947052,
0.026507824659347534,
-0.052442505955696106,
-0.01597633771598339,
0.04606630280613899,
0.012474797666072845,
0.0170599352568388,
-0.0020989093463867903,
0.04706929996609688,
-0.03189894184470177,
-0.04352298378944397,
0.05480672046542168,
0.034531816840171814,
0.0031634760089218616,
-0.10015659034252167,
-0.01604798063635826,
0.009949389845132828,
0.003396315034478903,
0.00685084005817771,
-0.013003163039684296,
-0.0029060097876936197,
0.03462136909365654,
0.024089882150292397,
0.007294129580259323,
-0.015456927940249443,
0.016065891832113266,
-0.044848375022411346,
-0.046854373067617416,
-0.02747500315308571,
0.024340631440281868,
-0.07723090797662735,
0.022925686091184616,
-0.06343967467546463,
-0.06268742680549622,
-0.010182228870689869,
0.07766076177358627,
0.0047955880872905254,
-0.06139785423874855,
-0.04603048041462898,
0.03768409788608551,
-0.0040881154127418995,
0.02265702560544014,
0.009040421806275845,
0.013083760626614094,
0.04792901501059532,
-0.031540729105472565,
-0.058066464960575104,
0.03542735055088997,
-0.04130205512046814,
-0.036896027624607086,
-0.016943514347076416,
-0.021904777735471725,
-0.005328431259840727,
0.022298812866210938,
0.040513984858989716,
-0.001956743188202381,
0.00694039324298501,
0.018376370891928673,
0.07443683594465256,
-0.020740581676363945,
-0.05960678309202194,
0.006398594938218594,
-0.031254157423973083,
0.03404822573065758,
-0.015018115751445293,
-0.01446288451552391,
0.06598298996686935,
0.04219759255647659,
-0.006344862747937441,
0.054448504000902176,
0.07364876568317413,
0.009868791326880455,
0.015349463559687138,
0.00907624326646328,
0.03326015546917915,
-0.01756143383681774,
-0.003848560154438019,
0.0517260804772377,
0.03943934664130211,
0.018430102616548538,
-0.004573943093419075,
0.04320058971643448,
0.05967842787504196,
-0.04341552034020424,
0.013092716224491596,
-0.03297358378767967,
0.054555971175432205,
-0.01674649678170681,
0.042627450078725815,
-0.016934560611844063,
0.0453856959939003,
0.04814394190907478,
-0.005915006157010794,
0.044382695108652115,
0.03818559646606445,
-0.048609618097543716,
-0.00914788618683815,
-0.04173191264271736,
0.013621081598103046,
0.02980339154601097,
0.027242163196206093,
-0.060072463005781174,
-0.056275397539138794,
-0.06680688261985779,
-0.024340631440281868,
-0.03721841797232628,
-0.004952306393533945,
0.020221171900629997,
0.035409439355134964,
-0.01614648848772049,
-0.0358751155436039,
-0.006868750788271427,
0.0587470717728138,
-0.020525652915239334,
-0.04603048041462898,
0.04513494670391083,
-0.0024291377048939466,
0.08418025821447372,
-0.01903906650841236,
-0.02265702560544014,
0.0019936838652938604,
-0.0010847162920981646,
0.027313806116580963,
-0.03392285108566284,
-0.05337386205792427,
0.018268905580043793,
-0.011409111320972443,
-0.04355880245566368,
0.05158279463648796,
-0.01393451914191246,
-0.01243897620588541,
0.0058120195753872395,
0.023409275338053703,
0.06935019791126251,
-0.011346423998475075,
-0.0048627532087266445,
-0.006179188843816519,
0.023427186533808708,
0.030143694952130318,
0.0161823108792305,
0.029033232480287552,
-0.050543975085020065,
0.0027022757567465305,
-0.01597633771598339,
0.03607213497161865,
-0.017292773351073265,
-0.03275865688920021,
-0.03578556329011917,
-0.019379369914531708,
0.012716591358184814,
-0.05126040056347847,
0.035552725195884705,
-0.03986920043826103,
-0.027672020718455315,
-0.015412150882184505,
-0.005794108845293522,
-0.04101548716425896,
0.024107791483402252,
0.025415273383259773,
0.005055292975157499,
0.017615165561437607,
-0.048251405358314514,
-0.0035284063778817654,
-0.0033291499130427837,
0.0153046865016222,
0.017919648438692093,
-0.0286750178784132,
-0.02308688312768936,
-0.008315038867294788,
0.017668897286057472,
0.0048627532087266445,
0.048215582966804504,
0.025558557361364365,
-0.0478573702275753,
-0.03707513213157654,
0.004273938946425915,
-0.004256028216332197,
-0.013764367438852787,
0.0513678677380085,
-0.035839296877384186,
0.016415148973464966,
-0.0029306369833648205,
0.01625395379960537,
0.05416193604469299,
0.0005462761037051678,
-0.0436304472386837,
-0.02998249977827072,
0.0756547674536705,
0.07132037729024887,
0.010746415704488754,
-0.08783403784036636,
0.005180667620152235,
0.008243395946919918,
-0.052442505955696106,
-0.005001560784876347,
0.003304522717371583,
-0.019755493849515915,
0.003568705404177308,
-0.009044899605214596,
-0.060645606368780136,
0.020364457741379738,
0.012134494259953499,
-0.005950827617198229,
0.05788735672831535,
-0.015367373824119568,
0.0306093730032444,
0.02455556020140648,
-0.05971425026655197,
-0.010280737653374672,
0.0007320995791815221,
0.022460008040070534,
-0.02663319930434227,
-0.003969457000494003,
0.006344862747937441,
-0.017006201669573784,
-0.029194429516792297,
-0.03275865688920021,
-0.03746916726231575,
0.0330810509622097,
-0.05280072242021561,
-0.024824220687150955,
0.02838844805955887,
-0.023731667548418045,
-0.0021727909334003925,
-0.005749332252889872,
-0.0004242595168761909,
0.029713839292526245,
-0.00875832885503769,
0.030304891988635063,
0.04739169403910637,
0.013656903058290482,
0.050615616142749786,
-0.007835928350687027,
-0.03134371340274811,
-0.027134699746966362,
0.052335042506456375,
-0.06566059589385986,
0.014740499667823315,
-0.022012241184711456,
-0.004876186139881611,
-0.005820975173264742,
-0.06512327492237091,
0.006058291532099247,
-0.08969675004482269,
-0.009456845931708813,
-0.0204002782702446,
-0.01004789862781763,
-0.014185268431901932,
0.01878831721842289,
-0.04366626963019371,
-0.015716632828116417,
0.001224643550813198,
0.021313725039362907,
0.012931520119309425,
-0.02050774358212948,
-0.013227046467363834,
-0.08819224685430527,
0.0675591304898262,
-0.035839296877384186,
0.01169568207114935,
-0.022818222641944885,
-0.024018239229917526,
-0.048215582966804504,
0.0034522858913987875,
0.06634120643138885,
-0.017328595742583275,
-0.013021073304116726,
0.07450848072767258,
0.029266072437167168,
0.030179517343640327,
-0.04964844137430191,
-0.04509912431240082,
-0.006600090302526951,
-0.03557063639163971,
-0.044561803340911865,
0.033654190599918365,
0.024304809048771858,
0.020131617784500122,
-0.0035575113724917173,
0.01702411286532879,
0.008901613764464855,
0.02149283140897751,
0.04563644528388977,
-0.0024761531967669725,
-0.03531988710165024,
0.006649344693869352,
-0.012627038173377514,
-0.017337549477815628,
0.05573807656764984,
-0.036645278334617615,
-0.006371729075908661,
0.042233411222696304,
-0.012322556227445602,
0.03191685304045677,
-0.01621813140809536,
0.05294400826096535,
0.033690012991428375,
0.02747500315308571,
0.0026642156299203634,
0.0015974098350852728,
0.015600212849676609,
0.026615289971232414,
0.030233249068260193,
0.013988250866532326,
-0.04778572916984558,
-0.06383370608091354,
0.00367616955190897,
0.013047939166426659,
-0.026274986565113068,
-0.044096123427152634,
0.08525490015745163,
-0.004110503941774368,
-0.06111128255724907,
0.03458554670214653,
-0.013236002065241337,
0.020131617784500122,
0.007576222997158766,
0.0316661037504673,
-0.0025119746569544077,
0.021904777735471725,
-0.03068101592361927,
0.01483005378395319,
-0.029857125133275986,
0.0006358295795507729,
-0.00999416597187519,
-0.0675591304898262,
-0.009121020324528217,
0.025218255817890167,
0.012170315720140934,
0.013853920623660088,
-0.0038664706517010927,
0.024322720244526863,
0.012170315720140934,
0.05555896833539009,
0.052657436579465866,
-0.0016298730624839664,
0.04545733705163002,
-0.02072267048060894,
0.070353202521801,
-0.03725424036383629,
-0.02684812806546688,
0.0046075256541371346,
0.035982582718133926,
-0.031361620873212814,
0.007101589813828468,
-0.009492667391896248,
-0.020382368937134743,
-0.0035261674784123898,
-0.029749659821391106,
0.017471879720687866,
-0.012698681093752384,
-0.07500997930765152,
-0.01716739870607853,
-0.07372041046619415,
0.064729243516922,
0.013325555250048637,
0.001618678797967732,
0.02448391728103161,
0.03392285108566284,
-0.02828098274767399,
0.012591216713190079,
-0.020525652915239334,
-0.04946933314204216,
-0.006962781772017479,
0.07579804956912994,
0.03986920043826103,
-0.004450806882232428,
0.021259991452097893,
0.03433479741215706,
0.040119949728250504,
0.07128455489873886,
-0.0027425747830420732,
-0.005203056149184704,
0.005610524211078882,
-0.033224333077669144,
0.002961980877444148,
-0.017006201669573784,
0.06856212764978409,
0.011435977183282375,
0.0044105080887675285,
-0.03490794077515602,
-0.017570389434695244,
0.0023395842872560024,
0.032561637461185455
] |
20,848 | precession.precession | eval_chip |
Compute the effective precessing spin. The keyword `which` one of the following definitions:
- `heuristic`, as in Schmidt et al 2015. Required inputs are either
- `generalized`, retail all precession-timescale variations,
- `averaged` (default), averages over precession-timescale variations,
- `rms`, compute the root-mean-square average, which is faster to evaluate.
The required inputs are either (theta1,theta2,deltaphi,r,q,chi1,chi2) or (deltachi,kappa,chieff,r,q,chi1,chi2). In the latter case, deltachi can be omitted and will be resampled from its PN-weighted distribution.
Some inputs will be ignored for some of the chip definitions (for instance the heuristic chip does not depend on either r or deltaphi), but dummy values are still requested for code consistency.
The keywords arguments are only used for the `averaged` formulation and are passed to `precession_average`.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string, optional (default: "averaged")
Select function behavior.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="heuristic")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="generalized")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="averaged")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="rms")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="heuristic")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="generalized")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="averaged")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="rms")``
| def eval_chip(theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, r=None, chieff=None, q=None, chi1=None, chi2=None, which="averaged", **kwargs):
"""
Compute the effective precessing spin. The keyword `which` one of the following definitions:
- `heuristic`, as in Schmidt et al 2015. Required inputs are either
- `generalized`, retail all precession-timescale variations,
- `averaged` (default), averages over precession-timescale variations,
- `rms`, compute the root-mean-square average, which is faster to evaluate.
The required inputs are either (theta1,theta2,deltaphi,r,q,chi1,chi2) or (deltachi,kappa,chieff,r,q,chi1,chi2). In the latter case, deltachi can be omitted and will be resampled from its PN-weighted distribution.
Some inputs will be ignored for some of the chip definitions (for instance the heuristic chip does not depend on either r or deltaphi), but dummy values are still requested for code consistency.
The keywords arguments are only used for the `averaged` formulation and are passed to `precession_average`.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string, optional (default: "averaged")
Select function behavior.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="heuristic")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="generalized")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="averaged")``
``chip = precession.eval_chip(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2,which="rms")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="heuristic")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="generalized")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="averaged")``
``chip = precession.eval_chip(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,which="rms")``
"""
if r is None or q is None or chi1 is None or chi2 is None:
raise ValueError("Provide r, q, chi1, and chi2.")
if theta1 is not None and theta2 is not None and deltaphi is not None and deltachi is None and kappa is None and chieff is None:
deltachi, kappa, chieff = angles_to_conserved(theta1, theta2, deltaphi, r, q, chi1, chi2, full_output=False)
elif theta1 is None and theta2 is None and deltaphi is None and kappa is not None and chieff is not None:
if deltachi is None:
if which == 'heuristic' or which == 'generalized':
deltachi = deltachisampling(kappa, r, chieff, q, chi1, chi2)
theta1, theta2, deltaphi = conserved_to_angles(deltachi, kappa, r, chieff, q, chi1, chi2)
else:
raise ValueError("Provide either (theta1,theta2,deltaphi), (deltachi,kappa,chieff), or (kappa,chieff).")
if which == 'heuristic':
chip = eval_chip_heuristic(theta1, theta2, q, chi1, chi2)
elif which == 'generalized':
chip = eval_chip_generalized(theta1, theta2, deltaphi, q, chi1, chi2)
elif which == 'averaged':
chip_finite = eval_chip_averaged(kappa, r, chieff, q, chi1, chi2, **kwargs)
term1, term2 = chip_terms(theta1, theta2, q, chi1, chi2)
chip_infinity = 2* np.abs(term1+term2) * scipy.special.ellipe(4*term1*term2/(term1+term2)**2)/np.pi
chip = np.where(r!=np.inf, chip_finite, chip_infinity)
elif which == 'rms':
chip_finite = eval_chip_rms(kappa, r, chieff, q, chi1, chi2)
term1, term2 = chip_terms(theta1, theta2, q, chi1, chi2)
chip_infinity = (term1**2 + term2**2)**(1/2)
chip = np.where(r!=np.inf, chip_finite, chip_infinity)
else:
raise ValueError("`which` needs to be one of the following: `heuristic`, `generalized`, `averaged`, 'rms`.")
return chip
| (theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, r=None, chieff=None, q=None, chi1=None, chi2=None, which='averaged', **kwargs) | [
0.010187037289142609,
-0.019734926521778107,
0.03136742115020752,
-0.035929955542087555,
-0.005604837089776993,
-0.034002676606178284,
-0.024503953754901886,
-0.012773128226399422,
-0.04405204951763153,
0.0005915192305110395,
0.06269551068544388,
0.07689443230628967,
0.0031490332912653685,
0.05899828299880028,
-0.06021758168935776,
-0.035379305481910706,
-0.00752719771116972,
-0.013530272990465164,
-0.04476002976298332,
-0.0420854426920414,
-0.0051623499020934105,
-0.02422862872481346,
-0.022478345781564713,
0.04751328378915787,
-0.0041323378682136536,
0.055812377482652664,
0.04711996018886566,
-0.020826393738389015,
-0.07268588244915009,
-0.02845683880150318,
0.010334532707929611,
0.008594083599746227,
-0.029223816469311714,
0.011524330824613571,
-0.007301037665456533,
-0.026293568313121796,
0.04637265205383301,
0.04220343753695488,
-0.03355035558342934,
0.029990794137120247,
-0.05781831592321396,
-0.006538976449519396,
0.0022210394963622093,
-0.07166324555873871,
-0.06493744254112244,
0.009449558332562447,
-0.03927319124341011,
0.030403781682252884,
-0.0012057774001732469,
-0.04649064689874649,
0.025133268907666206,
-0.09030670672655106,
0.010393531061708927,
-0.023815639317035675,
-0.003881595330312848,
0.008215511217713356,
0.021495040506124496,
0.008304008282721043,
0.04833925887942314,
-0.053963761776685715,
0.04472069814801216,
0.029971128329634666,
0.04306874796748161,
0.023972969502210617,
0.017207833006978035,
0.00010386155918240547,
0.026195237413048744,
-0.0026696722488850355,
0.001039230148307979,
0.08165362477302551,
0.005678584799170494,
0.02173103392124176,
0.006755303591489792,
-0.06139754503965378,
0.0216917023062706,
-0.026096906512975693,
-0.037719570100307465,
0.00037304122815839946,
0.02352064847946167,
-0.04656931012868881,
-0.012920623645186424,
0.029459809884428978,
0.003372735111042857,
-0.05136783793568611,
-0.04531067982316017,
0.03134775534272194,
0.042596761137247086,
0.002282496076077223,
0.014395580627024174,
0.005260680336505175,
-0.031544413417577744,
-0.024346625432372093,
0.013412276282906532,
-0.014110422693192959,
0.08558684587478638,
0.04021716117858887,
0.005196765530854464,
-0.04295074939727783,
0.05612703412771225,
-0.04995188117027283,
0.02118038386106491,
0.02826017700135708,
0.014611908234655857,
-0.0013913761358708143,
0.015133059583604336,
-0.006445562466979027,
-0.034769654273986816,
0.10352232307195663,
0.03693292662501335,
-0.061790868639945984,
-0.08078831434249878,
-0.04055148735642433,
-0.04704129695892334,
-0.036460939794778824,
-0.044327378273010254,
-0.02120004966855049,
-0.05081718787550926,
0.034120675176382065,
-0.01263546571135521,
0.0007860292098484933,
-0.022714339196681976,
-0.017355328425765038,
-0.029184484854340553,
-0.009429892525076866,
-0.01443491317331791,
-0.0005484996363520622,
-0.012153645977377892,
0.046805303543806076,
-0.00967080146074295,
-0.02886982634663582,
-0.0011750491103157401,
-0.014061257243156433,
0.026765555143356323,
0.04389472305774689,
-0.026431230828166008,
-0.02291099913418293,
-0.000980231910943985,
-0.037719570100307465,
0.055222392082214355,
-0.003812764072790742,
0.0721745640039444,
-0.0007743524620309472,
-0.030600443482398987,
-0.00938072707504034,
0.04865391552448273,
0.008107347413897514,
0.040748149156570435,
-0.03559562936425209,
-0.025133268907666206,
0.024916941300034523,
-0.02647056244313717,
0.04051215574145317,
0.04271475598216057,
0.02652956172823906,
0.0679660215973854,
-0.032901376485824585,
0.012399472296237946,
-0.04220343753695488,
-0.0308364350348711,
-0.06273484230041504,
0.02163270302116871,
-0.0337863489985466,
0.0210427213460207,
0.044406041502952576,
0.003505481407046318,
0.023697644472122192,
-0.06544876098632812,
-0.0180928073823452,
0.052705131471157074,
0.04181011766195297,
-0.018584460020065308,
-0.047316621989011765,
-0.04267542436718941,
-0.031485415995121,
-0.03563496470451355,
0.018869617953896523,
-0.037070587277412415,
-0.07032595574855804,
-0.010501693934202194,
-0.05073852464556694,
-0.0300891250371933,
-0.0339830107986927,
-0.029774466529488564,
0.039017532020807266,
-0.0033112785313278437,
0.04719862714409828,
0.08991338312625885,
-0.04959788918495178,
0.01178982388228178,
-0.0002215508429799229,
0.0074288672767579556,
0.0004541638772934675,
-0.022714339196681976,
0.05919494479894638,
0.07150591909885406,
-0.027965186163783073,
0.05899828299880028,
0.03016778826713562,
0.024582616984844208,
0.05368843674659729,
-0.025546256452798843,
0.023736976087093353,
-0.007886103354394436,
0.019705425947904587,
-0.0007387076620943844,
-0.002996621187776327,
-0.019105611369013786,
0.04361939802765846,
-0.007954935543239117,
0.026765555143356323,
0.007891020737588406,
0.003333403030410409,
0.014995397068560123,
0.0004603095294442028,
0.012576467357575893,
0.022812670096755028,
0.07520314306020737,
-0.007522281259298325,
-0.04904723912477493,
-0.02411063201725483,
0.018417296931147575,
0.042557429522275925,
0.014375914819538593,
0.007178124506026506,
0.0336880199611187,
0.029302479699254036,
-0.02407129853963852,
0.03929285705089569,
0.019557930529117584,
-0.030934765934944153,
0.04601866006851196,
-0.04212477430701256,
0.007773023564368486,
-0.03451399505138397,
-0.01473973784595728,
0.007984434254467487,
-0.023874638602137566,
0.02780785784125328,
-0.033491358160972595,
0.025113603100180626,
-0.001007887301966548,
0.022812670096755028,
0.011848822236061096,
-0.046805303543806076,
-0.04031549394130707,
-0.02481861039996147,
0.03976484388113022,
0.009218481369316578,
-0.03335369750857353,
-0.025172600522637367,
0.06662872433662415,
-0.050935182720422745,
-0.007650110870599747,
-0.017719151452183723,
-0.03075777180492878,
-0.015103560872375965,
0.06717938184738159,
0.0016580976080149412,
0.0780743956565857,
-0.019715258851647377,
0.005236097611486912,
-0.0045232018455863,
-0.004324082285165787,
0.028555169701576233,
-0.04601866006851196,
-0.023146992549300194,
-0.023638645187020302,
0.02000041864812374,
-0.04570400342345238,
0.008746495470404625,
-0.039489518851041794,
0.04409138485789299,
-0.04169211909174919,
0.01263546571135521,
-0.0057474160566926,
0.009680635295808315,
0.04971588775515556,
0.027257205918431282,
0.01477906946092844,
-0.02100338786840439,
0.0012162249768152833,
0.0026008409913629293,
-0.0028663333505392075,
0.014159588143229485,
-0.014897066168487072,
-0.01331394538283348,
-0.00905623659491539,
0.021849030628800392,
0.07233189791440964,
0.0459793284535408,
0.0198922548443079,
0.04141679406166077,
0.013756432570517063,
-0.005002562887966633,
0.15095694363117218,
0.013176282867789268,
-0.04700196534395218,
-0.03864387422800064,
0.03693292662501335,
-0.030403781682252884,
0.014690572395920753,
-0.0017810106510296464,
-0.007959851995110512,
-0.03870287537574768,
0.0014405413530766964,
0.012379806488752365,
0.08063098788261414,
-0.03215406462550163,
-0.01930227130651474,
0.013136951252818108,
0.049676552414894104,
0.014110422693192959,
0.03494665026664734,
-0.002321828156709671,
0.010698355734348297,
-0.04593999683856964,
0.06816267967224121,
0.04216410592198372,
0.03750324249267578,
0.010373864322900772,
-0.01806330680847168,
0.020108580589294434,
-0.0013422109186649323,
0.040177829563617706,
0.034671325236558914,
-0.043737392872571945,
-0.037031255662441254,
-0.025565922260284424,
-0.02177036553621292,
-0.017640486359596252,
-0.04039415717124939,
0.05372776836156845,
0.02839783951640129,
0.02413029782474041,
0.03681492805480957,
0.03500564768910408,
-0.011534164659678936,
0.01631302572786808,
-0.046215321868658066,
-0.010639357380568981,
0.046175990253686905,
0.009080818854272366,
-0.00679463567212224,
0.012999288737773895,
0.01566404476761818,
-0.03431733325123787,
0.05018787086009979,
0.00787135399878025,
-0.0272375401109457,
-0.010737687349319458,
-0.017119335010647774,
0.013471274636685848,
0.06395413726568222,
0.04778860881924629,
0.04829992726445198,
0.03016778826713562,
-0.03606761619448662,
-0.012369973585009575,
0.01117034163326025,
-0.04271475598216057,
0.07917569577693939,
-0.02045273780822754,
-0.0008646936039440334,
0.04963722079992294,
-0.03850621357560158,
-0.01690300740301609,
-0.07225322723388672,
0.05364910513162613,
-0.03321603313088417,
-0.0399811714887619,
0.0013643353013321757,
-0.015870537608861923,
-0.03380601480603218,
-0.003323569893836975,
0.01750282384455204,
-0.0018498420249670744,
0.01637202315032482,
0.014248085208237171,
-0.029774466529488564,
-0.026293568313121796,
0.026293568313121796,
0.03085610270500183,
-0.052783798426389694,
0.02597890980541706,
-0.04212477430701256,
-0.011258838698267937,
-0.028496170416474342,
-0.006253818050026894,
0.06721871346235275,
-0.015319887548685074,
0.007797606289386749,
0.003660351736471057,
0.015477215871214867,
-0.0008843597024679184,
0.01626385934650898,
0.04601866006851196,
0.0435800664126873,
0.007748441305011511,
-0.07193857431411743,
-0.0386832058429718,
-0.004899315536022186,
-0.06304949522018433,
0.06285283714532852,
-0.00695196446031332,
0.02780785784125328,
-0.019174441695213318,
0.06076823174953461,
-0.017719151452183723,
-0.01808297447860241,
0.007748441305011511,
-0.025664253160357475,
-0.0015646836254745722,
-0.013235281221568584,
0.014257918111979961,
-0.0577789843082428,
-0.01052136067301035,
0.003431733464822173,
0.0284371729940176,
-0.010718021541833878,
0.038447216153144836,
0.03305870294570923,
-0.0638754740357399,
-0.038486547768116,
0.09219464659690857,
0.03217373043298721,
0.04043348878622055,
0.02833884209394455,
0.017787981778383255,
0.027335871011018753,
-0.011534164659678936,
-0.049676552414894104,
0.03736557811498642,
-0.015614879317581654,
0.011917653493583202,
-0.025565922260284424,
-0.035379305481910706,
-0.0027335870545357466,
0.0396861769258976,
0.04452403634786606,
-0.06308882683515549,
0.011357169598340988,
-0.014690572395920753,
0.0288894921541214,
-0.04456336796283722,
-0.07189924269914627,
-0.029263148084282875,
0.010049373842775822,
0.02767019532620907,
-0.08354157209396362,
-0.04169211909174919,
0.05486840382218361,
-0.009513473138213158,
0.0010890099219977856,
0.04747395217418671,
0.04271475598216057,
0.01297962199896574,
-0.015516548417508602,
0.03730658069252968,
-0.00559008726850152,
-0.019666094332933426,
0.024956272915005684,
0.07461316138505936,
0.03677559643983841,
0.01328444667160511,
0.010255868546664715,
0.05368843674659729,
0.0074288672767579556,
-0.011612828820943832,
0.013077952899038792,
-0.01576237380504608,
0.03691326081752777,
-0.013117284514009953,
0.006558642257004976,
0.03933218866586685,
-0.004965689033269882,
0.012281475588679314,
-0.004206086043268442,
0.04271475598216057,
-0.03325536474585533,
-0.05982425808906555,
-0.012045483104884624,
-0.061948198825120926,
-0.006863466929644346,
0.0013458983739838004,
0.02588058076798916,
-0.09471190720796585,
-0.04460270330309868,
-0.020157746970653534,
0.0031588664278388023,
-0.03789656236767769,
-0.0673760399222374,
0.002839292399585247,
0.02780785784125328,
-0.01202581636607647,
-0.06828068196773529,
0.0544750802218914,
0.05475040525197983,
-0.025152934715151787,
-0.00225791335105896,
-0.016086865216493607,
0.0090464036911726,
0.040059834718704224,
-0.02829951047897339,
0.003719350090250373,
0.01627369225025177,
0.010954014956951141,
0.017886312678456306,
0.02784718945622444,
-0.0016040158225223422,
0.030482446774840355,
0.0005638637812808156,
-0.08133896440267563,
0.1229524239897728,
-0.034140340983867645,
-0.006543892901390791,
-0.023382985964417458,
0.009257813915610313,
0.03372735157608986,
-0.04692330211400986,
-0.006863466929644346,
-0.003377651795744896,
0.03244905546307564,
0.03329469636082649,
0.011730825528502464,
0.05486840382218361,
-0.0114948321133852,
0.033589690923690796,
-0.07433784008026123,
0.02531026303768158,
-0.009636386297643185,
-0.022517677396535873,
-0.020983722060918808,
-0.009774048812687397,
0.032901376485824585,
-0.035969287157058716,
0.0086973300203681,
-0.019734926521778107,
-0.0518791563808918,
0.01179965678602457,
-0.07756307721138,
-0.016008200123906136,
-0.01927277259528637,
0.04354073107242584,
-0.023087995126843452,
0.03976484388113022,
-0.06804468482732773,
0.0017392202280461788,
-0.017139000818133354,
-0.022557010874152184,
0.0035546466242522,
-0.0216917023062706,
-0.03691326081752777,
0.00039024907164275646,
-0.031741075217723846,
0.05954893305897713,
0.03850621357560158,
0.03514331206679344,
-0.023874638602137566,
-0.007596028968691826,
0.022104689851403236,
-0.029813798144459724,
-0.045507341623306274,
0.01621469482779503,
-0.09534122794866562,
0.014375914819538593,
-0.007822188548743725,
-0.01235030684620142,
0.017876479774713516,
-0.02348131686449051,
-0.07276454567909241,
0.003699684049934149,
0.06902799010276794,
0.02599857747554779,
0.05911627784371376,
-0.07803506404161453,
0.023677976801991463,
0.018997447565197945,
-0.03419933840632439,
-0.017719151452183723,
-0.0216917023062706,
0.04535001516342163,
0.02711954340338707,
-0.0016335149994120002,
-0.1000610888004303,
0.02342231757938862,
0.04778860881924629,
-0.035929955542087555,
0.030384115874767303,
-0.030364450067281723,
-0.01631302572786808,
0.0411808006465435,
-0.0308364350348711,
-0.04904723912477493,
-0.042557429522275925,
-0.024995606392621994,
0.06190886348485947,
0.014356249012053013,
0.011268671602010727,
-0.0061849867925047874,
0.013097618706524372,
-0.07610778510570526,
-0.040669482201337814,
0.013136951252818108,
-0.049165233969688416,
0.03695259243249893,
0.031072428449988365,
-0.011976651847362518,
0.012743629515171051,
0.0024127839133143425,
-0.028220845386385918,
0.08165362477302551,
-0.020098747685551643,
0.026726221665740013,
0.003928302321583033,
-0.00783202238380909,
0.032803043723106384,
-0.008505585603415966,
-0.04625465348362923,
0.045507341623306274,
0.0003068218065891415,
-0.05738566443324089,
0.011543997563421726,
-0.02654922753572464,
-0.013815430924296379,
-0.045507341623306274,
-0.009896961972117424,
-0.03821122273802757,
-0.062970831990242,
-0.005383593495935202,
0.05199715495109558,
0.05730699747800827,
-0.03301937133073807,
0.059352271258831024,
0.01920394040644169,
-0.028732163831591606,
0.009257813915610313,
0.09990376234054565,
0.0058506629429757595,
-0.022026024758815765,
0.035280972719192505,
-0.026824552565813065,
0.032350726425647736,
-0.018328800797462463,
0.010373864322900772,
0.004301958251744509,
-0.06525210291147232,
-0.03480898588895798,
-0.007448533084243536,
0.018240302801132202,
-0.0002329202980035916,
-0.03579229116439819,
-0.0032916124910116196,
-0.03565463051199913,
-0.03272438049316406,
-0.02468094788491726,
-0.0518791563808918,
0.03604795038700104,
0.0036382274702191353,
-0.0210427213460207,
0.020747728645801544,
0.027552198618650436,
0.0764617770910263,
0.02711954340338707,
0.016401521861553192,
-0.04224276915192604,
-0.03156408295035362,
0.0360872820019722,
-0.01816163770854473,
-0.02171136811375618,
0.04570400342345238,
0.005186932161450386,
-0.05003054440021515,
0.007625528145581484,
-0.027630861848592758,
0.022714339196681976,
0.006204652599990368,
-0.022478345781564713,
0.01920394040644169,
-0.021927695721387863,
0.03730658069252968,
0.06670739501714706,
0.050305869430303574,
-0.01328444667160511,
0.013815430924296379,
0.05844763293862343,
0.0336880199611187,
0.03573329374194145,
0.010688521899282932,
-0.04444537311792374,
-0.028712498024106026,
0.012045483104884624,
0.004717404488474131,
-0.01697183959186077,
-0.027021214365959167,
0.019174441695213318,
-0.04590066522359848,
-0.09998242557048798,
-0.044327378273010254,
0.025506924837827682,
-0.02243901416659355,
0.043029412627220154,
0.043147411197423935,
-0.009783881716430187,
-0.0006342315464280546,
-0.06021758168935776,
0.0084711704403162,
-0.030344784259796143,
-0.023028995841741562,
0.033511023968458176,
-0.06375747919082642,
-0.0020661689341068268,
0.020334741100668907,
-0.026667224243283272,
0.0084711704403162,
-0.00876124482601881,
-0.00939055997878313,
0.01119000744074583,
0.02409096620976925,
0.04932256415486336,
-0.01390392892062664,
0.049755219370126724,
-0.04696263372898102,
0.03870287537574768,
-0.02767019532620907,
-0.03990250453352928,
0.04420937970280647,
0.02485794387757778,
-0.03805389255285263,
0.05006987601518631,
-0.00421837717294693,
-0.035280972719192505,
-0.009710134007036686,
-0.026863884180784225,
-0.02896815724670887,
0.03372735157608986,
-0.09864512830972672,
0.04267542436718941,
-0.01821080408990383,
0.03691326081752777,
-0.026785220950841904,
-0.06273484230041504,
-0.018368132412433624,
0.009916627779603004,
-0.02485794387757778,
0.011966818012297153,
0.019567763432860374,
-0.0013569605071097612,
-0.029086153954267502,
0.026273902505636215,
0.03203606605529785,
0.0028515837620943785,
0.01935143768787384,
0.06521277129650116,
-0.009892045520246029,
0.044248711317777634,
-0.0071830409578979015,
-0.04271475598216057,
0.023382985964417458,
-0.03673626482486725,
0.01445457898080349,
0.004031549207866192,
0.012074981816112995,
0.03575295954942703,
0.019597262144088745,
0.014956064522266388,
-0.02053140290081501,
-0.02481861039996147,
0.021908029913902283
] |
20,849 | precession.precession | eval_chip_averaged |
Averaged definition of the effective precessing spin, see arxiv:2011.11948.
Additional keywords arguments are passed to `precession_average`.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_averaged(kappa,r,chieff,q,chi1,chi2)``
| def eval_chip_averaged(kappa, r, chieff, q, chi1, chi2, **kwargs):
"""
Averaged definition of the effective precessing spin, see arxiv:2011.11948.
Additional keywords arguments are passed to `precession_average`.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_averaged(kappa,r,chieff,q,chi1,chi2)``
"""
def _integrand(deltachi, kappa, r, chieff, q, chi1, chi2):
theta1, theta2, deltaphi = conserved_to_angles(deltachi, kappa, r, chieff, q, chi1, chi2)
chip_integrand = eval_chip_generalized(theta1, theta2, deltaphi, q, chi1, chi2)
return chip_integrand
chip = precession_average(kappa, r, chieff, q, chi1, chi2, _integrand, kappa, r, chieff, q, chi1, chi2, **kwargs)
return chip
| (kappa, r, chieff, q, chi1, chi2, **kwargs) | [
0.0031557604670524597,
-0.019365431740880013,
-0.0006039860309101641,
0.01826695166528225,
0.038219500333070755,
-0.006657163146883249,
-0.004737191833555698,
-0.04636339843273163,
-0.00200046319514513,
0.010719642043113708,
0.0581815205514431,
0.025738505646586418,
0.007713028695434332,
0.04545431211590767,
-0.05708304047584534,
-0.043901290744543076,
-0.005667584482580423,
0.024526389315724373,
-0.050870951265096664,
-0.0581815205514431,
-0.007547310087829828,
-0.07583294808864594,
-0.06886328756809235,
0.010009418241679668,
0.014820000156760216,
0.060681506991386414,
0.04704521596431732,
-0.014176064170897007,
-0.0404922179877758,
-0.03465891256928444,
0.03695056959986687,
-0.005123079754412174,
-0.0015802476555109024,
0.03710208460688591,
0.03520815446972847,
-0.06814359128475189,
0.012632511556148529,
-0.0018596022855490446,
-0.055681534111499786,
0.008049201220273972,
-0.034999821335077286,
0.0002522773575037718,
0.017935514450073242,
-0.04325735569000244,
-0.04018918797373772,
0.010426083579659462,
0.0029403259977698326,
0.035435426980257034,
0.03380664438009262,
-0.030340753495693207,
-0.024469571188092232,
-0.061704229563474655,
0.0035250766668468714,
-0.01828589104115963,
0.00958328414708376,
0.059886056929826736,
0.014223412610590458,
-0.02628774382174015,
0.02106049843132496,
-0.06662844866514206,
0.04613612964749336,
-0.01601317524909973,
0.09946919232606888,
0.00914768036454916,
0.0031320862472057343,
-0.022196857258677483,
-0.0011209696531295776,
0.0025757444091141224,
-0.018484754487872124,
0.047158848494291306,
-0.007177993655204773,
0.007589923217892647,
0.02397715114057064,
-0.05594668537378311,
-0.004924217239022255,
-0.005094671156257391,
-0.06488603353500366,
0.015710147097706795,
0.044317957013845444,
-0.014223412610590458,
-0.032102108001708984,
-0.028314249590039253,
-0.008598441258072853,
-0.019564293324947357,
-0.03791647404432297,
0.03051120787858963,
-0.025643808767199516,
-0.041969481855630875,
-0.020549137145280838,
0.010662823915481567,
0.028390007093548775,
0.017443092539906502,
-0.00292848888784647,
-0.005217776168137789,
0.08075716346502304,
0.023200638592243195,
-0.004502817988395691,
-0.05435578152537346,
0.04655279219150543,
-0.008579501882195473,
0.028465764597058296,
0.02630668319761753,
0.017253700643777847,
-0.04564370587468147,
0.03520815446972847,
-0.018986646085977554,
-0.025890018790960312,
0.06818147003650665,
0.04833308607339859,
-0.027026377618312836,
-0.05075731500983238,
-0.05545426160097122,
-0.06060574948787689,
-0.026969559490680695,
-0.0741284117102623,
-0.03244301676750183,
-0.0037831247318536043,
0.05015125870704651,
0.01106054987758398,
-0.004325261805206537,
0.012272664345800877,
-0.04511340707540512,
-0.009677981026470661,
0.04655279219150543,
-0.0128787225112319,
0.011439335532486439,
0.00599428778514266,
0.022329431027173996,
-0.03573845326900482,
-0.01873096451163292,
-0.017177943140268326,
0.014015080407261848,
0.03058696538209915,
-0.05306791141629219,
-0.0035298115108162165,
-0.026458198204636574,
0.039204344153404236,
-0.03511345759034157,
0.031704384833574295,
-0.014157124795019627,
0.06481027603149414,
0.015274543315172195,
-0.010700702667236328,
0.0022987572010606527,
0.01776506006717682,
-0.006287846714258194,
0.053787603974342346,
0.022916549816727638,
-0.0009659041534177959,
0.03696950897574425,
0.017177943140268326,
0.08780258148908615,
0.049961864948272705,
0.02964000031352043,
0.09984797239303589,
-0.02013247273862362,
0.017670365050435066,
-0.05299215391278267,
-0.023711999878287315,
-0.09272679686546326,
-0.029355911538004875,
-0.006055840291082859,
0.01696014031767845,
0.042575541883707047,
0.017035897821187973,
0.03507557883858681,
-0.03696950897574425,
-0.0023614936508238316,
-0.004853195045143366,
0.007826664485037327,
-0.00822912435978651,
-0.05075731500983238,
-0.006832351442426443,
-0.016609763726592064,
-0.014980983920395374,
0.049886107444763184,
-0.07556779682636261,
-0.0545072965323925,
0.016107872128486633,
-0.027121074497699738,
-0.032083168625831604,
-0.022158978506922722,
-0.028484703972935677,
0.009981010109186172,
-0.004318160004913807,
0.011221533641219139,
0.04912853613495827,
-0.03185589984059334,
0.04367401823401451,
0.0027533003594726324,
0.03153393045067787,
-0.010909034870564938,
-0.00518463272601366,
0.05689365044236183,
0.03134453669190407,
-0.0601133294403553,
0.03320058807730675,
0.02676122635602951,
0.03939373791217804,
0.10181766003370285,
-0.027424102649092674,
0.01217796839773655,
-0.013437431305646896,
0.012395770289003849,
0.045833099633455276,
-0.013996141031384468,
-0.020927922800183296,
0.029753636568784714,
-0.030151361599564552,
0.025416536256670952,
-0.0011120918206870556,
-0.007911891676485538,
0.031136205419898033,
0.025681687518954277,
0.02119307406246662,
0.02160973846912384,
0.10492371022701263,
0.0012334217317402363,
-0.018986646085977554,
-0.009455444291234016,
-0.02151504158973694,
0.020018836483359337,
-0.004244769923388958,
-0.016051054000854492,
0.05719667673110962,
-0.009280255995690823,
-0.015151437371969223,
0.02350366860628128,
-0.03229150176048279,
-0.023787757381796837,
0.019526414573192596,
-0.034999821335077286,
-0.04647703468799591,
-0.026477137580513954,
-0.0037286742590367794,
0.048598237335681915,
-0.004213993437588215,
0.004488613456487656,
-0.029336972162127495,
0.026855923235416412,
0.030189240351319313,
0.013939322903752327,
0.0059090605936944485,
-0.014905227348208427,
-0.052423976361751556,
-0.07825717329978943,
0.03647708520293236,
0.047613393515348434,
-0.03009454347193241,
0.00940336100757122,
0.04121191054582596,
-0.01828589104115963,
-0.010208280757069588,
0.043901290744543076,
-0.048030056059360504,
0.029867270961403847,
0.07984808087348938,
0.027121074497699738,
0.058484550565481186,
-0.01729157753288746,
0.0026893801987171173,
-0.0002957785618491471,
0.022897610440850258,
0.0025094568263739347,
-0.01821013353765011,
0.017035897821187973,
0.00911927130073309,
0.0064346264116466045,
-0.004398651886731386,
0.026969559490680695,
-0.08113595098257065,
0.04443158954381943,
-0.03316270932555199,
-0.01267039030790329,
-0.026855923235416412,
0.022783974185585976,
0.03515133634209633,
0.027083195745944977,
-0.014015080407261848,
-0.017670365050435066,
0.0112594123929739,
-0.03041651099920273,
-0.032121047377586365,
0.030814236029982567,
-0.010407144203782082,
-0.0202461089938879,
0.023787757381796837,
0.029318032786250114,
0.121969074010849,
0.01602264493703842,
0.034545280039310455,
0.02386351488530636,
0.0317990817129612,
-0.02907182089984417,
0.132802352309227,
0.028768792748451233,
-0.0637875497341156,
-0.03371194750070572,
-0.008887264877557755,
-0.002304675756022334,
0.050833072513341904,
0.0005001157987862825,
0.0011233370751142502,
-0.043484628200531006,
0.008451661095023155,
0.018077559769153595,
0.07291629165410995,
0.021439284086227417,
-0.052310340106487274,
-0.015587042085826397,
0.00541190430521965,
0.0068560256622731686,
0.0011748282704502344,
-0.014668486081063747,
-0.053749725222587585,
-0.07318144291639328,
0.0618557445704937,
0.01598476618528366,
0.05488608404994011,
0.0024621086195111275,
0.000022712360078003258,
0.010018887929618359,
0.025568051263689995,
0.05439366027712822,
0.04556794837117195,
-0.038730863481760025,
-0.031647566705942154,
0.0011428681900724769,
-0.01170448586344719,
-0.008825712837278843,
-0.06837086379528046,
0.07090872526168823,
-0.01775559037923813,
0.04973459616303444,
-0.013039706274867058,
-0.00914768036454916,
-0.018551042303442955,
-0.023333214223384857,
-0.06106029450893402,
-0.004836623091250658,
-0.0006232212763279676,
0.008271737955510616,
-0.012821904383599758,
0.0187499038875103,
0.007376856170594692,
-0.015009392984211445,
0.025643808767199516,
0.0004743702011182904,
-0.033617254346609116,
-0.01011358480900526,
-0.023787757381796837,
-0.03721572086215019,
0.04450734704732895,
0.07189357280731201,
0.02583320066332817,
0.04916641488671303,
-0.0206817127764225,
-0.0257574450224638,
-0.0013600783422589302,
-0.07439356297254562,
0.08969651162624359,
-0.03049226850271225,
0.018200663849711418,
0.04446946829557419,
0.0004646046436391771,
0.03950737416744232,
-0.09643889963626862,
0.021799130365252495,
-0.0450376495718956,
-0.031155144795775414,
-0.005918530281633139,
-0.002615990350022912,
-0.0225188247859478,
0.009479118511080742,
0.028049098327755928,
0.008205450139939785,
-0.0033877668902277946,
-0.01153403241187334,
-0.012982888147234917,
0.009521732106804848,
0.01173289492726326,
0.03185589984059334,
-0.028825610876083374,
0.004303955473005772,
0.0007214688812382519,
0.004116929601877928,
-0.027973342686891556,
-0.04647703468799591,
0.04075736925005913,
-0.004718252457678318,
-0.0158995408564806,
-0.0031889041420072317,
-0.012547284364700317,
-0.03801117092370987,
-0.02306806482374668,
0.01593741774559021,
0.031079387292265892,
-0.031628627330064774,
-0.08545410633087158,
-0.016098402440547943,
-0.026401380077004433,
-0.02249988541007042,
0.03696950897574425,
-0.027499860152602196,
0.021325647830963135,
-0.03443164378404617,
-0.009294460527598858,
-0.0441664420068264,
-0.020321866497397423,
0.010160933248698711,
0.007258485537022352,
0.017244230955839157,
-0.02299230732023716,
0.04655279219150543,
-0.026533955708146095,
-0.004857929889112711,
-0.013191220350563526,
-0.07181781530380249,
-0.05390124022960663,
0.05590880662202835,
0.04181796684861183,
-0.03761344403028488,
-0.0601133294403553,
0.058825455605983734,
0.03187483549118042,
0.01101320143789053,
0.006074779666960239,
-0.0019318083068355918,
0.03236725926399231,
-0.03710208460688591,
-0.020056715235114098,
0.022367309778928757,
-0.05196943134069443,
0.06356028467416763,
-0.04469674080610275,
-0.03251877427101135,
0.005596562288701534,
0.05071943625807762,
0.07356023043394089,
-0.056590620428323746,
-0.01685597375035286,
0.007528370711952448,
0.06321937590837479,
-0.03340892121195793,
-0.06416633725166321,
-0.03626875579357147,
0.011657137423753738,
0.02106049843132496,
-0.07984808087348938,
-0.041590698063373566,
0.04284068942070007,
-0.006254702806472778,
-0.005104140378534794,
0.05102246627211571,
0.04087100178003311,
0.022802913561463356,
-0.008110754191875458,
-0.010909034870564938,
0.019924141466617584,
0.02342791110277176,
0.04428007826209068,
0.07390113919973373,
-0.0021105478517711163,
0.0027154218405485153,
0.03003772534430027,
0.0515148900449276,
0.021704435348510742,
-0.009445974603295326,
-0.012727207504212856,
-0.041363425552845,
0.08386320620775223,
-0.032139986753463745,
0.016998019069433212,
0.021723374724388123,
-0.012746146880090237,
0.03882556036114693,
-0.00504732271656394,
0.05219670385122299,
0.017452562227845192,
-0.0318937748670578,
-0.010681763291358948,
-0.015056741423904896,
0.0014713467098772526,
0.039242222905159,
0.016098402440547943,
-0.004962095990777016,
-0.022272612899541855,
0.0020454442128539085,
0.02441275492310524,
-0.007140114903450012,
-0.02768925204873085,
-0.009924191981554031,
0.034090735018253326,
0.04170433431863785,
-0.07439356297254562,
-0.008300147019326687,
0.06390118598937988,
0.024033967405557632,
0.019564293324947357,
0.01923285610973835,
-0.0013529760763049126,
0.007684619631618261,
-0.0374998077750206,
-0.01602264493703842,
0.015388178639113903,
0.008361699990928173,
-0.0022253673523664474,
0.027424102649092674,
0.021685495972633362,
0.030624844133853912,
-0.002502354560419917,
-0.06022696569561958,
0.10545400530099869,
-0.006709245964884758,
0.012575693428516388,
-0.05897697061300278,
0.006912843324244022,
0.055151235312223434,
-0.01919497735798359,
-0.0057386071421206,
0.031249839812517166,
0.006003757007420063,
0.025643808767199516,
0.023636242374777794,
0.007291629444807768,
0.001822907361201942,
0.053673967719078064,
-0.053749725222587585,
0.0026017860509455204,
-0.012708268128335476,
-0.052802760154008865,
0.004064846783876419,
0.014876818284392357,
0.027443042024970055,
-0.044355835765600204,
0.013361673802137375,
-0.01149615366011858,
-0.05356033146381378,
-0.008906204253435135,
-0.04462098330259323,
-0.018172256648540497,
-0.02352260798215866,
0.032196804881095886,
0.0007605311693623662,
0.04371189698576927,
-0.01127835176885128,
-0.029867270961403847,
-0.059734541922807693,
-0.024564268067479134,
-0.03645814582705498,
-0.014744242653250694,
-0.030833175405859947,
0.00304685952141881,
0.0206817127764225,
0.06056787446141243,
0.08052989095449448,
0.016657112166285515,
-0.07969656586647034,
-0.025605930015444756,
-0.01177077367901802,
-0.011335168965160847,
-0.034488461911678314,
0.041628576815128326,
-0.09257528185844421,
0.0004063071100972593,
-0.017594607546925545,
0.00655773188918829,
0.026382440701127052,
-0.058863334357738495,
-0.08204503357410431,
-0.02159079909324646,
0.03367406874895096,
0.05549214035272598,
0.04534067586064339,
-0.0683329850435257,
0.06886328756809235,
0.03905282914638519,
-0.09575708955526352,
-0.00551133556291461,
-0.03128771856427193,
0.044355835765600204,
-0.022234734147787094,
0.008726281113922596,
-0.08318139612674713,
-0.0038636166136711836,
0.04613612964749336,
-0.05435578152537346,
0.03600360453128815,
-0.007031213957816362,
-0.007211137562990189,
0.018996115773916245,
-0.025643808767199516,
-0.08954499661922455,
-0.054658811539411545,
-0.014119246043264866,
0.0045312270522117615,
0.01197910588234663,
-0.0006528138765133917,
-0.01826695166528225,
-0.013825686648488045,
-0.054658811539411545,
-0.04640127718448639,
0.024943053722381592,
-0.0248862374573946,
0.01101320143789053,
0.025965776294469833,
0.002611255506053567,
0.03931798040866852,
0.006931782700121403,
-0.007376856170594692,
0.014498031698167324,
-0.01265145093202591,
0.01593741774559021,
0.04333311319351196,
0.016069993376731873,
0.06655269116163254,
-0.022386249154806137,
-0.04874975234270096,
0.04632551968097687,
0.06628753989934921,
-0.03416649252176285,
-0.0016998018836602569,
-0.030302874743938446,
0.0025852140970528126,
-0.007334243040531874,
-0.04594673588871956,
-0.004379712510854006,
-0.07594658434391022,
-0.02768925204873085,
0.029886210337281227,
0.032651349902153015,
0.009782146662473679,
0.09310558438301086,
-0.028427885845303535,
-0.014062427915632725,
0.006988600827753544,
0.09386315941810608,
0.04613612964749336,
-0.047158848494291306,
-0.016524536535143852,
-0.028276370838284492,
-0.001421630964614451,
-0.05852242931723595,
-0.0015340830432251096,
0.01601317524909973,
-0.047120969742536545,
-0.050870951265096664,
-0.021439284086227417,
0.02719683013856411,
0.018986646085977554,
0.008745220489799976,
-0.054658811539411545,
-0.02151504158973694,
0.014412805438041687,
-0.05833303555846214,
0.005838038399815559,
0.055643655359745026,
0.00526512460783124,
-0.04037858173251152,
-0.0017080878606066108,
-0.021230952814221382,
0.049090657383203506,
-0.03346573933959007,
0.025700626894831657,
0.012784025631844997,
-0.015170376747846603,
0.0038541469257324934,
-0.00468274112790823,
-0.012367361225187778,
0.05132549628615379,
0.0050189136527478695,
-0.02214003913104534,
0.003198373829945922,
-0.015104089863598347,
0.0007096317713148892,
-0.018863540142774582,
0.014337047934532166,
0.031704384833574295,
-0.03185589984059334,
0.019355962052941322,
0.0411740317940712,
0.04556794837117195,
0.021212013438344002,
0.012016983702778816,
0.05071943625807762,
0.009256581775844097,
0.021704435348510742,
0.0216476172208786,
-0.03249983489513397,
-0.04443158954381943,
0.002587581519037485,
0.006534057669341564,
-0.01173289492726326,
-0.050492167472839355,
-0.02214003913104534,
-0.06329513341188431,
-0.058939091861248016,
-0.026552895084023476,
0.012717737816274166,
-0.03200741112232208,
0.03011348284780979,
0.05632546916604042,
0.02670440822839737,
-0.013304856605827808,
-0.060302723199129105,
0.006950722075998783,
-0.03520815446972847,
-0.013427961617708206,
-0.010160933248698711,
-0.03670435771346092,
-0.0006001389701850712,
0.03522709384560585,
-0.03984828293323517,
0.050416409969329834,
0.02115519531071186,
0.009734799154102802,
0.0035889968276023865,
-0.021439284086227417,
0.027878645807504654,
0.009417565539479256,
0.02162867784500122,
-0.010719642043113708,
0.022234734147787094,
-0.030340753495693207,
-0.05003762245178223,
0.00574807683005929,
0.06507542729377747,
-0.012007514014840126,
0.04549219086766243,
0.009696920402348042,
0.005350351333618164,
-0.01641090027987957,
-0.0042021567933261395,
-0.003380664624273777,
0.044886134564876556,
-0.05545426160097122,
-0.012689328752458096,
-0.03054908663034439,
0.10386310517787933,
-0.009199763648211956,
-0.009100331924855709,
0.004687475971877575,
-0.011174185201525688,
-0.03746192902326584,
0.03573845326900482,
-0.007845603860914707,
-0.017159003764390945,
-0.012594632804393768,
0.04613612964749336,
0.00598481809720397,
-0.0046022492460906506,
0.07124963402748108,
0.05678001418709755,
0.00935601256787777,
0.05530274659395218,
-0.021855948492884636,
-0.012840843759477139,
-0.05128761753439903,
-0.016259387135505676,
0.004121664445847273,
-0.00028497722814790905,
-0.014990453608334064,
-0.0047869072295725346,
0.02772713080048561,
0.041628576815128326,
0.0023401868529617786,
-0.0025118242483586073,
0.013418491929769516
] |
20,850 | precession.precession | eval_chip_generalized |
Generalized definition of the effective precessing spin chip, see arxiv:2011.11948. This definition retains all variations on the precession timescale.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_generalized(theta1,theta2,deltaphi,q,chi1,chi2)``
| def eval_chip_generalized(theta1, theta2, deltaphi, q, chi1, chi2):
"""
Generalized definition of the effective precessing spin chip, see arxiv:2011.11948. This definition retains all variations on the precession timescale.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_generalized(theta1,theta2,deltaphi,q,chi1,chi2)``
"""
term1, term2 = chip_terms(theta1, theta2, q, chi1, chi2)
chip = (term1**2 + term2**2 + 2*term1*term2*np.cos(deltaphi))**0.5
return chip
| (theta1, theta2, deltaphi, q, chi1, chi2) | [
0.005391038488596678,
-0.0010693937074393034,
0.03423845022916794,
-0.03350655362010002,
0.009746711701154709,
-0.01504849549382925,
-0.004132534377276897,
-0.03709463030099869,
-0.04280698671936989,
-0.00655136164277792,
0.0895412266254425,
0.06669178605079651,
-0.01992185041308403,
0.06533510237932205,
-0.0739036425948143,
-0.054410215467214584,
-0.01108554657548666,
-0.05740920454263687,
-0.05230378359556198,
-0.07158299535512924,
0.014039906673133373,
-0.006180950906127691,
0.005605251993983984,
0.02440248243510723,
-0.012656444683670998,
0.0510542057454586,
0.021492749452590942,
-0.0300969909876585,
-0.08047285676002502,
-0.061122238636016846,
0.020261023193597794,
0.012727849185466766,
-0.0334351509809494,
0.03977229818701744,
0.013209830038249493,
-0.017074597999453545,
0.024866610765457153,
0.03306027501821518,
-0.04052204638719559,
0.04712696000933647,
-0.04766249284148216,
0.0038536107167601585,
0.013254457153379917,
-0.07333240658044815,
-0.03755876049399376,
0.0193327646702528,
-0.017386991530656815,
0.04105757921934128,
-0.008510521613061428,
-0.014941388741135597,
0.026865936815738678,
-0.08982684463262558,
-0.011621079407632351,
-0.051411230117082596,
-0.035577286034822464,
0.004277574829757214,
0.033827874809503555,
0.011272982694208622,
0.016039231792092323,
-0.033881429582834244,
0.012308347970247269,
0.005721284542232752,
0.01575361378490925,
0.01642303168773651,
-0.0010615838691592216,
0.0008094367804005742,
0.03927246481180191,
0.0009756753570400178,
0.0017717237351462245,
0.07404644787311554,
-0.010960588231682777,
0.030864588916301727,
-0.013584703207015991,
-0.06997639685869217,
0.025134379044175148,
0.023170754313468933,
-0.033256638795137405,
0.008095483295619488,
0.06451395153999329,
-0.034309856593608856,
-0.05858737975358963,
0.012433305382728577,
0.020867960527539253,
-0.0580875463783741,
-0.03873693197965622,
0.03812999650835991,
0.02782989852130413,
-0.008448042906820774,
0.0010203031124547124,
-0.028240473940968513,
-0.021403493359684944,
-0.02504512295126915,
0.011844218708574772,
-0.002508082427084446,
0.1024654358625412,
0.022510264068841934,
-0.021314239129424095,
-0.005011702422052622,
0.03341729938983917,
-0.054910048842430115,
0.032738957554101944,
0.026901639997959137,
-0.0010470798006281257,
-0.029900627210736275,
0.02956145629286766,
-0.01368288416415453,
-0.03145367652177811,
0.086470827460289,
0.03684471547603607,
-0.05030445754528046,
-0.07533173263072968,
-0.06194338947534561,
-0.03525596484541893,
-0.04934049770236015,
-0.049840331077575684,
-0.007542098872363567,
-0.044020865112543106,
0.03984370082616806,
0.028597496449947357,
-0.02852609194815159,
-0.021314239129424095,
-0.01684253290295601,
-0.015521549619734287,
0.02843683585524559,
-0.028579644858837128,
0.000561473541893065,
-0.0031261774711310863,
0.02515222877264023,
-0.03680901229381561,
-0.049161989241838455,
0.009470019489526749,
0.002211307641118765,
0.04616300016641617,
0.047448281198740005,
-0.018011780455708504,
-0.02784774824976921,
-0.007189538795500994,
-0.033345893025398254,
0.06747724115848541,
0.024795208126306534,
0.052089571952819824,
0.0159946046769619,
-0.038344208151102066,
0.0096663823351264,
0.037344545125961304,
0.02327786199748516,
0.037772972136735916,
-0.020261023193597794,
-0.05362476781010628,
0.014932462945580482,
-0.05283932015299797,
0.0592300184071064,
0.1073923408985138,
-0.006163099780678749,
0.08861296623945236,
-0.025705615058541298,
0.022313902154564857,
-0.03809429332613945,
-0.03584505245089531,
-0.06404982507228851,
0.0024880000855773687,
0.006024753209203482,
-0.009175476618111134,
0.04891207069158554,
0.03862982615828514,
0.010755300521850586,
-0.01869012415409088,
-0.0603724904358387,
0.03684471547603607,
0.031096652150154114,
-0.03486324101686478,
-0.04509193077683449,
-0.007194001693278551,
-0.041307494044303894,
-0.005301782861351967,
0.005694507621228695,
-0.04787670820951462,
-0.03248903900384903,
-0.01479857973754406,
-0.058837294578552246,
-0.0069128465838730335,
-0.01885078474879265,
-0.037308841943740845,
0.046377211809158325,
0.0038022887893021107,
0.07747386395931244,
0.08489993214607239,
-0.015235931612551212,
0.03341729938983917,
-0.020314576104283333,
0.028294026851654053,
0.013843544758856297,
-0.03680901229381561,
0.04248566925525665,
0.08104409277439117,
-0.024295376613736153,
0.0233314149081707,
0.0170478206127882,
0.0017003192333504558,
0.09175476431846619,
-0.015039569698274136,
0.04848364368081093,
-0.011746037751436234,
0.01767260953783989,
0.03364936262369156,
-0.00031602062517777085,
-0.026419660076498985,
0.03486324101686478,
-0.028829559683799744,
0.005315171089023352,
0.02211753837764263,
0.012156613171100616,
0.00639070151373744,
0.019564827904105186,
-0.000246150215389207,
0.029900627210736275,
0.021760515868663788,
-0.02893666736781597,
-0.05730209872126579,
-0.03189995512366295,
0.04730547219514847,
0.0445563979446888,
0.034988198429346085,
-0.008140111342072487,
0.03477398306131363,
0.026562469080090523,
-0.027758494019508362,
0.025884125381708145,
-0.003898238530382514,
-0.026401808485388756,
0.036666203290224075,
-0.0535176619887352,
0.007899121381342411,
-0.032703254371881485,
0.02900807186961174,
0.0233314149081707,
-0.013807842507958412,
0.022010432556271553,
-0.00964853074401617,
0.05458872765302658,
-0.017922526225447655,
0.019029295071959496,
-0.01450403593480587,
0.0006961937178857625,
-0.038379911333322525,
-0.04319971427321434,
0.010121585801243782,
0.0035769185051321983,
-0.010550012812018394,
-0.0019881685730069876,
0.017003193497657776,
-0.0535176619887352,
-0.023724140599370003,
-0.0006699748919345438,
0.0007017722236923873,
0.008581926114857197,
0.02049308642745018,
-0.017226330935955048,
0.04045064002275467,
-0.01251363568007946,
-0.014066683128476143,
0.03189995512366295,
-0.041843026876449585,
0.025866273790597916,
-0.01630699820816517,
-0.0221889428794384,
-0.026616021990776062,
0.034952495247125626,
-0.05176825076341629,
0.0008947874302975833,
-0.028918815776705742,
0.028847411274909973,
-0.03593430668115616,
-0.003157417057082057,
0.00880060251802206,
0.01936846598982811,
0.0647638663649559,
0.01642303168773651,
0.011460419744253159,
-0.03293531760573387,
-0.008010691031813622,
-0.0025817183777689934,
0.004395838361233473,
-0.0011090008774772286,
-0.008666719309985638,
0.0032890690490603447,
-0.02108217403292656,
0.01876152865588665,
0.0784735307097435,
0.040165022015571594,
-0.008805065415799618,
0.032703254371881485,
0.011424717493355274,
0.020600194111466408,
0.1291707158088684,
0.03018624521791935,
-0.045163337141275406,
-0.011835292913019657,
0.026901639997959137,
-0.019618382677435875,
-0.0061407857574522495,
0.03063252381980419,
-0.0396294891834259,
-0.01981474459171295,
-0.016690798103809357,
-0.017181703820824623,
0.06354998797178268,
-0.021242834627628326,
-0.04366384074091911,
0.020171767100691795,
0.018217068165540695,
0.029918478801846504,
-0.018368802964687347,
0.01645873300731182,
0.005078644026070833,
-0.01986829750239849,
0.05344625562429428,
0.039486680179834366,
0.052089571952819824,
-0.004514102358371019,
-0.003909395541995764,
0.022313902154564857,
0.017494099214673042,
0.029954181984066963,
0.04898347705602646,
-0.0419144332408905,
-0.06604915112257004,
-0.024348929524421692,
0.009470019489526749,
0.021296387538313866,
-0.053303446620702744,
0.06765574961900711,
0.01597675308585167,
0.01734236441552639,
0.027205107733607292,
0.01081777922809124,
0.01938631758093834,
0.0031596485059708357,
-0.0799730196595192,
-0.03011484071612358,
0.020635895431041718,
-0.01163893099874258,
-0.005962274502962828,
-0.013968502171337605,
-0.024938015267252922,
-0.03584505245089531,
0.00969315879046917,
-0.009809191338717937,
-0.02108217403292656,
-0.02684808522462845,
-0.03418489545583725,
-0.02672312781214714,
0.06540650874376297,
0.03511315584182739,
0.03472043201327324,
0.03306027501821518,
-0.02788345143198967,
-0.010433980263769627,
0.0037353471852838993,
-0.04312830790877342,
0.0853283554315567,
-0.024027608335018158,
0.024099012836813927,
-0.0034988196566700935,
-0.021903324872255325,
0.0059444233775138855,
-0.06601344794034958,
0.03805859014391899,
-0.05016164854168892,
-0.016672946512699127,
-0.023242158815264702,
0.01988614909350872,
-0.01575361378490925,
0.01026439480483532,
-0.003797826124355197,
-0.02504512295126915,
-0.017770791426301003,
0.014762877486646175,
-0.05640954151749611,
-0.03082888573408127,
0.0211357269436121,
0.004801951348781586,
-0.056016817688941956,
0.04962611570954323,
-0.05408889800310135,
0.0017003192333504558,
-0.02279588207602501,
-0.001134103978984058,
0.0739036425948143,
0.004846579395234585,
-0.01079100277274847,
-0.014325524680316448,
0.019600531086325645,
0.012879583984613419,
-0.011469345539808273,
0.024634547531604767,
0.022599520161747932,
-0.003010145388543606,
-0.09175476431846619,
-0.04791240766644478,
-0.03352440521121025,
-0.02852609194815159,
0.05133982375264168,
-0.029472200199961662,
0.016780054196715355,
-0.02663387358188629,
0.058266058564186096,
-0.007760774809867144,
-0.0137096606194973,
-0.019564827904105186,
-0.024259673431515694,
0.000006201695669005858,
0.015932125970721245,
-0.0007631354383192956,
-0.04091477021574974,
-0.03368506580591202,
-0.016958564519882202,
-0.011317610740661621,
-0.02095721662044525,
0.06387130916118622,
0.022474560886621475,
-0.05876589193940163,
-0.0535176619887352,
0.06433544307947159,
-0.005618640221655369,
0.027455024421215057,
0.038915444165468216,
0.048555050045251846,
0.04091477021574974,
-0.03065037541091442,
-0.04594878479838371,
0.06640616804361343,
-0.023777693510055542,
0.028258325532078743,
-0.007671519182622433,
-0.057801928371191025,
0.018975742161273956,
0.06633476912975311,
0.034399110823869705,
-0.04273558408021927,
0.006163099780678749,
0.004429309628903866,
0.050375863909721375,
-0.03973659500479698,
-0.04312830790877342,
-0.03802288696169853,
0.0035791497211903334,
0.03145367652177811,
-0.07711683958768845,
-0.04948330670595169,
0.0729396790266037,
0.0028450223617255688,
0.009157625027000904,
0.03422059863805771,
0.07026201486587524,
0.01630699820816517,
0.02965071238577366,
0.016021382063627243,
-0.0159053485840559,
-0.009594977833330631,
0.02499157004058361,
0.09853819012641907,
0.04719836264848709,
0.03202491253614426,
0.004775174893438816,
0.04966181889176369,
0.021171430125832558,
-0.017494099214673042,
0.02674097940325737,
-0.015012793242931366,
0.05241089314222336,
0.002367504872381687,
0.007568875327706337,
0.024295376613736153,
-0.0133794154971838,
0.0300969909876585,
-0.007274331990629435,
0.071440190076828,
-0.024884462356567383,
-0.060658108443021774,
0.0015731300227344036,
-0.05565979704260826,
0.014298748224973679,
0.025312889367341995,
0.010085883550345898,
-0.06619195640087128,
-0.028258325532078743,
0.000715160567779094,
-0.04141459986567497,
-0.0336136594414711,
-0.011264057829976082,
0.029186582192778587,
-0.0007045614183880389,
0.0038312969263643026,
-0.03688041493296623,
0.046341508626937866,
0.023777693510055542,
-0.04905487969517708,
-0.018672272562980652,
-0.006238966714590788,
-0.012567189522087574,
0.026401808485388756,
-0.01877938024699688,
-0.0015463533345609903,
0.04248566925525665,
0.021492749452590942,
0.021296387538313866,
0.04909058287739754,
-0.010112660005688667,
0.015637582167983055,
-0.014914611354470253,
-0.07240414619445801,
0.09403970837593079,
-0.017860047519207,
0.013620405457913876,
-0.008242755196988583,
0.005449054762721062,
0.015110974200069904,
-0.04262847825884819,
-0.00710028363391757,
0.011478270404040813,
0.042449966073036194,
0.03291746601462364,
0.0021120107267051935,
0.04452069476246834,
-0.04776959866285324,
0.018904337659478188,
-0.05805184692144394,
0.03141797333955765,
-0.00969315879046917,
-0.011906697414815426,
-0.0222781989723444,
-0.0059444233775138855,
0.02156415395438671,
-0.0443778857588768,
0.03122161142528057,
-0.06604915112257004,
-0.029954181984066963,
0.006332685239613056,
-0.06326436996459961,
-0.020028958097100258,
-0.01938631758093834,
0.05844457074999809,
0.007028879132121801,
0.02549140155315399,
-0.03077533282339573,
0.010166213847696781,
-0.05305353179574013,
-0.017208481207489967,
0.03131086751818657,
-0.04834083467721939,
-0.01992185041308403,
-0.0420929417014122,
-0.05012594908475876,
0.03484538942575455,
0.06990499049425125,
0.035630837082862854,
-0.037344545125961304,
-0.024134716019034386,
0.007144911214709282,
-0.017610130831599236,
-0.018422357738018036,
0.05755201354622841,
-0.06622765958309174,
0.000004955255008098902,
0.0006359461694955826,
0.0058105397038161755,
0.04387805610895157,
-0.01983259618282318,
-0.04559176415205002,
-0.003750966861844063,
0.04544895514845848,
0.05615962669253349,
0.04944760724902153,
-0.072761170566082,
0.04587738215923309,
0.0014604448806494474,
-0.05801614373922348,
-0.006305908318608999,
-0.021939028054475784,
0.022474560886621475,
0.04391375929117203,
-0.0033917129039764404,
-0.09611043334007263,
0.02279588207602501,
0.025812720879912376,
-0.03293531760573387,
0.024081163108348846,
-0.009978776797652245,
-0.03698752447962761,
0.03252474218606949,
-0.06015827879309654,
-0.019243508577346802,
-0.011442569084465504,
-0.021278535947203636,
0.024009758606553078,
0.010139436461031437,
0.025991233065724373,
-0.056052520871162415,
0.0010069147683680058,
-0.0626574382185936,
-0.036166369915008545,
0.022385306656360626,
-0.022063985466957092,
0.036202073097229004,
0.002722295932471752,
0.0066852448508143425,
-0.0110944714397192,
0.01278140302747488,
-0.047055553644895554,
0.0773310586810112,
-0.00002895577381423209,
0.00048086457536555827,
0.03823710232973099,
-0.014084534719586372,
0.04248566925525665,
-0.04434218630194664,
-0.06754864007234573,
0.007501933723688126,
-0.004429309628903866,
-0.05640954151749611,
0.016628319397568703,
-0.028561793267726898,
-0.03405993804335594,
-0.0279013030230999,
0.005306245759129524,
-0.0274193212389946,
-0.057087887078523636,
-0.01169248390942812,
0.063014455139637,
0.05558839067816734,
-0.002840559696778655,
0.0626574382185936,
-0.021171430125832558,
-0.04373524710536003,
0.006069381255656481,
0.04148600623011589,
0.02508082427084446,
-0.015173452906310558,
0.05191105976700783,
-0.023688437417149544,
0.027758494019508362,
-0.046984151005744934,
0.0029275838751345873,
-0.007671519182622433,
-0.08140110969543457,
-0.025134379044175148,
-0.03880833834409714,
0.009202253073453903,
-0.017092447727918625,
-0.03405993804335594,
0.03575579449534416,
0.01820814423263073,
-0.037772972136735916,
-0.012165538966655731,
-0.06979788094758987,
0.012745700776576996,
-0.02606263756752014,
-0.03359581157565117,
0.033917129039764404,
0.07833071798086166,
0.04737687483429909,
0.020725151523947716,
0.0422714538872242,
-0.00835878774523735,
-0.008099946193397045,
0.06783425807952881,
-0.024920165538787842,
-0.03414919599890709,
0.012147688306868076,
0.03852272033691406,
-0.04052204638719559,
0.028097664937376976,
-0.02554495446383953,
0.0016099479980766773,
0.020671598613262177,
0.0076804449781775475,
0.03225697576999664,
-0.027508577331900597,
0.08025863766670227,
0.05512426048517227,
0.023545628413558006,
0.00016470448463223875,
0.01340619195252657,
0.04155740886926651,
0.015476921573281288,
0.04377095028758049,
-0.010808853432536125,
-0.05969414860010147,
-0.032221272587776184,
0.037344545125961304,
0.010166213847696781,
-0.023563480004668236,
-0.04559176415205002,
0.029739968478679657,
-0.03370291739702225,
-0.05587400868535042,
-0.03716603294014931,
0.005279468838125467,
-0.0051723625510931015,
0.04719836264848709,
0.00964853074401617,
0.01303131878376007,
0.01654798910021782,
-0.05733780190348625,
0.01218339055776596,
-0.020867960527539253,
-0.037308841943740845,
0.024277525022625923,
-0.04259277507662773,
0.01280817948281765,
0.02904377318918705,
0.0035880752839148045,
0.03909395635128021,
-0.0023117202799767256,
-0.006703095976263285,
0.01171033550053835,
0.04791240766644478,
0.04141459986567497,
-0.012272645719349384,
0.04162881523370743,
-0.025884125381708145,
0.037808675318956375,
-0.032756805419921875,
-0.023599181324243546,
0.062300413846969604,
0.06829839199781418,
-0.02265307307243347,
0.016869310289621353,
-0.022510264068841934,
-0.047555387020111084,
-0.005319633986800909,
-0.036112818866968155,
-0.06794136762619019,
0.024848761036992073,
-0.05705218389630318,
0.0072609432972967625,
-0.026276851072907448,
0.03937957435846329,
-0.02836543135344982,
-0.0685483068227768,
-0.0022537040058523417,
0.055552687495946884,
-0.015441219322383404,
-0.019725488498806953,
0.005922109354287386,
-0.032042764127254486,
-0.01628914847970009,
0.033881429582834244,
0.0445563979446888,
-0.010532161220908165,
0.03513100743293762,
0.043485332280397415,
-0.032703254371881485,
0.035488028079271317,
-0.027437172830104828,
-0.03629132732748985,
0.020046809688210487,
-0.04816232621669769,
0.011023066937923431,
0.005275006406009197,
0.01872582547366619,
0.046948447823524475,
0.022331751883029938,
0.009657456539571285,
-0.018565166741609573,
0.0017282116459682584,
0.02566991187632084
] |
20,851 | precession.precession | eval_chip_heuristic |
Heuristic definition of the effective precessing spin chip (Schmidt et al 2015), see arxiv:2011.11948. This definition inconsistently averages over some, but not all, variations on the precession timescale.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_heuristic(theta1,theta2,q,chi1,chi2)``
| def eval_chip_heuristic(theta1, theta2, q, chi1, chi2):
"""
Heuristic definition of the effective precessing spin chip (Schmidt et al 2015), see arxiv:2011.11948. This definition inconsistently averages over some, but not all, variations on the precession timescale.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_heuristic(theta1,theta2,q,chi1,chi2)``
"""
term1, term2 = chip_terms(theta1, theta2, q, chi1, chi2)
chip = np.maximum(term1, term2)
return chip
| (theta1, theta2, q, chi1, chi2) | [
-0.007299399934709072,
0.01984165795147419,
0.011333046481013298,
-0.0544762946665287,
0.004324916750192642,
-0.020424198359251022,
0.009779606945812702,
0.007158178370445967,
-0.06220818683505058,
0.0021050868090242147,
0.10683426260948181,
0.08480367064476013,
-0.03482881933450699,
0.07527119666337967,
-0.060231082141399384,
-0.0511222779750824,
0.0019473157590255141,
-0.039294954389333725,
-0.03883598372340202,
-0.04776826128363609,
-0.005745960399508476,
-0.03172193840146065,
0.019576866179704666,
0.04706215113401413,
-0.02379586733877659,
0.02028297632932663,
0.020424198359251022,
-0.033451903611421585,
-0.0932769775390625,
-0.0250315573066473,
0.013433719985187054,
0.011580185033380985,
-0.03495238721370697,
0.049003951251506805,
-0.0028773935046046972,
-0.006337326485663652,
0.0629849061369896,
0.029939014464616776,
-0.024678504094481468,
0.009991439990699291,
-0.05973680689930916,
0.021253876388072968,
-0.01169492769986391,
-0.07611852884292603,
-0.0201594065874815,
0.013592595234513283,
-0.026867439970374107,
0.032569270581007004,
-0.010459236800670624,
-0.02349577099084854,
0.010238577611744404,
-0.06686850637197495,
0.001850225729867816,
-0.02965657040476799,
0.004038059618324041,
0.005715068429708481,
0.02854444831609726,
-0.011191824451088905,
0.032569270581007004,
-0.037988655269145966,
0.033116504549980164,
0.0157462265342474,
0.0316513292491436,
0.043037332594394684,
0.002294853562489152,
-0.016849521547555923,
0.005997512023895979,
-0.002286027418449521,
-0.015128381550312042,
0.07964907586574554,
-0.00925885234028101,
0.03426393121480942,
-0.006178452167659998,
-0.055711984634399414,
-0.0007425175281241536,
0.011438963003456593,
0.004876564256846905,
0.01255991030484438,
0.041942864656448364,
-0.010150314308702946,
-0.04995720088481903,
0.0008925657020881772,
0.022242428734898567,
-0.09461858123540878,
-0.044378940016031265,
0.040318813174963,
0.0363646037876606,
-0.02060072496533394,
-0.027926603332161903,
-0.016258155927062035,
-0.020530113950371742,
-0.026055416092276573,
0.0011110181221738458,
-0.02644377574324608,
0.1051396057009697,
0.04402588680386543,
0.002663354156538844,
0.0018281599041074514,
0.012171550653874874,
-0.05256980285048485,
0.030715733766555786,
0.06478548794984818,
0.014810632914304733,
0.007056674920022488,
0.0230544526129961,
-0.0309628713876009,
-0.034987691789865494,
0.07184657454490662,
0.0016240503173321486,
-0.04575585201382637,
-0.06570342928171158,
-0.06700972467660904,
-0.05394671484827995,
-0.05069861188530922,
-0.036894187331199646,
0.009232372976839542,
-0.07050496339797974,
0.045791156589984894,
0.04088370129466057,
-0.01973574236035347,
0.02261313423514366,
0.007418555673211813,
-0.02536696009337902,
0.008340910077095032,
-0.04748581722378731,
-0.00042228616075590253,
-0.011827322654426098,
0.002109500113874674,
-0.06347918510437012,
-0.03200438246130943,
0.018252912908792496,
0.0016604589764028788,
0.021783456206321716,
0.06316143274307251,
-0.020530113950371742,
-0.04582646116614342,
-0.007206723093986511,
-0.0422959178686142,
0.09786668419837952,
-0.0068845609202980995,
0.0604076087474823,
-0.006297607906162739,
-0.023213326930999756,
-0.03486412391066551,
0.019806351512670517,
0.008914623409509659,
0.02217181771993637,
-0.021624581888318062,
-0.01173905935138464,
0.025490527972579002,
-0.025437571108341217,
0.037635598331689835,
0.07498876005411148,
-0.006933106109499931,
0.07177595794200897,
-0.02515512704849243,
0.030803997069597244,
-0.04310794174671173,
-0.010415105149149895,
-0.07177595794200897,
0.015799185261130333,
-0.01729966700077057,
-0.0006294298218563199,
0.04512035474181175,
0.008084946312010288,
-0.000634946278296411,
-0.018270565196871758,
-0.028632713481783867,
0.012568737380206585,
0.03475820645689964,
-0.03396383300423622,
-0.04197816923260689,
-0.033787306398153305,
-0.03585267439484596,
-0.01754680462181568,
-0.0076789334416389465,
-0.04455546662211418,
-0.04434363543987274,
0.0014497296651825309,
-0.054193850606679916,
-0.019029632210731506,
-0.04060125723481178,
-0.00980608630925417,
0.009567774832248688,
-0.0014949648175388575,
0.050451476126909256,
0.07647158205509186,
-0.004485997371375561,
0.003945383243262768,
0.027626506984233856,
-0.005000133067369461,
-0.019594520330429077,
-0.04010698199272156,
0.04716806858778,
0.08310900628566742,
-0.03426393121480942,
0.029074029996991158,
0.046144209802150726,
-0.003440073924139142,
0.07198779284954071,
-0.010706375353038311,
0.043708134442567825,
-0.0018921509617939591,
0.0060901883989572525,
0.05267571657896042,
-0.007431795354932547,
-0.02921525202691555,
0.03315180912613869,
-0.019876962527632713,
0.013318977318704128,
-0.012612869031727314,
-0.0034974452573806047,
-0.005083983298391104,
0.0006730099557898939,
-0.0006763198762200773,
0.033222418278455734,
0.019241465255618095,
-0.04748581722378731,
-0.030433289706707,
-0.016275808215141296,
0.032481007277965546,
0.03873006999492645,
0.020900821313261986,
0.038977205753326416,
0.037211935967206955,
0.03463463857769966,
-0.0530993826687336,
0.005317882169038057,
0.0019936540629714727,
-0.04243713989853859,
0.03064512275159359,
-0.04070717468857765,
0.041625116020441055,
-0.05080452933907509,
0.037106018513441086,
0.048015400767326355,
-0.01973574236035347,
0.02778538130223751,
-0.0467090979218483,
0.045579325407743454,
-0.028244351968169212,
0.007833395153284073,
-0.003144390881061554,
-0.04452016204595566,
-0.04236653074622154,
-0.049003951251506805,
-0.0019881376065313816,
-0.019982879981398582,
0.020141754299402237,
0.015454957261681557,
0.009170588105916977,
-0.04226061329245567,
-0.02280731499195099,
-0.026408469304442406,
-0.006677141413092613,
-0.016743605956435204,
0.03343425318598747,
-0.009938481263816357,
0.03309885039925575,
0.0074406214989721775,
-0.00032960937824100256,
-0.01883545331656933,
-0.02280731499195099,
0.009647211991250515,
-0.03883598372340202,
-0.012047981843352318,
-0.04081308841705322,
0.043814051896333694,
-0.037741515785455704,
-0.010600458830595016,
-0.05906600132584572,
-0.0038858051411807537,
-0.021677540615200996,
0.006743339356034994,
-0.008804294280707836,
-0.0010012402199208736,
0.06549159437417984,
-0.0008920140098780394,
0.010565153323113918,
-0.022030595690011978,
-0.011853802017867565,
0.000918493140488863,
-0.02658499777317047,
-0.009135282598435879,
0.014625279232859612,
0.006831602659076452,
-0.027608854696154594,
0.02349577099084854,
0.06711564213037491,
0.04617951810359955,
0.005560607183724642,
0.02644377574324608,
-0.012621695175766945,
-0.018482398241758347,
0.12229804694652557,
0.04399057850241661,
-0.031898465007543564,
-0.027644161134958267,
0.016284635290503502,
-0.0006873527891002595,
-0.010962339118123055,
0.026849787682294846,
-0.053734879940748215,
-0.035128913819789886,
0.013557289727032185,
-0.003027441678568721,
0.0339285284280777,
0.00846889242529869,
0.001953935483470559,
0.023831171914935112,
0.03166897967457771,
0.009497163817286491,
-0.0031532172579318285,
0.008420347236096859,
0.005388492718338966,
-0.02623194269835949,
0.06460895389318466,
0.04296672344207764,
0.030256763100624084,
-0.020088795572519302,
-0.009302983991801739,
0.036894187331199646,
0.02370760403573513,
0.036435216665267944,
0.017167270183563232,
-0.030698081478476524,
-0.059489667415618896,
-0.01885310560464859,
0.00672127353027463,
-0.020671335980296135,
-0.03865945711731911,
0.06181982904672623,
0.031810201704502106,
0.005944553762674332,
0.06217288225889206,
0.035323094576597214,
0.011059429496526718,
0.010829944163560867,
-0.0633026584982872,
-0.021518666297197342,
0.026178983971476555,
-0.003737963503226638,
0.021236222237348557,
-0.010962339118123055,
0.0056488704867661,
-0.037529684603214264,
-0.005335534922778606,
0.0035746758803725243,
-0.05581790208816528,
-0.007339118514209986,
-0.015569699928164482,
-0.039612703025341034,
0.061007801443338394,
0.02955065481364727,
0.031916119158267975,
0.045579325407743454,
-0.038553543388843536,
-0.02127152867615223,
0.02171284705400467,
-0.028844544664025307,
0.06821011006832123,
-0.012701132334768772,
-0.006990477442741394,
-0.016169892624020576,
-0.056382790207862854,
0.0036055680830031633,
-0.05514710023999214,
0.04939231276512146,
-0.05998394265770912,
-0.03142184391617775,
-0.02051246166229248,
0.015816837549209595,
-0.022436607629060745,
0.004013787489384413,
0.007740717846900225,
-0.026090720668435097,
-0.017246708273887634,
0.0511222779750824,
-0.044943828135728836,
-0.0033098850399255753,
0.016002191230654716,
0.018888410180807114,
-0.08805177360773087,
0.03052155300974846,
-0.056735843420028687,
0.006928692571818829,
-0.03066277503967285,
-0.016346419230103493,
0.07385898381471634,
0.009638385847210884,
-0.002989929635077715,
-0.016002191230654716,
0.008380629122257233,
0.010273883119225502,
0.0005406145937740803,
0.06153738498687744,
0.05140472203493118,
0.01828821934759617,
-0.06990477442741394,
-0.0520402193069458,
-0.01971808820962906,
-0.04098961874842644,
0.0727292075753212,
-0.0216069296002388,
0.02965657040476799,
-0.03173959255218506,
0.04963944852352142,
-0.0021812142804265022,
-0.019259117543697357,
0.008173209615051746,
-0.039400871843099594,
-0.03177489712834358,
0.03064512275159359,
0.019894616678357124,
-0.06722155958414078,
-0.021218569949269295,
0.011121214367449284,
-0.009841391816735268,
-0.009417726658284664,
0.05768908932805061,
0.02139509655535221,
-0.09744301438331604,
-0.054193850606679916,
0.023283937945961952,
-0.009029367007315159,
0.0012036948464810848,
0.037211935967206955,
0.019347380846738815,
0.020865514874458313,
-0.03865945711731911,
-0.048544980585575104,
0.040071677416563034,
-0.009382421150803566,
0.007952550426125526,
-0.03943617641925812,
-0.031015830114483833,
0.029903708025813103,
0.0392596498131752,
0.059136614203453064,
-0.03242804855108261,
-0.007974616251885891,
0.009867871180176735,
0.06905744224786758,
-0.0316513292491436,
-0.060690052807331085,
-0.04420241340994835,
0.016902480274438858,
0.010459236800670624,
-0.06111371889710426,
-0.03982453793287277,
0.020124102011322975,
-0.0033959420397877693,
-0.014122175984084606,
0.04279019311070442,
0.0575125627219677,
0.02423718571662903,
0.013124797493219376,
0.03361077979207039,
-0.01372499018907547,
0.01450170949101448,
0.03749438002705574,
0.0923590362071991,
0.05956028029322624,
0.01130656711757183,
-0.005459103733301163,
0.023548729717731476,
0.03143949434161186,
-0.03151010721921921,
0.04346099868416786,
-0.029674222692847252,
0.03717662766575813,
0.0004661421407945454,
-0.009064671583473682,
0.027096925303339958,
0.005631217733025551,
0.029074029996991158,
-0.011500747874379158,
0.060160472989082336,
0.002101777121424675,
-0.04356691241264343,
-0.015031291171908379,
-0.036858879029750824,
0.026073068380355835,
0.013601421378552914,
0.020918473601341248,
-0.11495451629161835,
-0.03505830466747284,
-0.033893223851919174,
-0.015243124216794968,
-0.036117468029260635,
-0.0010503368685021996,
-0.013186582364141941,
0.014872416853904724,
-0.021024391055107117,
-0.060125164687633514,
0.04342569410800934,
0.04720337316393852,
-0.017079006880521774,
-0.022330692037940025,
-0.01626698113977909,
-0.015905100852251053,
0.048121314495801926,
-0.027432328090071678,
-0.003656319808214903,
0.02667326107621193,
0.030168499797582626,
0.025649402290582657,
0.02669091336429119,
0.0006934209377504885,
0.04677971079945564,
0.0016803183825686574,
-0.06873969733715057,
0.0932769775390625,
0.0007502406369894743,
0.011977370828390121,
0.020547766238451004,
-0.0027847166638821363,
0.03075103834271431,
-0.017996948212385178,
0.005569433327764273,
-0.02986840344965458,
0.05182838812470436,
0.08381512016057968,
0.016672994941473007,
0.04677971079945564,
-0.05546484887599945,
0.04289611056447029,
-0.062349408864974976,
0.04388466477394104,
-0.022560177370905876,
-0.02414892241358757,
-0.0001637014065636322,
-0.01003557164222002,
0.006412350572645664,
-0.01400743331760168,
0.03947148472070694,
-0.04144858941435814,
-0.016116933897137642,
-0.03366373851895332,
-0.06944580376148224,
0.004185901489108801,
-0.04067186638712883,
0.048227231949567795,
-0.011368351988494396,
0.019312076270580292,
-0.049109868705272675,
-0.021130306646227837,
-0.001621843664906919,
-0.03442280367016792,
0.020441850647330284,
-0.018111690878868103,
0.00018742225074674934,
-0.02557879127562046,
-0.047238681465387344,
0.05504118278622627,
0.05122819542884827,
0.021536318585276604,
-0.029409432783722878,
-0.006235823500901461,
0.027961909770965576,
-0.018482398241758347,
-0.04430832713842392,
0.01466941088438034,
-0.056594621390104294,
-0.02005349099636078,
0.00031857643625698984,
-0.010185619816184044,
0.028615059331059456,
-0.009029367007315159,
-0.050981055945158005,
-0.0022661678958684206,
0.07618914544582367,
0.05023964121937752,
0.045579325407743454,
-0.07880174368619919,
0.03272814303636551,
0.008438000455498695,
-0.06256124377250671,
0.009523643180727959,
-0.004053506068885326,
0.037635598331689835,
0.034334540367126465,
0.012771743349730968,
-0.05422915890812874,
-0.001140807056799531,
0.026479080319404602,
-0.0416957251727581,
0.019824005663394928,
-0.001263272832147777,
-0.0046956236474215984,
0.06107841432094574,
-0.07915479689836502,
-0.011995024047791958,
-0.016558252274990082,
-0.006112254690378904,
0.016902480274438858,
0.005035438574850559,
0.01349550485610962,
-0.0314924530684948,
0.00040353016811423004,
-0.05151063948869705,
-0.03978923335671425,
0.042507752776145935,
-0.029833097010850906,
0.06333795934915543,
0.0009593150462023914,
-0.012030328623950481,
-0.0013449166435748339,
0.006708033848553896,
-0.04335508123040199,
0.06506792455911636,
-0.00686690816655755,
0.04222530871629715,
0.03482881933450699,
-0.017943989485502243,
0.03904781863093376,
-0.005993098486214876,
-0.06986946612596512,
-0.021112654358148575,
0.021748151630163193,
-0.05987802892923355,
0.031262967735528946,
0.025208085775375366,
-0.023283937945961952,
-0.01030036248266697,
-0.026373164728283882,
-0.020636029541492462,
-0.06799828261137009,
-0.01624932885169983,
0.07738952338695526,
0.03569380193948746,
-0.026178983971476555,
0.032375089824199677,
-0.010759333148598671,
-0.049568839371204376,
0.00393655663356185,
0.06524445861577988,
0.010935860686004162,
0.00708756735548377,
0.020335933193564415,
-0.038553543388843536,
0.0646795704960823,
-0.05896008759737015,
-0.003989514894783497,
-0.021324485540390015,
-0.07131698727607727,
-0.02148336172103882,
-0.0055341278202831745,
0.0011016400530934334,
-0.026532039046287537,
-0.033787306398153305,
0.007211136166006327,
0.018111690878868103,
-0.004132943227887154,
-0.0017222434980794787,
-0.04533218592405319,
0.010070877149701118,
-0.003532750764861703,
-0.037882737815380096,
0.033804960548877716,
0.0922178104519844,
0.05299346521496773,
0.03283406049013138,
0.026973357424139977,
-0.041625116020441055,
0.011227129958570004,
0.07294104248285294,
-0.021995289251208305,
-0.03989514708518982,
0.023990048095583916,
0.02986840344965458,
-0.028703322634100914,
0.016787737607955933,
-0.03064512275159359,
0.007806915789842606,
0.01841178722679615,
-0.03440515324473381,
0.014289877377450466,
-0.05500587821006775,
0.06711564213037491,
0.06256124377250671,
0.03982453793287277,
-0.004068952053785324,
0.02324863336980343,
0.05906600132584572,
0.06291429698467255,
0.029815444722771645,
0.0017774082953110337,
-0.024449018761515617,
-0.010962339118123055,
0.02390178292989731,
0.0035481967497617006,
-0.021359791979193687,
-0.024872682988643646,
0.04003636911511421,
-0.00953246932476759,
-0.05687706544995308,
-0.04596768319606781,
0.020124102011322975,
-0.018129343166947365,
0.029462389647960663,
0.04254305735230446,
-0.004969240631908178,
0.028932809829711914,
-0.05048678070306778,
-0.0008368492708541453,
-0.017626240849494934,
-0.019576866179704666,
0.03233978524804115,
-0.026849787682294846,
-0.023760560899972916,
0.008221754804253578,
-0.008133490569889545,
0.03989514708518982,
-0.017334971576929092,
0.024501975625753403,
0.02390178292989731,
0.016655342653393745,
0.06775113940238953,
-0.0023698776494711637,
0.03791804239153862,
-0.04589707404375076,
0.024713808670639992,
-0.016125760972499847,
-0.05521770939230919,
0.05620626360177994,
0.037106018513441086,
-0.04826253652572632,
0.013822080567479134,
-0.011015297845005989,
-0.04886272922158241,
-0.02402535267174244,
-0.014404620043933392,
-0.032675184309482574,
0.037282545119524,
-0.05867764353752136,
0.01941799186170101,
-0.03714132308959961,
0.07039904594421387,
-0.011871454305946827,
-0.03911842778325081,
-0.0076524545438587666,
0.056276872754096985,
-0.011094735004007816,
-0.0046867975033819675,
-0.015896275639533997,
-0.04607360064983368,
0.007140525616705418,
0.03760029375553131,
0.04137797653675079,
-0.02469615638256073,
0.015048944391310215,
0.0855097770690918,
0.0004438004398252815,
0.029815444722771645,
-0.009964960627257824,
-0.044908519834280014,
0.0020708846859633923,
-0.05560607090592384,
0.014413446187973022,
0.031351231038570404,
0.0549352653324604,
0.035464316606521606,
0.0034489003010094166,
0.006986064370721579,
-0.032481007277965546,
0.01571974717080593,
0.03749438002705574
] |
20,852 | precession.precession | eval_chip_rms |
Root-mean-square definition of the effective precessing spin. This is much faster to evaluate than the plain average.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_rms(kappa,r,chieff,q,chi1,chi2)``
| def eval_chip_rms(kappa, r, chieff, q, chi1, chi2):
"""
Root-mean-square definition of the effective precessing spin. This is much faster to evaluate than the plain average.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chip: float
Effective precessing spin.
Examples
--------
``chip = precession.eval_chip_rms(kappa,r,chieff,q,chi1,chi2)``
"""
kappa = np.atleast_1d(kappa).astype(float)
r = np.atleast_1d(r).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
u=eval_u(r=r,q=q)
# Machine generated with eq_generator.nb
lambdabar = 1/4 * q**(-1) * (1 + q) * ((4 + 3 * q))**(-2) * u**(-1)
# Machine generated with eq_generator.nb
lambda2 = -1 * ((1 + -1 * q))**2 * q * (1 + q) * u
# Machine generated with eq_generator.nb
lambda1 = -2 * (1 + -1 * q) * ((1 + q))**2 * ((4 + 3 * q) * (3 + 4 * \
q) + 7 * q * u * chieff)
# Machine generated with eq_generator.nb
lambda0 = (2 * ((1 + q))**3 * (4 + 3 * q) * (3 + 4 * q) * (2 * kappa \
+ -1 * chieff) + -1 * u * (12 * (1 + -1 * q) * ((4 + 3 * q) * chi1**2 \
+ -1 * q**3 * (3 + 4 * q) * chi2**2) + 49 * q * ((1 + q))**3 * \
chieff**2))
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2)
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus, deltachiplus, deltachi3]))
chip = lambdabar**(1/2) * ( (deltachiplus-deltachiminus)**2 * lambda2 * deltachitildeav2(m) +
(deltachiplus-deltachiminus) * (lambda1 + 2*deltachiminus*lambda2) * deltachitildeav(m) +
(deltachiminus*lambda1 + deltachiminus**2*lambda2 + lambda0 ))**(1/2)
# Debug:
# def _integrand(deltachi, kappa, r, chieff, q, chi1, chi2):
# theta1, theta2, deltaphi = conserved_to_angles(deltachi, kappa, r, chieff, q, chi1, chi2)
# chip_integrand = eval_chip_generalized(theta1, theta2, deltaphi, q, chi1, chi2)**2
# return chip_integrand
# chip = precession_average(kappa, r, chieff, q, chi1, chi2, _integrand, kappa, r, chieff, q, chi1, chi2, **kwargs)**0.5
return chip
| (kappa, r, chieff, q, chi1, chi2) | [
0.013166735880076885,
-0.036053743213415146,
0.03322640433907509,
0.01644810102880001,
0.0008184065227396786,
0.002568081021308899,
-0.054730694741010666,
-0.07499673962593079,
-0.03836514428257942,
0.053905196487903595,
0.04589783772826195,
0.031430937349796295,
0.018222928047180176,
0.0784638375043869,
-0.08221986889839172,
0.009586126543581486,
0.002938266610726714,
-0.02499203383922577,
-0.007264405954629183,
-0.027592360973358154,
-0.0704152062535286,
-0.05126359313726425,
-0.02775746025145054,
0.07297425717115402,
-0.018460258841514587,
0.07177728414535522,
0.02883061207830906,
-0.019285758957266808,
-0.0461454875767231,
-0.04013996943831444,
-0.011691153049468994,
-0.007558490615338087,
0.026271559298038483,
-0.030522888526320457,
0.04915856570005417,
-0.08292154222726822,
0.05547364428639412,
0.010958521626889706,
-0.06740213185548782,
-0.00794544443488121,
-0.006490499246865511,
0.00774938752874732,
0.027241522446274757,
-0.055556196719408035,
-0.04449448734521866,
-0.005298682488501072,
-0.006201574113219976,
0.07243768125772476,
-0.008022834546864033,
0.005861054640263319,
-0.008796741254627705,
-0.08700776845216751,
0.019141297787427902,
-0.016623519361019135,
-0.018996834754943848,
0.016840213909745216,
0.005603085737675428,
-0.044040460139513016,
0.03945893421769142,
-0.0723964124917984,
0.04300858452916145,
0.009126941673457623,
0.07652391493320465,
0.01867695339024067,
0.033123213797807693,
0.02365059405565262,
0.01753157004714012,
0.017087863758206367,
0.017768902704119682,
0.0894017219543457,
0.018161015585064888,
0.010499336756765842,
0.004377733450382948,
-0.03962403163313866,
0.029511649161577225,
-0.0034438855946063995,
-0.05196526646614075,
-0.02474438212811947,
0.017737945541739464,
-0.05679444596171379,
0.017779221758246422,
0.015416225418448448,
-0.0024597339797765017,
-0.055556196719408035,
-0.02907826192677021,
0.02773682214319706,
0.04936493933200836,
0.007780343759804964,
-0.0020224766340106726,
-0.01356916781514883,
-0.012753985822200775,
-0.02222660556435585,
0.004153300542384386,
0.006211892701685429,
0.050355542451143265,
0.026725584641098976,
-0.0008106674649752676,
-0.06641153246164322,
0.08122926950454712,
-0.05572129786014557,
0.062490399926900864,
0.0500253401696682,
0.027922561392188072,
0.03295811638236046,
0.014993156306445599,
0.01863567717373371,
-0.029140174388885498,
0.041027385741472244,
0.02528095804154873,
-0.037188805639743805,
-0.08044504374265671,
0.04825051501393318,
-0.06360482424497604,
0.0055721295066177845,
-0.07809236645698547,
-0.018429303541779518,
-0.02907826192677021,
0.06207765266299248,
0.03592991828918457,
0.030811812728643417,
0.023134656250476837,
-0.03128647431731224,
-0.03687924146652222,
-0.0069135683588683605,
0.02002871036529541,
0.0014510754263028502,
0.031430937349796295,
0.028913160786032677,
-0.0008287252858281136,
0.011216490529477596,
-0.001934767235070467,
0.014126380905508995,
0.0493236668407917,
0.03044033795595169,
-0.030006950721144676,
0.012000716291368008,
-0.0030801494140177965,
-0.04032570868730545,
0.048663266003131866,
-0.008652279153466225,
0.0352076031267643,
0.012403148226439953,
-0.0026274139527231455,
0.0005762381479144096,
0.024042706936597824,
0.022082142531871796,
0.05955987423658371,
0.014631999656558037,
-0.010762465186417103,
0.010432264767587185,
-0.00003492657924653031,
0.06537965685129166,
0.07557458430528641,
0.03723008185625076,
0.05204781889915466,
-0.007568809203803539,
0.07800981402397156,
-0.04907601699233055,
-0.020730385556817055,
-0.07223130762577057,
-0.02932591177523136,
-0.016025032848119736,
0.014910605736076832,
0.03207070007920265,
0.0009041812154464424,
0.035826731473207474,
-0.030378425493836403,
0.004625383298844099,
0.02608582191169262,
0.029779937118291855,
-0.029738662764430046,
-0.040800370275974274,
-0.07834001630544662,
-0.014518492855131626,
-0.02218533121049404,
0.035001229494810104,
-0.0532035194337368,
-0.03077053837478161,
-0.0054998984560370445,
-0.04003678262233734,
-0.04536126181483269,
-0.0304816123098135,
-0.01759348250925541,
-0.014518492855131626,
-0.015973437577486038,
0.07780344039201736,
0.07132326066493988,
-0.0515112429857254,
0.026684310287237167,
-0.017387108877301216,
-0.007006437052041292,
0.0001546201528981328,
-0.004390631802380085,
0.0742950588464737,
0.021566204726696014,
0.0017657976131886244,
0.053946468979120255,
0.048167966306209564,
-0.0011170055950060487,
0.02637474611401558,
-0.041254397481679916,
0.03320576623082161,
-0.01921352930366993,
0.019316716119647026,
0.0010428394889459014,
-0.05947732552886009,
-0.04362771287560463,
0.04309113696217537,
0.038592156022787094,
0.06438905000686646,
0.0037173328455537558,
-0.007047711871564388,
0.0009512605611234903,
0.01564323715865612,
0.0244141835719347,
0.027035146951675415,
0.09130037575960159,
-0.005830098409205675,
-0.02856232412159443,
-0.010473540052771568,
0.008894769474864006,
-0.004953003954142332,
0.006119024008512497,
-0.034732941538095474,
0.01617981307208538,
0.033907439559698105,
-0.007966081611812115,
0.04424683749675751,
-0.027509810402989388,
-0.045113611966371536,
0.03376297652721405,
-0.0016393928090110421,
-0.008858654648065567,
-0.038261957466602325,
-0.030935637652873993,
-0.0069857994094491005,
-0.010499336756765842,
0.03217389062047005,
-0.03425827994942665,
0.008977320045232773,
-0.01041162759065628,
-0.02608582191169262,
0.023217206820845604,
-0.007723590824753046,
-0.03954148292541504,
-0.019853292033076286,
0.05456559360027313,
0.03041969984769821,
-0.04342133551836014,
-0.012052309699356556,
0.02990376204252243,
-0.08052758872509003,
-0.015158256515860558,
0.021256642416119576,
-0.008425266481935978,
-0.011123621836304665,
0.07829874008893967,
0.04061463475227356,
0.07656519114971161,
-0.04259583353996277,
0.02909889817237854,
0.004751788452267647,
0.0058868518099188805,
0.04412301257252693,
-0.06224275007843971,
0.005453464109450579,
-0.03425827994942665,
0.038303229957818985,
0.017387108877301216,
0.0028763539157807827,
0.031719863414764404,
0.06504945456981659,
-0.06277932971715927,
-0.011577647179365158,
-0.024909483268857002,
0.017356151714920998,
0.03320576623082161,
0.050355542451143265,
-0.007723590824753046,
-0.004034634679555893,
-0.03491867706179619,
-0.02802574820816517,
-0.02191704325377941,
0.03370106592774391,
-0.043256234377622604,
0.013084186241030693,
-0.02006998471915722,
-0.0330200269818306,
0.1092962920665741,
-0.039355743676424026,
0.003934026695787907,
0.0009332027402706444,
0.01699499599635601,
-0.020957399159669876,
0.1540384292602539,
0.023237844929099083,
-0.07462526112794876,
-0.027798734605312347,
0.017614120617508888,
0.004106865730136633,
0.00043725740397349,
0.033329591155052185,
0.018800778314471245,
-0.02117409184575081,
0.01673702709376812,
-0.002842817921191454,
0.06038537621498108,
-0.0019089702982455492,
-0.012434104457497597,
-0.015168574638664722,
0.0034490451216697693,
-0.007088987156748772,
0.03299938887357712,
-0.017118820920586586,
0.021855130791664124,
-0.04610421136021614,
0.05386392027139664,
0.02938782423734665,
0.059394773095846176,
0.03574417904019356,
0.0202866792678833,
0.020534329116344452,
0.022969556972384453,
0.022474255412817,
0.020152535289525986,
-0.08345811814069748,
-0.01344534195959568,
-0.04329751059412956,
-0.024228444322943687,
-0.05217164382338524,
-0.022928280755877495,
0.020214447751641273,
0.0040088375099003315,
0.029222724959254265,
-0.013084186241030693,
-0.009390070103108883,
0.01565355621278286,
-0.006954843178391457,
-0.03735390678048134,
-0.040181245654821396,
0.031678587198257446,
0.03285492584109306,
-0.029408462345600128,
0.0048730336129665375,
-0.025652432814240456,
-0.03875725716352463,
0.018449939787387848,
-0.025322234258055687,
-0.0641414001584053,
-0.029511649161577225,
0.002995019778609276,
0.0029305273201316595,
0.0680212527513504,
0.05155251920223236,
0.04063527286052704,
0.06930078566074371,
-0.05894074961543083,
-0.014920924790203571,
0.012588885612785816,
-0.029470374807715416,
0.061871275305747986,
0.011113302782177925,
-0.028913160786032677,
0.04730118811130524,
0.018996834754943848,
-0.02523968368768692,
-0.06170617789030075,
0.03927319496870041,
0.0018393186619505286,
-0.03295811638236046,
-0.004777585156261921,
-0.020131897181272507,
-0.031699225306510925,
0.004372573923319578,
0.02055496722459793,
0.021586842834949493,
-0.038860443979501724,
0.007047711871564388,
-0.048167966306209564,
-0.009973079897463322,
0.048126690089702606,
0.04259583353996277,
-0.03427891433238983,
-0.008899929001927376,
0.0031420618761330843,
-0.010102064348757267,
-0.009513895027339458,
0.021607480943202972,
0.04771393910050392,
-0.025879446417093277,
-0.003972722217440605,
-0.004498978611081839,
0.01920321024954319,
0.011443503201007843,
-0.03287556394934654,
0.047094814479351044,
0.05386392027139664,
-0.00638731149956584,
-0.08799837529659271,
-0.012661117129027843,
-0.007016755640506744,
-0.001950245350599289,
0.025404782965779305,
-0.02827339805662632,
0.023217206820845604,
-0.05844544991850853,
0.01699499599635601,
-0.015127300284802914,
-0.010365192778408527,
0.04771393910050392,
-0.03954148292541504,
-0.002881513210013509,
0.000025252742489101365,
0.007094146683812141,
-0.08271516859531403,
-0.018253883346915245,
-0.015044749714434147,
-0.04919984191656113,
-0.0022920542396605015,
0.04725991562008858,
0.03786984458565712,
-0.06269677728414536,
0.0038411577697843313,
0.06496690213680267,
0.041563957929611206,
0.03834450617432594,
0.018738865852355957,
-0.03019268810749054,
0.018738865852355957,
-0.011598284356296062,
-0.01590120606124401,
0.003495479468256235,
-0.030543524771928787,
0.00268029747530818,
-0.03434082865715027,
-0.044577036052942276,
-0.01756252720952034,
0.02548733353614807,
0.06001390144228935,
-0.0454438142478466,
0.010318758897483349,
0.019285758957266808,
0.041543323546648026,
-0.06892930716276169,
-0.04684716463088989,
-0.010081427171826363,
0.024538008496165276,
0.0027783256955444813,
-0.05464814603328705,
-0.002054722746834159,
0.04412301257252693,
-0.02000807225704193,
0.010690233670175076,
0.001965723466128111,
0.06261422485113144,
0.025631796568632126,
0.015457500703632832,
-0.012970679439604282,
-0.015426544472575188,
-0.020420823246240616,
0.017995914444327354,
0.05460686981678009,
0.008002197369933128,
0.003900490701198578,
0.03041969984769821,
0.06967225670814514,
0.024847570806741714,
-0.006743308622390032,
0.021524930372834206,
-0.036342669278383255,
0.044040460139513016,
0.005788823589682579,
0.016871171072125435,
0.019089702516794205,
0.010282643139362335,
-0.017356151714920998,
-0.05485451966524124,
0.03260727599263191,
-0.0009757676161825657,
-0.05700082331895828,
-0.048126690089702606,
-0.04288475960493088,
0.013589804992079735,
0.017376789823174477,
0.009297201409935951,
-0.048209238797426224,
0.0027267320547252893,
-0.02115345560014248,
0.02602390944957733,
-0.044618312269449234,
-0.045939113944768906,
0.02746853604912758,
0.0340106263756752,
0.03863343223929405,
-0.07920678704977036,
0.008647119626402855,
0.07710176706314087,
0.014002555049955845,
0.009482938796281815,
-0.008316919207572937,
0.010648958384990692,
0.04028443247079849,
-0.07487291097640991,
0.0030414541251957417,
0.028871886432170868,
0.013765224255621433,
-0.022391706705093384,
-0.05497834458947182,
-0.03163731470704079,
0.011536371894180775,
-0.014198611490428448,
-0.09245608001947403,
0.08997957408428192,
-0.04779648780822754,
-0.015560687519609928,
-0.03564099222421646,
0.01697435788810253,
0.026168372482061386,
-0.04288475960493088,
-0.0019670133478939533,
0.034691665321588516,
-0.016355231404304504,
-0.01758316531777382,
0.023691870272159576,
0.03671414405107498,
0.002044403925538063,
0.016313957050442696,
-0.04668206349015236,
0.02666367217898369,
-0.0009519055020064116,
-0.040717821568250656,
-0.04333878681063652,
-0.008342715911567211,
0.04263710975646973,
-0.062407851219177246,
-0.004419008269906044,
-0.008817379362881184,
-0.08659502118825912,
-0.015292400494217873,
-0.012753985822200775,
-0.04659951478242874,
-0.027654273435473442,
0.05563874542713165,
-0.03421700373291969,
0.018305476754903793,
-0.006531774066388607,
-0.0015052489470690489,
-0.019130978733301163,
-0.022659994661808014,
-0.010463220998644829,
0.018573764711618423,
-0.024765020236372948,
0.050644468516111374,
0.011381590738892555,
0.06418267637491226,
0.032772377133369446,
0.028748061507940292,
-0.04730118811130524,
-0.012588885612785816,
0.008224050514400005,
-0.03762219473719597,
-0.025136495009064674,
0.014621680602431297,
-0.07933061569929123,
9.018837090479792e-7,
0.009317838586866856,
0.00315754022449255,
-0.007372752763330936,
-0.03871598094701767,
-0.025652432814240456,
-0.049241114407777786,
0.04998406767845154,
0.08576951920986176,
0.022329794242978096,
-0.08300409466028214,
0.014466899447143078,
0.011123621836304665,
-0.060550473630428314,
-0.038530245423316956,
-0.07854638993740082,
0.04602166265249252,
0.0012601783964782953,
-0.0037844046019017696,
-0.07875276356935501,
0.03646649420261383,
0.003866954706609249,
-0.07474908977746964,
0.023175932466983795,
-0.04552636295557022,
0.007011596579104662,
0.0274478979408741,
-0.017923682928085327,
-0.10277483612298965,
-0.05019044131040573,
-0.020998673513531685,
0.018212608993053436,
0.0021849970798939466,
0.008796741254627705,
0.014002555049955845,
0.01867695339024067,
-0.056670621037483215,
-0.007563650142401457,
0.022123418748378754,
-0.04366898536682129,
0.011144259013235569,
0.011030753143131733,
0.01125776581466198,
-0.0035857686307281256,
0.031678587198257446,
0.009524214081466198,
0.05130486562848091,
-0.02358868159353733,
0.01483837515115738,
0.014219249598681927,
0.01918257214128971,
0.026808135211467743,
-0.018553128466010094,
-0.0199874360114336,
0.065833680331707,
0.0038488968275487423,
-0.041336946189403534,
0.022928280755877495,
-0.03200878947973251,
-0.027509810402989388,
-0.021855130791664124,
-0.040800370275974274,
0.02604454569518566,
-0.06319207698106766,
0.007465621922165155,
0.012908766977488995,
0.04040825739502907,
-0.022990193217992783,
0.07834001630544662,
-0.025858808308839798,
0.013909686356782913,
0.026477934792637825,
0.06290315091609955,
0.0394795686006546,
-0.07082796096801758,
0.05687699839472771,
-0.03850960731506348,
0.030935637652873993,
-0.029552925378084183,
-0.008301441557705402,
-0.0010163977276533842,
-0.017129139974713326,
-0.022866368293762207,
0.006505977362394333,
0.023444218561053276,
0.03764283284544945,
-0.03429955244064331,
0.00097899220418185,
-0.017129139974713326,
-0.010396149009466171,
-0.03836514428257942,
-0.06562730669975281,
0.012867491692304611,
0.00733663747087121,
-0.015994075685739517,
-0.017500614747405052,
-0.006273805163800716,
0.02090580388903618,
-0.0515112429857254,
-0.018738865852355957,
-0.027097059413790703,
-0.03842705860733986,
0.06426522880792618,
0.022082142531871796,
-0.05295586958527565,
0.0663289800286293,
0.011164897121489048,
-0.04193543642759323,
0.0024300676304847,
-0.05097466707229614,
-0.011856253258883953,
0.020142216235399246,
-0.009436504915356636,
-0.0016884069191291928,
-0.04730118811130524,
0.008528454229235649,
0.021524930372834206,
0.04585656151175499,
-0.021504292264580727,
0.018728546798229218,
0.051222316920757294,
-0.02140110544860363,
0.01466295588761568,
0.03136902675032616,
-0.013424704782664776,
-0.038055580109357834,
-0.031988151371479034,
0.025363508611917496,
-0.009374592453241348,
-0.01949213445186615,
-0.007295362185686827,
-0.014859012328088284,
-0.03708561882376671,
-0.017356151714920998,
0.011329997330904007,
-0.04028443247079849,
0.058858197182416916,
0.03355660289525986,
0.015364631079137325,
-0.001767087378539145,
-0.023217206820845604,
0.042967312037944794,
-0.025136495009064674,
-0.02089548669755459,
-0.01346598006784916,
-0.01219677273184061,
0.024847570806741714,
0.027035146951675415,
-0.003536754520609975,
0.0021140556782484055,
-0.008430426008999348,
-0.01192848477512598,
0.0072850435972213745,
0.03844769299030304,
0.04531998932361603,
0.0025719506666064262,
0.010447743348777294,
-0.04040825739502907,
0.03592991828918457,
-0.007888690568506718,
-0.04891091585159302,
0.04903474077582359,
0.012826216407120228,
-0.02497139573097229,
0.03533142805099487,
0.006526615004986525,
-0.003967562690377235,
0.00706834951415658,
-0.0025384146720170975,
0.016283001750707626,
0.006536933593451977,
-0.07834001630544662,
0.003482581116259098,
-0.05431794375181198,
0.018573764711618423,
-0.027778098359704018,
0.00528836390003562,
0.0027602678164839745,
-0.008755466900765896,
-0.04201798513531685,
0.010478699579834938,
0.011608603410422802,
-0.002837658626958728,
-0.005092307459563017,
0.0735933855175972,
0.013135779649019241,
0.012919086031615734,
0.01361044216901064,
0.03159603849053383,
0.022969556972384453,
0.022701269015669823,
-0.006681396160274744,
0.013435023836791515,
-0.04507233574986458,
-0.05374009534716606,
-0.005773345474153757,
0.010096904821693897,
0.0075068967416882515,
0.02631283365190029,
0.05700082331895828,
0.004532514605671167,
-0.0016226248117163777,
0.0022224027197808027,
0.003387132426723838
] |
20,853 | precession.precession | eval_cosdeltaphi |
Cosine of the angle between the projections of the two spins onto the orbital plane.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
cosdeltaphi: float
Cosine of the angle between the projections of the two spins onto the orbital plane.
Examples
--------
``cosdeltaphi = precession.eval_cosdeltaphi(deltachi,kappa,r,chieff,q,chi1,chi2)``
| def eval_cosdeltaphi(deltachi, kappa, r, chieff, q, chi1, chi2):
"""
Cosine of the angle between the projections of the two spins onto the orbital plane.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
cosdeltaphi: float
Cosine of the angle between the projections of the two spins onto the orbital plane.
Examples
--------
``cosdeltaphi = precession.eval_cosdeltaphi(deltachi,kappa,r,chieff,q,chi1,chi2)``
"""
deltachi = np.atleast_1d(deltachi).astype(float)
kappa = np.atleast_1d(kappa).astype(float)
r = np.atleast_1d(r).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
with warnings.catch_warnings():
# If there are infinitely large separation in the array the following will throw a warning. You can safely ignore it because that value is not used, see below
if np.inf in r:
warnings.filterwarnings("ignore", category=RuntimeWarning)
# Machine generated with eq_generator.nb
cosdeltaphi = q**(-1) * ((4 * q**2 * (chi2)**2 + -1 * ((1 + q))**2 * \
((-1 * deltachi + chieff))**2) * (4 * (chi1)**2 + -1 * ((1 + q))**2 * \
((deltachi + chieff))**2))**(-1/2) * (-2 * ((chi1)**2 + q**4 * \
(chi2)**2) + (2 * q * (1 + q) * (r)**(1/2) * (-1 * (1 + -1 * q) * \
deltachi + (2 * (1 + q) * kappa + -1 * (1 + q) * chieff)) + -1 * q * \
((1 + q))**2 * (-1 * (deltachi)**2 + chieff**2)))
# At infinity, the only thing I can do is putting a random number for deltaphi, unformly distributed
cosdeltaphi = np.where(r!=np.inf, cosdeltaphi, np.cos(np.random.uniform(0,np.pi, len(cosdeltaphi))))
return cosdeltaphi
| (deltachi, kappa, r, chieff, q, chi1, chi2) | [
-0.026474731042981148,
-0.031170913949608803,
0.0045102923177182674,
-0.01566372625529766,
0.02191551961004734,
-0.013071042485535145,
-0.04480941221117973,
-0.017953116446733475,
-0.050170887261629105,
0.08413994312286377,
0.0628897175192833,
0.02780531533062458,
0.03844999521970749,
0.005928930826485157,
-0.08750554174184799,
0.009177124127745628,
0.041130732744932175,
0.01659317873418331,
-0.02504630759358406,
-0.033068954944610596,
-0.03312765806913376,
-0.06097210571169853,
-0.014294006861746311,
0.014137467369437218,
-0.026455163955688477,
0.013208013959228992,
-0.01748349703848362,
0.012317696586251259,
-0.021856818348169327,
-0.02099584974348545,
0.014479896984994411,
-0.011075164191424847,
-0.007939483970403671,
-0.011300189420580864,
0.03825432062149048,
-0.043557096272706985,
0.04844895377755165,
-0.012258993461728096,
-0.06378981471061707,
0.02764877676963806,
0.016231181100010872,
-0.010566411539912224,
0.03541704639792442,
-0.048135872930288315,
-0.05197108909487724,
0.01746392995119095,
-0.017043229192495346,
0.0683685913681984,
-0.04030890390276909,
0.021230660378932953,
0.01188721228390932,
-0.10253332555294037,
0.017072580754756927,
0.005968065466731787,
-0.024204909801483154,
0.0799916461110115,
0.030290378257632256,
-0.00986198429018259,
-0.015712644904851913,
-0.03792167454957962,
0.028451040387153625,
-0.020761040970683098,
0.06089383736252785,
0.052362438291311264,
0.0427352637052536,
0.02872498519718647,
0.028607580810785294,
0.03682589903473854,
0.01987072266638279,
0.013775469735264778,
0.008815126493573189,
0.017542200163006783,
-0.001412523677572608,
-0.03483002260327339,
0.02796185575425625,
0.026259489357471466,
-0.0252224151045084,
-0.03318635746836662,
0.03389078751206398,
-0.024733228608965874,
-0.03109264373779297,
-0.04492681473493576,
0.015526754781603813,
-0.022580811753869057,
0.013912441208958626,
0.05764564499258995,
0.007993294857442379,
-0.013971143402159214,
-0.018999973312020302,
0.013648280873894691,
-0.05721516162157059,
-0.02483106590807438,
-0.01783571019768715,
-0.00465215602889657,
0.04030890390276909,
0.04563124477863312,
0.01206331979483366,
-0.0718124657869339,
0.078034907579422,
0.013423255644738674,
0.0758042186498642,
0.05870228633284569,
0.048722896724939346,
0.022385137155652046,
0.054749663919210434,
-0.03310808911919594,
-0.03406689316034317,
0.01860862411558628,
0.055493228137493134,
-0.039858851581811905,
-0.07001225650310516,
0.08265281468629837,
0.01673015207052231,
-0.04001539200544357,
-0.05400610342621803,
-0.0655900165438652,
-0.012356830760836601,
0.06230269372463226,
0.05353648215532303,
0.034888725727796555,
0.012239426374435425,
-0.009729904122650623,
0.0030965455807745457,
0.016974743455648422,
0.05009261518716812,
-0.01785527914762497,
0.017786791548132896,
0.01989029161632061,
-0.028314068913459778,
0.019606562331318855,
0.06872081011533737,
0.011720889247953892,
0.08781861513853073,
-0.0011789376148954034,
-0.034693051129579544,
0.03778470307588577,
-0.02042839489877224,
-0.013344986364245415,
0.016994312405586243,
-0.022130761295557022,
0.007533459924161434,
-0.03590623289346695,
0.005914255045354366,
0.027570506557822227,
-0.010566411539912224,
0.07423882186412811,
0.03980014845728874,
0.002629373222589493,
-0.007973726838827133,
0.02101541869342327,
0.01481254305690527,
0.0755302757024765,
0.06398548930883408,
-0.031386155635118484,
0.01673993468284607,
-0.08194839209318161,
0.054045237600803375,
-0.023715723305940628,
-0.03095567226409912,
-0.01344282366335392,
-0.009676093235611916,
-0.01807052083313465,
0.05960238724946976,
0.03623887896537781,
0.021269794553518295,
0.01990007422864437,
0.0009361791308037937,
0.031229615211486816,
-0.0074209473095834255,
0.03277544304728508,
-0.004358644597232342,
-0.024263611063361168,
-0.06422030180692673,
-0.004610575269907713,
0.01783571019768715,
0.00162165064830333,
-0.05318427085876465,
-0.042813532054424286,
0.03608233854174614,
-0.05596284568309784,
-0.04876203089952469,
-0.0566672720015049,
-0.009040151722729206,
-0.031581830233335495,
0.028411906212568283,
0.08633149415254593,
0.0427352637052536,
-0.023461347445845604,
0.0457095131278038,
0.004857614170759916,
-0.0012498694704845548,
-0.005777283105999231,
-0.0024410367477685213,
0.06844686716794968,
0.04253958910703659,
-0.008766207844018936,
0.006970896385610104,
-0.014166818000376225,
-0.031386155635118484,
0.021445902064442635,
-0.021504603326320648,
0.03574969246983528,
-0.009279852733016014,
-0.026592135429382324,
0.045044220983982086,
-0.03111221082508564,
-0.042461320757865906,
-0.0021878830157220364,
0.015781130641698837,
0.032658036798238754,
0.013256932608783245,
-0.02191551961004734,
-0.039487071335315704,
-0.007083409000188112,
-0.007973726838827133,
0.07733047753572464,
0.061754804104566574,
-0.0090108010917902,
-0.010223980993032455,
-0.004512737970799208,
0.044065847992897034,
-0.0006493940018117428,
0.04367449879646301,
-0.005645202938467264,
0.04328315332531929,
0.0014161926228553057,
0.015781130641698837,
0.027492236346006393,
-0.04085678979754448,
-0.0698557198047638,
0.004385550040751696,
0.0020900459494441748,
-0.0176987387239933,
-0.05431918054819107,
0.0027369940653443336,
-0.025887707248330116,
0.012112238444387913,
0.03584752976894379,
-0.0405045785009861,
0.04218737408518791,
-0.04817500710487366,
-0.0029913706239312887,
0.0042608072981238365,
0.028959793969988823,
-0.015409349463880062,
0.0018099871231243014,
0.02281562238931656,
0.005821309983730316,
-0.0442223884165287,
0.03880221024155617,
-0.005518015008419752,
-0.06613790988922119,
-0.020937148481607437,
-0.023128699511289597,
0.02782488241791725,
-0.011994833126664162,
0.021739412099123,
0.04359623044729233,
0.041717756539583206,
-0.00543485302478075,
-0.03972188010811806,
-0.048683762550354004,
-0.034732185304164886,
0.04011322930455208,
-0.06989485770463943,
0.016671448945999146,
-0.04551383852958679,
0.01930326782166958,
-0.018911918625235558,
-0.007743809837847948,
-0.009597823955118656,
0.02966422215104103,
-0.06938610225915909,
-0.024811498820781708,
0.017415011301636696,
0.024733228608965874,
-0.0032066123094409704,
0.011388243176043034,
-0.01949894241988659,
0.011544782668352127,
-0.008438453078269958,
-0.0643768385052681,
-0.02543765679001808,
0.0031748153269290924,
-0.08003078401088715,
0.06394635885953903,
-0.030290378257632256,
-0.0185792725533247,
0.11059510707855225,
-0.021211091428995132,
-0.019978344440460205,
0.03150355815887451,
0.016231181100010872,
-0.028803255409002304,
0.11208222806453705,
0.05157973989844322,
-0.06715541332960129,
-0.009930470027029514,
0.04750971496105194,
-0.0004757331043947488,
0.029135901480913162,
0.013804820366203785,
-0.002234355779364705,
-0.057176027446985245,
-0.018315112218260765,
0.012943853624165058,
0.05224503204226494,
0.03825432062149048,
-0.014802759513258934,
0.0036591091193258762,
-0.017434578388929367,
-0.024067936465144157,
-0.026396460831165314,
0.01233726367354393,
0.025163711979985237,
-0.031170913949608803,
0.00018252742302138358,
-0.0039403908886015415,
0.06922955811023712,
0.01989029161632061,
0.00570390559732914,
0.02191551961004734,
0.015350647270679474,
0.02984032779932022,
0.012620991095900536,
-0.06316366046667099,
-0.016867123544216156,
-0.02835320308804512,
-0.0183933824300766,
0.006809465121477842,
0.009602715261280537,
0.051110122352838516,
-0.05114925652742386,
0.022737352177500725,
0.028822822496294975,
0.007029598578810692,
0.023891830816864967,
-0.01656382903456688,
-0.012317696586251259,
-0.00790524110198021,
-0.008433561772108078,
-0.016837771981954575,
-0.022678649052977562,
0.04625739902257919,
-0.03886091336607933,
-0.028079260140657425,
0.03171880170702934,
-0.029527248814702034,
-0.005028828978538513,
-0.024968039244413376,
-0.020898014307022095,
0.004424684680998325,
0.06238096207380295,
0.04477027431130409,
0.06359414011240005,
0.07834798097610474,
-0.04351796209812164,
-0.0504448302090168,
0.03479088842868805,
-0.023891830816864967,
0.011212136596441269,
0.009230934083461761,
0.027550939470529556,
0.015878967940807343,
-0.042265646159648895,
-0.03991755470633507,
-0.036904171109199524,
0.0009367906604893506,
-0.03164053335785866,
-0.019224997609853745,
-0.02099584974348545,
-0.0035392586141824722,
0.02099584974348545,
-0.04418325424194336,
0.039858851581811905,
0.0267095398157835,
0.004392887465655804,
0.003172369208186865,
-0.06637271493673325,
-0.013384120538830757,
0.016084427013993263,
0.022913457825779915,
-0.03645411878824234,
0.024204909801483154,
-0.019401105120778084,
0.022013356909155846,
0.004446697887033224,
0.004446697887033224,
0.045748647302389145,
-0.01326671615242958,
-0.030094705522060394,
-0.04692269489169121,
0.07290823757648468,
-0.008311265148222446,
-0.034888725727796555,
0.02117195725440979,
0.06222442165017128,
0.01048814132809639,
-0.08140049874782562,
0.0188140831887722,
0.04727490618824959,
-0.036884602159261703,
0.0178846288472414,
-0.00386945903301239,
0.0005909974570386112,
-0.06042421981692314,
0.019626131281256676,
-0.032462362200021744,
-0.007944376207888126,
0.03481045365333557,
-0.04214823991060257,
-0.015683293342590332,
0.016329018399119377,
0.03203187882900238,
-0.08257454633712769,
-0.002203781623393297,
-0.10816874355077744,
-0.03645411878824234,
-0.01764982007443905,
0.07619556784629822,
0.010429439134895802,
-0.06598136574029922,
0.004994586110115051,
0.0695817768573761,
0.07740874588489532,
0.046296536922454834,
0.031562261283397675,
-0.0025853465776890516,
0.016632314771413803,
-0.025105010718107224,
0.010908841155469418,
0.004965235013514757,
-0.04801847040653229,
-0.012640559114515781,
-0.004603237379342318,
0.005684338044375181,
0.009886443614959717,
0.03183620423078537,
0.05815439671278,
-0.011603484861552715,
-0.00408959249034524,
0.0089423144236207,
0.039487071335315704,
-0.034536510705947876,
-0.05694121494889259,
-0.02228730171918869,
0.054749663919210434,
-0.022541677579283714,
-0.01660296320915222,
-0.03392992168664932,
0.061950478702783585,
0.03166009858250618,
-0.037099845707416534,
0.01953807659447193,
0.03897831588983536,
0.02156330645084381,
0.028803255409002304,
-0.0002840334491338581,
-0.0688382163643837,
-0.014528815634548664,
-0.0034560970962047577,
0.08046126365661621,
0.008394426666200161,
-0.029018497094511986,
0.03371467813849449,
0.01622139848768711,
0.04578778147697449,
-0.01584961637854576,
-0.017278039827942848,
-0.046139996498823166,
0.059758927673101425,
-0.0062224422581493855,
-0.005283205769956112,
0.0034438674338161945,
0.021504603326320648,
0.001079877489246428,
-0.057723913341760635,
0.02483106590807438,
-0.025731168687343597,
-0.051070988178253174,
-0.03257976844906807,
-0.022580811753869057,
0.005679446272552013,
0.009710336104035378,
0.0169062577188015,
-0.021308928728103638,
-0.01860862411558628,
-0.05608024820685387,
0.03891961649060249,
-0.0653943419456482,
0.012934070080518723,
0.022189464420080185,
0.02469409443438053,
-0.018139006569981575,
0.01696496084332466,
0.039487071335315704,
0.07423882186412811,
0.01899018883705139,
-0.016055075451731682,
-0.00006718660006299615,
-0.024048369377851486,
0.03907615318894386,
-0.07564767450094223,
0.000021841377019882202,
0.003500123741105199,
-0.05009261518716812,
0.019978344440460205,
-0.03244279697537422,
-0.06324192881584167,
0.0163975041359663,
-0.005048396531492472,
-0.06069816276431084,
0.04786192998290062,
-0.025124577805399895,
0.020369693636894226,
-0.03334289789199829,
-0.04195256531238556,
-0.007274191360920668,
-0.050366561859846115,
0.006789897568523884,
0.01785527914762497,
-0.01002830732613802,
-0.05208849534392357,
0.02651386521756649,
-0.02483106590807438,
0.021308928728103638,
-0.005620743613690138,
-0.04163948819041252,
0.05968065559864044,
-0.012454668059945107,
-0.08727072924375534,
-0.05130579695105553,
-0.025163711979985237,
0.09815022349357605,
-0.029977301135659218,
0.0058457693085074425,
-0.026924781501293182,
-0.04179602861404419,
0.03148399293422699,
-0.0178846288472414,
-0.032658036798238754,
0.038195621222257614,
0.008007969707250595,
-0.027355264872312546,
0.046648748219013214,
-0.019068459048867226,
-0.01874559558928013,
0.010527276434004307,
-0.025887707248330116,
0.02353961579501629,
-0.006917085964232683,
-0.019958777353167534,
0.05009261518716812,
0.034888725727796555,
0.036414984613657,
0.07275170087814331,
0.024263611063361168,
-0.07259515672922134,
-0.007156786974519491,
0.03283414617180824,
-0.02175898104906082,
-0.038567401468753815,
0.048683762550354004,
-0.08124396204948425,
0.010977326892316341,
0.011026245541870594,
0.03494742885231972,
0.004820925183594227,
0.006158848293125629,
-0.007460081949830055,
-0.02984032779932022,
0.032305825501680374,
0.07169505953788757,
0.013912441208958626,
-0.07533460110425949,
-0.012474235147237778,
-0.026768241077661514,
-0.0526755154132843,
-0.004387995693832636,
-0.07760442048311234,
-0.0011440831003710628,
-0.00703449035063386,
-0.014059197157621384,
-0.027707478031516075,
0.0342821329832077,
-0.014636436477303505,
-0.03621931001543999,
0.03533877432346344,
0.01464622002094984,
0.002700305078178644,
-0.0551801472902298,
-0.011055597104132175,
-0.02796185575425625,
-0.004784236196428537,
-0.025144144892692566,
-0.01766938716173172,
0.026944348588585854,
0.0028568445704877377,
0.026239922270178795,
-0.02543765679001808,
-0.03522137179970741,
-0.021622007712721825,
0.01714106649160385,
-0.05776304751634598,
0.005924039054661989,
0.017551982775330544,
-0.021269794553518295,
-0.03960447385907173,
-0.001964080613106489,
-0.027550939470529556,
0.058819688856601715,
0.016524692997336388,
0.014851678162813187,
0.029233738780021667,
0.02207206003367901,
0.060306813567876816,
-0.012219859287142754,
-0.027316130697727203,
0.047587987035512924,
0.02982076071202755,
-0.011261055245995522,
-0.02303086407482624,
-0.008130266331136227,
-0.037647731602191925,
-0.04461373761296272,
-0.042461320757865906,
0.06359414011240005,
-0.07854365557432175,
-0.005283205769956112,
0.0036419876851141453,
0.05690208077430725,
-0.02817709743976593,
0.03310808911919594,
-0.03254063427448273,
-0.043909307569265366,
0.040582846850156784,
-0.0059827412478625774,
0.024596257135272026,
-0.025535494089126587,
0.013071042485535145,
-0.0035686097107827663,
0.028020557016134262,
-0.05048396438360214,
0.008731964975595474,
-0.01750306412577629,
-0.0700513944029808,
-0.037647731602191925,
-0.001306125894188881,
0.06750762462615967,
0.021837249398231506,
-0.03549531474709511,
0.042617857456207275,
-0.02244384028017521,
0.017904197797179222,
-0.0666075274348259,
-0.08977536112070084,
-0.016691016033291817,
-0.01168175507336855,
-0.011926347389817238,
-0.011828510090708733,
0.034869156777858734,
0.05760651081800461,
-0.04707923159003258,
-0.04363536462187767,
-0.013061258010566235,
-0.0376281663775444,
0.0765477791428566,
-0.028588013723492622,
-0.030681727454066277,
0.020115315914154053,
0.019968559965491295,
-0.004855168052017689,
0.004637480713427067,
-0.030818698927760124,
-0.004307280294597149,
0.017405226826667786,
0.017209554091095924,
0.05408437177538872,
-0.0180216021835804,
-0.01655404455959797,
0.030231676995754242,
0.026024680584669113,
0.018530353903770447,
-0.004351306706666946,
0.011623052880167961,
-0.040387172251939774,
0.03870437294244766,
0.0010040536290034652,
-0.016113776713609695,
-0.04461373761296272,
-0.01473427377641201,
0.05854574590921402,
0.015888752415776253,
-0.01599637232720852,
0.06453337520360947,
-0.021778548136353493,
-0.06574656069278717,
0.05279292166233063,
-0.03886091336607933,
0.011358892545104027,
0.041874296963214874,
0.023050431162118912,
-0.004182538017630577,
0.014391843229532242,
-0.04195256531238556,
0.042774397879838943,
0.014470113441348076,
-0.018657542765140533,
-0.0442223884165287,
-0.048135872930288315,
-0.008228103630244732,
0.03297111764550209,
0.0008505716687068343,
-0.000495300511829555,
-0.036356281489133835,
0.037256382405757904,
0.005972957704216242,
0.047940198332071304,
0.03935009986162186,
-0.012953637167811394,
0.005346799734979868,
-0.0471966378390789,
0.05157973989844322,
0.0175128486007452,
-0.026279056444764137,
-0.026044247671961784,
0.04320488125085831,
-0.039663176983594894,
-0.00102239812258631,
0.000750288600102067,
-0.017160635441541672,
0.023304807022213936,
0.02982076071202755,
0.002411685651168227,
-0.0006622351356782019,
-0.042617857456207275,
-0.0039232694543898106,
-0.08609668165445328,
0.0014956853119656444,
0.035964932292699814,
-0.02629862353205681,
0.004275483079254627,
-0.003228625748306513,
-0.028861956670880318,
0.035084400326013565,
-0.010899057611823082,
-0.034340836107730865,
-0.012503586709499359,
0.04551383852958679,
0.024968039244413376,
-0.009226042777299881,
0.007298650685697794,
0.008277022279798985,
-0.015693077817559242,
0.015585456974804401,
0.0038352159317582846,
-0.007538351695984602,
0.033616840839385986,
-0.017023662105202675,
-0.000036688928958028555,
-0.022404706105589867,
0.0457095131278038,
-0.006168631836771965,
0.08093088120222092,
0.03905658796429634,
0.00883469358086586,
-0.008149834349751472,
0.01188721228390932
] |
20,854 | precession.precession | eval_costheta1 |
Cosine of the angle between the orbital angular momentum and the spin of the primary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
costheta1: float
Cosine of the angle between orbital angular momentum and primary spin.
Examples
--------
``costheta1 = precession.eval_costheta1(deltachi,chieff,q,chi1)``
| def eval_costheta1(deltachi, chieff, q, chi1):
"""
Cosine of the angle between the orbital angular momentum and the spin of the primary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
costheta1: float
Cosine of the angle between orbital angular momentum and primary spin.
Examples
--------
``costheta1 = precession.eval_costheta1(deltachi,chieff,q,chi1)``
"""
deltachi = np.atleast_1d(deltachi).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
costheta1 = (1+q)/(2*chi1)*(chieff+deltachi)
return costheta1
| (deltachi, chieff, q, chi1) | [
-0.030533822253346443,
0.03672599792480469,
0.05430607497692108,
-0.027384355664253235,
0.030604997649788857,
-0.030035601928830147,
-0.0056450203992426395,
0.014688619412481785,
-0.028274035081267357,
0.011903920210897923,
0.09209968894720078,
0.024466203525662422,
0.029359444975852966,
0.007482210174202919,
-0.05067618191242218,
0.013505344279110432,
0.008705520071089268,
-0.03492884337902069,
-0.0172331053763628,
-0.03046264871954918,
0.01647687703371048,
-0.06327405571937561,
0.02921709604561329,
0.03772243857383728,
-0.04459076747298241,
0.0037277599330991507,
0.01943061500787735,
0.0039145927876234055,
-0.059395045042037964,
-0.035355888307094574,
0.03056940995156765,
-0.0049199312925338745,
-0.047330982983112335,
0.03661923483014107,
0.027437735348939896,
0.014501786790788174,
0.024982217699289322,
-0.01973310485482216,
-0.051423512399196625,
0.025943072512745857,
0.007891463115811348,
0.0333985909819603,
0.030373679473996162,
-0.00042565635521896183,
-0.03946620970964432,
-0.0033073858357965946,
-0.038932401686906815,
0.06313170492649078,
-0.02492883801460266,
-0.011103208176791668,
0.005342529155313969,
-0.06451960653066635,
-0.01818506233394146,
-0.008723313920199871,
-0.001290036248974502,
0.0313345342874527,
0.022010687738656998,
0.004750892054289579,
-0.014537373557686806,
-0.013443066738545895,
0.04412813484668732,
-0.009786481969058514,
0.04170820489525795,
0.020587198436260223,
0.020640579983592033,
-0.013069401495158672,
0.007824736647307873,
0.050177961587905884,
0.014261572621762753,
-0.011067621409893036,
-0.028060512617230415,
0.03850535675883293,
0.0012611215934157372,
-0.04669041559100151,
0.00748665863648057,
0.0022019583266228437,
-0.011725984513759613,
-0.05295376107096672,
0.025658374652266502,
-0.017580078914761543,
-0.025249121710658073,
-0.041850555688142776,
-0.00007749948417767882,
-0.06953740119934082,
-0.011040930636227131,
0.030480442568659782,
-0.00639680027961731,
-0.019412821158766747,
-0.07886125147342682,
0.030996456742286682,
-0.004321621265262365,
-0.04181496798992157,
-0.052206430584192276,
0.014982213266193867,
0.08348758518695831,
0.016281146556138992,
-0.02129894308745861,
-0.04498222842812538,
0.016450185328722,
0.01612100377678871,
0.0471530482172966,
0.041637029498815536,
0.0466192401945591,
0.026387913152575493,
0.03967973589897156,
-0.018087197095155716,
-0.029110334813594818,
0.01769573800265789,
0.05590749904513359,
-0.04825625196099281,
-0.09167264401912689,
-0.004724201746284962,
-0.0009936614660546184,
-0.08562281727790833,
-0.019234884530305862,
-0.050960879772901535,
-0.05088970437645912,
0.0429893434047699,
-0.004025802481919527,
0.028167273849248886,
0.07387904077768326,
0.013692177832126617,
0.03588969632983208,
0.022935954853892326,
0.003138346830382943,
0.015889687463641167,
-0.0009458411950618029,
-0.007838082499802113,
-0.009208189323544502,
-0.0559430867433548,
0.07708188891410828,
0.03476870059967041,
0.028576526790857315,
0.06480430066585541,
-0.013193956576287746,
0.0034230444580316544,
0.008069398812949657,
-0.024466203525662422,
0.053594332188367844,
-0.024110332131385803,
0.013923494145274162,
-0.012402141466736794,
0.000609986949712038,
-0.008064950816333294,
0.013282924890518188,
0.005333632696419954,
-0.01911032944917679,
-0.019911041483283043,
-0.05423490330576897,
0.005084522068500519,
-0.008976873010396957,
0.060854122042655945,
0.05145910009741783,
-0.04498222842812538,
0.022010687738656998,
-0.041743792593479156,
0.01810499094426632,
-0.004688614513725042,
0.027330974116921425,
-0.018327411264181137,
-0.013247337192296982,
0.0290213655680418,
0.03604983910918236,
0.01823844388127327,
0.011903920210897923,
-0.032669056206941605,
-0.030035601928830147,
0.028683288022875786,
-0.033914607018232346,
0.011067621409893036,
0.006045376416295767,
-0.05875447764992714,
-0.019448408856987953,
0.037686850875616074,
0.021797163411974907,
-0.049501802772283554,
-0.03736656531691551,
-0.024697521701455116,
0.012597871012985706,
-0.010293599218130112,
-0.024074744433164597,
-0.042206425219774246,
-0.020907483994960785,
-0.024074744433164597,
0.029786491766572,
0.04651247709989548,
0.039501797407865524,
0.04202849045395851,
0.023345207795500755,
0.0011337861651554704,
0.020960863679647446,
0.0064813196659088135,
-0.03503560274839401,
0.03185055032372475,
0.06046266108751297,
-0.06697512418031693,
0.034733112901449203,
-0.022242004051804543,
-0.06960857659578323,
0.025658374652266502,
-0.022348765283823013,
0.022419938817620277,
0.014982213266193867,
-0.018487554043531418,
0.06469754129648209,
-0.0372953936457634,
-0.03434165194630623,
0.03222421556711197,
-0.00479092774912715,
-0.005444842390716076,
0.03176158294081688,
0.032864782959222794,
-0.07387904077768326,
0.03361211717128754,
-0.05309611186385155,
0.0013322960585355759,
0.01634342409670353,
-0.019288266077637672,
0.023487556725740433,
0.019572963938117027,
-0.007144131697714329,
-0.00039952198858372867,
0.04252671077847481,
0.016049830242991447,
0.03978649526834488,
-0.01943061500787735,
-0.026138802990317345,
0.04576514661312103,
-0.012633457779884338,
-0.04967974126338959,
0.014056946150958538,
-0.03797154873609543,
-0.021583640947937965,
-0.03119218535721302,
0.015889687463641167,
0.056441307067871094,
0.011165485717356205,
0.038790054619312286,
-0.10654809325933456,
0.052882589399814606,
-0.0217615757137537,
0.02227759175002575,
0.02419929951429367,
0.04480429366230965,
-0.04124557226896286,
-0.02471531368792057,
-0.012188618071377277,
0.0024888801854103804,
-0.08740217983722687,
0.03217083588242531,
-0.034893255680799484,
-0.018736664205789566,
0.007237548008561134,
-0.0071886153891682625,
-0.04170820489525795,
-0.024697521701455116,
0.0015291377203539014,
-0.0011293377028778195,
0.010071178898215294,
-0.0053024934604763985,
-0.011574738658964634,
-0.03368328884243965,
-0.00475534051656723,
0.05355874449014664,
-0.04758009314537048,
0.014092533849179745,
-0.058469779789447784,
0.031121011823415756,
-0.047330982983112335,
-0.020498231053352356,
-0.031530264765024185,
-0.0030827417504042387,
0.017313174903392792,
0.0005440950044430792,
-0.01572064869105816,
0.013407479971647263,
-0.012544490396976471,
0.015044491738080978,
-0.039715323597192764,
-0.0008919043466448784,
-0.023594317957758904,
-0.048469774425029755,
-0.012695735320448875,
-0.04569397121667862,
-0.06544487178325653,
0.008807833306491375,
-0.005004450678825378,
0.006681498140096664,
0.05430607497692108,
0.030800726264715195,
0.004750892054289579,
0.024395029991865158,
-0.012446625158190727,
-0.026868339627981186,
0.12790042161941528,
0.04078293964266777,
-0.027437735348939896,
-0.025053393095731735,
0.04473311826586723,
0.05622778460383415,
0.010969756171107292,
0.05113881453871727,
-0.04078293964266777,
-0.08604986220598221,
-0.080854132771492,
-0.0069350567646324635,
0.021103212609887123,
0.03430606797337532,
0.0028180619701743126,
0.015320291742682457,
0.030604997649788857,
-0.041743792593479156,
-0.008460857905447483,
0.01429716031998396,
-0.006209967657923698,
0.0038567634765058756,
0.04679717496037483,
-0.012500005774199963,
0.10021357238292694,
-0.011779365129768848,
-0.010818510316312313,
0.018772251904010773,
0.08683278411626816,
-0.01815837249159813,
0.01810499094426632,
-0.04412813484668732,
-0.01516014989465475,
-0.005040037911385298,
-0.022135242819786072,
-0.006032031495124102,
-0.02715303748846054,
0.044839877635240555,
-0.001592527492903173,
0.00925267394632101,
-0.023540936410427094,
0.03601425141096115,
0.034430623054504395,
-0.0007762459572404623,
-0.06829185038805008,
-0.025658374652266502,
0.04839859902858734,
0.003801158396527171,
0.034537382423877716,
0.04056941345334053,
-0.021957306191325188,
-0.005698401480913162,
0.012010682374238968,
-0.025622788816690445,
0.003242884064093232,
0.004121443256735802,
-0.06419932097196579,
-0.04480429366230965,
0.03092528134584427,
0.01432385016232729,
0.07637014240026474,
0.08491107076406479,
-0.013861216604709625,
-0.07950181514024734,
0.03683275729417801,
-0.05896800011396408,
0.03932386264204979,
-0.017055168747901917,
-0.00636121304705739,
-0.01948399469256401,
-0.04409254714846611,
-0.03179716691374779,
-0.0028113892767578363,
0.034626349806785583,
-0.023487556725740433,
-0.00927046686410904,
-0.025516025722026825,
0.06505341082811356,
0.007651249412447214,
-0.03088969551026821,
0.004670820664614439,
0.009314951486885548,
0.03024912439286709,
0.016387907788157463,
-0.08512459695339203,
0.006810501683503389,
0.0564768947660923,
0.024537378922104836,
-0.09750894457101822,
0.028469765558838844,
-0.019145917147397995,
0.010489328764379025,
-0.07017797231674194,
-0.03156585246324539,
0.019982216879725456,
0.015729544684290886,
0.03172599524259567,
-0.022971540689468384,
0.0725623145699501,
-0.02870108187198639,
-0.0027446632739156485,
0.052669063210487366,
0.0766548439860344,
0.03542706370353699,
-0.10711748898029327,
-0.006859433837234974,
0.0230605099350214,
-0.058790065348148346,
0.024911044165492058,
-0.030444854870438576,
-0.035818520933389664,
-0.06042707711458206,
0.044484008103609085,
-0.015186839736998081,
-0.020925277844071388,
0.01280249748378992,
-0.02487545646727085,
0.003193951677531004,
0.000862433691509068,
0.049608565866947174,
-0.09423492103815079,
0.0024421720299869776,
-0.04864770919084549,
-0.05964415892958641,
-0.007624558638781309,
0.11131677776575089,
-0.01829182356595993,
-0.0476512685418129,
-0.07501783221960068,
0.009163705632090569,
0.06971533596515656,
0.023238444700837135,
0.038683291524648666,
0.030711758881807327,
0.0031583644449710846,
-0.0290213655680418,
0.008750004693865776,
0.0007729096105322242,
-0.020551610738039017,
-0.02596086636185646,
-0.010071178898215294,
0.04099646210670471,
0.01707296259701252,
0.0032940406817942858,
0.08049826323986053,
-0.0012422158615663648,
0.018122784793376923,
-0.010524916462600231,
0.049822088330984116,
-0.017624564468860626,
-0.10277584940195084,
-0.035000018775463104,
0.0005554940435104072,
-0.0321352481842041,
-0.025106774643063545,
-0.04651247709989548,
0.00011253063712501898,
0.050177961587905884,
-0.011023136787116528,
0.02663702331483364,
0.04886123538017273,
0.010329186916351318,
-0.01880783773958683,
0.02959076128900051,
-0.011138795875012875,
-0.0009591864072717726,
-0.014946626499295235,
0.0792882964015007,
0.07249113917350769,
0.004786479286849499,
0.0049822088330984116,
-0.00572509178891778,
0.06782921403646469,
0.02274022437632084,
-0.006846088916063309,
-0.033078309148550034,
0.021886130794882774,
-0.033967986702919006,
-0.011903920210897923,
0.01391459722071886,
0.0802847370505333,
0.033914607018232346,
-0.037437740713357925,
0.025088980793952942,
0.02119218185544014,
-0.03201069310307503,
-0.0003647688718046993,
-0.00351646076887846,
0.050249133259058,
0.0077669075690209866,
0.03482208028435707,
0.02419929951429367,
-0.04939504340291023,
-0.04103204980492592,
-0.02487545646727085,
0.0033718878403306007,
-0.005177938379347324,
0.014101430773735046,
0.006601426750421524,
0.002849200740456581,
-0.00297153159044683,
0.04035589098930359,
0.07537370175123215,
-0.002039591781795025,
-0.05964415892958641,
0.049252692610025406,
-0.009314951486885548,
0.06782921403646469,
-0.0626690685749054,
-0.0052001806907355785,
-0.018469760194420815,
-0.018612109124660492,
0.0025867449585348368,
-0.041530270129442215,
-0.05761568620800972,
0.02658364363014698,
-0.040284715592861176,
-0.03718863055109978,
0.02067616581916809,
0.020088978111743927,
0.007210857700556517,
0.01077402662485838,
-0.006685946136713028,
0.013825629837810993,
-0.015542712062597275,
0.007393241859972477,
-0.02539147064089775,
0.04306051880121231,
0.03725980594754219,
0.0024955528788268566,
-0.015845203772187233,
0.02845197170972824,
0.00953737087547779,
-0.0212455615401268,
0.045053403824567795,
0.010320289991796017,
-0.0019150364678353071,
-0.017500009387731552,
-0.007557832635939121,
0.05480429530143738,
-0.01002669520676136,
-0.015106769278645515,
-0.05928828567266464,
-0.03850535675883293,
-0.03336300700902939,
-0.03167261183261871,
-0.0005668930825777352,
0.021441292017698288,
0.03362990915775299,
-0.03750891610980034,
0.003565393155440688,
-0.04708187282085419,
-0.0008446400752291083,
0.03362990915775299,
-0.01875445805490017,
0.02517794817686081,
-0.04088969901204109,
-0.04985767602920532,
0.009492887184023857,
0.05444842576980591,
0.013478654436767101,
0.09231321513652802,
0.04106763377785683,
-0.02387901581823826,
0.0019383906619623303,
0.013069401495158672,
-0.003093862673267722,
-0.05014237388968468,
0.04829183965921402,
-0.03750891610980034,
-0.018896806985139847,
-0.020747341215610504,
0.03268684819340706,
0.04355873912572861,
0.02912812866270542,
-0.03320286422967911,
-0.04932386800646782,
0.047224223613739014,
0.0653025209903717,
0.03021353855729103,
-0.11523137241601944,
-0.015391466207802296,
-0.04014236852526665,
-0.07651249319314957,
-0.000908029789570719,
-0.025925278663635254,
-0.006450180895626545,
-0.01748221553862095,
-0.023131683468818665,
-0.008069398812949657,
0.03928827494382858,
-0.0002101869322359562,
0.01911032944917679,
0.024430617690086365,
-0.06156586483120918,
-0.008202850818634033,
-0.031103217974305153,
-0.03327403590083122,
0.004134788643568754,
0.03797154873609543,
0.01193950790911913,
-0.029234889894723892,
0.007028473075479269,
0.0075133489444851875,
-0.018122784793376923,
0.028950192034244537,
-0.048220664262771606,
-0.05651248246431351,
0.027597878128290176,
-0.02259787544608116,
0.009813171811401844,
0.015071181580424309,
0.023096095770597458,
-0.02916371449828148,
-0.002580072497949004,
-0.05740216374397278,
0.07765128463506699,
0.026548055931925774,
0.032562293112277985,
0.04669041559100151,
-0.01802491955459118,
0.02834520861506462,
-0.0062277610413730145,
-0.0349644310772419,
-0.03708186745643616,
0.03354094177484512,
-0.03617439419031143,
0.008790039457380772,
-0.020587198436260223,
-0.019199296832084656,
-0.013362996280193329,
-0.013674383983016014,
0.045053403824567795,
-0.06775803864002228,
-0.01604093238711357,
-0.044946640729904175,
0.02259787544608116,
0.021441292017698288,
0.012286483310163021,
-0.0186476968228817,
-0.03227759525179863,
0.003449734766036272,
-0.01682385243475437,
0.039252687245607376,
-0.020195739343762398,
-0.044021375477313995,
-0.01715303398668766,
0.0824199691414833,
-0.039928846061229706,
0.017170825973153114,
0.00864324253052473,
-0.06444843113422394,
-0.05626337230205536,
-0.05985768139362335,
0.05088970437645912,
-0.023434175178408623,
-0.019982216879725456,
0.06918153166770935,
-0.008460857905447483,
0.05377226695418358,
-0.022242004051804543,
-0.012669045478105545,
-0.02677937224507332,
-0.04103204980492592,
-0.06793597340583801,
-0.007802494801580906,
0.052775826305150986,
0.01604093238711357,
-0.01054270938038826,
-0.014830968342721462,
0.008256231434643269,
-0.013879010453820229,
0.07950181514024734,
-0.03571176156401634,
-0.061067644506692886,
-0.027437735348939896,
-0.043131694197654724,
0.0035298059228807688,
0.006014237646013498,
-0.05565838888287544,
0.029608555138111115,
0.032402150332927704,
-0.012588974088430405,
0.038007136434316635,
0.023238444700837135,
-0.0013300718273967505,
0.024537378922104836,
0.010676161386072636,
0.03574734926223755,
0.020373675972223282,
0.016281146556138992,
0.0017893691547214985,
-0.010604986920952797,
0.01845196634531021,
-0.027597878128290176,
-0.03357652947306633,
-0.011476874351501465,
0.03907475247979164,
-0.015240221284329891,
-0.009786481969058514,
0.07338082045316696,
0.0031694856006652117,
-0.06402138620615005,
0.03457297012209892,
-0.048469774425029755,
0.02311388961970806,
0.008478651754558086,
0.001794929732568562,
-0.002635677345097065,
0.020284706726670265,
-0.029786491766572,
0.020391469821333885,
0.027793608605861664,
-0.01921709068119526,
-0.04103204980492592,
-0.02030250057578087,
-0.0035298059228807688,
0.05088970437645912,
-0.008002673275768757,
0.05092529207468033,
-0.024733107537031174,
0.030444854870438576,
-0.024911044165492058,
0.03818507120013237,
0.039252687245607376,
0.010667265392839909,
-0.010747335851192474,
-0.02135232277214527,
0.07430608570575714,
-0.004986657295376062,
0.006654807366430759,
-0.0019572963938117027,
0.08918153494596481,
-0.030551616102457047,
-0.022242004051804543,
0.0007812503608874977,
0.0034052508417516947,
-0.003416371764615178,
0.03439503535628319,
0.009759791195392609,
0.022615669295191765,
0.003598756156861782,
0.029857665300369263,
-0.06288259476423264,
0.03357652947306633,
0.024395029991865158,
-0.008936837315559387,
0.02046264335513115,
0.019448408856987953,
-0.01777580939233303,
0.025053393095731735,
-0.031992897391319275,
-0.0383630096912384,
0.011806055903434753,
0.05875447764992714,
-0.001886121928691864,
-0.00909253116697073,
0.027953749522566795,
0.012295379303395748,
0.012419935315847397,
0.0689324215054512,
-0.011574738658964634,
-0.018683282658457756,
0.04160144552588463,
-0.017313174903392792,
-0.00040980891208164394,
-0.009750894270837307,
0.0429893434047699,
-0.0030871902126818895,
0.030907487496733665,
0.006459077820181847,
-0.0471530482172966,
0.002800268353894353,
0.025035599246621132
] |
20,855 | precession.precession | eval_costheta12 |
Cosine of the angle between the two spins. Valid inputs are either (theta1,theta2,deltaphi) or (deltachi,kappa,chieff,q,chi1,chi2).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
costheta12: float
Cosine of the angle between the two spins.
Examples
--------
``costheta12 = precession.eval_costheta12(theta1=theta1,theta2=theta2,deltaphi=deltaphi)``
``costheta12 = precession.eval_costheta12(deltachi=deltachi,kappa=kappa,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
| def eval_costheta12(theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, chieff=None, q=None, chi1=None, chi2=None):
"""
Cosine of the angle between the two spins. Valid inputs are either (theta1,theta2,deltaphi) or (deltachi,kappa,chieff,q,chi1,chi2).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
costheta12: float
Cosine of the angle between the two spins.
Examples
--------
``costheta12 = precession.eval_costheta12(theta1=theta1,theta2=theta2,deltaphi=deltaphi)``
``costheta12 = precession.eval_costheta12(deltachi=deltachi,kappa=kappa,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
"""
if theta1 is not None and theta2 is not None and deltaphi is not None and deltachi is None and kappa is None and chieff is None and q is None and chi1 is None and chi2 is None:
theta1=np.atleast_1d(theta1).astype(float)
theta2=np.atleast_1d(theta2).astype(float)
deltaphi=np.atleast_1d(deltaphi).astype(float)
costheta12 = np.sin(theta1)*np.sin(theta2)*np.cos(deltaphi) + np.cos(theta1)*np.cos(theta2)
elif theta1 is None and theta2 is None and deltaphi is None and deltachi is not None and kappa is not None and chieff is not None and q is not None and chi1 is not None and chi2 is not None:
deltachi = np.atleast_1d(deltachi).astype(float)
kappa = np.atleast_1d(kappa).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
# Machine generated with eq_generator.nb
costheta12 = 1/2 * q**(-2) * (chi1)**(-1) * (chi2)**(-1) * (-1 * \
(chi1)**2 + (-1 * q**4 * (chi2)**2 + q * (1 + q) * (r)**(1/2) * (-1 * \
(1 + -1 * q) * deltachi + (2 * (1 + q) * kappa + -1 * (1 + q) * \
chieff))))
else:
raise TypeError("Provide either (theta1,theta2,deltaphi) or (deltachi,kappa,chieff,q,chi1,chi2).")
return costheta12
| (theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, chieff=None, q=None, chi1=None, chi2=None) | [
0.007419346831738949,
-0.010063914582133293,
0.06343080848455429,
-0.060402896255254745,
-0.024281499907374382,
-0.029968533664941788,
-0.06048053503036499,
0.03334581479430199,
-0.03846997022628784,
0.041614335030317307,
0.056055132299661636,
0.029211556538939476,
0.06129574403166771,
-0.0011991537176072598,
-0.045340992510318756,
0.015323936007916927,
0.013412082567811012,
-0.05481291189789772,
-0.011878718622028828,
-0.031715404242277145,
-0.0175754576921463,
-0.05384242907166481,
-0.030589642003178596,
0.04553508758544922,
-0.039789825677871704,
0.054075345396995544,
0.024611463770270348,
0.02812461368739605,
-0.05589985474944115,
0.023796256631612778,
0.04033329710364342,
-0.025950731709599495,
-0.026824165135622025,
0.02148650586605072,
0.02928919345140457,
-0.024514414370059967,
0.03594671189785004,
0.010345354676246643,
-0.08866337686777115,
0.04491398110985756,
0.019865799695253372,
-0.013567360118031502,
0.04118732362985611,
-0.0019530982244759798,
-0.07430022209882736,
-0.02872631326317787,
-0.06572114676237106,
0.03695601597428322,
-0.03608258068561554,
-0.013353854417800903,
0.04914528876543045,
-0.12204801291227341,
0.009913490153849125,
0.008200585842132568,
-0.019283508881926537,
0.05027104914188385,
0.03256942704319954,
0.03082255832850933,
0.012111634947359562,
-0.05496818944811821,
0.06696336716413498,
-0.02164178341627121,
0.000995352165773511,
0.009583525359630585,
0.01719696819782257,
0.023602159693837166,
-0.0009989915415644646,
-0.00470684515312314,
0.04848536103963852,
0.03173481300473213,
-0.011956357397139072,
0.03703365474939346,
0.01944849081337452,
-0.030453775078058243,
0.008889629505574703,
-0.016983462497591972,
-0.035442061722278595,
-0.04262363910675049,
-0.007516395300626755,
-0.02872631326317787,
-0.053609512746334076,
-0.062033310532569885,
-0.013606179505586624,
-0.07616355270147324,
0.0034670524764806032,
0.05388124659657478,
0.036160219460725784,
0.0023437177296727896,
-0.06843850016593933,
-0.001849984284490347,
-0.06684690713882446,
-0.04262363910675049,
-0.006041260436177254,
0.027542324736714363,
0.0591994971036911,
-0.01822568103671074,
0.013499426655471325,
-0.06560468673706055,
0.0215835552662611,
-0.007579476572573185,
0.06277088075876236,
-0.02515493519604206,
0.05465763434767723,
0.062188588082790375,
0.0580737367272377,
-0.015285116620361805,
-0.06242150440812111,
0.05609394982457161,
0.04782542958855629,
-0.051474448293447495,
-0.08245228230953217,
0.009792178869247437,
0.0038212791550904512,
-0.06816677004098892,
-0.024572644382715225,
-0.0420413501560688,
-0.047786612063646317,
0.06626462191343307,
-0.01672143116593361,
0.019312623888254166,
0.02515493519604206,
0.0012725465930998325,
0.013382968492805958,
0.013790572062134743,
0.026824165135622025,
-0.01960376836359501,
0.05675388127565384,
0.010597680695354939,
-0.014809579588472843,
-0.024262089282274246,
0.04864063858985901,
0.006094636861234903,
0.04557390883564949,
0.08672241121530533,
-0.05865602567791939,
-0.002302472246810794,
0.03256942704319954,
0.012936546467244625,
0.04169197380542755,
-0.04635029658675194,
0.0357137955725193,
-0.014256403781473637,
-0.025135524570941925,
-0.04747605696320534,
0.0036320348735898733,
0.03439393639564514,
0.011393477208912373,
-0.02709590084850788,
-0.06641989946365356,
0.0035859367344528437,
0.02311691828072071,
0.02831871062517166,
0.010044504888355732,
-0.05613277107477188,
-0.013936144299805164,
-0.03658723086118698,
0.06475066393613815,
0.020690709352493286,
0.011781670153141022,
-0.008059865795075893,
0.0061140465550124645,
0.02076834812760353,
0.03899402916431427,
0.0229228213429451,
0.025601357221603394,
0.0032220054417848587,
0.0062984381802380085,
0.018186861649155617,
0.018050994724035263,
0.003940163180232048,
-0.03317112848162651,
-0.042080167680978775,
-0.02001137100160122,
0.008181176148355007,
0.01738136075437069,
-0.05023223161697388,
0.015420984476804733,
-0.09495211392641068,
0.030647872015833855,
-0.002416504081338644,
-0.011626393534243107,
-0.06952544301748276,
-0.03761594370007515,
-0.0039183273911476135,
0.006788532715290785,
0.09293350577354431,
0.0420413501560688,
0.014382566325366497,
0.0017274607671424747,
-0.016556449234485626,
0.05380360782146454,
0.007865769788622856,
-0.03367577865719795,
0.07325209677219391,
0.028648674488067627,
-0.04510807618498802,
0.03660663962364197,
-0.015605376102030277,
-0.0639742761850357,
0.006783680059015751,
0.005687033757567406,
0.018303319811820984,
-0.01000568550080061,
-0.02954152040183544,
0.0677785724401474,
-0.024592053145170212,
-0.03893580287694931,
0.022224074229598045,
-0.03744125738739967,
0.039323993027210236,
0.038664065301418304,
0.0015151675324887037,
-0.028241071850061417,
0.015353050082921982,
0.00895756296813488,
0.013130642473697662,
0.05574457719922066,
0.005517199169844389,
-0.03699483349919319,
0.014625187031924725,
0.062033310532569885,
-0.03449098765850067,
0.022418171167373657,
0.051319170743227005,
0.04673849046230316,
0.006972924340516329,
0.009200184606015682,
0.05947123467922211,
-0.019370852038264275,
-0.0637025386095047,
0.004165800753980875,
0.018875906243920326,
-0.031152522191405296,
-0.017274606972932816,
-0.009035201743245125,
0.021602964028716087,
0.018400369212031364,
0.005793787073343992,
-0.041614335030317307,
0.03410279378294945,
-0.024922018870711327,
0.003518003039062023,
-0.009001235477626324,
0.018118929117918015,
-0.033908694982528687,
0.027270589023828506,
0.024456186220049858,
-0.011985472403466702,
-0.05380360782146454,
0.011742851696908474,
-0.001380512840114534,
-0.03718893229961395,
0.02734822779893875,
0.007899736054241657,
-0.06793384999036789,
-0.02940565161406994,
0.000985040795058012,
-0.007293184287846088,
0.057957280427217484,
-0.010355059988796711,
-0.004437536001205444,
-0.03429688885807991,
-0.0372665710747242,
0.05023223161697388,
0.0031686287838965654,
0.03016262874007225,
-0.06607051938772202,
0.010355059988796711,
-0.017740439623594284,
-0.04712668061256409,
-0.014052602462470531,
0.046311475336551666,
-0.040643852204084396,
0.01923498511314392,
0.034782130271196365,
-0.014431091025471687,
0.023718617856502533,
-0.019875504076480865,
-0.025911912322044373,
-0.004165800753980875,
0.009709687903523445,
-0.05170736461877823,
0.005022252444177866,
-0.025426669046282768,
-0.04930056631565094,
0.006521649658679962,
-0.016808776184916496,
-0.025601357221603394,
0.12616287171840668,
-0.013635294511914253,
-0.022884001955389977,
0.013509131036698818,
0.028454577550292015,
0.011733146384358406,
0.11777788400650024,
0.049533482640981674,
-0.04875709488987923,
-0.014935742132365704,
0.04343884438276291,
0.011044102720916271,
0.014955151826143265,
0.042080167680978775,
0.05838429182767868,
-0.07131113111972809,
-0.030084989964962006,
0.002229686127975583,
0.08361686766147614,
0.031016655266284943,
0.0517461858689785,
0.01235425565391779,
0.04976639896631241,
-0.05935477465391159,
0.024824969470500946,
-0.009306937456130981,
0.015605376102030277,
-0.0197590459138155,
0.01531423069536686,
-0.0023691931273788214,
0.05675388127565384,
0.007186430972069502,
-0.023058690130710602,
-0.032123006880283356,
0.04720431938767433,
0.010413289070129395,
0.03126898035407066,
-0.06432364881038666,
-0.021719422191381454,
-0.04848536103963852,
0.022942231968045235,
0.0007308954373002052,
-0.018390662968158722,
0.02117595076560974,
0.006473125424236059,
0.037635352462530136,
-0.0383923314511776,
-0.003086137818172574,
-0.0210206750780344,
0.004265275318175554,
-0.021408867090940475,
-0.0035519700031727552,
0.03386987745761871,
0.020904216915369034,
0.004289537202566862,
0.03775181248784065,
0.012325141578912735,
-0.03862524777650833,
0.003260824829339981,
-0.052289653569459915,
-0.04704904556274414,
0.004066326189786196,
-0.072553351521492,
0.03567497804760933,
0.029425062239170074,
0.025853682309389114,
0.047941889613866806,
0.051668547093868256,
-0.0037169521674513817,
-0.04188607260584831,
0.03489859029650688,
-0.05745262652635574,
-0.012936546467244625,
0.054230622947216034,
-0.03295762091875076,
0.022534629330039024,
-0.007351412903517485,
-0.03765476122498512,
-0.007429051678627729,
0.055356383323669434,
0.01822568103671074,
-0.03260824829339981,
0.013790572062134743,
0.015294821001589298,
0.023796256631612778,
0.025834273546934128,
0.006662369705736637,
0.028454577550292015,
0.034626852720975876,
0.03303525969386101,
-0.07259216904640198,
-0.021040083840489388,
0.028357530012726784,
0.018031584098935127,
-0.06999127566814423,
0.04860181733965874,
-0.010316240601241589,
0.01207281555980444,
-0.021855290979146957,
-0.029463881626725197,
0.024727921932935715,
-0.0005134464590810239,
0.009185627102851868,
-0.021370047703385353,
0.0842379778623581,
-0.035092685371637344,
0.035907890647649765,
0.048368901014328,
0.05403652414679527,
0.03786826878786087,
-0.06517767906188965,
0.01619737036526203,
0.025795454159379005,
-0.05776318162679672,
0.024320319294929504,
-0.02408740296959877,
-0.020690709352493286,
-0.05426944047212601,
0.042740095406770706,
-0.0476701520383358,
-0.021059494465589523,
0.05481291189789772,
-0.038140006363391876,
-0.03181245177984238,
-0.01352854073047638,
0.013120938092470169,
-0.09200184047222137,
0.034937407821416855,
-0.03183186054229736,
0.0071427589282393456,
0.0061577181331813335,
0.03647077456116676,
0.007351412903517485,
-0.05741380900144577,
-0.029793845489621162,
0.0011676130816340446,
0.09945515543222427,
-0.008122947067022324,
0.0008867793949320912,
-0.024223269894719124,
0.010228896513581276,
-0.04635029658675194,
0.014508729800581932,
-0.0020004091784358025,
-0.025834273546934128,
0.000045870514441048726,
0.01166521292179823,
0.019458195194602013,
0.008501436561346054,
-0.011723442003130913,
0.057297348976135254,
-0.013926438987255096,
-0.019060296937823296,
-0.027794649824500084,
0.036781325936317444,
-0.018254796043038368,
-0.12165982276201248,
-0.05011577159166336,
0.012228093110024929,
-0.06354726105928421,
0.002107162494212389,
-0.04308947175741196,
0.01309182308614254,
0.043710581958293915,
-0.016469106078147888,
0.03433571010828018,
0.06762329488992691,
-0.026008959859609604,
0.01237366534769535,
-0.006002441048622131,
-0.0510474368929863,
-0.03914930671453476,
-0.03969277814030647,
0.051163893193006516,
0.041614335030317307,
0.03742184489965439,
0.02496083825826645,
-0.010151258669793606,
0.04615619778633118,
0.018866200000047684,
0.010432698763906956,
-0.034219250082969666,
-0.004049342591315508,
-0.03654841333627701,
0.018138337880373,
0.015925634652376175,
0.06261560320854187,
0.011422591283917427,
-0.042235445231199265,
-0.003120104782283306,
-0.04041093587875366,
-0.04138141870498657,
-0.008695532567799091,
0.03953750059008598,
0.002355848904699087,
0.00939913373440504,
0.04378822073340416,
0.0022066370584070683,
-0.007560066878795624,
-0.06797266751527786,
0.00034846426569856703,
0.009549558162689209,
0.0022551612928509712,
0.008967268280684948,
0.031094294041395187,
-0.01324710063636303,
-0.04153669625520706,
0.0517461858689785,
0.0659540668129921,
-0.00987952295690775,
-0.011170266196131706,
0.06048053503036499,
-0.0049033681862056255,
0.040449757128953934,
-0.03945986181497574,
-0.009214741177856922,
0.0046340590342879295,
-0.012480419129133224,
-0.03297703340649605,
-0.04173079505562782,
-0.08881865441799164,
0.05209555849432945,
-0.016498221084475517,
-0.04487515985965729,
0.07631883025169373,
0.002605748362839222,
0.0343162976205349,
0.04328356683254242,
-0.01809951849281788,
0.013897324912250042,
-0.0066089932806789875,
0.011102331802248955,
-0.019186459481716156,
0.03179304301738739,
0.02872631326317787,
-0.002938139019533992,
0.013635294511914253,
0.010044504888355732,
-0.013615884818136692,
-0.055084649473428726,
0.04301183298230171,
-0.019312623888254166,
-0.018613874912261963,
-0.02317514829337597,
-0.04017801955342293,
0.04735959693789482,
-0.043555304408073425,
-0.017779259011149406,
-0.028959229588508606,
-0.04258481785655022,
0.019739635288715363,
-0.049533482640981674,
-0.028182843700051308,
0.0014156929682940245,
-0.02311691828072071,
-0.03693660348653793,
0.006812794599682093,
-0.0045418632216751575,
0.0044569456949830055,
0.023951534181833267,
-0.03410279378294945,
0.04961112141609192,
-0.009185627102851868,
-0.04188607260584831,
0.0585007481276989,
0.06715746223926544,
0.006094636861234903,
0.05589985474944115,
0.01972993090748787,
-0.0022454564459621906,
0.006123751401901245,
0.027678191661834717,
-0.03903285041451454,
-0.06001470610499382,
0.004629206843674183,
-0.06350844353437424,
-0.02761996164917946,
-0.006972924340516329,
0.028823362663388252,
0.014625187031924725,
0.008433502167463303,
-0.005148415453732014,
-0.04440932720899582,
0.056365687400102615,
0.06094636768102646,
-0.019836684688925743,
-0.08641185611486435,
-0.007137906737625599,
-0.02761996164917946,
-0.038508787751197815,
-0.04068266972899437,
-0.028144024312496185,
0.004794188775122166,
0.043516483157873154,
-0.007249512244015932,
-0.010384174063801765,
0.03792649880051613,
0.04755369573831558,
-0.05077569931745529,
-0.01283949799835682,
-0.021855290979146957,
0.006618698127567768,
-0.03280234336853027,
0.0033336111810058355,
-0.0044496674090623856,
-0.01089853048324585,
-0.028027566149830818,
0.003945015836507082,
0.018148042261600494,
0.025795454159379005,
0.021447686478495598,
0.005905392579734325,
-0.05046514421701431,
-0.005250316113233566,
0.03806236758828163,
-0.03856701776385307,
0.051008615642786026,
0.0379653163254261,
0.017594866454601288,
-0.03775181248784065,
-0.03377282992005348,
-0.05566693842411041,
0.03817882388830185,
0.007472723722457886,
0.04864063858985901,
-0.019497014582157135,
0.022010566666722298,
0.028609855100512505,
0.002957548713311553,
-0.029308604076504707,
-0.025038477033376694,
0.0005243644118309021,
-0.020224878564476967,
0.03245297074317932,
-0.025349030271172523,
0.03128838911652565,
-0.012888021767139435,
0.02199115790426731,
0.02408740296959877,
-0.06979718059301376,
-0.012946250848472118,
-0.04002274200320244,
0.004318651743233204,
-0.03295762091875076,
0.034976229071617126,
-0.021234180778265,
-0.008317044004797935,
0.016119731590151787,
0.04017801955342293,
0.0374024361371994,
0.008782876655459404,
-0.005458970088511705,
-0.057297348976135254,
0.027484094724059105,
-0.008030751720070839,
0.02562076598405838,
-0.0021496210247278214,
-0.04308947175741196,
-0.05058160424232483,
-0.027328817173838615,
0.07542598247528076,
0.010811187326908112,
-0.03148248791694641,
0.04673849046230316,
-0.04130377992987633,
0.019215574488043785,
-0.03142425790429115,
-0.05558929964900017,
-0.022340532392263412,
-0.04495279863476753,
-0.00028705084696412086,
-0.028590446338057518,
0.029929714277386665,
0.04685494676232338,
-0.03555851802229881,
-0.015624785795807838,
-0.023718617856502533,
-0.016362352296710014,
0.028357530012726784,
-0.007433904334902763,
-0.0073320032097399235,
0.015867406502366066,
-0.03955690935254097,
-0.02562076598405838,
0.011577868834137917,
-0.027445275336503983,
0.0016959200147539377,
0.035849664360284805,
-0.025349030271172523,
0.007492133416235447,
-0.031094294041395187,
-0.008782876655459404,
0.05648214370012283,
0.0057598198764026165,
0.027445275336503983,
-0.030939016491174698,
-0.038353510200977325,
0.014149650931358337,
0.014256403781473637,
0.032744117081165314,
-0.00686617149040103,
-0.03025967814028263,
0.016245894134044647,
0.03658723086118698,
0.013363558799028397,
-0.005148415453732014,
0.05225083604454994,
0.016585564240813255,
-0.09021615236997604,
0.02878454327583313,
-0.03336522355675697,
-0.01619737036526203,
-0.03699483349919319,
0.009918342344462872,
-0.012674515135586262,
0.018021879717707634,
-0.02678534761071205,
0.005429855547845364,
-0.01948731020092964,
-0.036626048386096954,
-0.007749311160296202,
-0.03658723086118698,
0.0034719048999249935,
0.011170266196131706,
0.02414563111960888,
0.013023889623582363,
-0.04735959693789482,
-0.020127829164266586,
-0.027852877974510193,
0.03491799905896187,
0.02991030365228653,
-0.00407845713198185,
-0.016459401696920395,
-0.06005352362990379,
0.07767750322818756,
-0.022437579929828644,
-0.012752153910696507,
0.020283106714487076,
0.06207212805747986,
-0.0551234669983387,
0.03123016096651554,
-0.019535833969712257,
0.0014290370745584369,
0.030143219977617264,
0.03062846139073372,
0.052134376019239426,
-0.024514414370059967,
-0.0060218507423996925,
-0.014984266832470894,
-0.051319170743227005,
0.03313231095671654,
0.049028828740119934,
0.019157346338033676,
0.050193410366773605,
0.04382703825831413,
-0.026358334347605705,
-0.011490525677800179,
0.020147239789366722,
-0.05819019675254822,
0.00036848048330284655,
0.04037211835384369,
0.006740008480846882,
-0.028085794299840927,
0.024611463770270348,
0.045806825160980225,
0.03142425790429115,
0.04801952838897705,
0.0229228213429451,
0.011830194853246212,
-0.012994775548577309,
-0.02020546793937683,
-0.031094294041395187,
-0.015081314370036125,
0.05314368009567261,
-0.0028726314194500446,
0.044681064784526825,
0.012218387797474861,
-0.018584759905934334,
-0.017565753310918808,
0.04933938384056091
] |
20,856 | precession.precession | eval_costheta2 |
Cosine of the angle between the orbital angular momentum and the spin of the secondary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
costheta2: float
Cosine of the angle between orbital angular momentum and secondary spin.
Examples
--------
``costheta2 = precession.eval_costheta2(deltachi,chieff,q,chi2)``
| def eval_costheta2(deltachi, chieff, q, chi2):
"""
Cosine of the angle between the orbital angular momentum and the spin of the secondary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
costheta2: float
Cosine of the angle between orbital angular momentum and secondary spin.
Examples
--------
``costheta2 = precession.eval_costheta2(deltachi,chieff,q,chi2)``
"""
deltachi = np.atleast_1d(deltachi).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
costheta2 = (1+q)/(2*q*chi2)*(chieff-deltachi)
return costheta2
| (deltachi, chieff, q, chi2) | [
-0.00989125482738018,
0.04038557410240173,
0.03945799171924591,
-0.03881581872701645,
0.029111862182617188,
-0.03453465923666954,
-0.005106170661747456,
0.028719423338770866,
-0.034980613738298416,
0.00383074302226305,
0.11009707301855087,
0.033143285661935806,
0.023029053583741188,
-0.009480977430939674,
-0.031234603375196457,
0.018730059266090393,
0.020299816504120827,
-0.0643957257270813,
-0.02668587490916252,
-0.0003913244290743023,
-0.013378613628447056,
-0.09768171608448029,
0.013021850027143955,
0.006524303928017616,
-0.04206236079335213,
0.023938799276947975,
-0.014324035495519638,
0.020888475701212883,
-0.05590476468205452,
-0.021923087537288666,
0.02452745847404003,
-0.03594387322664261,
-0.02961133047938347,
0.05140955373644829,
0.04616513475775719,
0.031234603375196457,
0.02219066023826599,
-0.0033669511321932077,
-0.06553737074136734,
0.029290243983268738,
-0.0036523614544421434,
0.015180266462266445,
0.025526395067572594,
0.0107028903439641,
-0.03938663750886917,
-0.010595861822366714,
-0.05743884667754173,
0.041776951402425766,
-0.027292370796203613,
-0.027345886453986168,
0.010185584425926208,
-0.09340056031942368,
-0.02324311062693596,
0.016143526881933212,
0.012156699784100056,
0.018694382160902023,
0.01309320330619812,
0.011362901888787746,
0.013869162648916245,
-0.026596684008836746,
0.05312201380729675,
-0.040492601692676544,
0.019871700555086136,
0.04284723848104477,
-0.00355202192440629,
0.028933482244610786,
-0.0030882300343364477,
0.03407086804509163,
0.016500290483236313,
0.030521076172590256,
-0.017392197623848915,
0.04348941147327423,
0.0038597299717366695,
-0.046022430062294006,
-0.018569516018033028,
0.00110373564530164,
0.008428526110947132,
-0.03870878741145134,
0.02108469419181347,
-0.021494971588253975,
-0.03316112235188484,
-0.04645054414868355,
0.008919076062738895,
-0.06464546173810959,
-0.016562722623348236,
0.04302562028169632,
0.014243763871490955,
-0.016705429181456566,
-0.12993308901786804,
0.005132928024977446,
-0.04748515784740448,
-0.06182703375816345,
-0.02442042902112007,
-0.0011427565477788448,
0.06068538874387741,
-0.004319062456488609,
-0.029129700735211372,
-0.04438132047653198,
0.014752151444554329,
0.001994528342038393,
0.07292236387729645,
0.040778014808893204,
0.05540529638528824,
0.026882093399763107,
0.06528763473033905,
-0.03888716921210289,
-0.058616165071725845,
0.03485574573278427,
0.05101711302995682,
-0.04655757546424866,
-0.09090321511030197,
0.02388528361916542,
0.004468456842005253,
-0.08262631297111511,
-0.045201875269412994,
-0.03838770091533661,
-0.03259030357003212,
0.05233713611960411,
0.03626495972275734,
0.027524268254637718,
0.04809165745973587,
0.002530787605792284,
0.04430996626615524,
0.018569516018033028,
-0.016348665580153465,
0.02204795554280281,
-0.018230590969324112,
-0.005779561121016741,
-0.008410688489675522,
-0.027060475200414658,
0.059151310473680496,
-0.01680353842675686,
0.041134778410196304,
0.04249047487974167,
-0.021494971588253975,
-0.0179184228181839,
0.041455864906311035,
-0.01719597727060318,
0.07206612825393677,
-0.022404717281460762,
0.018765734508633614,
-0.01118452101945877,
-0.036817945539951324,
-0.04288291558623314,
-0.01698192022740841,
0.02547287940979004,
-0.0031685016583651304,
-0.0012676236219704151,
-0.013316179625689983,
0.011585879139602184,
-0.011889128014445305,
0.058081019669771194,
0.05922266095876694,
-0.019871700555086136,
0.04263318330049515,
-0.02880861423909664,
0.02845185063779354,
-0.008878939785063267,
0.020014405250549316,
-0.013476722873747349,
-0.0161881223320961,
0.014324035495519638,
0.012522381730377674,
0.01769544556736946,
0.05283660441637039,
-0.006461870390921831,
0.014805665239691734,
0.028184279799461365,
-0.01816815696656704,
0.026525331661105156,
-0.04470240697264671,
-0.07188774645328522,
-0.050018176436424255,
0.02327878773212433,
0.02324311062693596,
-0.04366779327392578,
-0.022636614739894867,
-0.04655757546424866,
0.0420980378985405,
-0.019693318754434586,
-0.02197660319507122,
-0.05718911439180374,
-0.006551060825586319,
-0.012852388434112072,
0.01798977516591549,
0.0504462905228138,
0.040885042399168015,
0.030199989676475525,
0.02342149242758751,
-0.004439469892531633,
0.04430996626615524,
0.003612225642427802,
-0.028755100443959236,
0.02222633734345436,
0.059151310473680496,
-0.046236488968133926,
0.026275597512722015,
0.029201053082942963,
-0.053585804998874664,
0.053942568600177765,
-0.008432986214756966,
0.05251551792025566,
0.0019220608519390225,
-0.023831769824028015,
0.09425678849220276,
-0.04320400208234787,
-0.02094198949635029,
0.0196754802018404,
-0.019871700555086136,
0.029004834592342377,
0.010818839073181152,
0.041598569601774216,
-0.05740316957235336,
0.002570923650637269,
-0.003054783446714282,
0.03266165405511856,
0.002820657566189766,
-0.00821892824023962,
-0.01500188559293747,
0.024919897317886353,
0.02190524898469448,
-0.021316591650247574,
0.02805941179394722,
0.029379434883594513,
0.03439195454120636,
-0.007982572540640831,
-0.004002435132861137,
0.04031422361731529,
-0.0010608125012367964,
-0.049126267433166504,
-0.0063949772156775,
-0.009035023860633373,
-0.013655104674398899,
-0.02640046365559101,
0.013414289802312851,
0.05943671986460686,
0.017820313572883606,
0.04741380736231804,
-0.0866934135556221,
0.0626119077205658,
-0.033107608556747437,
0.0006655860343016684,
-0.01162155531346798,
0.021602001041173935,
-0.05704640597105026,
-0.014502417296171188,
0.0282021164894104,
-0.015082157216966152,
-0.05576205998659134,
0.0504462905228138,
-0.027684811502695084,
-0.01896195486187935,
0.0014504647115245461,
0.006787416525185108,
-0.06978284567594528,
-0.03799526393413544,
-0.003344653407111764,
-0.02183389663696289,
0.01489485614001751,
-0.00791122019290924,
-0.009017185308039188,
-0.036782268434762955,
-0.045665666460990906,
0.045201875269412994,
-0.029165377840399742,
0.01167507003992796,
-0.06846282631158829,
0.005975780542939901,
-0.04491646587848663,
-0.017347602173686028,
-0.027149666100740433,
-0.023403653874993324,
0.005213199649006128,
0.021102532744407654,
-0.02190524898469448,
0.0276669729501009,
0.006439572665840387,
0.005784020759165287,
-0.025633422657847404,
-0.009275838732719421,
-0.02586532011628151,
-0.032608140259981155,
-0.040563955903053284,
-0.06032862886786461,
-0.04730677604675293,
-0.00753661897033453,
-0.02158416248857975,
0.01210318598896265,
0.06946176290512085,
0.02611505426466465,
-0.0224760714918375,
0.011666150763630867,
-0.011095330119132996,
0.014324035495519638,
0.14505983889102936,
0.059329692274332047,
-0.037495795637369156,
-0.019193850457668304,
0.050339262932538986,
0.045665666460990906,
-0.006551060825586319,
0.0672498270869255,
-0.022583099082112312,
-0.04802030324935913,
-0.020281977951526642,
0.009320434182882309,
0.05961510166525841,
0.02759562060236931,
-0.0025508557446300983,
0.02449178136885166,
0.03011079877614975,
-0.05554800480604172,
-0.00969503540545702,
0.02395663782954216,
-0.0026846418622881174,
0.017080029472708702,
0.0018930737860500813,
-0.014493498019874096,
0.062219470739364624,
-0.017757879570126534,
-0.017820313572883606,
-0.018480325117707253,
0.09282974153757095,
-0.020389007404446602,
0.04384617507457733,
-0.03571197763085365,
-0.04655757546424866,
0.004620081279426813,
0.034160058945417404,
0.010711809620261192,
-0.013030769303441048,
0.04206236079335213,
0.0033268153201788664,
0.004678055178374052,
-0.0005097808898426592,
0.0243847519159317,
0.02838049829006195,
0.013378613628447056,
-0.04213371500372887,
-0.0043703471310436726,
0.011380740441381931,
0.00710404384881258,
0.026935609057545662,
0.019657643511891365,
-0.015037561766803265,
-0.02115604653954506,
-0.009142052382230759,
-0.028469689190387726,
-0.011246954090893269,
0.018034370616078377,
-0.05205172672867775,
-0.0529436320066452,
0.011362901888787746,
0.02158416248857975,
0.015055399388074875,
0.08348254859447479,
-0.024188533425331116,
-0.0629686713218689,
0.04249047487974167,
-0.05201604962348938,
0.0087808296084404,
0.04181262478232384,
-0.0027448455803096294,
-0.020442521199584007,
-0.02625775896012783,
-0.01235292013734579,
-0.019621966406702995,
0.0469856895506382,
-0.018373295664787292,
-0.022939862683415413,
-0.011987237259745598,
0.04862679913640022,
0.0689266175031662,
-0.022725803777575493,
0.013021850027143955,
0.006247812416404486,
-0.001169513794593513,
0.0174100361764431,
-0.05526259168982506,
0.008432986214756966,
0.03590819984674454,
0.026810741052031517,
-0.12650816142559052,
0.011585879139602184,
-0.007010393310338259,
0.03187677636742592,
-0.07677540183067322,
-0.010363966226577759,
0.02834482304751873,
-0.00833041686564684,
-0.006537682376801968,
-0.0005167489289306104,
0.08583718538284302,
-0.049804117530584335,
0.021851735189557076,
0.053478777408599854,
0.06985419988632202,
0.024795029312372208,
-0.08483824878931046,
-0.008134196512401104,
-0.012896982952952385,
-0.02604370005428791,
0.05622585117816925,
-0.03269733116030693,
-0.021923087537288666,
-0.050339262932538986,
0.029272405430674553,
0.016750024631619453,
-0.01974683254957199,
0.025348013266921043,
-0.05119549483060837,
-0.029004834592342377,
-0.013824567198753357,
0.027238857001066208,
-0.1005358174443245,
0.007282425183802843,
-0.06175567954778671,
-0.02161983959376812,
-0.005891049280762672,
0.09254433214664459,
-0.01568865403532982,
-0.06971149146556854,
-0.058223724365234375,
-0.018150318413972855,
0.0476992167532444,
0.003003498772159219,
0.014038625173270702,
0.041634246706962585,
0.015563786961138248,
-0.05529826879501343,
0.01906898431479931,
0.033946000039577484,
-0.022850671783089638,
-0.015099994838237762,
-0.012361838482320309,
0.016286231577396393,
0.03342869505286217,
-0.009311514906585217,
0.09589789807796478,
0.01676786132156849,
-0.007095124572515488,
0.012335081584751606,
0.05583341419696808,
-0.005605638958513737,
-0.08833452314138412,
-0.045059170573949814,
0.008499879390001297,
-0.015037561766803265,
-0.001988953910768032,
-0.049554385244846344,
0.013637267053127289,
0.04794894903898239,
-0.0033870190382003784,
0.05290795490145683,
0.02604370005428791,
0.013262665830552578,
0.004731569439172745,
0.009579087607562542,
-0.020513873547315598,
-0.004022503271698952,
-0.041027747094631195,
0.07056772708892822,
0.06532330811023712,
0.01651812717318535,
-0.009101917035877705,
-0.007817570120096207,
0.07570511102676392,
-0.013155636377632618,
0.023796094581484795,
-0.027417238801717758,
-0.009057321585714817,
-0.05761722847819328,
-0.00958800595253706,
-0.016714347526431084,
0.09033239632844925,
0.041313156485557556,
-0.03125244006514549,
0.008201089687645435,
0.021602001041173935,
-0.04288291558623314,
-0.007549997419118881,
0.01217453833669424,
0.0004529218131210655,
-0.008548934012651443,
0.033107608556747437,
-0.006956879049539566,
-0.03351788595318794,
-0.045665666460990906,
-0.004341360181570053,
-0.015982983633875847,
0.021851735189557076,
0.009980445727705956,
-0.0021350036840885878,
-0.05155225843191147,
-0.005703748669475317,
0.0556907095015049,
0.05740316957235336,
0.0238496083766222,
-0.07413535565137863,
0.045594315975904465,
-0.026311272755265236,
0.03226921707391739,
-0.03788823261857033,
-0.029575655236840248,
-0.0382806733250618,
-0.019621966406702995,
-0.013262665830552578,
-0.03633631393313408,
-0.04402455687522888,
0.03578333184123039,
-0.005957942456007004,
-0.021958764642477036,
0.04327535629272461,
0.004278926644474268,
0.023189596831798553,
0.005792939569801092,
-0.026132890954613686,
0.03881581872701645,
0.016857052221894264,
0.0010647146264091134,
-0.024188533425331116,
0.016750024631619453,
0.014680798165500164,
-0.0015229322016239166,
0.022975537925958633,
-0.021923087537288666,
0.01334293745458126,
-0.004776164889335632,
0.06032862886786461,
-0.05540529638528824,
-0.007781893480569124,
-0.02866590954363346,
-0.01050667092204094,
0.030199989676475525,
-0.0330362543463707,
-0.009909093379974365,
-0.032964903861284256,
-0.014324035495519638,
-0.054442036896944046,
-0.05579773709177971,
-0.001429281895980239,
0.01981818675994873,
0.00301687722094357,
-0.0375671461224556,
0.0007408407400362194,
-0.009017185308039188,
-0.022707967087626457,
-0.0017258410807698965,
-0.011362901888787746,
0.018587352707982063,
-0.03316112235188484,
-0.013601589947938919,
0.031216764822602272,
0.0386374369263649,
-0.003407086944207549,
0.07356453686952591,
0.012361838482320309,
-0.04655757546424866,
-0.00593564473092556,
0.0070326910354197025,
-0.01636650413274765,
-0.03355356305837631,
0.015537030063569546,
-0.03291139006614685,
-0.003271071007475257,
-0.011220197193324566,
0.029397273436188698,
0.06300435215234756,
-0.00611402653157711,
-0.03280435875058174,
-0.04802030324935913,
0.04919762164354324,
0.09925147145986557,
0.02395663782954216,
-0.06985419988632202,
0.01219237595796585,
-0.008205549791455269,
-0.07117422670125961,
0.04670028015971184,
-0.03738876432180405,
-0.007973653264343739,
0.022493908181786537,
-0.005016980227082968,
0.007402832619845867,
0.021423619240522385,
-0.02147713489830494,
-0.0015719870571047068,
0.027417238801717758,
-0.03870878741145134,
-0.007875544019043446,
0.0028920103795826435,
-0.00884772278368473,
-0.010524509474635124,
-0.0050704944878816605,
0.005213199649006128,
-0.05301498621702194,
-0.001696854131296277,
0.044809434562921524,
-0.010417480021715164,
0.01160371769219637,
-0.0522301085293293,
-0.054656095802783966,
0.05312201380729675,
-0.04819868505001068,
0.004055949859321117,
-0.0024661244824528694,
0.03496277704834938,
-0.06571575254201889,
-0.03560495004057884,
-0.019443584606051445,
0.05622585117816925,
0.020157111808657646,
0.04377482458949089,
0.03355356305837631,
-0.0024415969382971525,
0.04263318330049515,
0.004546498879790306,
-0.05665396898984909,
-0.04680730774998665,
0.03176974877715111,
-0.05351445451378822,
0.03531954064965248,
0.017383279278874397,
0.008192171342670918,
-0.03014647588133812,
-0.01762409321963787,
0.034980613738298416,
-0.05205172672867775,
-0.021994439885020256,
-0.02327878773212433,
-0.008067304268479347,
-0.00944530125707388,
0.024295562878251076,
-0.02643614076077938,
-0.05686802789568901,
0.0018819249235093594,
0.009900174103677273,
0.05133819952607155,
-0.00596240209415555,
-0.012459948658943176,
-0.013146717101335526,
0.06507357209920883,
-0.04794894903898239,
0.023689065128564835,
-0.03332166746258736,
-0.06746388971805573,
-0.02618640661239624,
-0.03492709994316101,
0.04413158446550369,
-0.01586703583598137,
-0.006814173888415098,
0.058758869767189026,
0.005752803757786751,
0.04181262478232384,
-0.053692836314439774,
-0.030378371477127075,
0.010720728896558285,
-0.0348200723528862,
-0.024741515517234802,
0.00033585893106646836,
0.08426743000745773,
0.045451607555150986,
-0.0214057806879282,
-0.01575108803808689,
-0.018266266211867332,
-0.01813247986137867,
0.0943281427025795,
-0.01261157263070345,
-0.06011456996202469,
-0.029807550832629204,
0.00738499453291297,
-0.008392849937081337,
0.002252066507935524,
-0.03781688213348389,
-0.02533017471432686,
0.03856608271598816,
-0.03328599035739899,
0.04356076568365097,
0.015233781188726425,
0.025847481563687325,
0.050339262932538986,
0.01572433114051819,
0.013441046699881554,
0.010346127673983574,
0.007371616084128618,
0.03046756237745285,
0.002268789801746607,
0.022511746734380722,
-0.0334465317428112,
-0.07734622061252594,
-0.02370690368115902,
0.031109735369682312,
-0.05105279013514519,
-0.011023977771401405,
0.058830223977565765,
-0.01650920882821083,
-0.0595080740749836,
0.03845905512571335,
-0.03223353996872902,
0.0242063719779253,
-0.008691639639437199,
0.0200322438031435,
0.037281736731529236,
0.012781035155057907,
-0.023189596831798553,
0.015430000610649586,
-0.0021082465536892414,
-0.05091008543968201,
-0.017365440726280212,
-0.041277483105659485,
-0.009909093379974365,
0.022315526381134987,
-0.00833041686564684,
0.012932660058140755,
-0.03301841765642166,
0.006524303928017616,
-0.025348013266921043,
0.035051967948675156,
0.017427872866392136,
0.01666083373129368,
0.013209151104092598,
-0.025526395067572594,
0.07591917365789413,
0.003177420701831579,
-0.002530787605792284,
0.020977666601538658,
0.06414598971605301,
-0.020389007404446602,
0.006252272054553032,
-0.029361596331000328,
-0.0074697257950901985,
-0.013182394206523895,
0.03924393281340599,
0.013762134127318859,
-0.0013434357242658734,
0.009668277576565742,
-0.00951665360480547,
-0.07741757482290268,
0.05647558718919754,
0.0348200723528862,
0.030342694371938705,
0.04869815334677696,
0.029415111988782883,
-0.0020123664289712906,
0.003462831024080515,
-0.0010251362109556794,
-0.058544810861349106,
-0.004385955631732941,
0.07563376426696777,
0.016999758780002594,
-0.006430653389543295,
0.014903775416314602,
0.03753146901726723,
0.02650749310851097,
0.05201604962348938,
0.013494561426341534,
-0.008383930660784245,
0.006350381765514612,
-0.04652189835906029,
0.00033864614670164883,
0.026721550151705742,
0.062076766043901443,
-0.005235497374087572,
0.022939862683415413,
0.02561558596789837,
-0.028719423338770866,
-0.008838803507387638,
0.030556753277778625
] |
20,857 | precession.precession | eval_costhetaL |
Cosine of the angle betwen the orbital angular momentum and the total angular momentum.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
costhetaL: float
Cosine of the angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``costhetaL = precession.eval_costhetaL(deltachi,kappa,r,chieff,q)``
| def eval_costhetaL(deltachi, kappa, r, chieff, q):
"""
Cosine of the angle betwen the orbital angular momentum and the total angular momentum.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
costhetaL: float
Cosine of the angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``costhetaL = precession.eval_costhetaL(deltachi,kappa,r,chieff,q)``
"""
deltachi = np.atleast_1d(deltachi).astype(float)
kappa = np.atleast_1d(kappa).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
# Machine generated with eq_generator.nb
costhetaL = ((1 + 2 * q**(-1) * ((1 + q))**2 * (r)**(-1/2) * \
kappa))**(-1/2) * (1 + 1/2 * q**(-1) * (1 + q) * (r)**(-1/2) * ((1 + \
-1 * q) * deltachi + (1 + q) * chieff))
return costhetaL
| (deltachi, kappa, r, chieff, q) | [
-0.043596457690000534,
0.022049402818083763,
0.010997789911925793,
-0.012764970771968365,
0.02883107401430607,
-0.024973774328827858,
-0.021941756829619408,
-0.031001925468444824,
-0.03297542780637741,
0.002875033998861909,
0.0776483416557312,
-0.012962321750819683,
0.03918299078941345,
0.004590635187923908,
-0.07728952169418335,
0.014263038523495197,
-0.03846535086631775,
-0.06010211259126663,
-0.009562515653669834,
-0.037209488451480865,
-0.0067861564457416534,
-0.07144077867269516,
0.044924087822437286,
0.0410129651427269,
-0.028526077046990395,
0.004382072016596794,
0.036312442272901535,
0.018281806260347366,
-0.04510349780321121,
0.027072861790657043,
0.04607230797410011,
-0.02307203598320484,
-0.04535466805100441,
-0.006068519316613674,
0.0097060427069664,
-0.0023098946548998356,
0.02635522559285164,
-0.06160915270447731,
-0.030948102474212646,
-0.028059612959623337,
0.0011330818524584174,
0.014298920519649982,
0.05776979401707649,
-0.002051993738859892,
-0.0562986359000206,
-0.05873860418796539,
-0.0315401554107666,
0.04589289799332619,
0.002801027614623308,
-0.018093427643179893,
0.023933200165629387,
-0.0664890855550766,
-0.03268837183713913,
-0.014917883090674877,
-0.019232675433158875,
0.03171956166625023,
0.03925475478172302,
-0.015581697225570679,
0.01565346121788025,
-0.010351915843784809,
0.042017657309770584,
-0.04933755472302437,
0.02203146182000637,
0.05102400481700897,
0.025637587532401085,
-0.01751931756734848,
0.0009587184176780283,
0.05690862610936165,
0.0388241708278656,
-0.023036153987050056,
-0.02477642334997654,
0.030338112264871597,
0.021493233740329742,
-0.035756271332502365,
0.01623654179275036,
0.003868512809276581,
-0.03825006261467934,
-0.06089151278138161,
-0.013778633438050747,
-0.007521734572947025,
-0.01975296251475811,
-0.053033385425806046,
0.0024960318114608526,
-0.036025386303663254,
0.011733368039131165,
-0.009329283609986305,
0.037747714668512344,
-0.023861436173319817,
-0.03950592502951622,
0.016155807301402092,
-0.06343912333250046,
-0.011437342502176762,
-0.05073694884777069,
0.012729089707136154,
0.0366353765130043,
-0.0021764589473605156,
-0.008086874149739742,
-0.022892626002430916,
0.06953904032707214,
0.028472254052758217,
0.09652219712734222,
0.05762626603245735,
0.05597569793462753,
0.04675406217575073,
0.053176913410425186,
-0.003747411537915468,
-0.037353016436100006,
0.017214322462677956,
0.08625999093055725,
-0.0313069224357605,
-0.07007727026939392,
0.060676224529743195,
0.02678580768406391,
-0.052064575254917145,
-0.042089421302080154,
-0.0075576165691018105,
-0.03234749659895897,
0.033011309802532196,
0.006602262146770954,
0.03860887885093689,
0.01926855742931366,
-0.002422025427222252,
-0.009930304251611233,
-0.0005634573171846569,
-0.00200489885173738,
0.030876338481903076,
-0.0003411579818930477,
-0.02594258449971676,
0.004727434832602739,
-0.03853711485862732,
0.09135521203279495,
0.03943416103720665,
0.06584320962429047,
0.037424780428409576,
-0.012029393576085567,
0.0390753448009491,
-0.016263453289866447,
0.0029871647711843252,
0.05210045725107193,
-0.005413675215095282,
0.014236127026379108,
0.011760279536247253,
0.027431681752204895,
0.022390279918909073,
0.02642698958516121,
0.014568034559488297,
0.027144625782966614,
0.017465494573116302,
-0.02628346160054207,
0.010459561832249165,
0.004426924511790276,
0.043524693697690964,
0.057375092059373856,
-0.027090802788734436,
0.022408220916986465,
-0.03166573867201805,
0.011105434969067574,
-0.008306650444865227,
0.023448795080184937,
-0.04090531915426254,
-0.017653875052928925,
0.0012233471497893333,
0.01953767240047455,
0.0007529583526775241,
0.0003509694361127913,
-0.0448882058262825,
0.004153325222432613,
0.05149046704173088,
-0.03821418061852455,
0.03261660784482956,
-0.003032017033547163,
-0.07456250488758087,
-0.04976813867688179,
0.029441064223647118,
0.027359917759895325,
-0.028041671961545944,
-0.022623511031270027,
-0.03494893014431,
0.025924643501639366,
-0.015258760191500187,
-0.044852323830127716,
-0.02312585711479187,
-0.002455664798617363,
-0.044421739876270294,
0.016774769872426987,
0.01914297230541706,
-0.007974742911756039,
0.010145595297217369,
-0.01934032142162323,
0.027072861790657043,
-0.03184514865279198,
-0.012756001204252243,
-0.02883107401430607,
0.0245073102414608,
-0.00416229572147131,
-0.0001910428691189736,
0.03015870228409767,
-0.00048720836639404297,
-0.06372617930173874,
0.0410129651427269,
0.0036263102665543556,
0.0725531205534935,
0.01483714859932661,
-0.011715427041053772,
0.0490146204829216,
-0.057446856051683426,
-0.04962461069226265,
0.034392762929201126,
-0.02077559567987919,
0.013984953984618187,
0.03957768902182579,
0.02174440585076809,
-0.0737731009721756,
0.02457907237112522,
-0.01764490455389023,
0.021116474643349648,
0.0019107089610770345,
0.034392762929201126,
0.027019038796424866,
-0.015680372714996338,
0.01616477780044079,
-0.05389455333352089,
0.01834459975361824,
0.03132486343383789,
0.03311895579099655,
-0.02802373096346855,
0.0006711028981953859,
0.05256692320108414,
-0.021080592647194862,
-0.04722052440047264,
-0.012406152673065662,
-0.02683963067829609,
-0.009894422255456448,
-0.025009656324982643,
0.008643042296171188,
0.029369302093982697,
0.01414642296731472,
0.08597293496131897,
-0.0851835310459137,
0.048835210502147675,
-0.06300854682922363,
-0.004830595105886459,
0.016972118988633156,
0.032580725848674774,
-0.022874685004353523,
0.02023736760020256,
0.034033942967653275,
0.010127654299139977,
-0.09479986876249313,
0.04607230797410011,
-0.04384763166308403,
-0.019322380423545837,
0.0088583342730999,
-0.009078110568225384,
-0.019358262419700623,
0.0006346603622660041,
0.03918299078941345,
0.015527874231338501,
0.02113441564142704,
-0.02608611062169075,
-0.031970735639333725,
-0.0512034110724926,
-0.019358262419700623,
0.03577421233057976,
-0.05568864569067955,
-0.00032069411827251315,
-0.058128610253334045,
0.026893453672528267,
-0.006696451921015978,
-0.015160085633397102,
0.022802921012043953,
0.02890283800661564,
-0.03358541801571846,
-0.007248135283589363,
-0.008006139658391476,
0.006463219877332449,
-0.010746616870164871,
0.04811757430434227,
-0.03606126829981804,
0.009625308215618134,
-0.041192375123500824,
-0.044565267860889435,
-0.05665745586156845,
-0.016191689297556877,
-0.11489371210336685,
0.04933755472302437,
-0.030391933396458626,
-0.029781943187117577,
0.04844050854444504,
-0.005853228271007538,
0.008100329898297787,
0.00412417110055685,
-0.016774769872426987,
-0.0168644730001688,
0.18385864794254303,
0.026516692712903023,
-0.024004964157938957,
-0.005996755789965391,
0.08561411499977112,
0.036025386303663254,
0.012352329678833485,
0.01989649049937725,
0.061429742723703384,
-0.10786087065935135,
-0.06275737285614014,
-0.02188793383538723,
0.03577421233057976,
0.008652012795209885,
-0.0035747301299124956,
0.021708523854613304,
0.03649184852838516,
-0.00875965878367424,
0.013653047382831573,
-0.0158956628292799,
0.01659535989165306,
0.020345013588666916,
-0.002244858769699931,
-0.013751721940934658,
0.053930435329675674,
-0.01601227931678295,
-0.009167814627289772,
0.01606610231101513,
0.05328455939888954,
0.00878208503127098,
0.0007036208407953382,
-0.07230194658041,
-0.02422025427222252,
-0.0031531183049082756,
0.000132034023408778,
-0.054540425539016724,
0.01083632092922926,
0.02594258449971676,
-0.04165883734822273,
-0.0035209073685109615,
-0.017922988161444664,
0.033280424773693085,
0.0271805077791214,
0.01599433831870556,
-0.06272149085998535,
-0.02883107401430607,
0.046287596225738525,
0.015169056132435799,
-0.015832869336009026,
0.09795747697353363,
-0.007490337826311588,
-0.00538676418364048,
0.031504273414611816,
-0.0034693272318691015,
-0.0135902538895607,
0.01689138449728489,
-0.05877448618412018,
-0.024884069338440895,
0.0366353765130043,
-0.0011997997062280774,
0.053930435329675674,
0.0553298257291317,
-0.019430026412010193,
-0.05863095819950104,
0.03232955560088158,
-0.021529115736484528,
0.00815415196120739,
-0.040044154971838,
-0.0014341530622914433,
0.007068726234138012,
-0.04933755472302437,
-0.04596466198563576,
0.016801679506897926,
0.010002068243920803,
0.015312583185732365,
0.008508485741913319,
-0.01865856721997261,
0.0015406772727146745,
0.05105988308787346,
0.013545401394367218,
0.00959839764982462,
0.028526077046990395,
0.02009384147822857,
0.01919679529964924,
-0.1067844107747078,
0.009078110568225384,
0.06853435188531876,
0.028992541134357452,
-0.027629030868411064,
-0.006454249378293753,
-0.004610818810760975,
-0.0025408840738236904,
-0.04872756451368332,
-0.010585147887468338,
0.020596187561750412,
-0.007687688339501619,
0.03028428927063942,
-0.05306926742196083,
0.10534913837909698,
-0.02967429719865322,
-0.007301958277821541,
-0.001610198407433927,
0.049947548657655716,
0.020685890689492226,
-0.06828317791223526,
-0.0038438441697508097,
0.026606397703289986,
-0.031199276447296143,
0.007266076281666756,
-0.03943416103720665,
-0.03921887278556824,
-0.0061492533423006535,
0.046287596225738525,
0.00880899652838707,
-0.042017657309770584,
0.030320171266794205,
-0.012863646261394024,
0.033836591988801956,
-0.005355367437005043,
0.023287326097488403,
-0.09688101708889008,
0.0065529244020581245,
-0.05005519464612007,
-0.0397929809987545,
-0.00929340161383152,
0.10836321115493774,
-0.023699967190623283,
-0.0686778798699379,
-0.0194120854139328,
0.014810237102210522,
0.0929340124130249,
0.05357161536812782,
0.007490337826311588,
0.019842667505145073,
-0.0022314030211418867,
-0.03476952016353607,
0.02766491286456585,
-0.01555478572845459,
0.0015474051469936967,
0.00218991469591856,
0.006337633356451988,
0.018407393246889114,
0.0075890133157372475,
0.02319762110710144,
0.041120611131191254,
-0.04176648333668709,
0.04191001132130623,
-0.03570244833827019,
0.04137178137898445,
0.01608404330909252,
-0.07606954127550125,
-0.03378276899456978,
0.010961907915771008,
-0.0317913256585598,
-0.028866956010460854,
-0.012845705263316631,
0.00412417110055685,
0.06659673154354095,
-0.004965152125805616,
0.06064034253358841,
0.03911122679710388,
0.02841843292117119,
-0.021726464852690697,
-0.018093427643179893,
-0.029136069118976593,
0.011473224498331547,
-0.013742751441895962,
0.07872480154037476,
0.10420091450214386,
0.005077282898128033,
0.017976811155676842,
-0.03828594461083412,
0.05755450204014778,
-0.022892626002430916,
-0.019304439425468445,
-0.043129995465278625,
0.011948659084737301,
-0.04348881170153618,
-0.02414849027991295,
0.023915259167551994,
0.058272138237953186,
-0.002525185700505972,
-0.03371100500226021,
0.03918299078941345,
-0.019035326316952705,
-0.07212253659963608,
0.010854261927306652,
0.005494409706443548,
0.04614407196640968,
0.024256136268377304,
0.05037812888622284,
0.021439410746097565,
-0.014738473109900951,
0.003213668940588832,
0.0025745234452188015,
-0.01376966293901205,
-0.03986474499106407,
0.02761108987033367,
0.005122135393321514,
-0.011706456542015076,
0.01955561339855194,
0.015222878195345402,
0.08597293496131897,
-0.008674439042806625,
-0.05924094840884209,
0.05859507620334625,
-0.028884897008538246,
0.024453487247228622,
-0.04607230797410011,
0.012549679726362228,
0.02375379018485546,
-0.029064305126667023,
0.05389455333352089,
-0.02732403576374054,
-0.051311057060956955,
0.028579900041222572,
-0.040582381188869476,
-0.030750753358006477,
0.07205077260732651,
-0.015949485823512077,
-0.03511039912700653,
0.0014184546889737248,
-0.015779048204421997,
0.023430854082107544,
0.001446487382054329,
0.01865856721997261,
0.016900354996323586,
0.030930161476135254,
-0.007503793574869633,
-0.04280705749988556,
-0.0026844115927815437,
0.05156223103404045,
0.02788020484149456,
-0.037209488451480865,
0.05188516899943352,
0.019986195489764214,
-0.023233503103256226,
-0.04130002111196518,
0.005350882187485695,
0.059097420424222946,
-0.03557686135172844,
0.00722570950165391,
-0.049588728696107864,
-0.056765101850032806,
-0.020255308598279953,
-0.056406281888484955,
-0.007113578263670206,
0.03337012976408005,
0.012639384716749191,
-0.029136069118976593,
0.018138280138373375,
-0.01865856721997261,
-0.008414295502007008,
0.05762626603245735,
-0.020883241668343544,
0.0021484263706952333,
0.004983093123883009,
-0.006189620587974787,
-0.00016258966934401542,
0.062255024909973145,
0.0072929877787828445,
0.05511453375220299,
0.02161882072687149,
-0.026121992617845535,
0.0036577070131897926,
0.003933548927307129,
-0.012011452578008175,
-0.08683409541845322,
0.02965635620057583,
-0.00811827089637518,
0.01211012713611126,
-0.018389452248811722,
0.02587082050740719,
0.02635522559285164,
0.01534846518188715,
-0.005198384169489145,
-0.028687546029686928,
0.037675950676202774,
0.080088309943676,
0.013697899878025055,
-0.07779186964035034,
-0.018550921231508255,
-0.0194120854139328,
-0.08489647507667542,
0.013958043418824673,
-0.025314651429653168,
-0.001394907245412469,
0.0076607768423855305,
-0.04377586767077446,
0.007916434668004513,
0.04840462654829025,
0.018138280138373375,
-0.020022077485919,
0.024004964157938957,
-0.046431124210357666,
0.0033706522081047297,
-0.04438585788011551,
0.022462043911218643,
-0.018281806260347366,
0.007252620533108711,
0.03487716615200043,
-0.03256278857588768,
0.02120617777109146,
0.019376203417778015,
0.009813688695430756,
0.03724537044763565,
-0.054540425539016724,
-0.034033942967653275,
-0.0009817052632570267,
-0.021367646753787994,
0.018766211345791817,
-0.021224118769168854,
0.021529115736484528,
-0.027916086837649345,
0.0020362953655421734,
-0.04420645162463188,
0.06935963034629822,
-0.005149046890437603,
0.026211697608232498,
0.046359360218048096,
0.006902772467583418,
0.008306650444865227,
0.03089427947998047,
-0.036850668489933014,
0.00321815419010818,
0.004637730307877064,
-0.02036295458674431,
0.005673818755894899,
0.0075576165691018105,
-0.00815415196120739,
-0.025619646534323692,
-0.03263454884290695,
0.024453487247228622,
-0.053033385425806046,
-0.010208388790488243,
-0.042161185294389725,
0.019501790404319763,
0.006037122569978237,
0.013599224388599396,
0.005126620642840862,
-0.02581699751317501,
-0.0038124474231153727,
0.03936240077018738,
0.0342133529484272,
-0.03607920929789543,
-0.07728952169418335,
-0.0783659815788269,
0.08611646294593811,
-0.037137724459171295,
-0.03914710879325867,
0.0017783945659175515,
-0.0030948102939873934,
-0.0235385000705719,
-0.03476952016353607,
0.06889317184686661,
0.0005099148256704211,
-0.024668777361512184,
0.035271868109703064,
-0.01601227931678295,
0.05525806173682213,
-0.06559203565120697,
-0.009418987669050694,
0.004462806042283773,
-0.016021249815821648,
-0.017070794478058815,
-0.036150973290205,
0.010432650335133076,
0.026032287627458572,
-0.02628346160054207,
-0.04259176552295685,
-0.013599224388599396,
-0.04657465219497681,
0.05012695491313934,
-0.008486059494316578,
-0.0203808955848217,
-0.009966186247766018,
-0.022121166810393333,
-0.0194120854139328,
-0.015465080738067627,
-0.047041118144989014,
-0.004929270129650831,
0.02511730045080185,
-0.014173334464430809,
-0.003242823062464595,
0.028095494955778122,
-0.051167529076337814,
0.03523598611354828,
0.015474051237106323,
-0.015949485823512077,
-0.0037922640331089497,
-0.002695624716579914,
0.034518349915742874,
0.007656291592866182,
0.026247579604387283,
0.008216945454478264,
-0.057016272097826004,
-0.042699411511421204,
0.054612189531326294,
-0.014675680547952652,
0.0023368061520159245,
0.06028152257204056,
-0.014505241066217422,
-0.08719291538000107,
0.03322660177946091,
-0.0180754866451025,
-0.0020217185374349356,
0.02016560547053814,
0.036850668489933014,
-0.0055437469854950905,
0.014980675652623177,
-0.03936240077018738,
0.014585975557565689,
-0.0034379304852336645,
-0.021439410746097565,
-0.08633175492286682,
-0.015375376679003239,
0.0291181281208992,
0.021367646753787994,
-0.013240406289696693,
-0.008548852987587452,
-0.006674025673419237,
-0.006463219877332449,
-0.022874685004353523,
0.007777392864227295,
0.010208388790488243,
0.012092186138033867,
0.012567620724439621,
-0.03853711485862732,
0.07190724462270737,
-0.01652359589934349,
0.006404911633580923,
-0.01740270107984543,
0.04729228839278221,
-0.04302234947681427,
-0.01445141900330782,
0.00910950731486082,
-0.002377173164859414,
0.02630140259861946,
0.0764283612370491,
-0.00679512694478035,
0.014846119098365307,
-0.006557409651577473,
-0.014684651046991348,
-0.034320998936891556,
0.02938724309206009,
0.04797404631972313,
0.03161191567778587,
0.07398839294910431,
0.016559477895498276,
-0.02552994154393673,
0.040044154971838,
-0.020273249596357346,
-0.06505381315946579,
-0.007701144088059664,
0.05949212238192558,
-0.016703005880117416,
-0.011275874450802803,
-0.013814515434205532,
0.010002068243920803,
0.004512143786996603,
0.056765101850032806,
-0.0332445427775383,
0.00412417110055685,
0.011814101599156857,
-0.028095494955778122,
-0.000054558648116653785,
0.004974122624844313,
0.012504828162491322,
0.004624274559319019,
0.03577421233057976,
-0.016658153384923935,
-0.058128610253334045,
-0.017635934054851532,
0.007436515297740698
] |
20,858 | precession.precession | eval_cyclesign |
Evaluate if the input parameters are in the first of the second half of a precession cycle. We refer to this as the 'sign' of a precession cycle, defined as +1 if deltachi is increasing and -1 deltachi is decreasing. Valid inputs are one and not more of the following:
- dSdt
- deltaphi
- Lvec, S1vec, S2vec.
Parameters
----------
ddeltachidt: float, optional (default: None)
Time derivative of the total spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
Lvec: array, optional (default: None)
Cartesian vector of the orbital angular momentum.
S1vec: array, optional (default: None)
Cartesian vector of the primary spin.
S2vec: array, optional (default: None)
Cartesian vector of the secondary spin.
Returns
-------
cyclesign: integer
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
Examples
--------
``cyclesign = precession.eval_cyclesign(ddeltachidt=ddeltachidt)``
``cyclesign = precession.eval_cyclesign(deltaphi=deltaphi)``
``cyclesign = precession.eval_cyclesign(Lvec=Lvec,S1vec=S1vec,S2vec=S2vec)``
| def eval_cyclesign(ddeltachidt=None, deltaphi=None, Lvec=None, S1vec=None, S2vec=None):
"""
Evaluate if the input parameters are in the first of the second half of a precession cycle. We refer to this as the 'sign' of a precession cycle, defined as +1 if deltachi is increasing and -1 deltachi is decreasing. Valid inputs are one and not more of the following:
- dSdt
- deltaphi
- Lvec, S1vec, S2vec.
Parameters
----------
ddeltachidt: float, optional (default: None)
Time derivative of the total spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
Lvec: array, optional (default: None)
Cartesian vector of the orbital angular momentum.
S1vec: array, optional (default: None)
Cartesian vector of the primary spin.
S2vec: array, optional (default: None)
Cartesian vector of the secondary spin.
Returns
-------
cyclesign: integer
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
Examples
--------
``cyclesign = precession.eval_cyclesign(ddeltachidt=ddeltachidt)``
``cyclesign = precession.eval_cyclesign(deltaphi=deltaphi)``
``cyclesign = precession.eval_cyclesign(Lvec=Lvec,S1vec=S1vec,S2vec=S2vec)``
"""
if ddeltachidt is not None and deltaphi is None and Lvec is None and S1vec is None and S2vec is None:
ddeltachidt = np.atleast_1d(ddeltachidt).astype(float)
cyclesign = np.sign(ddeltachidt)
elif ddeltachidt is None and deltaphi is not None and Lvec is None and S1vec is None and S2vec is None:
deltaphi = np.atleast_1d(deltaphi).astype(float)
cyclesign = np.sign(deltaphi)
elif ddeltachidt is None and deltaphi is None and Lvec is not None and S1vec is not None and S2vec is not None:
Lvec = np.atleast_2d(Lvec).astype(float)
S1vec = np.atleast_2d(S1vec).astype(float)
S2vec = np.atleast_2d(S2vec).astype(float)
cyclesign = np.sign(dot_nested(S1vec, np.cross(S2vec, Lvec)))
else:
raise TypeError("Please provide one and not more of the following: ddeltachidt, deltaphi, (Lvec, S1vec, S2vec).")
return cyclesign
| (ddeltachidt=None, deltaphi=None, Lvec=None, S1vec=None, S2vec=None) | [
0.0087358383461833,
-0.0015119719319045544,
0.05079435184597969,
0.03680120036005974,
-0.02666209451854229,
0.012945642694830894,
-0.025495998561382294,
0.011443552561104298,
0.02178030274808407,
0.025575054809451103,
-0.0007213983917608857,
0.003382172668352723,
0.04257238656282425,
-0.029863916337490082,
-0.05684224143624306,
-0.0026039518415927887,
0.03569439798593521,
-0.029429102316498756,
-0.09368296712636948,
-0.06696157902479172,
0.017313562333583832,
-0.016127701848745346,
-0.005889773368835449,
0.009057008661329746,
-0.02012009732425213,
0.06597336381673813,
0.03431089222431183,
-0.0054895454086363316,
-0.08490760624408722,
0.012224243953824043,
0.06415504962205887,
0.06458985805511475,
-0.09059973061084747,
-0.0013106227852404118,
0.02931051515042782,
0.02988368086516857,
-0.014339027926325798,
-0.009570881724357605,
-0.08933481574058533,
0.03593156859278679,
0.010307103395462036,
-0.006818697322160006,
0.06154615432024002,
-0.013261871412396431,
-0.05763281509280205,
-0.020594442263245583,
-0.0314648300409317,
0.012342830188572407,
-0.002413719892501831,
-0.01753096841275692,
0.04502316564321518,
-0.043639663606882095,
0.02747243270277977,
-0.05976736173033714,
-0.0071991607546806335,
0.07265371084213257,
0.0467229001224041,
0.09257616847753525,
0.00230625132098794,
-0.0072485716082155704,
0.07830630987882614,
0.0038886338006705046,
0.039508916437625885,
0.08846518397331238,
0.0059441253542900085,
0.029765095561742783,
0.000004289672233426245,
-0.019586460664868355,
0.027689840644598007,
0.025258826091885567,
-0.029369808733463287,
-0.02006080560386181,
-0.024369429796934128,
-0.01664157398045063,
0.0482645183801651,
-0.045339394360780716,
-0.004755794070661068,
-0.040259961038827896,
-0.004513680934906006,
-0.007268335670232773,
-0.014684904366731644,
-0.06621053814888,
0.06830555945634842,
-0.0018195544835180044,
0.041228413581848145,
0.038876455277204514,
-0.020535148680210114,
0.013360693119466305,
-0.02166171558201313,
0.013459514826536179,
-0.026207514107227325,
-0.04644619673490524,
-0.018519185483455658,
-0.021325722336769104,
0.022847576066851616,
0.05648648366332054,
0.01650322414934635,
-0.06933329999446869,
-0.005069552920758724,
-0.01330140046775341,
0.0781877264380455,
-0.021108314394950867,
-0.01751120574772358,
-0.033757492899894714,
0.02755148895084858,
-0.00502508319914341,
-0.022215116769075394,
-0.006023182533681393,
0.02583199180662632,
-0.043718717992305756,
-0.022946398705244064,
0.05245455726981163,
-0.006838461384177208,
-0.08546100556850433,
-0.0895719900727272,
-0.03593156859278679,
0.0030313555616885424,
0.01819307543337345,
-0.035417698323726654,
-0.002275369595736265,
-0.03425160050392151,
0.01671074889600277,
-0.0057415408082306385,
0.07253512740135193,
0.01748155802488327,
-0.034508537501096725,
0.02577269822359085,
0.06909613311290741,
-0.023993907496333122,
0.036267563700675964,
0.0467229001224041,
-0.023124277591705322,
0.024665895849466324,
0.04419306293129921,
-0.02581222727894783,
-0.03727554529905319,
0.018163427710533142,
0.011828957125544548,
-0.006571643054485321,
-0.009901934303343296,
0.03899504244327545,
0.024547310546040535,
-0.04273050278425217,
0.05356135964393616,
0.03737436607480049,
0.07621129602193832,
-0.0073770396411418915,
-0.012382358312606812,
-0.009145948104560375,
0.0685427263379097,
0.004827439785003662,
-0.0029992384370416403,
0.042809560894966125,
0.01377574447542429,
0.053047485649585724,
-0.04743441566824913,
0.03077307716012001,
-0.01539642084389925,
-0.013360693119466305,
0.013933859765529633,
-0.0274131391197443,
-0.018805768340826035,
-0.008449255488812923,
0.012204479426145554,
0.053838059306144714,
-0.016414284706115723,
0.021385015919804573,
0.07304900139570236,
-0.002141960198059678,
0.07063774764537811,
0.025436704978346825,
0.029725566506385803,
-0.024310138076543808,
-0.01368680503219366,
0.019784104079008102,
-0.05743516981601715,
0.024764716625213623,
-0.004511210601776838,
0.0009462177404202521,
-0.045339394360780716,
0.01497148722410202,
-0.022768519818782806,
-0.01462561171501875,
-0.01837095431983471,
0.042177099734544754,
0.040556423366069794,
0.023638149723410606,
-0.008567840792238712,
0.03261116147041321,
-0.014022799208760262,
0.01817331090569496,
0.045418452471494675,
0.008829718455672264,
0.03765106573700905,
0.027235260233283043,
0.003300644690170884,
-0.022116295993328094,
0.006551878526806831,
-0.009042185731232166,
-0.010326866991817951,
0.0702819898724556,
0.028895463794469833,
-0.010445453226566315,
-0.038738105446100235,
0.02842112071812153,
-0.002356897573918104,
-0.018459893763065338,
0.01546559575945139,
-0.002974533010274172,
0.016078289598226547,
-0.014437849633395672,
-0.001745438203215599,
-0.004400036297738552,
-0.042928144335746765,
-0.009872287511825562,
0.006151650566607714,
0.034607358276844025,
0.003038767259567976,
-0.031049776822328568,
-0.0191121157258749,
0.06289012730121613,
-0.03405395895242691,
0.01120638009160757,
-0.010198399424552917,
0.017797788605093956,
-0.027077145874500275,
0.028816407546401024,
0.06957047432661057,
-0.006359176244586706,
-0.017936138436198235,
0.012965407222509384,
-0.0013155638007447124,
-0.028598999604582787,
-0.0029646509792655706,
0.023499799892306328,
-0.031346242874860764,
-0.030654489994049072,
0.0502014234662056,
0.004232039209455252,
0.03162294253706932,
0.011117440648376942,
0.027017852291464806,
0.0018874944653362036,
0.028618764132261276,
0.009042185731232166,
0.02091067098081112,
0.05589355155825615,
-0.012698587961494923,
-0.06316682696342468,
0.054430991411209106,
-0.006181297358125448,
-0.07115162163972855,
-0.018657537177205086,
-0.0029498275835067034,
0.008879129774868488,
0.03686049208045006,
0.03243328258395195,
0.05253361538052559,
0.06324588507413864,
-0.021918652579188347,
-0.04269097372889519,
-0.039607737213373184,
-0.03478523716330528,
-0.019438227638602257,
-0.05312654376029968,
0.025397175922989845,
-0.031563650816679,
-0.025199532508850098,
-0.03933103755116463,
0.007391863036900759,
-0.017076389864087105,
-0.05723752826452255,
-0.026029635220766068,
-0.008009498938918114,
0.034508537501096725,
0.022096531465649605,
0.03933103755116463,
-0.028934992849826813,
0.0133211649954319,
0.03225540369749069,
0.02743290364742279,
-0.038639284670352936,
-0.026167985051870346,
-0.012214361689984798,
-0.06277154386043549,
0.027867719531059265,
0.021286193281412125,
-0.031227655708789825,
0.07680422067642212,
0.023934615775942802,
-0.0008029263117350638,
0.0704796314239502,
0.030555669218301773,
0.023480035364627838,
0.06154615432024002,
0.030496375635266304,
-0.019349288195371628,
-0.046248555183410645,
0.04320484772324562,
0.02575293369591236,
-0.010732036083936691,
-0.03565486893057823,
-0.019685281440615654,
-0.03933103755116463,
-0.015020898543298244,
-0.030318496748805046,
0.041267942637205124,
0.0351409949362278,
0.037216249853372574,
-0.019467875361442566,
-0.00031298684189096093,
0.01079132966697216,
-0.006393763702362776,
0.008839600719511509,
0.015475478023290634,
0.026385392993688583,
0.015169130638241768,
-0.04494410753250122,
0.05490533635020256,
0.06427363306283951,
0.027768896892666817,
0.049608491361141205,
0.02251158282160759,
0.0463276132941246,
0.05723752826452255,
-0.0469205416738987,
0.023697443306446075,
-0.01915164478123188,
0.06609195470809937,
0.07059822231531143,
-0.006779168266803026,
0.020337505266070366,
0.01677992381155491,
-0.01984339766204357,
0.04166322946548462,
-0.009457236155867577,
-0.009066890925168991,
0.0062751779332757,
-0.007846442982554436,
-0.02840135619044304,
0.05091293901205063,
0.011255791410803795,
-0.03478523716330528,
-0.023835793137550354,
-0.0037898120936006308,
-0.016038762405514717,
0.0384218767285347,
0.0209502000361681,
0.030456846579909325,
0.057909514755010605,
-0.04680195450782776,
0.055261094123125076,
0.013054346665740013,
0.034607358276844025,
-0.02486353926360607,
0.05553779378533363,
-0.004276508931070566,
-0.056249309331178665,
0.01045533549040556,
-0.05767234414815903,
0.06747545301914215,
0.030476611107587814,
0.006774227600544691,
-0.017787905409932137,
-0.025416940450668335,
-0.031207893043756485,
-0.03735460340976715,
-0.021859358996152878,
-0.002799124689772725,
0.01817331090569496,
-0.03241351619362831,
0.0166514553129673,
0.009274416603147984,
-0.04775064438581467,
-0.015386538580060005,
0.07486731559038162,
0.04178181290626526,
0.01584111899137497,
0.009160771034657955,
-0.04925273358821869,
0.007312805857509375,
-0.023756736889481544,
-0.04581373929977417,
0.04822498932480812,
0.06783121079206467,
0.025140240788459778,
0.03909386321902275,
-0.002826300449669361,
0.09320862591266632,
0.0022605464328080416,
-0.006206002552062273,
-0.06810791790485382,
0.07075633853673935,
-0.05510297790169716,
0.020337505266070366,
-0.026859737932682037,
0.05672365427017212,
0.07328616827726364,
0.010514629073441029,
0.01741238310933113,
0.003893574932590127,
0.004017102066427469,
0.03255186602473259,
-0.007391863036900759,
0.005054729990661144,
-0.01748155802488327,
0.0548262782394886,
-0.049450378865003586,
-0.012313183397054672,
0.024705424904823303,
-0.010969208553433418,
-0.023914851248264313,
-0.01650322414934635,
-0.008078673854470253,
-0.0027744192630052567,
0.0029597098473459482,
-0.10886198282241821,
0.008073732256889343,
-0.047948289662599564,
-0.0009054538095369935,
0.01659216359257698,
-0.03885669261217117,
0.0021889007184654474,
0.0032561749685555696,
0.05897678807377815,
0.039607737213373184,
0.024665895849466324,
0.034548066556453705,
-0.019319642335176468,
0.03506193682551384,
-0.03174152970314026,
0.0502014234662056,
-0.007149749901145697,
-0.0000775904773036018,
0.04573468118906021,
0.012609648518264294,
0.0071596321649849415,
0.03640591353178024,
0.025990106165409088,
0.030199911445379257,
-0.01840060018002987,
0.04976660758256912,
-0.018993530422449112,
-0.015673121437430382,
-0.02166171558201313,
-0.03178105875849724,
-0.004442035220563412,
-0.012421887367963791,
-0.015020898543298244,
-0.07024246454238892,
-0.014121620915830135,
0.023677678778767586,
0.043758247047662735,
-0.005687188822776079,
-0.014279735274612904,
-0.02500188909471035,
-0.02405320107936859,
0.021088549867272377,
-0.046406667679548264,
-0.061150867491960526,
-0.007327628787606955,
0.0005901508266106248,
-0.03557581081986427,
0.03259139508008957,
0.017787905409932137,
-0.018795887008309364,
-0.0033377029467374086,
0.029567452147603035,
0.002368015004321933,
-0.011068030260503292,
-0.009299121797084808,
-0.048620276153087616,
-0.031346242874860764,
0.04000302404165268,
0.028104890137910843,
0.004148040898144245,
-0.036228034645318985,
-0.047948289662599564,
-0.033619143068790436,
-0.0419004000723362,
-0.0847494900226593,
-0.03221587464213371,
-0.033856313675642014,
0.032887861132621765,
0.014892430044710636,
-0.08893952518701553,
-0.05846291780471802,
-0.0010228045284748077,
-0.0032141758129000664,
-0.04676242917776108,
0.008548077195882797,
-0.01124590914696455,
0.019527167081832886,
0.029468629509210587,
0.01837095431983471,
0.004434623755514622,
-0.03235422447323799,
-0.03753248229622841,
0.0001056156906997785,
0.01122614461928606,
0.005593308247625828,
0.0650642067193985,
0.02328239195048809,
0.009842640720307827,
0.041109826415777206,
-0.0037675772327929735,
-0.016414284706115723,
-0.013548455201089382,
-0.05273125693202019,
0.021029258146882057,
0.007218924816697836,
-0.02079208567738533,
0.04988519474864006,
0.04605090990662575,
-0.004427212290465832,
0.029745331034064293,
-0.002574305282905698,
0.015080191195011139,
0.0281839482486248,
-0.003362408373504877,
0.024764716625213623,
-0.0016774983378127217,
-0.0513477548956871,
-0.007737739011645317,
-0.0019789044745266438,
-0.0025162475649267435,
-0.05431240424513817,
-0.10143058747053146,
0.01040592510253191,
-0.005558720324188471,
-0.03727554529905319,
-0.042177099734544754,
-0.02415202371776104,
0.05265219882130623,
-0.05095246806740761,
0.02990344539284706,
-0.04020066559314728,
-0.045339394360780716,
-0.027156202122569084,
-0.048699334263801575,
-0.005059671122580767,
0.0015910293441265821,
0.02575293369591236,
0.026523742824792862,
0.040319252759218216,
-0.006581524852663279,
-0.019833514466881752,
0.05032000690698624,
-0.01546559575945139,
0.05652601271867752,
-0.023657914251089096,
-0.02328239195048809,
-0.004155452363193035,
-0.019428346306085587,
0.01992245391011238,
0.06103228032588959,
-0.0024569544475525618,
0.016878746449947357,
0.014437849633395672,
0.053838059306144714,
-0.05312654376029968,
-0.07075633853673935,
0.04573468118906021,
-0.13139332830905914,
-0.0838008001446724,
-0.03755224496126175,
0.08427514135837555,
-0.05775139853358269,
0.006294941995292902,
0.027314316481351852,
-0.033797021955251694,
-0.014833136461675167,
-0.007218924816697836,
0.01131508406251669,
-0.03077307716012001,
0.021029258146882057,
0.022057002410292625,
-0.063127301633358,
0.0010067460825666785,
-0.013963505625724792,
0.008024321869015694,
-0.034548066556453705,
-0.014526790007948875,
-0.01831166073679924,
-0.0075796241872012615,
0.033638905733823776,
-0.011710370890796185,
-0.0024223667569458485,
-0.005000378005206585,
0.02737361006438732,
-0.052928902208805084,
-0.013074110262095928,
-0.0569608248770237,
-0.016898510977625847,
-0.02245228923857212,
0.0007071927539072931,
0.034567829221487045,
0.06277154386043549,
0.02840135619044304,
0.013449633494019508,
-0.07380004227161407,
-0.02504141815006733,
0.013499043881893158,
0.0010005696676671505,
-0.030199911445379257,
-0.013479279354214668,
0.01674039475619793,
-0.01291599590331316,
-0.019813749939203262,
-0.08182436227798462,
0.05747469887137413,
0.008869247511029243,
0.00954123493283987,
0.026286572217941284,
-0.00501767173409462,
0.0217210091650486,
0.0014057386433705688,
0.025199532508850098,
0.0009950109524652362,
0.010188517160713673,
-0.04775064438581467,
0.019635871052742004,
-0.02666209451854229,
-0.0648665651679039,
-0.0399634949862957,
0.013736216351389885,
0.03559557721018791,
-0.05178257077932358,
0.07304900139570236,
-0.03684072941541672,
0.025298355147242546,
0.007737739011645317,
-0.01124590914696455,
-0.013864683918654919,
0.0011549786431714892,
-0.005291901994496584,
-0.005874949973076582,
-0.00008847629942465574,
-0.0005246814689598978,
0.1030907928943634,
0.010751800611615181,
0.0035056998021900654,
-0.057949043810367584,
0.028500176966190338,
-0.014862783253192902,
-0.03087189793586731,
-0.014082091860473156,
-0.012471298687160015,
0.04099123924970627,
0.03897527605295181,
0.012757881544530392,
0.04332343116402626,
-0.016987450420856476,
-0.0467229001224041,
-0.04257238656282425,
-0.05684224143624306,
0.025278590619564056,
-0.015584181994199753,
0.008908775635063648,
-0.036326855421066284,
0.036326855421066284,
0.041939929127693176,
-0.05941160395741463,
-0.0010363925248384476,
-0.025594819337129593,
-0.024784481152892113,
0.035457223653793335,
0.0005030641914345324,
-0.026405157521367073,
-0.030437082052230835,
-0.003952867817133665,
-0.08083614706993103,
-0.041228413581848145,
0.015406303107738495,
0.040319252759218216,
-0.05241502821445465,
0.005133787170052528,
0.007693269290030003,
0.03776965290307999,
0.04014137387275696,
-0.04257238656282425,
-0.0006355470395646989,
0.009126183576881886,
0.008424549363553524,
-0.03221587464213371,
-0.05095246806740761,
0.03259139508008957,
-0.02589128538966179,
-0.03767083212733269,
-0.04352107644081116,
-0.003332761814817786,
0.03980537876486778,
-0.004422271158546209,
-0.03939032927155495,
0.059490662068128586,
-0.061269450932741165,
-0.0679498016834259,
0.05269172787666321,
-0.03318432718515396,
-0.0028435944113880396,
0.0015922646271064878,
-0.05332418903708458,
0.0008041615947149694,
0.059727832674980164,
-0.03272974491119385,
0.009832759387791157,
0.01840060018002987,
-0.030456846579909325,
0.05565638095140457,
-0.018736593425273895,
0.00961535144597292,
0.01761990785598755,
0.042928144335746765,
-0.014724433422088623,
-0.026306336745619774,
0.005978712812066078,
0.006611171644181013,
-0.0024223667569458485,
-0.01539642084389925,
-0.01592017523944378,
-0.033638905733823776,
-0.06190191209316254,
0.003933103755116463,
-0.01831166073679924,
-0.0318601168692112,
-0.0014156207907944918,
0.08680497854948044,
0.02164195105433464,
0.05435193330049515,
-0.01664157398045063,
-0.08190342038869858,
0.031227655708789825,
0.03518052399158478,
-0.03583274781703949,
-0.004748382605612278,
-0.052889373153448105,
-0.04336296021938324,
-0.012471298687160015,
-0.03502241149544716,
0.004422271158546209,
0.01668110303580761,
-0.001368680503219366,
0.003332761814817786,
-0.036959316581487656,
0.013419986702501774,
0.03448877111077309,
-0.04601138085126877,
-0.025239061564207077,
0.03336220607161522,
-0.10190493613481522,
0.00044531526509672403,
0.009862405247986317,
-0.03686049208045006,
-0.058502446860075,
-0.0016910863341763616,
-0.048778388649225235,
-0.009990873746573925,
0.02834206260740757,
-0.03759177401661873,
-0.004656972363591194,
-0.005904596298933029,
-0.037888240069150925,
0.049648020416498184,
0.05905584618449211,
-0.007016340736299753,
0.057039882987737656,
-0.022808047011494637,
0.053679946810007095
] |
20,859 | precession.precession | eval_delta_omega |
Variation of the precession frequency of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
delta_omega: float
Precession frequency variation due to nutation.
Examples
--------
``delta_omega = precession.eval_delta_omega(kappa,r,chieff,q,chi1,chi2)``
| def eval_delta_omega(kappa, r, chieff, q, chi1, chi2, precomputedroots=None):
"""
Variation of the precession frequency of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
delta_omega: float
Precession frequency variation due to nutation.
Examples
--------
``delta_omega = precession.eval_delta_omega(kappa,r,chieff,q,chi1,chi2)``
"""
if precomputedroots is None:
deltachimin, deltachiplus = deltachilimits_plusminus(kappa, r, chieff, q, chi1, chi2)
else:
deltachimin, deltachiplus, _ = precomputedroots[:-1]
Omega_minus = eval_OmegaL(deltachiplus, kappa, r, chieff, q, chi1, chi2)
Omega_plus = eval_OmegaL(deltachimin, kappa, r, chieff, q, chi1, chi2)
delta_omega = (Omega_plus - Omega_minus)/2
return delta_omega
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None) | [
-0.00021274482423905283,
-0.0045798160135746,
-0.03720981255173683,
0.019804609939455986,
0.04452228546142578,
0.048597466200590134,
-0.028431041166186333,
-0.036295756697654724,
-0.027916882187128067,
0.05377713218331337,
0.07335322350263596,
-0.0183192640542984,
0.014053655788302422,
0.00924532487988472,
-0.058728285133838654,
-0.010035605169832706,
0.013853705488145351,
0.024412989616394043,
-0.011930372565984726,
-0.03835238888859749,
-0.028335826471447945,
-0.022070713341236115,
-0.018585864454507828,
0.022165928035974503,
-0.02250870130956173,
-0.0018900071736425161,
-0.0027826428413391113,
0.022927643731236458,
-0.06009937450289726,
-0.0012270765146240592,
0.02787879668176174,
0.0022506320383399725,
0.012834910303354263,
0.0235560592263937,
0.01776701956987381,
-0.05225370079278946,
0.021480383351445198,
0.014643984846770763,
-0.06764035671949387,
0.002480336930602789,
-0.008412198163568974,
-0.011539993807673454,
0.06200366094708443,
-0.056633565574884415,
-0.014682071283459663,
-0.02353701740503311,
-0.0035824442747980356,
0.09742344170808792,
0.006417455151677132,
0.008902552537620068,
0.01654827408492565,
-0.08317936211824417,
-0.00847884826362133,
-0.05720485374331474,
-0.015967465937137604,
0.057585712522268295,
0.003949020057916641,
-0.015577087178826332,
0.005193949211388826,
-0.04654083400964737,
0.04436994343996048,
0.0006349614704959095,
0.013244332745671272,
0.0172052551060915,
0.0199379101395607,
-0.013215768150985241,
0.022851472720503807,
-0.008178923279047012,
0.01575799472630024,
0.016357846558094025,
-0.04299885407090187,
-0.005579567980021238,
0.022127842530608177,
-0.04623614624142647,
0.019823651760816574,
-0.0007712371880188584,
-0.01608172431588173,
-0.04905449599027634,
-0.027783581987023354,
0.03359166532754898,
-0.06139428913593292,
-0.0347151942551136,
0.014520206488668919,
-0.006365087348967791,
0.03305846452713013,
0.03180163353681564,
-0.02732655219733715,
-0.029402228072285652,
0.027193251997232437,
-0.019004808738827705,
-0.040637534111738205,
-0.08416958898305893,
-0.012730174697935581,
-0.025593649595975876,
-0.0005668236408382654,
0.029630742967128754,
-0.001693627331405878,
-0.0434177964925766,
0.06478392332792282,
-0.03751450031995773,
0.04977812245488167,
0.07891374826431274,
0.018671557307243347,
0.02732655219733715,
0.052367959171533585,
-0.015120057389140129,
-0.06428880989551544,
0.01342524029314518,
0.059604257345199585,
-0.04197053611278534,
-0.08234146982431412,
0.037838228046894073,
0.032030146569013596,
-0.026431536301970482,
-0.03892367333173752,
-0.022794343531131744,
-0.04406525567173958,
0.04646465927362442,
0.0583474263548851,
0.012606395408511162,
-0.003539597848430276,
-0.018842943012714386,
0.004298933316022158,
0.030011599883437157,
0.013377632945775986,
-0.0053415317088365555,
0.05415799096226692,
0.024965234100818634,
-0.03762875869870186,
0.026583880186080933,
0.05217752978205681,
0.04471271485090256,
0.07350557297468185,
-0.02353701740503311,
0.038790374994277954,
0.02443203330039978,
0.007288667373359203,
-0.014472599141299725,
0.003170641837641597,
-0.06093725934624672,
0.05042558163404465,
0.031230345368385315,
-0.018509693443775177,
0.008631191216409206,
-0.08249381929636002,
0.03745737299323082,
0.02557460591197014,
-0.0001533845643280074,
-0.014958192594349384,
0.023498930037021637,
-0.034410510212183,
0.06276537477970123,
0.06630735844373703,
-0.01446307823061943,
0.0435701422393322,
-0.03006872907280922,
0.048597466200590134,
-0.0198617372661829,
-0.06413646787405014,
-0.05133964121341705,
-0.03362974897027016,
0.02485097572207451,
0.006203222554177046,
-0.0029088021256029606,
0.035419780761003494,
-0.0067269024439156055,
0.010264120064675808,
-0.023041902109980583,
-0.006060400977730751,
0.05312967300415039,
0.01656731776893139,
0.01353949774056673,
0.01069258525967598,
-0.0003347383753862232,
-0.009464317932724953,
0.010187948122620583,
-0.0549577921628952,
-0.0806657001376152,
-0.00783615093678236,
-0.016376888379454613,
-0.042808424681425095,
-0.03349645063281059,
-0.01799553446471691,
-0.08142741024494171,
-0.013653755187988281,
0.034619979560375214,
0.006017554551362991,
0.016424495726823807,
-0.0021923130843788385,
-0.007369599770754576,
0.012882517650723457,
-0.03103991597890854,
0.011939894407987595,
0.05933765694499016,
0.027269423007965088,
0.014901064336299896,
0.07331514358520508,
0.01866203546524048,
0.026069721207022667,
0.06322240829467773,
-0.0006099676829762757,
0.03875228762626648,
-0.02700282260775566,
-0.019271409139037132,
0.046578917652368546,
-0.031230345368385315,
-0.03713364154100418,
0.014605899341404438,
0.010578327812254429,
0.006926852744072676,
0.023365629836916924,
0.006117529701441526,
-0.0022161167580634356,
-0.012454052455723286,
-0.03406773507595062,
0.05312967300415039,
0.04174202308058739,
-0.003794296644628048,
0.004289411939680576,
-0.0071458457969129086,
0.032506220042705536,
0.02323232963681221,
0.04155159369111061,
-0.0009670219733379781,
0.031630247831344604,
0.015072450041770935,
-0.01728142611682415,
0.050349410623311996,
-0.03406773507595062,
-0.04482697322964668,
0.0034991316497325897,
0.016843440011143684,
-0.06181323155760765,
-0.0648220106959343,
0.06676438450813293,
-0.013006296008825302,
0.006436497904360294,
0.032753776758909225,
-0.003318224335089326,
0.05667165294289589,
-0.03820004314184189,
0.006779270246624947,
0.03964730352163315,
0.039266448467969894,
-0.05427224561572075,
-0.0341058224439621,
0.04044710472226143,
0.009502404369413853,
-0.017348075285553932,
0.025441305711865425,
0.029611699283123016,
-0.07640008628368378,
0.011635208502411842,
0.07396259903907776,
-0.008069425821304321,
0.04227522388100624,
0.04878789559006691,
0.06615501642227173,
0.04189436510205269,
-0.0072172568179667,
0.028088267892599106,
-0.008002775721251965,
-0.03149694576859474,
0.04478888586163521,
-0.04589337483048439,
-0.007441010791808367,
-0.029230842366814613,
-0.006012793630361557,
-0.0030373416375368834,
0.018376393243670464,
-0.0028611947782337666,
0.019728437066078186,
-0.04775957763195038,
-0.02860242687165737,
-0.021594641730189323,
0.02018546685576439,
0.03968539088964462,
0.026983780786395073,
-0.03406773507595062,
0.023194244131445885,
-0.05846168473362923,
-0.09590001404285431,
-0.01936662383377552,
-0.020928140729665756,
-0.1025269404053688,
0.03799057379364967,
-0.015081971883773804,
0.004353681579232216,
0.10938238352537155,
-0.0036110086366534233,
0.010187948122620583,
-0.034524764865636826,
-0.005641457159072161,
0.01680535450577736,
0.07891374826431274,
0.054767362773418427,
-0.05876636877655983,
-0.036295756697654724,
0.05415799096226692,
0.028278697282075882,
-0.011549514718353748,
-0.011016313917934895,
0.018776293843984604,
-0.045360174030065536,
-0.007260103244334459,
-0.0018900071736425161,
0.12057960033416748,
0.007907561957836151,
0.035495955497026443,
0.00796469021588564,
-0.026545794680714607,
-0.006236547604203224,
-0.028792856261134148,
0.05488162115216255,
-0.010416463017463684,
-0.07034444808959961,
0.027155166491866112,
-0.0440271720290184,
0.061203859746456146,
0.01850017160177231,
-0.0013175301719456911,
0.04612188786268234,
0.016900567337870598,
0.018757250159978867,
0.01872868649661541,
-0.05392947420477867,
-0.032277703285217285,
0.02669813670217991,
0.04299885407090187,
-0.04646465927362442,
-0.0345628522336483,
-0.004567914176732302,
-0.04775957763195038,
0.04178011044859886,
-0.049549609422683716,
-0.08203678578138351,
0.017862234264612198,
-0.02959265746176243,
0.003184923902153969,
0.028507212176918983,
0.026545794680714607,
-0.0009479790460318327,
-0.024774804711341858,
-0.02445107512176037,
-0.016700617969036102,
-0.006807834375649691,
0.07921843975782394,
-0.01687200367450714,
0.014139348641037941,
0.02153751254081726,
-0.02395595982670784,
0.012872995808720589,
0.013291940093040466,
0.01591033861041069,
0.019728437066078186,
0.009826133027672768,
-0.02387978881597519,
-0.007474335841834545,
0.004913066513836384,
-0.052215613424777985,
-0.0009527397924102843,
0.019804609939455986,
-0.005174906458705664,
0.037019386887550354,
0.007974212057888508,
-0.047873836010694504,
-0.05160624161362648,
0.007179170846939087,
-0.013901312835514545,
-0.02523183450102806,
-0.004777385853230953,
0.024984275922179222,
0.04821660742163658,
-0.022565828636288643,
0.022242099046707153,
0.06695481389760971,
0.01969035156071186,
-0.0029254646506160498,
-0.04269416630268097,
-0.04318928346037865,
0.03157311677932739,
-0.00884542427957058,
-0.046083804219961166,
-0.005132060032337904,
0.011844679713249207,
0.021099526435136795,
-0.033077508211135864,
-0.007683807518333197,
0.05248221382498741,
0.017586112022399902,
-0.00411802576854825,
-0.0306400153785944,
0.04406525567173958,
0.02772645279765129,
-0.06215600669384003,
0.044903144240379333,
0.024089260026812553,
-0.05004472658038139,
-0.10938238352537155,
-0.003794296644628048,
0.05335818976163864,
0.007341035641729832,
-0.021880285814404488,
0.013320503756403923,
0.01662444695830345,
-0.03254430368542671,
0.020756755024194717,
0.012844432145357132,
-0.047378718852996826,
0.09757579118013382,
-0.04025667905807495,
0.004791668150573969,
-0.004567914176732302,
0.023746488615870476,
-0.0664977878332138,
0.005522439256310463,
-0.06562180817127228,
-0.08561684936285019,
0.0006072897813282907,
0.021156655624508858,
-0.02372744493186474,
-0.06348900496959686,
-0.0018055043183267117,
0.050197068601846695,
0.061127688735723495,
0.06775461882352829,
0.06447923928499222,
0.01705291122198105,
-0.04174202308058739,
0.027136122807860374,
0.028354868292808533,
-0.010359333828091621,
-0.01310151070356369,
0.00715536717325449,
-0.001224696054123342,
0.0019423752091825008,
-0.012111280113458633,
0.02700282260775566,
0.0506540983915329,
-0.0023375151213258505,
-0.03960921987891197,
0.03570542484521866,
0.053739044815301895,
-0.03252526372671127,
-0.03812387213110924,
0.016462581232190132,
0.03945687413215637,
-0.024889061227440834,
-0.055986106395721436,
0.0005721794441342354,
0.0032539544627070427,
0.04254182428121567,
0.014682071283459663,
-0.01069258525967598,
0.07068721950054169,
-0.007726653944700956,
-0.01953800953924656,
0.009016809985041618,
-0.02845008298754692,
-0.019328536465764046,
0.033801134675741196,
0.04532208666205406,
0.06661204248666763,
-0.012844432145357132,
-0.0038752288091927767,
0.07860906422138214,
0.054500762373209,
-0.010064169764518738,
-0.028088267892599106,
-0.06889718770980835,
0.024546289816498756,
0.007060152944177389,
-0.006379369180649519,
0.01648162491619587,
-0.03241100534796715,
-0.007179170846939087,
-0.029326057061553,
0.017976490780711174,
0.008907313458621502,
-0.08607388287782669,
-0.043760571628808975,
-0.02645057998597622,
0.04299885407090187,
0.011587601155042648,
0.017890797927975655,
-0.027783581987023354,
0.0018983384361490607,
-0.021727941930294037,
-0.0074600535444915295,
-0.059109143912792206,
-0.0174337700009346,
-0.002980212913826108,
0.005517678335309029,
0.011244828812777996,
-0.031306516379117966,
-0.049397267401218414,
0.06486009806394577,
0.0029468878637999296,
0.006341283675283194,
0.015948424115777016,
0.015891294926404953,
0.012330274097621441,
-0.009826133027672768,
-0.0003037936694454402,
0.004794048611074686,
-0.052520301192998886,
0.010549763217568398,
-0.01056880597025156,
-0.048445120453834534,
-0.01282538939267397,
-0.036200542002916336,
-0.06200366094708443,
0.06364135444164276,
-0.01889055036008358,
0.0022208774462342262,
-0.01210175920277834,
0.017548026517033577,
0.030106814578175545,
-0.02612685039639473,
-0.022051671519875526,
-0.015796080231666565,
-0.038790374994277954,
-0.0030373416375368834,
0.006360326427966356,
0.0174337700009346,
0.02161368355154991,
-0.053091589361429214,
-0.016138851642608643,
0.023270417004823685,
-0.008774013258516788,
-0.038695160299539566,
-0.04825469106435776,
-0.01817644201219082,
0.0015924619510769844,
-0.04688360542058945,
-0.018424000591039658,
-0.04242756590247154,
-0.04734063521027565,
-0.010597370564937592,
0.02363223023712635,
-0.028335826471447945,
0.004836895037442446,
0.011330521665513515,
-0.049968551844358444,
0.03201110288500786,
-0.030525758862495422,
0.020547281950712204,
0.01338715385645628,
0.03111608885228634,
0.01551995798945427,
-0.006312719080597162,
-0.013777533546090126,
0.015529479831457138,
0.07628583163022995,
-0.0397234745323658,
0.05362479016184807,
0.036448098719120026,
-0.04501740261912346,
0.00803610123693943,
-0.027269423007965088,
0.00013337464770302176,
-0.061127688735723495,
0.043684396892786026,
-0.028488168492913246,
0.037019386887550354,
0.022051671519875526,
0.018043141812086105,
-0.0024827171582728624,
-0.007621918339282274,
0.03134460374712944,
-0.01591033861041069,
-0.005222513806074858,
0.06360326707363129,
-0.06725949794054031,
-0.07403877377510071,
0.009711875580251217,
0.005384378135204315,
-0.05903296917676926,
-0.012625438161194324,
-0.0398758202791214,
0.013987005688250065,
-0.03368688002228737,
0.027440810576081276,
-0.029878299683332443,
0.021442297846078873,
0.04471271485090256,
0.007079195696860552,
0.06611692905426025,
0.053167760372161865,
0.019014328718185425,
-0.07377216964960098,
-0.0007551697781309485,
-0.05720485374331474,
-0.04524591565132141,
-0.027155166491866112,
-0.010911578312516212,
0.009902304969727993,
0.01775749772787094,
0.03351549431681633,
-0.02128995582461357,
-0.028392953798174858,
-0.07202022522687912,
0.02283242903649807,
-0.025822164490818977,
-0.05777613818645477,
0.015186707489192486,
0.03374400734901428,
0.019433273002505302,
0.051568157970905304,
-0.018366871401667595,
0.04250374063849449,
-0.050273239612579346,
0.029364142566919327,
0.03543882444500923,
0.020528240129351616,
0.03429625183343887,
0.023194244131445885,
-0.04825469106435776,
0.03892367333173752,
0.039418790489435196,
-0.04547442868351936,
0.018043141812086105,
-0.00671262014657259,
-0.032848991453647614,
-0.04322736710309982,
-0.024013089016079903,
0.021975498646497726,
-0.09178674966096878,
-0.01608172431588173,
-0.04265608265995979,
0.012587352655827999,
0.019071457907557487,
-0.020071210339665413,
-0.016862481832504272,
-0.05202518403530121,
0.027916882187128067,
0.021823156625032425,
-0.012558788061141968,
-0.030240114778280258,
-0.04482697322964668,
0.02347988821566105,
0.04977812245488167,
-0.03707651421427727,
0.028659554198384285,
0.002056632423773408,
0.0217088982462883,
-0.023860745131969452,
0.00933101773262024,
0.04612188786268234,
0.05987085774540901,
-0.01946183666586876,
-0.03349645063281059,
-0.009197717532515526,
0.0091596320271492,
-0.056214623153209686,
-0.03399156406521797,
0.055110134184360504,
-0.0007260103011503816,
0.004913066513836384,
-0.0031920650508254766,
0.020604411140084267,
0.0003514009003993124,
-0.0868355929851532,
-0.025288963690400124,
0.0065602767281234264,
-0.054386503994464874,
0.028354868292808533,
-0.0005903296987526119,
-0.015796080231666565,
0.004556012339890003,
0.04596954584121704,
-0.07464814186096191,
0.009021570906043053,
-0.03964730352163315,
0.033325064927339554,
0.04082796350121498,
0.020318767055869102,
0.08500748127698898,
0.019309494644403458,
0.013549018651247025,
0.01848112791776657,
0.06718333065509796,
0.006836398970335722,
-0.0032682365272194147,
0.01069258525967598,
-0.0071410853415727615,
0.05617653578519821,
0.06463158130645752,
-0.016938654705882072,
-0.021480383351445198,
-0.025822164490818977,
0.04242756590247154,
-0.016262631863355637,
-0.01197797991335392,
0.016843440011143684,
-0.024393947795033455,
-0.04974003881216049,
0.031401731073856354,
-0.010273640975356102,
-0.021156655624508858,
0.030601929873228073,
0.02669813670217991,
0.0219374131411314,
-0.025193748995661736,
-0.023670317605137825,
0.028488168492913246,
0.014996279031038284,
-0.05282498896121979,
-0.039342619478702545,
-0.015615172684192657,
-0.011349564418196678,
0.07777117937803268,
0.03576255589723587,
-0.03979964926838875,
-0.025422263890504837,
0.04509357362985611,
-0.004044234752655029,
0.012435009703040123,
0.019033372402191162,
0.02645057998597622,
-0.024946190416812897,
-0.039266448467969894,
0.05274881422519684,
0.012349316850304604,
0.011559036560356617,
-0.015120057389140129,
0.043532054871320724,
-0.0013639472890645266,
-0.018119312822818756,
0.011806594207882881,
0.004556012339890003,
0.027212295681238174,
0.04600762948393822,
-0.04562677443027496,
-0.013596625998616219,
-0.055833764374256134,
-0.024013089016079903,
-0.07057296484708786,
0.05057792738080025,
0.04265608265995979,
-0.01721477508544922,
0.049321096390485764,
-0.03696225583553314,
-0.023327544331550598,
0.07152511179447174,
-0.023441802710294724,
-0.04958769679069519,
0.019633224233984947,
0.07483857125043869,
0.0378001444041729,
0.0022268283646553755,
-0.03391539305448532,
-0.0023482267279177904,
-0.009497643448412418,
-0.010045126080513,
0.006398412398993969,
-0.021423256024718285,
-0.005555764306336641,
-0.032030146569013596,
0.005865211132913828,
0.01608172431588173,
-0.008331266231834888,
-0.0009801139822229743,
0.06741184741258621,
0.010863970965147018,
-0.02951648458838463,
0.012539745308458805,
-0.016843440011143684
] |
20,860 | precession.precession | eval_delta_theta |
Nutation amplitude of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
delta_theta: float
Nutation amplitude.
Examples
--------
``delta_theta = precession.eval_delta_theta(kappa,r,chieff,q,chi1,chi2)``
| def eval_delta_theta(kappa, r, chieff, q, chi1, chi2, precomputedroots=None):
"""
Nutation amplitude of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
delta_theta: float
Nutation amplitude.
Examples
--------
``delta_theta = precession.eval_delta_theta(kappa,r,chieff,q,chi1,chi2)``
"""
if precomputedroots is None:
deltachimin, deltachiplus = deltachilimits_plusminus(kappa, r, chieff, q, chi1, chi2)
else:
deltachimin, deltachiplus, _ = precomputedroots[:-1]
theta_minus = eval_thetaL(deltachiplus, kappa, r, chieff, q)
theta_plus = eval_thetaL(deltachimin, kappa, r, chieff, q)
delta_theta = (theta_plus - theta_minus)/2
return delta_theta
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None) | [
-0.015028166584670544,
0.0028730316553264856,
0.0003634908644016832,
0.016507718712091446,
0.017401034012436867,
0.013771941885352135,
-0.03670036420226097,
0.01823851838707924,
-0.015456212684512138,
0.05635329708456993,
0.0768251046538353,
0.0006996472366154194,
0.004389806650578976,
0.029349124059081078,
-0.059926558285951614,
-0.02244454249739647,
0.002533385995775461,
0.04526130110025406,
-0.027320554479956627,
-0.06737084686756134,
-0.03178713098168373,
-0.015223578549921513,
-0.011752677150070667,
0.04916955530643463,
-0.053933899849653244,
-0.02797193080186844,
0.00044840233749710023,
0.028921077027916908,
-0.05155172944068909,
0.04749458655714989,
0.01710326224565506,
-0.01739172823727131,
0.029553841799497604,
0.019169054925441742,
-0.01823851838707924,
-0.04965343326330185,
0.0015330590540543199,
0.007984003983438015,
-0.05951712280511856,
-0.03926864638924599,
-0.026706401258707047,
0.008258512243628502,
0.0656958818435669,
-0.04031084477901459,
-0.014414012432098389,
-0.01620994694530964,
-0.02352396585047245,
0.06841304898262024,
0.004250226076692343,
0.004820179659873247,
0.03240128606557846,
-0.06804083287715912,
0.004880664404481649,
-0.016805490478873253,
0.002318199258297682,
0.042916350066661835,
-0.00916113331913948,
-0.015270105563104153,
-0.010663949884474277,
-0.043809663504362106,
0.04555907100439072,
-0.008514409884810448,
0.02413811907172203,
0.04388410598039627,
0.021197624504566193,
-0.020825408399105072,
0.006504450924694538,
-0.0030498337000608444,
0.01311126071959734,
0.0011573549127206206,
-0.06160152330994606,
0.011399073526263237,
0.036588698625564575,
-0.058884356170892715,
0.010580201633274555,
0.00035273152752779424,
-0.027060003951191902,
-0.03104270063340664,
-0.03718424215912819,
0.06398369371891022,
-0.10608117282390594,
-0.03952919319272041,
0.01941099390387535,
0.0025147751439362764,
0.04436798393726349,
0.06145263835787773,
-0.03664453327655792,
-0.026520293205976486,
0.025831695646047592,
-0.023840347304940224,
-0.03664453327655792,
-0.08211054652929306,
-0.0078072021715343,
-0.012841405346989632,
0.030782150104641914,
0.034597352147102356,
0.007253532763570547,
-0.008514409884810448,
0.059740450233221054,
-0.02843719907104969,
0.04284190386533737,
0.04529852047562599,
0.03070770762860775,
0.02834414504468441,
0.038003113120794296,
-0.03349931910634041,
-0.07548513263463974,
0.01832226663827896,
0.08449272066354752,
-0.041166938841342926,
-0.06774306297302246,
0.0181919913738966,
0.06145263835787773,
-0.012552938424050808,
-0.039417531341314316,
-0.034802068024873734,
-0.03934308886528015,
0.02266787178814411,
0.02536642737686634,
0.011045469902455807,
0.035546496510505676,
-0.0014179052086547017,
0.008421355858445168,
0.03349931910634041,
0.004022244364023209,
-0.019169054925441742,
0.05773049220442772,
0.02678084373474121,
-0.034225136041641235,
0.015018860809504986,
0.0727679654955864,
0.0286791380494833,
0.06684975326061249,
-0.016116894781589508,
0.0028683790005743504,
0.043772440403699875,
0.029888836666941643,
0.007309365086257458,
0.03320154547691345,
-0.06487701088190079,
0.051700614392757416,
0.021886220201849937,
0.0063136909157037735,
0.017829081043601036,
-0.06163874641060829,
0.024919770658016205,
-0.013446253724396229,
0.029870225116610527,
-0.02579447440803051,
-0.002821852220222354,
-0.02834414504468441,
0.04838790372014046,
0.043623555451631546,
-0.02116040326654911,
0.028995521366596222,
-0.03357376158237457,
0.04276746138930321,
0.01638674922287464,
-0.049020666629076004,
-0.044516872614622116,
-0.01268321368843317,
-0.008872666396200657,
0.012832099571824074,
0.021700114011764526,
0.047159593552351,
-0.022258436307311058,
0.02036014012992382,
0.007104646880179644,
-0.03822644427418709,
0.04652683064341545,
-0.0036570087540894747,
0.017745332792401314,
0.009393767453730106,
0.0011980659328401089,
-0.014237210154533386,
-0.010989637114107609,
-0.02920023910701275,
-0.07440570741891861,
0.002886989852413535,
-0.018294349312782288,
-0.04827623814344406,
-0.040608618408441544,
0.0077234539203345776,
-0.0724329724907875,
0.016517024487257004,
0.029498010873794556,
0.005611135624349117,
0.0563160739839077,
-0.008868013508617878,
-0.006825486198067665,
-0.0046294196508824825,
-0.027767213061451912,
0.007234922144562006,
0.07016246020793915,
0.03154519200325012,
0.03452290967106819,
0.058884356170892715,
0.025533923879265785,
-0.002577586332336068,
0.06119208782911301,
0.005345932673662901,
0.013734720647335052,
-0.010394093580543995,
-0.04049695283174515,
0.035974543541669846,
-0.05047230422496796,
-0.07667621970176697,
0.01280418410897255,
0.01360444538295269,
-0.01672174222767353,
0.05356168746948242,
0.0004437496536411345,
-0.009649664163589478,
0.0033848269376903772,
-0.046229057013988495,
0.046005729585886,
0.049541767686605453,
-0.002942821942269802,
0.03727729618549347,
0.007239574566483498,
0.03340626507997513,
0.005341280251741409,
0.036402590572834015,
-0.005885643884539604,
0.05024897679686546,
-0.002889316063374281,
-0.026110857725143433,
0.04019918292760849,
-0.057991042733192444,
-0.07522457838058472,
0.009296060539782047,
-0.007467556279152632,
-0.031191587448120117,
-0.05866102874279022,
0.06923191994428635,
-0.013325284235179424,
0.000960779027082026,
0.014041797257959843,
0.002912579569965601,
0.08211054652929306,
-0.06956691294908524,
0.02112318016588688,
0.03740757331252098,
0.05698605999350548,
-0.0378914512693882,
-0.0021309289149940014,
0.04284190386533737,
-0.012003921903669834,
-0.00029239204013720155,
0.02545948140323162,
0.02380312606692314,
-0.05970322713255882,
0.01271113008260727,
0.06979024410247803,
-0.023989234119653702,
0.03282933309674263,
0.07362405955791473,
0.07905838638544083,
0.04470297694206238,
0.007797896862030029,
0.035118453204631805,
-0.012031838297843933,
-0.04749458655714989,
0.04723403975367546,
-0.0573582760989666,
0.0012666929978877306,
-0.0332573801279068,
-0.016805490478873253,
0.0010736066615208983,
-0.00743964035063982,
-0.020527636632323265,
0.02929329313337803,
-0.057134948670864105,
-0.012348220683634281,
-0.004801569040864706,
0.011306019499897957,
0.04455409198999405,
0.035081230103969574,
-0.051886722445487976,
-0.006592852063477039,
-0.05002564936876297,
-0.07675065845251083,
-0.0067650009877979755,
-0.005867033265531063,
-0.11456766724586487,
0.048685673624277115,
-0.03273627907037735,
0.0041385614313185215,
0.10987776517868042,
-0.01526080071926117,
0.009705496951937675,
-0.044628534466028214,
-0.014897891320288181,
0.004745736718177795,
0.0899270549416542,
0.06085709482431412,
-0.09350031614303589,
-0.029870225116610527,
0.04232080653309822,
0.034690406173467636,
-0.0025636283680796623,
0.018815450370311737,
0.04883456230163574,
-0.05341280251741409,
-0.010729087516665459,
0.008398093283176422,
0.0786861777305603,
0.019429603591561317,
0.0029963278211653233,
0.0023077307268977165,
-0.004422375001013279,
-0.02886524610221386,
-0.0028823371976614,
0.02493838034570217,
-0.03301543742418289,
-0.08441828191280365,
0.028995521366596222,
-0.05140284076333046,
0.06323926895856857,
0.008481841534376144,
-0.02017403393983841,
0.024956991896033287,
-0.0020844019018113613,
0.003917559050023556,
0.01105477474629879,
-0.05073285475373268,
-0.02060208097100258,
0.026966949924826622,
-0.005490166135132313,
-0.04477742314338684,
-0.016842711716890335,
0.012255166657269001,
-0.051514506340026855,
0.030112164095044136,
-0.05426889657974243,
-0.05698605999350548,
-0.01280418410897255,
-0.02853025309741497,
0.007211658637970686,
0.02244454249739647,
0.011073385365307331,
-0.0018075673142448068,
0.003391806036233902,
0.00873773917555809,
0.011426989920437336,
-0.002176292473450303,
0.03530455753207207,
0.0008886624709703028,
0.0055366926826536655,
0.04689904674887657,
-0.021848998963832855,
0.026278354227542877,
-0.004866706673055887,
0.021383730694651604,
0.019671544432640076,
0.02290981076657772,
-0.0179035235196352,
-0.0029940016102045774,
0.02017403393983841,
-0.05270559340715408,
-0.02315175160765648,
-0.000002867034254450118,
0.0007345423218794167,
0.031824350357055664,
0.015046777203679085,
-0.04351188987493515,
-0.05240781977772713,
-0.006443966180086136,
-0.011129218153655529,
-0.0002071897906716913,
0.0012434294912964106,
0.02155122719705105,
0.0398641899228096,
0.0035546498838812113,
0.011175744235515594,
0.04619183763861656,
0.03312710300087929,
0.012645992450416088,
-0.0542316734790802,
-0.02687389776110649,
0.012292388826608658,
-0.02910718508064747,
-0.04734570160508156,
0.013920827768743038,
0.013837079517543316,
0.004710841458290815,
-0.012766961939632893,
-0.03859865665435791,
0.030726319178938866,
-0.0030382019467651844,
-0.0018075673142448068,
-0.03282933309674263,
0.0676686242222786,
0.006653336808085442,
-0.0552738755941391,
0.019020168110728264,
-0.008556284010410309,
-0.017987271770834923,
-0.12022533267736435,
-0.0018098936416208744,
0.05088174343109131,
-0.01526080071926117,
-0.02011820115149021,
-0.019299328327178955,
0.012171418406069279,
0.0009032021043822169,
0.04317689687013626,
0.00003429536445764825,
-0.04455409198999405,
0.05348724499344826,
-0.030819373205304146,
-0.0005533784860745072,
-0.0016179705271497369,
0.02272370457649231,
-0.044628534466028214,
0.03681202977895737,
-0.04779236018657684,
-0.0624576173722744,
-0.004627093207091093,
0.027339166030287743,
-0.024956991896033287,
-0.06938081234693527,
-0.03908253833651543,
0.023542575538158417,
0.07332628220319748,
0.06759417802095413,
0.04667571559548378,
0.00040710976463742554,
-0.03761228919029236,
0.02674362249672413,
0.027283333241939545,
-0.034280966967344284,
0.007528041023761034,
0.043772440403699875,
-0.003787284018471837,
0.030689097940921783,
-0.00014510555774904788,
0.034374020993709564,
0.04139026999473572,
0.002351931296288967,
-0.06670086085796356,
-0.004755042027682066,
0.044330764561891556,
-0.025626977905631065,
-0.06632865220308304,
-0.008123585022985935,
0.0398641899228096,
-0.05278003588318825,
-0.03154519200325012,
0.02536642737686634,
0.013409032486379147,
0.04455409198999405,
0.011082691140472889,
0.012320304289460182,
0.05106784775853157,
0.014283737167716026,
-0.01119435578584671,
0.017280064523220062,
-0.029088573530316353,
-0.023989234119653702,
0.04760625213384628,
0.036439813673496246,
0.09588249027729034,
0.013269452378153801,
0.004992329049855471,
0.03273627907037735,
0.04250691086053848,
-0.033704034984111786,
-0.030223829671740532,
-0.07247018814086914,
0.027841655537486076,
0.0007077893824316561,
-0.008202680386602879,
0.04474020004272461,
-0.014414012432098389,
-0.014451233670115471,
-0.009189048781991005,
0.007351239211857319,
-0.03837532922625542,
-0.07488958537578583,
-0.06346260011196136,
-0.021420951932668686,
0.037537846714258194,
0.00855163112282753,
0.027711380273103714,
-0.04198580980300903,
-0.015000250190496445,
-0.04634072259068489,
-0.016749659553170204,
-0.046005729585886,
-0.002377521013841033,
-0.010012573562562466,
0.016088977456092834,
0.025496702641248703,
-0.04317689687013626,
-0.06193651631474495,
0.06137819588184357,
-0.015437602065503597,
-0.0019134158501401544,
0.014618730172514915,
0.011585180647671223,
0.04139026999473572,
0.018294349312782288,
-0.011864341795444489,
0.02730194479227066,
-0.04366077855229378,
0.04399577155709267,
-0.02196066454052925,
-0.06703585386276245,
0.009742718189954758,
-0.024435890838503838,
-0.03180574253201485,
0.04541018605232239,
-0.02815803699195385,
0.006467229221016169,
0.002845115726813674,
0.018033798784017563,
0.009817161597311497,
-0.00814684759825468,
-0.026725010946393013,
-0.002286793664097786,
-0.008812181651592255,
0.020769577473402023,
0.011296714656054974,
0.030819373205304146,
0.0312288086861372,
-0.015512045472860336,
-0.008593505248427391,
0.026483071967959404,
0.0059926556423306465,
-0.02942356839776039,
-0.019429603591561317,
-0.015744678676128387,
-0.01403249241411686,
-0.05047230422496796,
-0.01592148095369339,
-0.054827217012643814,
-0.03387153148651123,
-0.02975856140255928,
0.0012376137310639024,
-0.009193701669573784,
0.010422009974718094,
-0.04142748937010765,
-0.05668829008936882,
0.021979274228215218,
-0.023505354300141335,
-0.009226270020008087,
0.010542979463934898,
0.008332955650985241,
0.037630900740623474,
0.004124603699892759,
-0.00347788049839437,
-0.015902871266007423,
0.10444343090057373,
-0.018582815304398537,
0.051849499344825745,
0.017940746620297432,
-0.012245861813426018,
-0.0018948051147162914,
-0.01271113008260727,
-0.0047876108437776566,
-0.09067148715257645,
0.016749659553170204,
-0.05065841227769852,
0.037630900740623474,
0.029665507376194,
0.018601426854729652,
0.006443966180086136,
-0.0003844279272016138,
0.03558371961116791,
-0.03670036420226097,
0.0066114626824855804,
0.07816507667303085,
-0.054343339055776596,
-0.10853779315948486,
-0.02069513499736786,
-0.005746063310652971,
-0.0584004782140255,
0.0009485657792538404,
-0.037240076810121536,
0.04734570160508156,
-0.0030661181081086397,
0.04768069460988045,
-0.014553592540323734,
0.014721089042723179,
0.04153915494680405,
0.03657008707523346,
0.07645288854837418,
0.032680444419384,
0.0031033395789563656,
-0.06197373941540718,
-0.0008002615068107843,
-0.04533574357628822,
-0.03225239738821983,
-0.02112318016588688,
-0.023970622569322586,
0.026203909888863564,
0.03327598795294762,
0.0500628687441349,
-0.035360392183065414,
-0.013092650100588799,
-0.058549363166093826,
0.014767616055905819,
-0.02910718508064747,
-0.026483071967959404,
0.023728683590888977,
0.023375079035758972,
-0.011361852288246155,
0.020825408399105072,
-0.031675465404987335,
0.0450751930475235,
-0.04332578554749489,
0.05404556542634964,
0.02073235623538494,
0.013855690136551857,
0.04005029425024986,
0.02825109101831913,
-0.04265579953789711,
-0.006322996225208044,
0.06007544323801994,
-0.05616718903183937,
0.0047876108437776566,
-0.01398596540093422,
-0.016796186566352844,
-0.03776117414236069,
-0.023263415321707726,
0.01955987885594368,
-0.05077007785439491,
-0.03027966059744358,
-0.04827623814344406,
-0.003878011368215084,
0.011045469902455807,
-0.022649260237812996,
-0.01676826924085617,
-0.043772440403699875,
0.02668778970837593,
0.02834414504468441,
-0.03357376158237457,
-0.010282429866492748,
-0.0748523622751236,
-0.009203007444739342,
0.0480901300907135,
-0.04332578554749489,
0.03132186084985733,
0.003677946049720049,
0.005908907391130924,
-0.024789495393633842,
0.011333935894072056,
0.01704743131995201,
0.035453446209430695,
-0.024696441367268562,
0.006053140386939049,
-0.018573511391878128,
0.0181361585855484,
-0.07220964133739471,
-0.017494088038802147,
0.006825486198067665,
0.026911118999123573,
-0.0018843365833163261,
-0.011268798261880875,
0.021793168038129807,
0.02603641338646412,
-0.08687489479780197,
-0.010384788736701012,
0.025291984900832176,
-0.006332301534712315,
0.017605751752853394,
-0.011464211158454418,
0.014618730172514915,
-0.017875608056783676,
0.004243246745318174,
-0.0613037534058094,
0.013734720647335052,
-0.028921077027916908,
0.04965343326330185,
0.0317499078810215,
0.02235148847103119,
0.03009355440735817,
0.03353653848171234,
-0.00572745269164443,
-0.002668313682079315,
0.05460388958454132,
0.014469844289124012,
-0.011091995984315872,
-0.014702478423714638,
0.024435890838503838,
0.08062168955802917,
0.0673336312174797,
0.011613097041845322,
-0.03841255232691765,
-0.017819775268435478,
0.04477742314338684,
-0.005713494960218668,
0.011445600539445877,
0.058177147060632706,
-0.027171669527888298,
-0.06993912905454636,
0.06498868018388748,
-0.0317499078810215,
-0.0500628687441349,
0.01625647395849228,
0.023877568542957306,
0.00578793790191412,
-0.02158844843506813,
-0.0011934131616726518,
0.011808509938418865,
0.031117144972085953,
-0.034280966967344284,
-0.03599315509200096,
-0.026948340237140656,
-0.02244454249739647,
0.04492630809545517,
0.023468133062124252,
-0.033182933926582336,
-0.03949197381734848,
0.03952919319272041,
-0.009249533526599407,
0.005117951426655054,
0.0173824243247509,
0.014460538513958454,
-0.033517926931381226,
-0.05884713679552078,
0.03513706102967262,
0.0018866629106923938,
-0.005983350332826376,
-0.025589756667613983,
0.05103062838315964,
-0.03189879655838013,
-0.027339166030287743,
0.01547482330352068,
0.011622401885688305,
0.048536788672208786,
0.07191187143325806,
-0.023356469348073006,
-0.03208490088582039,
-0.01513983029872179,
-0.02503143437206745,
-0.06588198989629745,
0.048350680619478226,
0.06692419201135635,
-0.010971026495099068,
0.052556708455085754,
-0.0003390642814338207,
-0.01194809004664421,
0.07611789554357529,
-0.02791609801352024,
-0.08151500672101974,
0.027041394263505936,
0.07559679448604584,
0.0099660474807024,
0.020992904901504517,
-0.0034755542874336243,
-0.008579547517001629,
-0.014665257185697556,
-0.010235902853310108,
0.020657911896705627,
-0.003187087830156088,
-0.0090959956869483,
-0.023412300273776054,
0.002949801040813327,
0.00913786981254816,
0.010766308754682541,
-0.006057793274521828,
0.05103062838315964,
0.014348874799907207,
-0.03614204004406929,
0.012394747696816921,
0.016796186566352844
] |
20,861 | precession.precession | eval_deltachi |
Weighted spin difference.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltachi: float
Weighted spin difference.
Examples
--------
``deltachi = precession.eval_deltachi(theta1,theta2,q,chi1,chi2)``
| def eval_deltachi(theta1, theta2, q, chi1, chi2):
"""
Weighted spin difference.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltachi: float
Weighted spin difference.
Examples
--------
``deltachi = precession.eval_deltachi(theta1,theta2,q,chi1,chi2)``
"""
theta1 = np.atleast_1d(theta1).astype(float)
theta2 = np.atleast_1d(theta2).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
deltachi = (chi1*np.cos(theta1) -q*chi2*np.cos(theta2))/(1+q)
return deltachi
| (theta1, theta2, q, chi1, chi2) | [
-0.007598959840834141,
0.000008969788723334204,
0.027169866487383842,
-0.025323892012238503,
-0.027653763070702553,
-0.016183633357286453,
-0.04000207409262657,
0.03770804777741432,
-0.06355167925357819,
0.07928726077079773,
0.07419738918542862,
0.03561116382479668,
-0.004825518932193518,
0.018603114411234856,
-0.08939531445503235,
0.012635063380002975,
-0.0067835054360330105,
-0.011541816405951977,
-0.03985869511961937,
-0.07563115656375885,
-0.013584933243691921,
-0.0457371361553669,
0.03899843618273735,
0.061723627150058746,
-0.036847785115242004,
-0.02387220412492752,
-0.010520257987082005,
-0.014991816133260727,
-0.0458805114030838,
0.011891297064721584,
0.023675061762332916,
-0.025090904906392097,
-0.023065710440278053,
0.034625448286533356,
-0.012500647455453873,
-0.023675061762332916,
0.017106620594859123,
-0.01539506297558546,
-0.07118648290634155,
-0.014848439022898674,
-0.0006877596606500447,
0.02437402307987213,
0.07670648396015167,
-0.024517398327589035,
-0.021004673093557358,
-0.004220648668706417,
-0.041041553020477295,
0.008405453525483608,
-0.032797396183013916,
0.0005656654830090702,
0.04907064139842987,
-0.05136466771364212,
0.0206462312489748,
0.002663668477907777,
-0.011765842325985432,
0.030628826469182968,
0.00846370030194521,
0.0013105517718940973,
-0.0320088267326355,
-0.04276207089424133,
0.011425322853028774,
-0.007294284645467997,
0.01258129719644785,
0.07204674184322357,
0.0008938635000959039,
0.002140567870810628,
-0.011308829300105572,
0.034159474074840546,
0.0011537335813045502,
0.02193661965429783,
-0.04039635881781578,
0.020879218354821205,
0.007908116094768047,
-0.04860466718673706,
-0.009444933384656906,
0.0505044087767601,
0.009328439831733704,
-0.0365610346198082,
0.009453894570469856,
0.02896207384765148,
-0.07405401766300201,
-0.013369868509471416,
0.003696428146213293,
-0.05899947136640549,
0.015699738636612892,
0.038281552493572235,
-0.03623843565583229,
-0.0028608113061636686,
0.0031722073908895254,
-0.0412566177546978,
-0.08581089973449707,
-0.06566648185253143,
-0.012043634429574013,
0.01074428390711546,
0.07828362286090851,
0.008781816810369492,
-0.02797636017203331,
-0.00802460964769125,
0.012760518118739128,
-0.004281135741621256,
0.05770908296108246,
0.06301401555538177,
0.064017653465271,
0.036471422761678696,
0.03521687909960747,
-0.0822981670498848,
-0.0733012855052948,
-0.0021383275743573904,
0.06695687025785446,
-0.0320088267326355,
-0.07677817344665527,
-0.009579349309206009,
0.006151752546429634,
-0.03353220224380493,
-0.051185447722673416,
-0.023961814120411873,
-0.037815578281879425,
0.043263889849185944,
0.04494856670498848,
0.014794672839343548,
0.04985921457409859,
0.026435060426592827,
0.04039635881781578,
0.00424753176048398,
-0.012778439559042454,
0.017249997705221176,
0.018056491389870644,
0.00596805103123188,
-0.006456427741795778,
0.018423892557621002,
0.08193972706794739,
-0.014319738373160362,
0.039105966687202454,
0.05602440610527992,
-0.024033503606915474,
0.030485449358820915,
0.02758207358419895,
0.03587999567389488,
0.09728102385997772,
0.00013182526163291186,
0.0458088256418705,
-0.0008451378671452403,
0.0004396509029902518,
0.004386427812278271,
-0.04502025246620178,
0.025789866223931313,
-0.005963570438325405,
-0.012097400613129139,
-0.02935635857284069,
0.03727791830897331,
-0.05867687612771988,
0.04208103194832802,
0.05376622453331947,
-0.0274386964738369,
0.03541402146220207,
-0.03362181410193443,
0.020968828350305557,
0.01328025758266449,
-0.0004690543282777071,
-0.0505044087767601,
-0.005179479718208313,
0.0033715905155986547,
0.052870120853185654,
0.016389738768339157,
0.057995837181806564,
0.004709025379270315,
0.013011426664888859,
0.03706285357475281,
-0.03245687857270241,
0.02892622910439968,
-0.02249220386147499,
-0.008965518325567245,
-0.025754021480679512,
-0.0002962743164971471,
0.003971979953348637,
-0.04032466933131218,
-0.006962726358324289,
-0.07122232764959335,
0.0077916220761835575,
-0.06573817133903503,
-0.017312724143266678,
-0.06297817081212997,
-0.03625635802745819,
-0.011102725751698017,
0.024212723597884178,
0.0032640579156577587,
0.023137399926781654,
0.04910648614168167,
-0.017267920076847076,
-0.0007684089941903949,
0.026829347014427185,
-0.033209607005119324,
-0.022169606760144234,
0.022097919136285782,
0.06373090296983719,
0.03254649043083191,
0.02292233519256115,
0.007563116028904915,
0.001307191327214241,
0.07265609502792358,
0.004731427878141403,
0.019445450976490974,
0.010726362466812134,
-0.006967206951230764,
0.08595427125692368,
-0.04362232983112335,
-0.07236933708190918,
0.0006295128841884434,
-0.023155322298407555,
-0.04645401984453201,
0.017339607700705528,
0.013020387850701809,
-0.018638959154486656,
0.02614830806851387,
0.0055289603769779205,
0.0684981718659401,
0.008817660622298717,
-0.023639217019081116,
0.03806648775935173,
-0.0065101939253509045,
0.0550566166639328,
-0.00448499945923686,
0.021649867296218872,
0.025503113865852356,
0.0549849271774292,
-0.011398440226912498,
-0.01213324535638094,
0.05674128979444504,
-0.011246101930737495,
-0.01967843808233738,
0.025556879118084908,
0.006389219779521227,
0.01885402388870716,
-0.04899895563721657,
0.04172259196639061,
0.003017629496753216,
-0.06236882135272026,
0.024141035974025726,
-0.01830740086734295,
0.05143635720014572,
-0.03439246118068695,
0.031811684370040894,
0.018029607832431793,
0.04222441092133522,
-0.005744025111198425,
-0.060289859771728516,
0.00850402470678091,
-0.03939272090792656,
-0.00035648129414767027,
0.04942908510565758,
0.0003186769026797265,
-0.018190907314419746,
0.0026009411085397005,
0.02885454148054123,
-0.020879218354821205,
0.009982596151530743,
0.04229609668254852,
0.008141103200614452,
-0.0023589932825416327,
-0.015672855079174042,
0.03441038355231285,
-0.04616726562380791,
-0.06545142084360123,
0.04211687669157982,
-0.07276362925767899,
0.026291685178875923,
-0.02475038543343544,
0.0014203244354575872,
-0.03953609988093376,
-0.007894674316048622,
-0.04681245982646942,
-0.012464803643524647,
-0.03593376278877258,
-0.011416361667215824,
-0.003707629395648837,
-0.0018986198119819164,
0.07204674184322357,
-0.003924934659153223,
-0.03989453986287117,
-0.018621036782860756,
-0.04269038513302803,
-0.04355064406991005,
-0.03985869511961937,
-0.03145324066281319,
-0.06491375714540482,
0.0458805114030838,
-0.01967843808233738,
-0.013369868509471416,
0.09061401337385178,
0.012169089168310165,
0.009964673779904842,
-0.009086492471396923,
-0.010108050890266895,
-0.013369868509471416,
0.09749609231948853,
0.03527064248919487,
-0.08452050387859344,
-0.03817402198910713,
0.07054128497838974,
0.06143687292933464,
-0.041937656700611115,
0.01562804915010929,
0.014884283766150475,
-0.00733012892305851,
-0.05444726347923279,
0.005385583732277155,
0.09305141866207123,
0.02161402255296707,
-0.019839737564325333,
-0.0009974754648283124,
0.014794672839343548,
-0.0006799187394790351,
-0.018477659672498703,
0.017527788877487183,
-0.004668700508773327,
-0.005304934456944466,
0.02251012623310089,
0.0206462312489748,
0.027402853593230247,
0.014543764293193817,
0.002979544922709465,
0.026381295174360275,
0.034213241189718246,
0.0063264924101531506,
0.03297661989927292,
-0.037815578281879425,
-0.01285012811422348,
0.004052629228681326,
0.03514518961310387,
-0.004299057647585869,
-0.031399477273225784,
0.04756518825888634,
0.021183893084526062,
0.009144739247858524,
0.016757139936089516,
0.026435060426592827,
0.021829087287187576,
-0.010260388255119324,
-0.04494856670498848,
-0.010878699831664562,
0.03163246437907219,
0.002804804826155305,
0.01789519190788269,
-0.007370453327894211,
-0.017205191776156425,
-0.014158439822494984,
0.029069606214761734,
0.002112564630806446,
0.03993038460612297,
0.0596088245511055,
-0.043335579335689545,
0.007047856226563454,
0.041113242506980896,
0.036435578018426895,
0.02838856726884842,
0.031076878309249878,
-0.041901811957359314,
-0.04344310984015465,
0.051579732447862625,
-0.07742336392402649,
-0.05674128979444504,
0.02483999729156494,
-0.002641265746206045,
0.017124542966485023,
-0.03856830671429634,
-0.05416051298379898,
-0.0012455842224881053,
-0.029248826205730438,
-0.055701810866594315,
0.017124542966485023,
-0.0206641536206007,
0.0206283088773489,
0.017205191776156425,
-0.015072464942932129,
0.02978648990392685,
-0.004776232875883579,
0.023173242807388306,
0.026040775701403618,
-0.04896311089396477,
0.024624930694699287,
0.009919868782162666,
-0.013199608772993088,
-0.0868862196803093,
0.01419428363442421,
0.031041035428643227,
0.0031453242991119623,
-0.018979478627443314,
-0.028621554374694824,
0.04939324036240578,
-0.020090647041797638,
0.00988402497023344,
-0.026202073320746422,
0.06186700239777565,
0.029929865151643753,
-0.04760103300213814,
0.027295321226119995,
0.011165453121066093,
0.0006390340276993811,
-0.10889452695846558,
-0.018190907314419746,
-0.0028227269649505615,
-0.03760051354765892,
-0.004950973205268383,
-0.006926882080733776,
-0.025305969640612602,
-0.007334609515964985,
0.009704804047942162,
0.04265454038977623,
-0.028298957273364067,
-0.007917076349258423,
-0.06254804134368896,
-0.015072464942932129,
-0.022169606760144234,
0.018477659672498703,
-0.06140103191137314,
0.041973501443862915,
-0.04674077406525612,
-0.02381843887269497,
-0.03127402067184448,
0.07183168083429337,
0.01690051704645157,
-0.09470024704933167,
-0.006245843134820461,
-0.028693241998553276,
0.07720830291509628,
0.023137399926781654,
0.018943633884191513,
0.010896622203290462,
0.005130194127559662,
-0.02611246332526207,
0.003983181435614824,
-0.0014225647319108248,
-0.03344259411096573,
-0.027832983061671257,
0.008633960038423538,
0.00986610259860754,
-0.0005163797759450972,
0.025789866223931313,
0.08860673755407333,
-0.006192076951265335,
-0.026685969904065132,
-0.02333454228937626,
0.05534336715936661,
-0.02435610070824623,
-0.09742440283298492,
-0.05910700559616089,
0.04301298037171364,
-0.03763635829091072,
-0.015744542703032494,
-0.04498440772294998,
0.018961556255817413,
0.04760103300213814,
0.025503113865852356,
0.04691999405622482,
0.057028044015169144,
0.0012287823483347893,
-0.019552983343601227,
-0.03066467121243477,
-0.038281552493572235,
0.004075031727552414,
0.01422116719186306,
0.049285706132650375,
0.058927785605192184,
0.013020387850701809,
-0.022330906242132187,
0.028101814910769463,
0.03982285037636757,
-0.07426907867193222,
0.045199472457170486,
-0.03116648830473423,
0.012070517987012863,
-0.02756415121257305,
-0.020538698881864548,
0.012939738109707832,
0.0503610335290432,
0.041220773011446,
-0.007150908000767231,
-0.023710906505584717,
-0.015269608236849308,
-0.06631167978048325,
-0.008611557073891163,
-0.042475320398807526,
0.04631064459681511,
0.019140776246786118,
0.02242051623761654,
-0.0458805114030838,
-0.04613142088055611,
-0.03523480147123337,
0.015726620331406593,
-0.043801553547382355,
0.006891037803143263,
0.028693241998553276,
0.05874856188893318,
-0.00852194707840681,
-0.04892726615071297,
0.002173051703721285,
0.05222492665052414,
-0.00938220601528883,
-0.02152441255748272,
0.007921556942164898,
-0.009167141281068325,
0.07957401126623154,
-0.00871460884809494,
0.004937531892210245,
0.020986750721931458,
-0.0026479866355657578,
0.043371424078941345,
-0.00606662267819047,
-0.050145965069532394,
0.013056231662631035,
-0.046955838799476624,
-0.03564700856804848,
0.06935843080282211,
0.020090647041797638,
-0.019463373348116875,
-0.013853764161467552,
-0.03315583989024162,
0.025055062025785446,
-0.0034119151532649994,
-0.013423634693026543,
0.034159474074840546,
0.024033503606915474,
0.03392648696899414,
-0.041543371975421906,
0.03080804832279682,
-0.01284116692841053,
-0.008347206749022007,
-0.025521036237478256,
0.06928674131631851,
0.0159775298088789,
0.0015155355213209987,
-0.016712335869669914,
-0.017662204802036285,
-0.005873959977179766,
-0.021631944924592972,
0.0030691553838551044,
-0.08659946918487549,
-0.016318049281835556,
-0.08409037441015244,
-0.02792259305715561,
0.002332109957933426,
-0.006832791026681662,
0.0006446346524171531,
-0.03145324066281319,
0.026202073320746422,
0.002419480122625828,
-0.03439246118068695,
0.03172207251191139,
-0.024212723597884178,
0.034213241189718246,
-0.00852194707840681,
-0.020502854138612747,
-0.015036621131002903,
0.040037915110588074,
-0.010179738514125347,
0.05996726453304291,
0.0026502269320189953,
-0.026811424642801285,
0.015197919681668282,
0.0020610387437045574,
0.015009738504886627,
-0.09125921130180359,
0.046561550348997116,
-0.025879476219415665,
0.013692465610802174,
-0.003821882652118802,
0.041220773011446,
0.034213241189718246,
-0.01565493270754814,
-0.007594479247927666,
-0.04996674507856369,
0.04638233035802841,
0.10380466282367706,
0.015726620331406593,
-0.0868862196803093,
0.011407401412725449,
-0.01492908876389265,
-0.09233453124761581,
-0.009785452857613564,
-0.048389602452516556,
0.00048193580005317926,
0.005148116033524275,
-0.003741233143955469,
-0.027223631739616394,
0.0045432462356984615,
-0.009973634965717793,
0.0025314930826425552,
0.026273762807250023,
0.006465388461947441,
0.0413641482591629,
-0.02846025489270687,
-0.046489864587783813,
0.004422272089868784,
0.028621554374694824,
0.0023701945319771767,
-0.0274745412170887,
-0.013549089431762695,
0.03813817724585533,
0.00732116773724556,
0.008840063586831093,
-0.03071843646466732,
-0.06272726505994797,
0.03476882725954056,
-0.03389064595103264,
0.005999414715915918,
0.039213500916957855,
-0.007899154908955097,
-0.06796050816774368,
-0.011129608377814293,
-0.06132934242486954,
0.08581089973449707,
-0.02242051623761654,
0.04222441092133522,
0.05229661613702774,
0.03315583989024162,
0.0367044098675251,
0.026040775701403618,
-0.07613297551870346,
0.007218115963041782,
0.016183633357286453,
-0.04387323930859566,
-0.002952661830931902,
0.02439194545149803,
-0.013477400876581669,
-0.021201815456151962,
-0.0052959732711315155,
0.02423064596951008,
-0.04960830509662628,
-0.020879218354821205,
-0.02426649071276188,
0.003364869626238942,
0.008347206749022007,
0.04455427825450897,
-0.028621554374694824,
-0.0643044039607048,
0.03727791830897331,
0.043299734592437744,
-0.01165830995887518,
-0.014767790213227272,
-0.04623895511031151,
0.018889866769313812,
0.07541609555482864,
-0.039213500916957855,
0.027402853593230247,
-0.021631944924592972,
-0.07175999134778976,
-0.016739217564463615,
-0.02847817726433277,
0.04265454038977623,
0.005116752348840237,
-0.040647268295288086,
0.052941810339689255,
-0.02570025622844696,
-0.007952921092510223,
-0.03392648696899414,
-0.05627531558275223,
-0.009444933384656906,
-0.0037927592638880014,
-0.018164023756980896,
0.0050674667581915855,
0.045593760907649994,
0.034123633056879044,
-0.05147220194339752,
0.00024068787752185017,
-0.01463337428867817,
0.003745713736861944,
0.06602492928504944,
-0.030467528849840164,
-0.017724933102726936,
-0.06308570504188538,
0.0018750971648842096,
-0.010977271012961864,
0.01562804915010929,
-0.013943375088274479,
-0.01975012756884098,
0.03939272090792656,
-0.0206641536206007,
0.02801220305263996,
0.008441297337412834,
0.014274933375418186,
0.0007790502277202904,
0.08315843343734741,
0.00804701168090105,
-0.0005564244347624481,
0.038819216191768646,
0.039141811430454254,
0.013459478504955769,
0.0319550596177578,
0.006671492476016283,
-0.014991816133260727,
-0.004991298075765371,
0.009982596151530743,
-0.020968828350305557,
0.00480311643332243,
0.057565707713365555,
-0.035503629595041275,
-0.031811684370040894,
0.005645453929901123,
-0.04774440824985504,
0.0062996093183755875,
-0.0005424228147603571,
0.004982336889952421,
-0.012446881271898746,
0.0065101939253509045,
0.002314188051968813,
-0.018567269667983055,
0.006617726292461157,
-0.03935687616467476,
0.014991816133260727,
-0.06337245553731918,
-0.0055244797840714455,
0.012034673243761063,
0.058927785605192184,
0.018603114411234856,
-0.0008031330071389675,
0.06925089657306671,
0.00128590886015445,
0.05093453824520111,
0.04627479985356331,
0.009471816942095757,
-0.024212723597884178,
-0.042009346187114716,
0.04853298142552376,
-0.016389738768339157,
-0.048855576664209366,
-0.0062772068195044994,
0.04530700668692589,
-0.041220773011446,
-0.034643370658159256,
0.028048047795891762,
-0.03514518961310387,
-0.013988180086016655,
0.014794672839343548,
-0.034213241189718246,
0.015681816264986992,
-0.023943893611431122,
0.0052511682733893394,
-0.0644836276769638,
0.07871375232934952,
0.06365921348333359,
-0.018208827823400497,
0.029141293838620186,
0.046561550348997116,
-0.02342415228486061,
0.018495582044124603,
-0.0367044098675251,
-0.06272726505994797,
0.028549866750836372,
0.06473453342914581,
-0.008624998852610588,
0.03286908566951752,
-0.01926623098552227,
0.010815972462296486,
-0.011246101930737495,
0.05405297875404358,
0.013692465610802174,
0.0008227352518588305,
-0.003638181369751692,
-0.042403630912303925,
0.017635321244597435,
0.03360389173030853,
0.045629605650901794,
0.015466750599443913,
0.054339732974767685,
0.00280032423324883,
-0.035969603806734085,
0.0060307784005999565,
0.0366148017346859
] |
20,862 | precession.precession | eval_deltachiinf |
Large-separation limit of the weighted spin difference.
Parameters
----------
kappa: float
Asymptotic angular momentum.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltachi: float
Weighted spin difference.
Examples
--------
``deltachi = precession.eval_deltachiinf(kappa,chieff,q,chi1,chi2)``
| def eval_deltachiinf(kappa, chieff, q, chi1, chi2):
"""
Large-separation limit of the weighted spin difference.
Parameters
----------
kappa: float
Asymptotic angular momentum.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltachi: float
Weighted spin difference.
Examples
--------
``deltachi = precession.eval_deltachiinf(kappa,chieff,q,chi1,chi2)``
"""
kappa = np.atleast_1d(kappa).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
deltachi = (1+q)/(1-q)*(2*kappa-chieff)
return deltachi
| (kappa, chieff, q, chi1, chi2) | [
0.03974571451544762,
-0.004084773827344179,
-0.010683254338800907,
-0.010309841483831406,
-0.025501376017928123,
-0.011666879057884216,
0.01419880148023367,
-0.015073134563863277,
-0.07963715493679047,
0.062114063650369644,
0.02752326987683773,
-0.006143099162727594,
-0.04677680879831314,
-0.03655804321169853,
-0.0573052316904068,
0.03080201894044876,
-0.008333485573530197,
-0.012441027909517288,
-0.01404397189617157,
-0.017987577244639397,
-0.010091258212924004,
-0.07905426621437073,
0.010947376489639282,
0.04459097608923912,
-0.026229985058307648,
-0.0008583944872952998,
-0.01682179979979992,
0.0030578880105167627,
0.010145904496312141,
-0.0014264831552281976,
-0.005929069593548775,
-0.00878886692225933,
0.000979639939032495,
-0.00488169165328145,
0.016457494348287582,
-0.06561139225959778,
0.01876172609627247,
-0.033734675496816635,
-0.07260605692863464,
-0.013861819170415401,
0.010109473951160908,
0.004364833701401949,
0.06772436946630478,
0.003954990301281214,
-0.007650412619113922,
0.024554181843996048,
0.031494200229644775,
0.015473870560526848,
-0.0005353580927476287,
0.028543325141072273,
0.021876536309719086,
-0.04867119714617729,
-0.0014925135765224695,
-0.0014742983039468527,
-0.014262555167078972,
0.0522778183221817,
-0.0028848431538790464,
-0.0369405634701252,
-0.005145813338458538,
-0.08721470087766647,
-0.019745349884033203,
-0.019344614818692207,
0.07154957205057144,
0.03357074037194252,
-0.007231461349874735,
0.027614345774054527,
-0.018834587186574936,
0.031184539198875427,
-0.009007450193166733,
0.02174903079867363,
-0.04018288105726242,
-0.011921892873942852,
-0.017996685579419136,
0.011885462328791618,
-0.011175067164003849,
-0.014144155196845531,
-0.002702690428122878,
-0.03031020611524582,
-0.019217107445001602,
0.029654456302523613,
-0.02723182551562786,
-0.050820596516132355,
0.027341118082404137,
-0.03391682729125023,
0.029927685856819153,
0.05635803937911987,
0.01154848001897335,
-0.01843385212123394,
0.016138726845383644,
0.003417639760300517,
-0.09471939504146576,
-0.036430537700653076,
-0.01072879321873188,
0.016958413645625114,
0.05056558549404144,
0.03160348907113075,
-0.04164010286331177,
-0.017659703269600868,
0.019472122192382812,
-0.00963587686419487,
0.062041204422712326,
0.052204959094524384,
0.06386272609233856,
-0.005878977943211794,
0.03970928490161896,
-0.08532031625509262,
-0.03945427015423775,
-0.007281553465873003,
0.03322464972734451,
-0.052969999611377716,
-0.07031093537807465,
0.019654273986816406,
-0.030182698741555214,
-0.025483159348368645,
-0.06881728023290634,
0.0234066192060709,
-0.03173099830746651,
0.03664911910891533,
0.08961912244558334,
0.03606623038649559,
-0.0031421338208019733,
-0.04990983381867409,
-0.009981966577470303,
-0.030783802270889282,
0.0016097743064165115,
0.021694384515285492,
0.021876536309719086,
-0.006748756859451532,
0.018588680773973465,
0.03470008447766304,
0.07275178283452988,
0.0016587278805673122,
0.030128052458167076,
0.03555620461702347,
-0.04320661723613739,
0.028160804882645607,
0.016958413645625114,
0.02974553219974041,
0.05748738721013069,
-0.00013284338638186455,
0.012058507651090622,
0.0038548060692846775,
0.004216834437102079,
0.031530629843473434,
-0.06306125968694687,
-0.01649392582476139,
-0.005154920741915703,
0.024153444916009903,
0.0013786681229248643,
0.030383067205548286,
-0.053589317947626114,
0.07985573261976242,
0.02061968296766281,
-0.015246178954839706,
0.06021967530250549,
-0.030182698741555214,
0.030619865283370018,
0.020765405148267746,
0.005419042427092791,
-0.07817993313074112,
-0.04630321264266968,
-0.005655840504914522,
0.028270095586776733,
0.033206433057785034,
0.030364852398633957,
0.0021163865458220243,
0.021257217973470688,
0.05978250876069069,
0.001608635880984366,
0.0923878401517868,
-0.0064026666805148125,
0.0009084864868782461,
-0.01956319808959961,
0.02473633363842964,
0.008438223041594028,
0.007491028867661953,
-0.029053352773189545,
-0.06411774456501007,
0.04757827892899513,
-0.013816281221807003,
-0.06459134072065353,
-0.04462740570306778,
-0.019927503541111946,
-0.0556294284760952,
0.012058507651090622,
-0.002259831642732024,
0.0029303813353180885,
0.032641761004924774,
-0.03173099830746651,
-0.01898030936717987,
0.041421517729759216,
-0.03522832691669464,
0.027413979172706604,
0.019435690715909004,
-0.009203264489769936,
0.03449971601366997,
0.04047432541847229,
0.03803347796201706,
0.02592032589018345,
0.03145776689052582,
-0.01102023757994175,
0.0031853949185460806,
-0.0012431920040398836,
-0.03136669099330902,
0.07883568108081818,
0.013442867435514927,
-0.06491921842098236,
-0.003982312977313995,
-0.012441027909517288,
0.012541212141513824,
-0.004954552743583918,
-0.00099785509519279,
-0.018297236412763596,
0.003629392245784402,
0.022131551057100296,
0.09180495142936707,
-0.006848940625786781,
-0.02096577361226082,
0.004398987162858248,
-0.00578334741294384,
0.048306889832019806,
-0.017131458967924118,
0.010665039531886578,
0.015064026229083538,
0.05173136293888092,
0.0059472848661243916,
0.017832746729254723,
0.052751414477825165,
-0.011748847551643848,
-0.0275050550699234,
-0.029053352773189545,
0.008224193938076496,
-0.03628481552004814,
-0.04371664300560951,
0.03413541242480278,
0.01594746671617031,
-0.046084627509117126,
0.0026890288572758436,
-0.00018428728799335659,
0.052204959094524384,
-0.035665493458509445,
0.017176996916532516,
-0.00936264730989933,
0.04812473803758621,
-0.028816554695367813,
-0.0501648485660553,
0.0007792719407007098,
-0.005255104973912239,
0.014790797606110573,
0.08422739803791046,
0.016074974089860916,
-0.06266052275896072,
-0.03475473076105118,
0.04080219939351082,
-0.0015596823068335652,
0.03388039767742157,
-0.003410808974877,
0.010555747896432877,
0.004690431524068117,
-0.005810670554637909,
0.034281134605407715,
-0.06032896786928177,
-0.03681305795907974,
0.04164010286331177,
-0.06553853303194046,
0.04644893482327461,
-0.04732326790690422,
-0.03970928490161896,
-0.006452758796513081,
-0.005683163646608591,
-0.03056521899998188,
0.010519317351281643,
-0.02863440103828907,
-0.011029344983398914,
-0.05664948374032974,
0.015064026229083538,
0.03628481552004814,
0.018524928018450737,
-0.07613982260227203,
-0.025938542559742928,
-0.04896264150738716,
-0.08896336704492569,
-0.03748702257871628,
-0.021147925406694412,
-0.08553890138864517,
0.042295850813388824,
-0.008602160029113293,
0.007486475165933371,
0.0923878401517868,
-0.006375344004482031,
-0.010082150809466839,
0.00827883929014206,
-0.007909980602562428,
-0.03189493343234062,
0.07861709594726562,
0.03286034241318703,
-0.07417257130146027,
-0.03854350745677948,
0.07399041950702667,
0.051585640758275986,
0.00841545406728983,
-0.07216889411211014,
-0.030383067205548286,
-0.016011221334338188,
-0.015774421393871307,
0.032368529587984085,
0.08320734649896622,
0.02830652706325054,
-0.00764585891738534,
-0.015920143574476242,
-0.008829851634800434,
-0.011694202199578285,
-0.030346635729074478,
-0.020018579438328743,
0.0025820143055170774,
-0.05001912638545036,
0.01655767858028412,
0.03286034241318703,
0.019654273986816406,
0.042550865560770035,
0.026594290509819984,
0.04397165775299072,
0.03286034241318703,
0.01319696195423603,
0.00626605236902833,
-0.016894660890102386,
-0.005009198561310768,
0.014380954205989838,
0.017140567302703857,
-0.04320661723613739,
-0.01954498328268528,
0.04025574401021004,
-0.01711324416100979,
0.01652124896645546,
-0.0014492522459477186,
0.03140312060713768,
0.019435690715909004,
-0.00796462595462799,
-0.03659447282552719,
-0.01472704391926527,
0.0269768126308918,
-0.0030738264322280884,
0.01197653915733099,
0.004480956122279167,
0.01788739301264286,
-0.009171387180685997,
0.04517386481165886,
-0.015045811422169209,
0.037031639367341995,
0.11446474492549896,
-0.053516458719968796,
-0.04542887955904007,
0.039235688745975494,
0.020419316366314888,
0.03347966447472572,
0.04426310211420059,
-0.0182061605155468,
-0.04247800633311272,
0.025501376017928123,
-0.05307929217815399,
-0.027596130967140198,
0.0070083243772387505,
0.0026890288572758436,
0.03052878938615322,
-0.019162461161613464,
-0.047760434448719025,
-0.00896646548062563,
-0.01867065019905567,
-0.048889778554439545,
0.04109364375472069,
-0.018060438334941864,
0.016912875697016716,
0.036193735897541046,
-0.023443050682544708,
0.029089782387018204,
0.03276926651597023,
-0.01295105554163456,
0.0413486585021019,
-0.07592123746871948,
0.06360771507024765,
0.02730468660593033,
0.011484726332128048,
-0.06422703713178635,
0.011366327293217182,
0.03919925540685654,
0.011493833735585213,
-0.03541048243641853,
-0.01925353892147541,
0.037559881806373596,
-0.027195395901799202,
0.009590338915586472,
-0.04080219939351082,
0.03111167810857296,
0.03255068510770798,
-0.033170003443956375,
0.0002265523944515735,
0.04164010286331177,
-0.02231370285153389,
-0.06561139225959778,
0.015382793731987476,
0.008246962912380695,
-0.019672488793730736,
-0.023242682218551636,
0.02837938815355301,
-0.008028379641473293,
-0.012896410189568996,
-0.005000091157853603,
0.058252427726984024,
-0.025756388902664185,
0.016940198838710785,
-0.028415817767381668,
-0.012113153003156185,
-0.018588680773973465,
0.03216816484928131,
-0.06477349251508713,
0.02531922236084938,
-0.05366218090057373,
-0.04757827892899513,
-0.05256926268339157,
0.03652161359786987,
0.03111167810857296,
-0.09457366913557053,
0.026612507179379463,
-0.022368349134922028,
0.02537386864423752,
0.010164119303226471,
0.00750924414023757,
-0.03708628565073013,
-0.017732564359903336,
-0.01867065019905567,
-0.025956757366657257,
-0.03171278163790703,
-0.029854824766516685,
-0.024572396650910378,
0.007773365825414658,
-0.01225887518376112,
-0.024954916909337044,
0.002201770432293415,
0.09012914448976517,
-0.0032081641256809235,
-0.03462722525000572,
-0.02040109969675541,
0.0936264768242836,
-0.010892730206251144,
-0.06834368407726288,
-0.060693271458148956,
0.04459097608923912,
-0.0016257127281278372,
-0.014417384751141071,
-0.029618026688694954,
0.019417475908994675,
0.005715040490031242,
-0.01279622595757246,
0.022514071315526962,
0.04961838945746422,
-0.021402940154075623,
-0.036740195006132126,
-0.00085270224371925,
-0.008470099419355392,
0.03488223999738693,
0.019654273986816406,
0.059928230941295624,
0.03908996656537056,
-0.01730450429022312,
-0.0025000455789268017,
0.04076576977968216,
0.05839814990758896,
-0.0566859133541584,
-0.01154848001897335,
-0.053297873586416245,
0.024098800495266914,
-0.015564946457743645,
-0.022514071315526962,
-0.0023144774604588747,
0.05085702985525131,
0.03572013974189758,
0.013880033977329731,
0.017568625509738922,
0.05340716615319252,
-0.05420863628387451,
0.014107724651694298,
-0.04295160248875618,
0.046922530978918076,
0.02612069435417652,
-0.013461083173751831,
-0.056576620787382126,
-0.06491921842098236,
-0.0528971366584301,
-0.021348293870687485,
-0.0577423982322216,
-0.002723182551562786,
0.027741853147745132,
0.059891801327466965,
-0.013379114679992199,
0.0013957449700683355,
-0.0010986083652824163,
0.08204156905412674,
0.01762327179312706,
0.018042223528027534,
0.004986429587006569,
-0.03304249793291092,
0.06473705917596817,
-0.03766917437314987,
-0.01979999616742134,
-0.025446729734539986,
-0.02092934213578701,
0.03803347796201706,
0.003349332371726632,
-0.03142133727669716,
-0.015273502096533775,
0.004786061588674784,
-0.04382593557238579,
0.06032896786928177,
0.020473960787057877,
-0.006862602196633816,
-0.0413486585021019,
-0.02065611444413662,
0.0028347510378807783,
-0.0012386381858959794,
-0.015182426199316978,
0.05468223616480827,
-0.04579318314790726,
0.029927685856819153,
-0.036503396928310394,
0.03360716998577118,
-0.008556622080504894,
0.011630448512732983,
-0.026211770251393318,
0.04480956122279167,
0.022714439779520035,
-0.021821891888976097,
-0.009936428628861904,
0.04568389058113098,
0.006557496264576912,
-0.009608553722500801,
-0.04098435491323471,
-0.040073588490486145,
-0.04735969752073288,
-0.055228691548109055,
-0.01281444076448679,
-0.04579318314790726,
-0.005141259171068668,
-0.011521156877279282,
-0.007486475165933371,
0.04123936593532562,
-0.010200549848377705,
-0.08940053731203079,
0.06961875408887863,
-0.03282391279935837,
-0.01625712588429451,
-0.025483159348368645,
0.0022029089741408825,
0.03515546768903732,
0.04841618239879608,
-0.004531047772616148,
0.08459170162677765,
0.028561539947986603,
-0.01682179979979992,
0.01786006987094879,
0.007532013114541769,
-0.03211351856589317,
-0.05424506962299347,
0.08255159109830856,
-0.03668554872274399,
0.03335215523838997,
-0.019472122192382812,
0.01444470789283514,
0.023260897025465965,
-0.033734675496816635,
0.00880708172917366,
-0.040073588490486145,
0.04298803210258484,
0.0919506698846817,
0.00011925308353966102,
-0.09114920347929001,
0.0007861026679165661,
0.003456347156316042,
-0.06750578433275223,
0.018306344747543335,
-0.0826973170042038,
-0.011648664250969887,
0.029126213863492012,
0.02092934213578701,
0.007450044620782137,
0.004394433461129665,
0.0001281472505070269,
-0.022641578689217567,
0.020583253353834152,
-0.004945445340126753,
0.07825279235839844,
0.002663983032107353,
-0.035665493458509445,
-0.03083844855427742,
0.003895790548995137,
-0.0030806572176516056,
-0.004196342546492815,
-0.020218947902321815,
0.0072269076481461525,
0.04990983381867409,
0.003353886306285858,
-0.03347966447472572,
-0.06582997739315033,
0.008356254547834396,
-0.028761908411979675,
0.005145813338458538,
0.04961838945746422,
0.014963842928409576,
-0.06491921842098236,
-0.015273502096533775,
-0.020783619955182076,
0.06415417045354843,
-0.012495674192905426,
0.038434214890003204,
0.06644929945468903,
-0.020492177456617355,
0.07825279235839844,
0.03366181626915932,
-0.04550173878669739,
0.03052878938615322,
-0.0011657772120088339,
-0.028561539947986603,
-0.012623180635273457,
0.031020602211356163,
-0.03058343566954136,
0.01377074234187603,
-0.03220459446310997,
0.035665493458509445,
-0.05373504012823105,
-0.027869360521435738,
0.016339095309376717,
0.012768902815878391,
0.02890763059258461,
0.03133026137948036,
-0.005951839033514261,
-0.07781562209129333,
0.05041986331343651,
0.036193735897541046,
-0.005910854320973158,
-0.07100311666727066,
-0.0195267666131258,
0.02888941578567028,
0.055993735790252686,
-0.04131222888827324,
0.011530264280736446,
-0.009389970451593399,
-0.05282427743077278,
0.011521156877279282,
-0.027286471799016,
0.04266015812754631,
0.04517386481165886,
-0.03224102407693863,
0.03276926651597023,
-0.02473633363842964,
-0.0026434906758368015,
-0.06772436946630478,
-0.060183245688676834,
0.0048042768612504005,
0.026557860895991325,
-0.02808794379234314,
-0.013643235899508,
0.007541120983660221,
0.016475709155201912,
-0.05399005487561226,
-0.039235688745975494,
0.008492868393659592,
0.019344614818692207,
0.05533798411488533,
-0.0495455302298069,
-0.024936702102422714,
-0.02280551567673683,
0.03286034241318703,
-0.009854460135102272,
0.01224066037684679,
-0.04342519864439964,
-0.022222626954317093,
0.031548842787742615,
-0.025537805631756783,
0.05366218090057373,
-0.019763566553592682,
-0.017249858006834984,
0.04659465700387955,
0.04735969752073288,
0.022678008303046227,
0.041166506707668304,
0.043898794800043106,
0.04703182354569435,
-0.00013519143976736814,
0.01596568152308464,
-0.00756388995796442,
0.013925572857260704,
0.013379114679992199,
-0.008269731886684895,
-0.04437239468097687,
0.001748665701597929,
0.040037158876657486,
-0.05388076230883598,
-0.05388076230883598,
0.043643783777952194,
-0.01112952921539545,
-0.003629392245784402,
0.009039326570928097,
0.029545165598392487,
0.014289877377450466,
-0.025756388902664185,
0.012650503776967525,
-0.002329277340322733,
0.016366418451070786,
-0.053261443972587585,
-0.02867083251476288,
-0.04080219939351082,
0.0072678918950259686,
0.0738811269402504,
0.038179200142621994,
-0.01196743082255125,
-0.021002203226089478,
0.08634036779403687,
-0.03273283690214157,
0.022678008303046227,
0.020710758864879608,
0.007600320503115654,
0.017796317115426064,
-0.06142188236117363,
0.019708920270204544,
-0.029253721237182617,
-0.06553853303194046,
0.0007103954558260739,
0.020983988419175148,
-0.017987577244639397,
-0.027377547696232796,
0.02040109969675541,
-0.011475618928670883,
-0.002152817090973258,
0.005327966064214706,
0.00378194497898221,
0.029016921296715736,
-0.0501648485660553,
-0.020710758864879608,
-0.03752345219254494,
0.08430025726556778,
0.04386236518621445,
0.013515728525817394,
0.032386746257543564,
0.018033115193247795,
0.012941948138177395,
0.022969452664256096,
-0.011739740148186684,
-0.040365032851696014,
0.024845626205205917,
0.04878048598766327,
0.011375434696674347,
0.014672398567199707,
-0.007245122920721769,
-0.0019399260636419058,
-0.03462722525000572,
0.05460937321186066,
0.010109473951160908,
0.016931092366576195,
-0.0011407311540096998,
-0.048051878809928894,
0.02233191952109337,
0.03471830114722252,
0.045574601739645004,
0.03606623038649559,
0.06273338198661804,
-0.0009352401830255985,
-0.006858048494905233,
0.030237345024943352,
0.020419316366314888
] |
20,863 | precession.precession | eval_deltaphi |
Angle between the projections of the two spins onto the orbital plane.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
Examples
--------
``deltaphi = precession.eval_deltaphi(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
| def eval_deltaphi(deltachi, kappa, r, chieff, q, chi1, chi2, cyclesign=1):
"""
Angle between the projections of the two spins onto the orbital plane.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
Examples
--------
``deltaphi = precession.eval_deltaphi(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
"""
cyclesign = np.atleast_1d(cyclesign)
cosdeltaphi = eval_cosdeltaphi(deltachi, kappa, r, chieff, q, chi1, chi2)
deltaphi = np.sign(cyclesign)*np.arccos(cosdeltaphi)
return deltaphi
| (deltachi, kappa, r, chieff, q, chi1, chi2, cyclesign=1) | [
0.019843963906168938,
-0.04252012073993683,
0.01694655977189541,
0.024651234969496727,
-0.0045021576806902885,
-0.02573193982243538,
-0.014878314919769764,
0.010453018359839916,
-0.06514037400484085,
0.09383493661880493,
0.06659373641014099,
0.02957030199468136,
0.012474680319428444,
0.01073251012712717,
-0.08817055076360703,
-0.013667181134223938,
-0.007746599148958921,
0.014757202006876469,
-0.05880521237850189,
-0.06588568538427353,
-0.011431241407990456,
-0.08787243068218231,
0.0054920269176363945,
0.011356710456311703,
-0.021968107670545578,
0.010266689583659172,
-0.03258882090449333,
0.020570645108819008,
-0.035681869834661484,
0.0183999203145504,
0.05880521237850189,
-0.02791197970509529,
-0.022042637690901756,
0.0029253545217216015,
0.02001165971159935,
-0.018875056877732277,
0.0029463162645697594,
-0.027222566306591034,
-0.06909053772687912,
0.009404920972883701,
0.03340866416692734,
0.010425068438053131,
0.08638180047273636,
-0.04919067397713661,
-0.04192386940121651,
0.005398862529546022,
-0.02979389578104019,
0.018017947673797607,
0.0023919895756989717,
-0.028321903198957443,
0.01365786511451006,
-0.06376154720783234,
0.0034167952835559845,
-0.00027497982955537736,
-0.006689186207950115,
0.07106561958789825,
0.009404920972883701,
0.03823456913232803,
-0.004089906346052885,
-0.033296868205070496,
0.018604882061481476,
-0.04851989075541496,
0.041029494255781174,
0.08347508311271667,
0.045762233436107635,
0.017449645325541496,
0.0023873313330113888,
0.01891232281923294,
0.0028787723276764154,
-0.033781323581933975,
-0.029104480519890785,
0.025582876056432724,
-0.013928040862083435,
-0.05366255342960358,
0.010033778846263885,
-0.002041459549218416,
-0.008533836342394352,
-0.03337140008807182,
0.023067444562911987,
0.014878314919769764,
-0.05761271342635155,
-0.06514037400484085,
0.004579018335789442,
-0.012530578300356865,
0.03011065348982811,
0.045277778059244156,
-0.017095621675252914,
-0.03897988051176071,
-0.010201474651694298,
-0.006274605635553598,
-0.062308184802532196,
-0.05429606884717941,
-0.005953189451247454,
-0.011841163970530033,
0.044048011302948,
0.043824419379234314,
-0.007909636944532394,
-0.04464426264166832,
0.05869341641664505,
0.012269718572497368,
0.0666310042142868,
0.01496216282248497,
0.019191816449165344,
-0.006335162557661533,
0.04240832105278969,
-0.045762233436107635,
-0.034824758768081665,
0.004807270132005215,
0.05146387964487076,
-0.05213465914130211,
-0.04434613510966301,
0.05176200345158577,
0.012782122008502483,
-0.04609762132167816,
-0.04792363941669464,
-0.02401771955192089,
0.012334933504462242,
0.03307327255606651,
0.061152949929237366,
0.01915455050766468,
-0.022638889029622078,
0.017589392140507698,
0.017095621675252914,
0.03909168019890785,
0.04196113348007202,
-0.002536394167691469,
-0.005240483675152063,
0.015474566258490086,
-0.03668804466724396,
0.04658207669854164,
0.07486671209335327,
0.010276006534695625,
0.0604449026286602,
-0.015344136394560337,
-0.04524051398038864,
0.032570187002420425,
0.0302224513143301,
-0.0058786580339074135,
0.023272406309843063,
-0.003228137968108058,
-0.00723885465413332,
-0.021185528486967087,
-0.009717021137475967,
0.042371056973934174,
-0.050569500774145126,
0.03802960738539696,
-0.01976943388581276,
0.014636088162660599,
-0.008040066808462143,
0.03953886777162552,
0.009032264351844788,
0.05891701206564903,
0.06372427940368652,
-0.013070930726826191,
0.0652894377708435,
-0.08660539984703064,
0.012213820591568947,
0.020645176991820335,
-0.011198331601917744,
-0.026253657415509224,
-0.027818815782666206,
-0.016080133616924286,
0.05496685206890106,
0.0194713082164526,
0.048072703182697296,
0.020104823634028435,
0.044048011302948,
0.059513259679079056,
0.0033492513466626406,
0.07043209671974182,
-0.0054827104322612286,
-0.023514632135629654,
-0.08094101399183273,
-0.029104480519890785,
0.04293004050850868,
-0.015847222879529,
-0.02427857741713524,
-0.0264586191624403,
0.07244444638490677,
-0.0553395077586174,
-0.05761271342635155,
-0.04624668508768082,
-0.012241769582033157,
-0.03827183321118355,
0.028247371315956116,
0.02498662658035755,
0.030147919431328773,
0.009521376341581345,
0.009167352691292763,
0.01617329753935337,
0.0173285324126482,
0.011841163970530033,
-0.0011604760074988008,
0.05712825804948807,
0.032570187002420425,
-0.01703040674328804,
0.025210220366716385,
-0.0018702703528106213,
-0.019452674314379692,
0.0741586685180664,
0.00871550664305687,
0.015828588977456093,
-0.009856767021119595,
-0.014337963424623013,
0.06763717532157898,
-0.037675581872463226,
-0.06704092770814896,
-0.007523005362600088,
-0.001188425230793655,
-0.007509030867367983,
0.009321073070168495,
-0.006283922120928764,
-0.02342146821320057,
-0.041812073439359665,
-0.020458847284317017,
0.08235710859298706,
0.027688385918736458,
0.006656578741967678,
0.013695130124688148,
-0.0009345529251731932,
0.027464792132377625,
0.009772920049726963,
0.008706189692020416,
0.000997438677586615,
0.07181093096733093,
-0.013490169309079647,
0.003442415501922369,
0.05988591909408569,
-0.03860722482204437,
-0.08161179721355438,
-0.009903349913656712,
-0.0135647002607584,
0.0003502389881759882,
-0.048818014562129974,
0.037973709404468536,
-0.04658207669854164,
-0.04225926101207733,
0.05217192694544792,
-0.019750799983739853,
0.04676840454339981,
-0.004592992831021547,
0.027222566306591034,
0.013639232143759727,
0.03389311954379082,
-0.06208459287881851,
-0.023402836173772812,
0.018958905711770058,
-0.03130315616726875,
-0.03128452226519585,
0.04494238644838333,
0.00877140462398529,
-0.03234659507870674,
-0.013890774920582771,
0.026682212948799133,
0.004348436836153269,
0.03163854777812958,
0.020887402817606926,
0.030278349295258522,
0.030501943081617355,
-0.004015374928712845,
-0.003363225841894746,
-0.01952720619738102,
-0.039203476160764694,
0.022415295243263245,
-0.0625690445303917,
0.01352743525058031,
-0.03325960412621498,
-0.016182612627744675,
-0.01708630658686161,
-0.009293124079704285,
-0.07982304692268372,
-0.027576589956879616,
-0.05649474263191223,
-0.009679755195975304,
-0.0010160715319216251,
0.043526291847229004,
0.02798651158809662,
0.010583448223769665,
-0.038905348628759384,
-0.02044021524488926,
-0.02895541861653328,
-0.0529172383248806,
-0.03715386241674423,
-0.017589392140507698,
-0.09189712256193161,
0.06882967799901962,
0.011012002825737,
0.01459882315248251,
0.09920118749141693,
-0.007909636944532394,
0.027781549841165543,
0.005147319287061691,
-0.004891118034720421,
-0.014822416938841343,
0.11634339392185211,
0.07959945499897003,
-0.06443233042955399,
-0.04714106023311615,
0.06078029423952103,
0.0074018919840455055,
0.0147758349776268,
-0.01414231862872839,
0.019676269963383675,
-0.03253292292356491,
-0.026980338618159294,
0.04602309316396713,
0.04483059048652649,
0.05627114698290825,
-0.011058584786951542,
-0.001032957574352622,
-0.006195416208356619,
-0.015912437811493874,
-0.02608596347272396,
0.02256435714662075,
-0.030520576983690262,
-0.03782464563846588,
-0.024409007281064987,
0.001322931027971208,
0.04039597511291504,
0.0033352766185998917,
-0.006707819178700447,
0.04222199320793152,
0.024427641183137894,
0.02366369403898716,
0.04050777480006218,
-0.06469319015741348,
-0.01055549830198288,
0.0015022719744592905,
0.00652149086818099,
0.025881001725792885,
-0.00010677485261112452,
0.08027023077011108,
-0.031247256323695183,
0.011897061951458454,
0.021856309846043587,
0.017533494159579277,
0.001049843500368297,
-0.004630258306860924,
-0.041141290217638016,
0.009274491108953953,
0.03502972051501274,
-0.01587517186999321,
0.013266575522720814,
0.02006755769252777,
0.0022359397262334824,
-0.01743101328611374,
0.009689072147011757,
0.002195180393755436,
-0.00701060239225626,
0.0017887516878545284,
-0.047476451843976974,
0.007332019042223692,
0.01748691126704216,
0.03661351278424263,
0.012279035523533821,
0.07523936778306961,
-0.02213580347597599,
-0.05545130372047424,
0.03210436552762985,
-0.035365112125873566,
0.02073834091424942,
-0.007406549993902445,
0.019806699827313423,
0.0104064354673028,
-0.052097395062446594,
-0.036278121173381805,
-0.03005475550889969,
-0.030818702653050423,
-0.0491534061729908,
0.015344136394560337,
-0.012074073776602745,
0.033911753445863724,
0.06130201369524002,
-0.02774428389966488,
0.02170724794268608,
0.055376771837472916,
0.0531780980527401,
0.017710505053400993,
-0.04956332966685295,
0.014133001677691936,
0.03678120672702789,
0.02221033349633217,
-0.027036236599087715,
0.026812642812728882,
0.03709796443581581,
-0.001009666477330029,
-0.02358916401863098,
-0.030930498614907265,
0.04773731157183647,
-0.014580190181732178,
-0.031601279973983765,
-0.05012231320142746,
0.07121467590332031,
-0.026235025376081467,
-0.032514289021492004,
-0.0104064354673028,
0.030557842925190926,
0.025452446192502975,
-0.05187379941344261,
0.0071410322561860085,
0.06506584584712982,
-0.06398513913154602,
0.02889952063560486,
-0.025862369686365128,
0.006470250431448221,
-0.017682556062936783,
0.025582876056432724,
0.0053243315778672695,
-0.027893347665667534,
-0.017384430393576622,
-0.00960522424429655,
-0.0333155021071434,
-0.011561671271920204,
0.033110540360212326,
-0.04050777480006218,
0.012530578300356865,
-0.06685459613800049,
-0.021632716059684753,
-0.06081755831837654,
0.08064289391040802,
0.011254229582846165,
-0.04695473238825798,
-0.023812757804989815,
0.03370679169893265,
0.07356241345405579,
0.052395518869161606,
0.018493084236979485,
0.015642261132597923,
-0.0043461075983941555,
-0.010331904515624046,
0.02427857741713524,
-0.007099108304828405,
-0.01164551917463541,
0.01667638309299946,
0.013173411600291729,
0.01812974363565445,
0.017691873013973236,
0.04937700182199478,
0.10471650958061218,
-0.019247714430093765,
0.00354256690479815,
-0.007774548605084419,
0.030203819274902344,
-0.02973799780011177,
-0.08824508637189865,
-0.05832076072692871,
0.05165020748972893,
-0.020179355517029762,
0.020328417420387268,
-0.03538374602794647,
0.023682327941060066,
0.03566323593258858,
-0.01419821660965681,
0.03134042024612427,
0.03407944738864899,
0.023197874426841736,
0.023086076602339745,
0.008678240701556206,
-0.07348788529634476,
0.008561785332858562,
0.014952846802771091,
0.051426611840724945,
0.05206012725830078,
-0.015344136394560337,
0.013518118299543858,
-0.004711776971817017,
0.048631686717271805,
-0.026104595512151718,
-0.035178784281015396,
-0.03769421577453613,
0.013751029036939144,
-0.03827183321118355,
-0.028787722811102867,
0.029290810227394104,
0.038160037249326706,
0.012493313290178776,
-0.001609410741366446,
0.01751486025750637,
-0.04397347941994667,
-0.0553395077586174,
-0.05541403964161873,
-0.008981023915112019,
-0.007639460731297731,
0.03484339267015457,
0.005100737325847149,
-0.023645061999559402,
-0.04348902776837349,
-0.05388614535331726,
0.017151519656181335,
-0.08928852528333664,
0.015148491598665714,
0.012279035523533821,
0.02366369403898716,
0.004008387681096792,
0.03830910101532936,
0.03005475550889969,
0.05407247319817543,
-0.01085362397134304,
-0.02256435714662075,
-0.007224880158901215,
-0.020906036719679832,
0.03134042024612427,
-0.018362654373049736,
0.002538723172619939,
0.02256435714662075,
-0.033054642379283905,
0.059215135872364044,
-0.0400233194231987,
-0.02707350254058838,
0.03290557861328125,
-0.009698388166725636,
-0.060556698590517044,
0.042967308312654495,
0.00346570648252964,
-0.00007409461250063032,
-0.027949245646595955,
-0.020402949303388596,
-0.024073617532849312,
-0.041141290217638016,
0.006605338305234909,
0.05649474263191223,
-0.037806011736392975,
-0.019564472138881683,
-0.011030635796487331,
-0.008454646915197372,
0.009479452855885029,
0.01447770930826664,
-0.03400491550564766,
0.052879974246025085,
-0.02724119834601879,
-0.05552583560347557,
-0.039501599967479706,
-0.017011774703860283,
0.050867628306150436,
-0.025396548211574554,
-0.0026365455705672503,
-0.056047555059194565,
-0.04524051398038864,
-0.039799727499485016,
-0.027203932404518127,
-0.012446730397641659,
0.035681869834661484,
-0.053252629935741425,
-0.03793644160032272,
0.08541289716959,
-0.025955533608794212,
-0.05321536585688591,
-0.014514975249767303,
-0.016080133616924286,
0.039203476160764694,
-0.01325725857168436,
-0.002580647123977542,
0.004220336209982634,
0.06279263645410538,
-0.006167466752231121,
0.10270415991544724,
0.012074073776602745,
-0.047960907220840454,
0.016564587131142616,
0.021614084020256996,
0.001103995251469314,
-0.09010837227106094,
0.02498662658035755,
-0.07538843154907227,
-0.016406208276748657,
-0.015427983365952969,
0.053438957780599594,
0.03316643834114075,
-0.013369056396186352,
0.0067031607031822205,
-0.025266118347644806,
-0.0012577160960063338,
0.11798308044672012,
-0.011869112960994244,
-0.08146273344755173,
-0.016126714646816254,
-0.021912209689617157,
-0.0499732531607151,
0.034955188632011414,
-0.06234545260667801,
0.010816358029842377,
0.023067444562911987,
0.0033981625456362963,
-0.0018248528940603137,
0.012372199445962906,
-0.007988826371729374,
0.013192043639719486,
0.0475509837269783,
0.012763489037752151,
-0.005487368442118168,
-0.05958779156208038,
-0.03229069709777832,
-0.02919764630496502,
0.0070851338095963,
-0.01402120478451252,
-0.02742752619087696,
0.030874600633978844,
0.017747770994901657,
0.02567603997886181,
-0.017654607072472572,
-0.02748342603445053,
-0.03631538525223732,
0.0005371495499275625,
-0.059997715055942535,
-0.00377081916667521,
0.04222199320793152,
0.018278807401657104,
-0.04371261969208717,
-0.012567844241857529,
-0.03838363289833069,
0.08600914478302002,
0.004546410869807005,
0.04464426264166832,
0.043824419379234314,
0.017104938626289368,
0.05820896103978157,
0.0059205819852650166,
-0.014049154706299305,
-0.003556541632860899,
0.0322347953915596,
-0.020775606855750084,
-0.02664494700729847,
-0.01982533186674118,
-0.03830910101532936,
-0.039389804005622864,
-0.007187614217400551,
0.048743486404418945,
-0.05809716507792473,
0.011291495524346828,
-0.021185528486967087,
0.052768174558877945,
-0.019843963906168938,
0.02371959388256073,
-0.010564815253019333,
-0.052768174558877945,
0.027632487937808037,
0.02245256118476391,
0.004164437763392925,
-0.0192104484885931,
0.01213928870856762,
0.0005057066446170211,
0.014645405113697052,
-0.06279263645410538,
0.026607682928442955,
0.012046124786138535,
-0.06718998402357101,
-0.02519158646464348,
-0.014542924240231514,
0.03739609196782112,
0.032570187002420425,
-0.011440558359026909,
0.026123229414224625,
-0.022527093067765236,
0.004660536535084248,
-0.10725057125091553,
-0.05295450612902641,
0.02731573022902012,
-0.0147758349776268,
-0.02312334254384041,
-0.0042832219041883945,
0.02772565186023712,
0.05314083397388458,
-0.0735996812582016,
-0.017533494159579277,
0.02025388740003109,
-0.021968107670545578,
0.04926520586013794,
-0.032868314534425735,
0.011897061951458454,
-0.0049935984425246716,
0.03553280979394913,
-0.01134739350527525,
-0.007700017187744379,
0.0006993134156800807,
0.0039175525307655334,
-0.003342264099046588,
0.022303497418761253,
0.03965066373348236,
0.015502515248954296,
-0.016620485112071037,
-0.002043788554146886,
0.03972519561648369,
0.0011220457963645458,
-0.000255910272244364,
-0.022918380796909332,
-0.009894032962620258,
0.050867628306150436,
0.0097356541082263,
0.018660780042409897,
-0.05608481913805008,
-0.017663924023509026,
0.05042044073343277,
-0.006027720868587494,
-0.0046791695058345795,
0.0690532699227333,
-0.06327709555625916,
-0.05914060398936272,
0.04222199320793152,
-0.024967992678284645,
0.00027308741118758917,
0.024371743202209473,
-0.00271340599283576,
0.00701060239225626,
0.012819387018680573,
-0.015195073559880257,
0.024222679436206818,
0.026980338618159294,
-0.020160723477602005,
-0.021912209689617157,
-0.0604449026286602,
-0.019601738080382347,
0.04475605860352516,
0.02949577011168003,
-0.008990340866148472,
0.02312334254384041,
0.02603006362915039,
-0.02396181970834732,
0.04032144695520401,
0.012828703969717026,
-0.016825446859002113,
-0.02304881066083908,
-0.059625059366226196,
0.042110197246074677,
-0.023812757804989815,
-0.0054407864809036255,
-0.029048582538962364,
0.05474325641989708,
-0.015577046200633049,
-0.00037469458766281605,
0.011543038301169872,
-0.0462094210088253,
0.008091306313872337,
0.050271376967430115,
-0.02353326417505741,
0.0024409007746726274,
-0.016955876722931862,
-0.02688717469573021,
-0.07676726579666138,
0.06495404988527298,
0.06599748879671097,
0.004839877597987652,
0.01118901465088129,
-0.01783161796629429,
-0.016052182763814926,
0.06010951101779938,
-0.033781323581933975,
-0.05571216344833374,
-0.003195530502125621,
0.0349179245531559,
-0.009125429205596447,
0.0009427047916688025,
0.016154663637280464,
-0.012810070998966694,
-0.02567603997886181,
0.021483654156327248,
-0.0017840935615822673,
0.01368581410497427,
0.03501109033823013,
-0.01958310417830944,
-0.0013147791614755988,
-0.014906264841556549,
0.02688717469573021,
0.00542681198567152,
0.053066302090883255,
0.025471080094575882,
-0.01909865066409111,
-0.012092706747353077,
0.0384208969771862
] |
20,864 | precession.precession | eval_eta |
Symmetric mass ratio eta = m1*m2/(m1+m2)^2 = q/(1+q)^2.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
eta: float
Symmetric mass ratio 0<=eta<=1/4.
Examples
--------
``eta = precession.eval_eta(q)``
| def eval_eta(q):
"""
Symmetric mass ratio eta = m1*m2/(m1+m2)^2 = q/(1+q)^2.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
eta: float
Symmetric mass ratio 0<=eta<=1/4.
Examples
--------
``eta = precession.eval_eta(q)``
"""
q = np.atleast_1d(q).astype(float)
eta = q/(1+q)**2
return eta
| (q) | [
0.023774528875947,
0.06850841641426086,
-0.023520255461335182,
-0.04377128556370735,
0.08819641917943954,
0.03053092584013939,
0.006874453276395798,
-0.07744430005550385,
-0.07722635567188263,
0.06037168204784393,
0.08122207224369049,
-0.011405961588025093,
0.0031784127932041883,
0.05942723900079727,
-0.050128113478422165,
-0.007310349494218826,
0.050128113478422165,
0.02993156760931015,
-0.009444426745176315,
0.00859987735748291,
0.0034871730022132397,
-0.012840787880122662,
-0.01625531166791916,
0.009003989398479462,
-0.024155937135219574,
-0.03619758412241936,
0.07246781140565872,
-0.01966983452439308,
-0.07802549749612808,
-0.013222198002040386,
0.04086530953645706,
-0.023447606712579727,
0.03565271198749542,
0.046568289399147034,
0.03548924997448921,
-0.024337561801075935,
0.006352285388857126,
0.009598806500434875,
-0.0721408948302269,
-0.03163883090019226,
-0.031856779009103775,
0.05147212743759155,
-0.012840787880122662,
0.0061842831782996655,
-0.0028083547949790955,
-0.00048215387505479157,
0.045987095683813095,
0.053034089505672455,
-0.0009370642364956439,
0.042608894407749176,
0.028660202398896217,
-0.008949502371251583,
0.04834819957613945,
-0.029223237186670303,
-0.015183732844889164,
0.0935724750161171,
-0.011860020458698273,
-0.024155937135219574,
-0.021213635802268982,
-0.026226447895169258,
0.0322018638253212,
-0.011569422669708729,
-0.021849317476153374,
-0.0018014790257439017,
-0.006107093300670385,
0.006724613718688488,
0.01599195785820484,
0.007814355194568634,
-0.015492492355406284,
0.013866961002349854,
-0.047367434948682785,
-0.033545877784490585,
-0.013694418594241142,
-0.0844912976026535,
0.02284824848175049,
0.05281614139676094,
-0.03621574491262436,
0.006738235242664814,
0.007346674334257841,
0.03102131001651287,
-0.04852982610464096,
-0.016355205327272415,
0.012777219526469707,
-0.047839656472206116,
-0.05034606158733368,
0.04002983868122101,
-0.01520189456641674,
-0.005584925413131714,
-0.0337456651031971,
0.005730224307626486,
0.00029144910513423383,
-0.06218791753053665,
-0.0026562451384961605,
0.04315376654267311,
0.014239289797842503,
0.004077449906617403,
0.008781501092016697,
-0.03734181076288223,
0.02105017378926277,
-0.025518115609884262,
-0.03610676899552345,
0.06785457581281662,
0.012940681539475918,
-0.0019138585776090622,
0.012749976478517056,
-0.02119547314941883,
-0.021431583911180496,
-0.02028735540807247,
0.07195926457643509,
-0.005939091555774212,
-0.06422210484743118,
0.02531832829117775,
-0.06574773788452148,
-0.012323160655796528,
-0.03777770698070526,
-0.021704019978642464,
-0.04867512360215187,
0.053034089505672455,
0.053833235055208206,
0.01994227059185505,
0.06062595546245575,
0.048566147685050964,
-0.005053676664829254,
0.05430545285344124,
0.02822430618107319,
-0.006284176371991634,
0.0038890151772648096,
-0.03196575120091438,
-0.037850357592105865,
-0.011878183111548424,
-0.0005338030750863254,
0.06661953777074814,
0.0322563499212265,
0.02315700799226761,
-0.0037550677079707384,
0.010852009989321232,
-0.04319009184837341,
-0.020014919340610504,
0.009271884337067604,
-0.015383518300950527,
-0.00021525233751162887,
-0.004218208137899637,
-0.011551260948181152,
-0.09843999147415161,
0.0029037073254585266,
0.005875523202121258,
0.04133753105998039,
0.01566503569483757,
-0.04130120575428009,
-0.00020844145910814404,
0.016673045232892036,
0.08078617602586746,
0.08652547746896744,
-0.050890929996967316,
0.07933318614959717,
-0.033981774002313614,
0.07232251763343811,
-0.04355333745479584,
-0.0025109462440013885,
-0.05463237687945366,
-0.003839068813249469,
0.014248371124267578,
-0.062115270644426346,
-0.007237700279802084,
0.030131354928016663,
-0.030912335962057114,
-0.03716018795967102,
-0.0031647910363972187,
-0.028605716302990913,
-0.031239258125424385,
-0.026280933991074562,
0.011387798935174942,
-0.03209288790822029,
-0.0060571469366550446,
0.0122868362814188,
0.019088638946413994,
-0.024028802290558815,
0.013449227437376976,
0.01427561417222023,
-0.024137776345014572,
0.008136737160384655,
-0.026916617527604103,
-0.016654884442687035,
-0.03632471710443497,
0.030421951785683632,
0.03443583473563194,
0.0015494762919843197,
0.0444614551961422,
-0.030458277091383934,
0.02012389339506626,
-0.00587098253890872,
-0.021449746564030647,
-0.005557681899517775,
-0.006801803596317768,
-0.015919307246804237,
-0.0018412091303616762,
0.019742485135793686,
0.017544839531183243,
0.03973924368619919,
0.04348068684339523,
0.010552330873906612,
0.005957253742963076,
-0.00185029034037143,
0.04086530953645706,
0.021286284551024437,
-0.043517012149095535,
-0.06705543398857117,
-0.019996758550405502,
-0.006851749960333109,
-0.01036162581294775,
-0.03407258540391922,
0.0025109462440013885,
-0.0444977805018425,
-0.01443907618522644,
-0.04072000831365585,
0.05848279595375061,
0.07410242408514023,
-0.019143126904964447,
0.07319431006908417,
0.04249992221593857,
0.029205074533820152,
-0.02871469035744667,
0.07188662141561508,
0.0214679092168808,
0.04438880831003189,
-0.016527747735381126,
-0.017245160415768623,
0.03868582472205162,
-0.05939091369509697,
0.008309279568493366,
0.01702721230685711,
0.021213635802268982,
0.028914475813508034,
-0.034926217049360275,
0.04311744123697281,
0.07773489505052567,
-0.012350404635071754,
0.017544839531183243,
-0.10919210314750671,
0.05452340468764305,
0.019088638946413994,
0.014021341688930988,
-0.035053353756666183,
0.048093926161527634,
-0.026626018807291985,
-0.03403626009821892,
0.02381085231900215,
0.020323680713772774,
-0.018325820565223694,
-0.019687997177243233,
-0.02564525231719017,
-0.009616969153285027,
0.01870723068714142,
-0.013303928077220917,
0.004497454036027193,
0.03256510943174362,
0.05139947682619095,
0.051326826214790344,
0.03518049046397209,
-0.00398663803935051,
0.02546362765133381,
-0.049837514758110046,
-0.007210456766188145,
-0.003430415643379092,
-0.03483540564775467,
0.04616871848702431,
-0.031420882791280746,
-0.00033486849861219525,
0.009626050479710102,
0.0033169009257107973,
-0.0134401461109519,
0.025390978902578354,
-0.003360036527737975,
-0.037523433566093445,
-0.011188013479113579,
0.012822626158595085,
0.014693348668515682,
0.04722213372588158,
-0.005103623028844595,
-0.013258522376418114,
-0.028950801119208336,
-0.0630233883857727,
0.008713391609489918,
0.013485551811754704,
-0.03160250559449196,
0.05554049462080002,
-0.023229658603668213,
-0.027570461854338646,
0.10824766010046005,
0.004708591848611832,
-0.018943341448903084,
-0.0008910907781682909,
-0.03944864496588707,
0.006229689344763756,
0.07940583676099777,
0.0020114812068641186,
-0.06825415045022964,
0.00047250514035113156,
0.046568289399147034,
0.05873706936836243,
0.004654104821383953,
0.05009178817272186,
0.03456297144293785,
-0.019433723762631416,
-0.06513021886348724,
0.010397951118648052,
0.048093926161527634,
0.04991016536951065,
0.021704019978642464,
-0.03959394246339798,
-0.00045916714589111507,
0.014221127144992352,
-0.08957675844430923,
0.0414101779460907,
-0.03265592083334923,
0.03143904358148575,
0.01856193132698536,
-0.03024032898247242,
0.039375994354486465,
-0.02304803393781185,
-0.029205074533820152,
0.06491227447986603,
0.05416015535593033,
-0.018634580075740814,
-0.01083384733647108,
-0.050564009696245193,
-0.046132393181324005,
0.034780919551849365,
0.01083384733647108,
-0.02595401182770729,
-0.001170337083749473,
0.005262543447315693,
-0.012677326798439026,
0.0352894626557827,
-0.09284598380327225,
-0.045042652636766434,
0.03490805625915527,
-0.04268154501914978,
-0.005053676664829254,
0.014484481886029243,
-0.0038912855088710785,
0.03759608417749405,
0.01948821172118187,
0.008009600453078747,
-0.03300100564956665,
-0.03543476387858391,
0.01598287560045719,
-0.06730970740318298,
0.0476217046380043,
-0.018007978796958923,
-0.05739305540919304,
-0.016691207885742188,
0.013258522376418114,
-0.03643369302153587,
-0.0006169526604935527,
0.009780430234968662,
-0.013231278397142887,
-0.01196899451315403,
-0.048457175493240356,
-0.03641553223133087,
-0.04573282226920128,
0.010388869792222977,
-0.06157039850950241,
-0.0036233908031135798,
-0.004086530767381191,
-0.006338663399219513,
0.0034667402505874634,
0.025227516889572144,
0.05419648066163063,
0.008391009643673897,
-0.0051444885320961475,
0.01404858473688364,
-0.021740343421697617,
-0.0027379756793379784,
-0.032292675226926804,
0.041664451360702515,
-0.00790516659617424,
-0.0025404600892215967,
0.017399540171027184,
-0.02117731049656868,
0.062405865639448166,
-0.0521986223757267,
-0.04526060074567795,
0.0008570363279432058,
-0.014202965423464775,
0.0118872644379735,
0.00035132814082317054,
-0.014584374614059925,
-0.01870723068714142,
0.011578503996133804,
0.030440114438533783,
-0.020614277571439743,
0.035234976559877396,
-0.00232024141587317,
-0.06171569600701332,
0.044897351413965225,
-0.014611618593335152,
-0.04493367671966553,
-0.15125612914562225,
0.045042652636766434,
0.013658094219863415,
0.028478579595685005,
0.04130120575428009,
-0.024755295366048813,
0.0058800638653337955,
-0.06044433265924454,
0.02562708966434002,
0.04420718178153038,
-0.03038562647998333,
0.03256510943174362,
-0.00041149096796289086,
-0.02700742892920971,
-0.01336749643087387,
0.04264521971344948,
-0.04773068055510521,
0.013830636627972126,
0.04991016536951065,
-0.1288800984621048,
-0.024501021951436996,
0.020596114918589592,
0.0005267084343358874,
-0.017599325627088547,
-0.06015373393893242,
0.01582849584519863,
0.04191872477531433,
0.0027357053477317095,
0.009816755540668964,
0.004483832512050867,
-0.010852009989321232,
-0.006374988239258528,
0.011496773920953274,
-0.01312230434268713,
-0.05543152242898941,
-0.03625207021832466,
0.011542179621756077,
-0.005548601038753986,
0.03269224613904953,
0.006311419885605574,
0.020759576931595802,
0.0007650894112884998,
0.005548601038753986,
0.033836476504802704,
0.017127104103565216,
0.02962280809879303,
-0.030367465689778328,
-0.024628158658742905,
0.07257679104804993,
-0.01136055588722229,
-0.012931600213050842,
-0.02960464544594288,
-0.02853306755423546,
0.014466319233179092,
0.03883112594485283,
0.011860020458698273,
0.05238024517893791,
-0.012749976478517056,
0.06255116313695908,
-0.049510590732097626,
0.00018829258624464273,
-0.027043752372264862,
-0.0002207861834904179,
0.048566147685050964,
0.02273927442729473,
0.007964194752275944,
-0.0383952260017395,
0.055794768035411835,
0.03550741448998451,
0.002185158897191286,
-0.006434015929698944,
-0.04976486414670944,
0.040138814598321915,
0.02086855098605156,
-0.01764473132789135,
-0.00943534541875124,
-0.01058865524828434,
0.007328512147068977,
-0.0036460936535149813,
-0.00303311413154006,
0.057320404797792435,
-0.015928389504551888,
-0.03607044741511345,
-0.026462556794285774,
0.01747218891978264,
0.05619433894753456,
0.03959394246339798,
0.034617457538843155,
-0.014566211961209774,
-0.03320079296827316,
0.013803393580019474,
0.02517303079366684,
-0.030440114438533783,
0.03712386265397072,
0.06473065167665482,
0.06538449227809906,
-0.03806830570101738,
-0.01825317181646824,
0.05692083388566971,
0.029695456847548485,
-0.012477541342377663,
0.014838648028671741,
0.030367465689778328,
0.03730548545718193,
-0.05248921737074852,
0.0168637502938509,
-0.010534168221056461,
0.02163136936724186,
-0.029077937826514244,
-0.03810463100671768,
-0.04696786031126976,
0.04747640714049339,
-0.022176241502165794,
0.022521326318383217,
0.011678396724164486,
-0.003044465556740761,
-0.041991375386714935,
0.029259560629725456,
0.024591835215687752,
-0.005780170671641827,
0.019905945286154747,
0.009003989398479462,
0.0038277171552181244,
0.03510783985257149,
-0.0005213164840824902,
-0.054741352796554565,
-0.05230759456753731,
0.022593975067138672,
-0.01640969142317772,
0.009008530527353287,
0.028369605541229248,
0.016028281301259995,
0.012595596723258495,
-0.007669056300073862,
0.010942821390926838,
-0.0004279505810700357,
-0.03129374608397484,
0.042136672884225845,
-0.04424350708723068,
-0.023284144699573517,
0.017145266756415367,
0.019560860469937325,
-0.008477280847728252,
-0.004822106566280127,
0.028587553650140762,
-0.01888885349035263,
0.00006555476284120232,
0.020178381353616714,
0.00813219603151083,
0.011278824880719185,
0.028587553650140762,
0.011841858737170696,
-0.009417183697223663,
-0.042608894407749176,
-0.009426264092326164,
0.054269131273031235,
-0.002061427803710103,
0.015156488865613937,
0.048566147685050964,
-0.027515973895788193,
-0.0012248241109773517,
-0.07083319872617722,
0.023774528875947,
-0.028024520725011826,
0.04409820958971977,
-0.014448156580328941,
-0.003730094525963068,
-0.000716845621354878,
0.02117731049656868,
0.005330652464181185,
0.04540589824318886,
0.014620698988437653,
-0.05034606158733368,
-0.016909155994653702,
0.04126488044857979,
-0.0660020112991333,
-0.034181561321020126,
-0.024918757379055023,
-0.0051263258792459965,
-0.107375867664814,
-0.06029903516173363,
0.035707198083400726,
0.0383952260017395,
-0.04435248300433159,
-0.027225377038121223,
-0.016191743314266205,
0.011415042914450169,
-0.005939091555774212,
-0.025136705487966537,
0.0628780871629715,
-0.012595596723258495,
0.03145720809698105,
-0.06832679361104965,
-0.003475821577012539,
0.008876853622496128,
-0.009271884337067604,
-0.006288717035204172,
-0.05619433894753456,
0.017245160415768623,
-0.0268802922219038,
-0.010525086894631386,
-0.023520255461335182,
-0.01158758532255888,
0.014257452450692654,
0.011714722029864788,
-0.0071151042357087135,
0.005389680154621601,
0.0010375247802585363,
0.01810787245631218,
-0.001632341998629272,
-0.002243051305413246,
-0.047367434948682785,
0.030767036601901054,
-0.016455097123980522,
-0.012922518886625767,
0.042136672884225845,
0.004086530767381191,
0.024991406127810478,
-0.03850420191884041,
0.0032442514784634113,
-0.018543768674135208,
0.03868582472205162,
-0.055940065532922745,
0.04526060074567795,
0.005135407205671072,
-0.007982357405126095,
0.036905914545059204,
-0.019379237666726112,
0.029531996697187424,
-0.07809814810752869,
-0.014302858151495457,
-0.052707165479660034,
0.004608698654919863,
0.04206402599811554,
0.00009662942466093227,
-0.05481399968266487,
-0.05110887810587883,
-0.03403626009821892,
-0.004622320644557476,
0.02978627011179924,
-0.0598631352186203,
-0.032474298030138016,
-0.05862809717655182,
0.02315700799226761,
-0.019070478156208992,
-0.030785199254751205,
0.039811890572309494,
0.03857685253024101,
-0.06890799105167389,
-0.014021341688930988,
0.041192229837179184,
-0.001613044529221952,
0.020232869312167168,
-0.024337561801075935,
0.015374436974525452,
0.055940065532922745,
-0.005162650719285011,
0.022321538999676704,
0.007051535882055759,
0.007464729715138674,
-0.034290533512830734,
0.022666623815894127,
0.005666655953973532,
-0.06011740863323212,
-0.1119527816772461,
0.08056822419166565,
0.05459605157375336,
-0.0030285734683275223,
-0.030349303036928177,
-0.05296143889427185,
-0.08427334576845169,
-0.019161289557814598,
0.0010159569792449474,
0.03300100564956665,
0.07264943420886993,
-0.03465378284454346,
-0.024682646617293358,
0.019760647788643837,
0.028206143528223038,
0.02241235226392746,
0.01748127117753029,
0.048420850187540054,
-0.024664483964443207,
-0.011578503996133804,
0.04050206020474434,
-0.009031233377754688,
-0.009389939717948437,
-0.03441767022013664,
0.03207472711801529,
0.06393150240182877,
-0.01917945221066475,
-0.05819220095872879,
-0.024973243474960327,
0.005989037919789553,
-0.028187982738018036,
-0.02441021054983139,
0.04086530953645706,
-0.0031806831248104572,
-0.028187982738018036,
0.08035027980804443,
0.0013303927844390273,
0.0051127043552696705,
0.02085038833320141,
0.018198683857917786,
0.00744656752794981,
-0.009489832445979118,
0.035380277782678604,
-0.0049810269847512245,
-0.016491422429680824,
0.03639736771583557,
-0.12306814640760422,
-0.039230696856975555,
-0.0122868362814188,
0.006579314824193716,
0.01670937053859234,
0.021994616836309433,
0.019433723762631416,
0.07032465934753418,
0.04547854885458946,
0.01657315343618393,
0.006511205807328224,
0.04595077037811279,
-0.06567509472370148,
-0.04159180447459221,
0.04878409579396248,
-0.014902215451002121,
-0.009653294458985329,
0.03912172093987465,
0.002123860875144601,
0.03665164113044739,
-0.03158434480428696,
-0.00029230047948658466,
-0.04126488044857979,
0.020341843366622925,
0.03458113223314285,
-0.01917945221066475,
-0.027824735268950462,
-0.02228521555662155,
-0.015737684443593025,
-0.055940065532922745,
0.02424675039947033,
0.03005870431661606,
0.044752053916454315,
0.05430545285344124,
0.01502935215830803,
-0.03857685253024101,
0.0644400492310524,
-0.04348068684339523,
-0.06371355801820755,
0.047185808420181274,
0.02609931118786335,
-0.003655174747109413,
-0.01657315343618393,
0.01027989573776722,
0.03857685253024101,
0.043952908366918564,
-0.018035223707556725,
-0.02991340681910515,
0.06988875567913055,
0.002976356539875269,
-0.02012389339506626,
0.021286284551024437,
-0.04042941331863403,
-0.028769176453351974,
-0.00073387281736359,
0.06709175556898117,
-0.03025849163532257,
-0.03409074991941452,
0.015873901546001434,
-0.00591638870537281
] |
20,865 | precession.precession | eval_kappa |
Asymptotic angular momentum. Provide either (theta1,theta2,deltaphi,r,q,chi1,chhi2) or (J,r,q).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
J: float, optional (default: None)
Magnitude of the total angular momentum.
r: float, optional (default: None)
Binary separation.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.eval_kappa(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``kappa = precession.eval_kappa(J=J,r=r,q=q)``
| def eval_kappa(theta1=None, theta2=None, deltaphi=None, J=None, r=None, q=None, chi1=None, chi2=None):
"""
Asymptotic angular momentum. Provide either (theta1,theta2,deltaphi,r,q,chi1,chhi2) or (J,r,q).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
J: float, optional (default: None)
Magnitude of the total angular momentum.
r: float, optional (default: None)
Binary separation.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.eval_kappa(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``kappa = precession.eval_kappa(J=J,r=r,q=q)``
"""
if theta1 is None and theta2 is None and deltaphi is None and J is not None and r is not None and q is not None and chi1 is None and chi2 is None:
J = np.atleast_1d(J).astype(float)
L = eval_L(r, q)
kappa = (J**2 - L**2) / (2*L)
elif theta1 is not None and theta2 is not None and deltaphi is not None and J is None and r is not None and q is not None and chi1 is not None and chi2 is not None:
theta1 = np.atleast_1d(theta1).astype(float)
theta2 = np.atleast_1d(theta2).astype(float)
deltaphi = np.atleast_1d(deltaphi).astype(float)
r = np.atleast_1d(r).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
kappa = (chi1 * np.cos(theta1) + q**2 * chi2 * np.cos(theta2) )/(1+q)**2 + \
(chi1**2 + q**4 *chi2**2 + 2*chi1*chi2*q**2 * (np.cos(theta1)*np.cos(theta2) + np.cos(deltaphi)*np.sin(theta1)*np.sin(theta2))) / (2*q*(1+q)**2*r**(1/2))
else:
TypeError("Please provide provide either (theta1,theta2,deltaphi,r,q,chi1,chhi2) or (J,r,q).")
return kappa
| (theta1=None, theta2=None, deltaphi=None, J=None, r=None, q=None, chi1=None, chi2=None) | [
0.017669443041086197,
-0.023414479568600655,
0.011450588703155518,
-0.01617889292538166,
0.03494403883814812,
-0.011154452338814735,
-0.053975705057382584,
-0.009594803676009178,
-0.04213026911020279,
0.07158592343330383,
0.05958254635334015,
0.017087042331695557,
0.03105478547513485,
0.03506249189376831,
-0.06124090775847435,
-0.002647948684170842,
0.03375949338078499,
0.005374867003411055,
-0.029830757528543472,
-0.018873728811740875,
-0.04284099489450455,
-0.05298858508467674,
0.00969845149666071,
0.06613702327013016,
-0.05504179373383522,
-0.016139406710863113,
0.049079593271017075,
0.017422663047909737,
-0.03142989054322243,
0.017106784507632256,
0.02147972397506237,
-0.006110270973294973,
-0.02299988828599453,
0.036839306354522705,
0.042564600706100464,
-0.03674059733748436,
0.02582305110991001,
0.00991068221628666,
-0.05741088092327118,
-0.011894792318344116,
-0.030284833163022995,
0.015053575858473778,
0.020107628777623177,
-0.05618685483932495,
-0.036819566041231155,
-0.005986880976706743,
-0.01921922154724598,
0.048605773597955704,
0.02096642181277275,
0.013750577345490456,
0.020768998190760612,
-0.08528714627027512,
0.008745880797505379,
-0.03569424897432327,
-0.009752742946147919,
0.07608718425035477,
0.03670110926032066,
-0.04445987194776535,
-0.020551832392811775,
-0.10518747568130493,
0.05385725200176239,
-0.036523427814245224,
0.0637284517288208,
0.048566289246082306,
0.01024630293250084,
0.029297713190317154,
0.020670287311077118,
0.030600711703300476,
0.018291328102350235,
0.020946679636836052,
-0.014560015872120857,
-0.016159148886799812,
-0.01702781580388546,
-0.05389673635363579,
0.008351032622158527,
0.03958350047469139,
-0.042011816054582596,
-0.05673963949084282,
-0.006194176152348518,
-0.0015929643996059895,
-0.024421341717243195,
-0.028981834650039673,
-0.024737220257520676,
-0.05468643084168434,
0.022901177406311035,
0.04986928775906563,
-0.018340684473514557,
-0.016188763082027435,
0.023197313770651817,
-0.037846170365810394,
-0.07419192045927048,
-0.05081692337989807,
0.033285677433013916,
0.01785699464380741,
0.039879634976387024,
0.04248563200235367,
0.0004833801940549165,
-0.0922364667057991,
0.0343715064227581,
-0.03620754927396774,
0.030304575338959694,
0.017156140878796577,
0.03375949338078499,
0.013000366277992725,
0.03907019644975662,
-0.030659938231110573,
-0.06475505232810974,
0.05654221773147583,
0.06601856648921967,
-0.03725389763712883,
-0.08102278411388397,
0.03762900456786156,
-0.002692369045689702,
-0.017708927392959595,
-0.07119107246398926,
0.02548743039369583,
-0.03737235069274902,
0.040708817541599274,
0.02953462116420269,
0.04730277508497238,
0.01192440651357174,
0.020166855305433273,
0.051290739327669144,
0.008795236237347126,
0.05421261489391327,
-0.006890095770359039,
-0.0027466604951769114,
0.02817239612340927,
-0.022249678149819374,
0.010103169828653336,
0.03423331305384636,
0.020946679636836052,
0.038695093244314194,
0.04011654481291771,
-0.022407617419958115,
0.03630626201629639,
-0.033147480338811874,
0.001353587955236435,
0.03753029182553291,
0.0015719881048426032,
0.051922496408224106,
-0.04248563200235367,
0.0005287259700708091,
-0.03255520761013031,
-0.023710615932941437,
0.029001576825976372,
0.05618685483932495,
-0.019860848784446716,
-0.017314080148935318,
0.025092583149671555,
-0.013651865534484386,
0.028942350298166275,
0.08465538918972015,
-0.03403588756918907,
0.010759605094790459,
-0.0570160336792469,
0.07020395249128342,
-0.0012561097973957658,
-0.009313474409282207,
-0.03792513906955719,
-0.02080848254263401,
-0.025645369663834572,
0.017462147399783134,
0.022624783217906952,
0.002017425838857889,
0.005636453628540039,
-0.0011549300979822874,
0.0520409494638443,
0.005942460615187883,
-0.003943543415516615,
0.002000151202082634,
-0.010808960534632206,
-0.001043262192979455,
-0.007368848659098148,
-0.023552676662802696,
0.003844831371679902,
-0.03443073481321335,
-0.06285978108644485,
0.02835007756948471,
-0.03204190731048584,
-0.03859638050198555,
-0.055949945002794266,
-0.043393783271312714,
-0.05820057913661003,
0.007521852385252714,
0.11095225811004639,
0.03978092595934868,
0.02250633016228676,
0.0017274594865739346,
0.009925488382577896,
0.018626948818564415,
-0.016563868150115013,
0.001948327524587512,
0.07995669543743134,
0.013829546980559826,
0.018222229555249214,
0.09413173794746399,
0.005073795095086098,
-0.024934643879532814,
0.041182633489370346,
0.032634176313877106,
0.011312391608953476,
-0.02969256043434143,
0.04043242335319519,
0.05054052919149399,
-0.030008438974618912,
-0.057805731892585754,
0.011499944142997265,
0.020847968757152557,
-0.0023221990559250116,
-0.029159516096115112,
-0.0030748778954148293,
-0.008272062987089157,
-0.013612381182610989,
-0.00940725114196539,
0.07198076695203781,
0.08347084373235703,
0.005364995449781418,
0.026375839486718178,
-0.0010697910329326987,
0.055634066462516785,
0.004439570941030979,
0.019229091703891754,
0.021361270919442177,
0.026099445298314095,
-0.0063175661489367485,
-0.002682497724890709,
0.038359470665454865,
-0.035970643162727356,
-0.03121272474527359,
0.012783200480043888,
-0.02805394120514393,
0.00004380343671073206,
-0.028429048135876656,
-0.0037387157790362835,
-0.03589167073369026,
-0.01886385679244995,
-0.008286870084702969,
-0.06759795546531677,
0.03628652170300484,
-0.019850976765155792,
-0.006746963132172823,
-0.03257495164871216,
0.05014568194746971,
-0.04264357313513756,
-0.02973204478621483,
0.024243660271167755,
-0.021894315257668495,
0.018735531717538834,
0.014293493703007698,
-0.023710615932941437,
-0.016070308163762093,
0.020275438204407692,
0.021361270919442177,
-0.03018612042069435,
0.028744926676154137,
0.05614737048745155,
0.05516025051474571,
0.04477575048804283,
0.008760686963796616,
0.02114410325884819,
-0.05081692337989807,
-0.02047286182641983,
0.04213026911020279,
-0.03737235069274902,
0.03674059733748436,
-0.002309860195964575,
0.0159321129322052,
0.024638507515192032,
-0.030936332419514656,
-0.021400755271315575,
0.05812160670757294,
-0.037352610379457474,
-0.010532567277550697,
0.03443073481321335,
0.029100289568305016,
0.036839306354522705,
0.03587193042039871,
-0.03338439017534256,
-0.005715423263609409,
-0.008040090091526508,
-0.0670846551656723,
-0.019752265885472298,
0.013612381182610989,
-0.09602700173854828,
0.05756882205605507,
-0.035970643162727356,
-0.017106784507632256,
0.11892817914485931,
-0.006361986510455608,
0.0419723317027092,
-0.0024986467324197292,
-0.013888774439692497,
0.019248833879828453,
0.12650926411151886,
0.041222117841243744,
-0.07861421257257462,
-0.006707478314638138,
0.06787434965372086,
-0.023414479568600655,
0.004017577040940523,
0.012832555919885635,
0.0722176805138588,
-0.07873266935348511,
0.014451432973146439,
-0.004538282752037048,
0.08323393017053604,
0.027264246717095375,
0.022861693054437637,
0.03152860328555107,
-0.002845372539013624,
-0.0503825880587101,
-0.019189607352018356,
0.027955230325460434,
-0.012575904838740826,
-0.08299702405929565,
0.032456494867801666,
-0.012447579763829708,
0.038497667759656906,
-0.0022370601072907448,
0.005231734365224838,
0.012052731588482857,
-0.00394847895950079,
-0.006248467601835728,
0.006603830959647894,
-0.08986737579107285,
0.008193093352019787,
0.03859638050198555,
0.013720964081585407,
-0.03176551312208176,
-0.019140250980854034,
0.02633635327219963,
-0.00222595501691103,
0.004604913294315338,
-0.05046156048774719,
-0.029080547392368317,
-0.002155622700229287,
0.005118215456604958,
0.005068859551101923,
0.005883233621716499,
0.01209221687167883,
-0.03709596022963524,
0.014303364790976048,
0.061003997921943665,
-0.015744559466838837,
-0.028429048135876656,
0.0672425925731659,
-0.04161696508526802,
-0.0023592161014676094,
0.015438552014529705,
-0.03912942484021187,
0.04568390175700188,
0.016208505257964134,
0.014757439494132996,
0.00472090020775795,
0.013296502642333508,
-0.038477927446365356,
-0.03922813758254051,
0.015014090575277805,
-0.045210082083940506,
-0.021894315257668495,
0.025724340230226517,
-0.04015602916479111,
0.0377672016620636,
0.0042446148581802845,
-0.005552548449486494,
-0.056305307894945145,
0.023394737392663956,
-0.005680873990058899,
-0.02163766324520111,
0.03421356901526451,
-0.014717955142259598,
-0.022348390892148018,
-0.0015004219021648169,
0.006663057953119278,
0.0755344033241272,
0.039366334676742554,
0.028981834650039673,
-0.044380903244018555,
-0.02649429254233837,
0.004629591479897499,
-0.04647359624505043,
-0.04398605599999428,
0.012941139750182629,
-0.039840150624513626,
0.021045392379164696,
-0.0023073924239724874,
-0.05693706497550011,
0.025566400960087776,
0.023888297379016876,
-0.03486506640911102,
-0.03879380598664284,
0.07588976621627808,
-0.016998201608657837,
-0.02132178656756878,
0.08011463284492493,
0.014303364790976048,
0.010769476182758808,
-0.06783486902713776,
0.025250522419810295,
-0.0008951941854320467,
-0.06297823786735535,
0.042051300406455994,
-0.024737220257520676,
-0.008104252628982067,
-0.06175420805811882,
0.049948256462812424,
0.011075482703745365,
-0.021933799609541893,
0.048763714730739594,
-0.016593482345342636,
-0.026889141649007797,
-0.0028799218125641346,
0.04627617076039314,
-0.05587097629904747,
0.024875417351722717,
-0.015359582379460335,
-0.04465729370713234,
-0.013720964081585407,
0.050066713243722916,
-0.019949689507484436,
-0.06222802773118019,
0.027560383081436157,
0.025961248204112053,
0.0637679323554039,
0.024954386055469513,
0.016484899446368217,
-0.0007168956799432635,
-0.0018742935499176383,
-0.03287108615040779,
-0.006144820246845484,
0.019702909514307976,
-0.018449267372488976,
-0.0027688706759363413,
-0.027402443811297417,
0.034016143530607224,
0.008943304419517517,
0.004533347208052874,
0.07111210376024246,
-0.05298858508467674,
0.009925488382577896,
-0.0009618247859179974,
0.02617841400206089,
-0.00289719644933939,
-0.06191214919090271,
-0.015744559466838837,
0.024223918095231056,
-0.015221386216580868,
-0.03210113197565079,
0.006495247595012188,
-0.001536205061711371,
0.019752265885472298,
0.009624416939914227,
-0.0018928020726889372,
0.05906924232840538,
0.0026627553161233664,
-0.02367112971842289,
-0.005552548449486494,
-0.005567355081439018,
-0.024914901703596115,
0.03241701051592827,
0.053304463624954224,
0.0453285351395607,
0.001288191182538867,
0.008430002257227898,
0.015892626717686653,
0.007936442270874977,
-0.008854463696479797,
-0.02367112971842289,
-0.03855689615011215,
0.02519129402935505,
0.0038250889629125595,
0.013197790831327438,
0.005927653983235359,
0.018064290285110474,
0.018607206642627716,
-0.008464551530778408,
0.0016398526495322585,
0.004163177218288183,
-0.049237530678510666,
-0.03905045613646507,
0.0007310855435207486,
0.010354885831475258,
0.02971230261027813,
0.05018516629934311,
-0.049237530678510666,
-0.01752137392759323,
-0.045723386108875275,
0.026237642392516136,
-0.05101434513926506,
-0.03227881342172623,
0.026099445298314095,
0.06676878035068512,
0.05484437197446823,
-0.034647900611162186,
-0.0008402856765314937,
0.05942460522055626,
-0.02633635327219963,
-0.012881912291049957,
0.05895078927278519,
0.03561528027057648,
0.055949945002794266,
-0.02752089686691761,
0.011539429426193237,
0.012546291574835777,
-0.06171472370624542,
-0.010512825101613998,
-0.05152764916419983,
-0.06242544949054718,
0.028330335393548012,
-0.032673660665750504,
0.010009394027292728,
0.06274133175611496,
-0.011105096898972988,
-0.029949212446808815,
0.020611058920621872,
-0.004617252387106419,
0.009570125490427017,
-0.007650177925825119,
-0.029633333906531334,
-0.022289162501692772,
-0.031469374895095825,
0.009747806936502457,
-0.012625261209905148,
-0.008425066247582436,
0.02045311965048313,
0.0361088402569294,
-0.04276202619075775,
0.006179369520395994,
-0.003714037826284766,
-0.07695585489273071,
-0.014935120940208435,
-0.05223837494850159,
0.03589167073369026,
-0.07790348678827286,
0.009979779832065105,
-0.04884268343448639,
-0.04173542186617851,
0.011371619068086147,
-0.016613224521279335,
-0.011697368696331978,
0.024223918095231056,
-0.011174195446074009,
-0.03342387452721596,
0.010029136203229427,
0.001240686047822237,
-0.03040328621864319,
0.010779347270727158,
-0.037865910679101944,
0.02870544046163559,
0.0024492908269166946,
-0.03018612042069435,
0.023690873757004738,
0.07411294430494308,
0.010196946561336517,
0.042525116354227066,
0.002554172184318304,
-0.05314652621746063,
0.03723415359854698,
0.031804997473955154,
-0.035161204636096954,
-0.05883233621716499,
0.01617889292538166,
-0.0672031119465828,
-0.0027861453127115965,
0.00020529005269054323,
0.005527870263904333,
0.004039787221699953,
-0.005779585801064968,
0.02870544046163559,
-0.009086436592042446,
0.028744926676154137,
0.03056122548878193,
-0.06143832951784134,
-0.09871196746826172,
-0.02886337973177433,
0.00438527949154377,
-0.021045392379164696,
-0.07300737500190735,
-0.033660780638456345,
0.03622729331254959,
0.028152653947472572,
0.03589167073369026,
-0.029830757528543472,
0.04465729370713234,
0.021262558177113533,
-0.04347275197505951,
0.022684011608362198,
-0.015211515128612518,
0.01769905723631382,
-0.041695937514305115,
-0.007625499740242958,
-0.013266888447105885,
-0.0587533637881279,
-0.03486506640911102,
0.03628652170300484,
0.021420497447252274,
-0.007586014922708273,
0.05571303516626358,
-0.051961980760097504,
-0.0402349978685379,
-0.05748985335230827,
-0.020591316744685173,
-0.03804359212517738,
-0.006890095770359039,
0.06155678629875183,
-0.0038472991436719894,
0.02400675043463707,
0.019081024453043938,
-0.042011816054582596,
0.042367178946733475,
-0.029159516096115112,
0.04295944795012474,
0.00822270754724741,
0.012477193027734756,
0.06163575500249863,
0.034667644649744034,
-0.015468166209757328,
0.026316611096262932,
0.031627316027879715,
-0.07194128632545471,
0.013138563372194767,
0.004372940398752689,
0.0017015476478263736,
0.007970991544425488,
-0.006865417584776878,
0.003363610478118062,
-0.10258147865533829,
0.02838956192135811,
-0.036503687500953674,
0.011805951595306396,
0.0008637297432869673,
0.0029860371723771095,
-0.009974844753742218,
-0.012684488669037819,
0.017906351014971733,
0.02785651758313179,
-0.011411103419959545,
-0.024223918095231056,
0.026375839486718178,
-0.052949100732803345,
0.02181534469127655,
-0.019969431683421135,
0.059819452464580536,
0.03137066587805748,
-0.04584183916449547,
-0.026217900216579437,
0.033147480338811874,
0.06120142340660095,
0.03085736185312271,
-0.057331912219524384,
0.003425305476412177,
-0.041853874921798706,
0.03506249189376831,
-0.08197042346000671,
-0.05843748524785042,
0.022071996703743935,
-0.022091738879680634,
-0.042880479246377945,
-0.02517155185341835,
0.008015411905944347,
0.0029909727163612843,
-0.10329220443964005,
0.010868187993764877,
0.0020371682476252317,
-0.042209237813949585,
0.004281631670892239,
-0.019505485892295837,
0.02485567331314087,
0.013454441912472248,
0.009086436592042446,
-0.04351223632693291,
0.0871824100613594,
-0.013869032263755798,
0.01032527256757021,
0.04149851202964783,
0.013099078088998795,
0.02020633965730667,
0.013602509163320065,
-0.0012647471157833934,
0.033660780638456345,
0.014747568406164646,
0.015507650561630726,
-0.013780191540718079,
0.007398462388664484,
-0.018715789541602135,
0.0587138794362545,
0.031804997473955154,
0.00015416034148074687,
0.011875050142407417,
-0.01662309654057026,
0.02398700825870037,
0.008405324071645737,
-0.009950166568160057,
0.06894043833017349,
-0.00898278970271349,
-0.07446830719709396,
0.06171472370624542,
-0.019791750237345695,
-0.05077743902802467,
0.01819261536002159,
0.017156140878796577,
-0.033956918865442276,
0.008671846240758896,
-0.018380168825387955,
0.04761865362524986,
-0.023276282474398613,
-0.01125316508114338,
-0.0180544201284647,
-0.03912942484021187,
-0.014481046237051487,
0.03002818115055561,
0.04631565511226654,
-0.03948478773236275,
-0.019140250980854034,
0.0486452579498291,
0.013237275183200836,
0.0006595193408429623,
0.031114013865590096,
0.014579758048057556,
-0.042525116354227066,
-0.08094381541013718,
0.02838956192135811,
-0.011697368696331978,
-0.03662214055657387,
-0.003812749870121479,
0.02199302799999714,
-0.0520409494638443,
-0.026099445298314095,
0.011796080507338047,
-0.041380058974027634,
0.051409196108579636,
-0.002133412519469857,
0.009713257662951946,
-0.0018508494831621647,
-0.05977996811270714,
-0.030936332419514656,
-0.05851645767688751,
0.02566511183977127,
0.06645289808511734,
0.024263402447104454,
0.022605041041970253,
0.004881307017058134,
-0.02349344827234745,
0.017017943784594536,
-0.003889251733198762,
-0.06807177513837814,
-0.0019619003869593143,
0.05721345916390419,
0.024105463176965714,
0.013089207001030445,
0.007097390480339527,
0.030817877501249313,
-0.008745880797505379,
0.011657883413136005,
0.02179560251533985,
-0.0218350887298584,
-0.015606362372636795,
-0.028429048135876656,
0.005137958098202944,
-0.03843844309449196,
-0.0063175661489367485,
0.018251843750476837,
0.06313617527484894,
-0.014954863116145134,
0.0033685460221022367,
-0.009505962952971458,
0.008508971892297268
] |
20,866 | precession.precession | eval_m1 |
Mass of the heavier black hole in units of the total mass.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
m1: float
Mass of the primary (heavier) black hole.
Examples
--------
``m1 = precession.eval_m1(q)``
| def eval_m1(q):
"""
Mass of the heavier black hole in units of the total mass.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
m1: float
Mass of the primary (heavier) black hole.
Examples
--------
``m1 = precession.eval_m1(q)``
"""
q = np.atleast_1d(q).astype(float)
m1 = 1/(1+q)
return m1
| (q) | [
0.028745535761117935,
0.0774986669421196,
0.02718079276382923,
0.00027237384347245097,
0.050739824771881104,
-0.0008966497262008488,
0.01904061995446682,
-0.054572563618421555,
-0.0609721802175045,
0.06209738925099373,
0.05351768061518669,
0.023822752758860588,
0.010329052805900574,
0.07057160884141922,
-0.019990013912320137,
0.026372050866484642,
0.025897353887557983,
0.0014537592651322484,
0.03048609010875225,
-0.016113322228193283,
-0.001986694522202015,
0.001960322493687272,
0.054396748542785645,
0.06473459303379059,
-0.03822189196944237,
-0.03779993951320648,
0.01739676296710968,
-0.022433824837207794,
-0.06258966773748398,
-0.043496303260326385,
-0.010478494688868523,
0.03234971687197685,
0.013942023739218712,
0.02549298293888569,
0.002834995510056615,
-0.005845804698765278,
0.048278432339429855,
0.006355664227157831,
-0.13094602525234222,
-0.02299642749130726,
0.00040327259921468794,
0.07341978698968887,
0.011252074502408504,
0.03663956746459007,
0.009827984496951103,
-0.0004785428463947028,
0.05386930704116821,
0.02784888632595539,
-0.015436440706253052,
0.06350389868021011,
-0.010162030346691608,
0.018091225996613503,
-0.014425511471927166,
-0.028534559532999992,
-0.019972432404756546,
0.04708290100097656,
-0.005116177722811699,
-0.04588736966252327,
-0.009924681857228279,
-0.029589440673589706,
0.013177234679460526,
0.024385355412960052,
0.018478017300367355,
-0.025598470121622086,
0.02802469953894615,
-0.011005936190485954,
0.035707756876945496,
0.060198601335287094,
-0.00910714827477932,
0.006856733001768589,
-0.05052885040640831,
0.0050590382888913155,
-0.0227151270955801,
0.007911615073680878,
0.039522912353277206,
0.04831359535455704,
0.018847225233912468,
-0.02800711803138256,
0.0367802195250988,
0.02686432935297489,
0.027110468596220016,
0.02088666334748268,
-0.006992988754063845,
-0.10330811142921448,
-0.08206982165575027,
0.018267041072249413,
0.0029514720663428307,
0.0016130903968587518,
-0.0006911674863658845,
0.0003093221748713404,
-0.014109047129750252,
-0.00683036120608449,
-0.014662859961390495,
0.062202878296375275,
0.05049368739128113,
0.035338547080755234,
-0.02767307125031948,
-0.018671412020921707,
-0.009898309595882893,
0.008285218849778175,
-0.016130903735756874,
0.08326535671949387,
-0.0019163689576089382,
-0.010065332986414433,
0.018091225996613503,
-0.004988712724298239,
0.010698261670768261,
-0.03692087158560753,
-0.00318882055580616,
0.012438816949725151,
-0.07215393334627151,
-0.01119054015725851,
-0.11540409177541733,
-0.010751006193459034,
-0.028710372745990753,
0.0047865272499620914,
-0.082210473716259,
0.020077921450138092,
0.03839770704507828,
0.03546161577105522,
0.06593012809753418,
0.01400355901569128,
-0.014996905811131,
0.00014532098430208862,
0.009256590157747269,
0.010329052805900574,
0.0337386429309845,
-0.039522912353277206,
0.01398597750812769,
-0.019638387486338615,
-0.011893794871866703,
0.04708290100097656,
-0.019919689744710922,
0.05137275531888008,
-0.024736983701586723,
0.00762591790407896,
-0.04623899608850479,
-0.08263242244720459,
0.07988972961902618,
-0.005309572909027338,
-0.013062955811619759,
0.01856592297554016,
0.021589918062090874,
-0.011445470154285431,
-0.012711328454315662,
-0.016016624867916107,
0.027057724073529243,
0.013467326760292053,
-0.04820811003446579,
0.017625320702791214,
-0.013643140904605389,
0.06751245260238647,
0.12602323293685913,
-0.07370109111070633,
0.03396720066666603,
0.007775359787046909,
0.053271543234586716,
-0.027057724073529243,
0.016508903354406357,
-0.05190019682049751,
-0.012720119208097458,
0.014645278453826904,
-0.002925100037828088,
0.010654308833181858,
0.006861128378659487,
-0.03927677497267723,
-0.055592283606529236,
-0.024068892002105713,
-0.023594195023179054,
0.019269177690148354,
0.03298264369368553,
-0.032683759927749634,
-0.014407929964363575,
-0.013476117514073849,
-0.010311472229659557,
0.02151959389448166,
-0.04950913041830063,
0.020113084465265274,
-0.02633688785135746,
0.007230337243527174,
0.043672114610672,
-0.0278313048183918,
-0.0170627161860466,
-0.046449970453977585,
0.026389632374048233,
0.05735041946172714,
-0.008447847329080105,
0.03591873124241829,
-0.009581845253705978,
0.02136136032640934,
0.03811640292406082,
-0.04008551687002182,
-0.0177044365555048,
-0.015286998823285103,
0.003903063479810953,
-0.03296506404876709,
0.06065571680665016,
-0.015357323922216892,
0.01424090750515461,
0.011832259595394135,
-0.04057779535651207,
-0.003483308246359229,
-0.01956806145608425,
0.028376325964927673,
-0.013194816187024117,
-0.018917551264166832,
-0.07201328128576279,
0.03125967085361481,
0.00745449960231781,
-0.030099300667643547,
0.0053183636628091335,
0.03723733499646187,
-0.04395341873168945,
0.013203606940805912,
-0.009370869025588036,
0.00625017611309886,
0.04986075684428215,
-0.04107007384300232,
0.050247546285390854,
0.01854834146797657,
-0.030099300667643547,
0.031716786324977875,
0.0069138724356889725,
0.027796141803264618,
-0.018829643726348877,
-0.004694224800914526,
-0.032367296516895294,
0.013194816187024117,
-0.02201187238097191,
0.007999521680176258,
0.05675265192985535,
-0.02649511955678463,
0.0285169780254364,
-0.07735801488161087,
0.003375622443854809,
0.0321563221514225,
-0.01166523713618517,
0.01193774864077568,
-0.08410926163196564,
0.044973138719797134,
0.023787589743733406,
-0.016271555796265602,
-0.009335706010460854,
0.06832119077444077,
0.006118315737694502,
-0.05587358400225639,
-0.04887619987130165,
0.027708234265446663,
-0.02334805577993393,
0.040120679885149,
-0.06839151680469513,
-0.018284622579813004,
0.007472081109881401,
-0.001338381553068757,
0.04884103685617447,
-0.018513180315494537,
-0.01904061995446682,
0.02681158483028412,
0.01184105034917593,
0.001384532661177218,
0.029378464445471764,
-0.06192157417535782,
0.04328532516956329,
0.012368491850793362,
-0.05443191155791283,
0.05896790325641632,
-0.053763821721076965,
0.07862387597560883,
0.018812062218785286,
-0.020833920687437057,
0.01840769127011299,
0.0041404119692742825,
0.05386930704116821,
-0.04310951381921768,
-0.008711567148566246,
-0.004228318575769663,
0.016667135059833527,
0.016693508252501488,
0.018020901829004288,
0.0037338428664952517,
-0.019585642963647842,
-0.08720357716083527,
0.04293369874358177,
0.009441194124519825,
-0.02549298293888569,
0.03811640292406082,
0.0038283427711576223,
-0.04434020817279816,
0.03178711235523224,
0.021941546350717545,
0.0002528695040382445,
-0.006755640264600515,
-0.040120679885149,
-0.0050766197964549065,
0.0483839213848114,
-0.025053447112441063,
-0.035707756876945496,
-0.01904061995446682,
0.02617865614593029,
0.05893274396657944,
-0.003865703009068966,
0.03217390179634094,
-0.045289602130651474,
-0.0008059957763180137,
-0.07127486169338226,
-0.010302681475877762,
-0.0013636547373607755,
0.011647655628621578,
0.011005936190485954,
-0.002613030606880784,
-0.00943240337073803,
0.015805648639798164,
-0.0692354217171669,
0.03115418180823326,
-0.003839330980554223,
-0.0038063658867031336,
0.06895412504673004,
0.047153227031230927,
0.04722355306148529,
-0.013643140904605389,
0.030556416139006615,
0.024385355412960052,
0.038503192365169525,
0.023137079551815987,
-0.023488705977797508,
-0.02665335312485695,
-0.024086473509669304,
0.02217010408639908,
0.0037997730541974306,
-0.024455681443214417,
-0.019321922212839127,
0.011304819025099277,
-0.009880728088319302,
0.0025053448043763638,
-0.03906579688191414,
-0.044621508568525314,
0.047645505517721176,
-0.05552195757627487,
-0.0278313048183918,
-0.046133507043123245,
0.03196292370557785,
-0.028903767466545105,
0.02102731540799141,
0.020640524104237556,
-0.012702537700533867,
0.014504628255963326,
0.01439913921058178,
-0.054080285131931305,
0.02667093463242054,
-0.007573173847049475,
-0.03094320558011532,
-0.042160119861364365,
0.01773080788552761,
-0.023822752758860588,
0.02995864860713482,
0.02818293124437332,
-0.02602042257785797,
-0.04325016215443611,
-0.04785647988319397,
-0.0285169780254364,
0.0334397591650486,
0.02100973390042782,
-0.06811021268367767,
-0.011471842415630817,
-0.016007835045456886,
-0.014029931277036667,
-0.03663956746459007,
0.03247278556227684,
-0.002082293154671788,
0.008381917141377926,
-0.03892514482140541,
0.03351008519530296,
-0.09908858686685562,
-0.00468103913590312,
-0.007023755926638842,
0.01923401467502117,
-0.005727130454033613,
0.015497975051403046,
-0.022310754284262657,
0.0338265486061573,
-0.011902585625648499,
-0.04609834402799606,
-0.06712565571069717,
-0.016289137303829193,
-0.02879827842116356,
0.038995470851659775,
-0.020464710891246796,
-0.031066276133060455,
-0.016526484861969948,
0.005485386587679386,
0.059987623244524,
-0.002991029992699623,
-0.0001381785550620407,
0.019251596182584763,
-0.056717488914728165,
0.09557230770587921,
0.033545248210430145,
-0.028042281046509743,
-0.11885004490613937,
0.013309095054864883,
0.006531477905809879,
-0.028235675767064095,
-0.028710372745990753,
-0.0050766197964549065,
-0.04289853572845459,
-0.07616247981786728,
-0.009678542613983154,
0.04388309270143509,
-0.023277729749679565,
0.03572533652186394,
0.021326197311282158,
-0.015225463546812534,
-0.006245780736207962,
0.03326394781470299,
-0.043672114610672,
-0.05186503380537033,
0.05728009343147278,
-0.14233875274658203,
-0.007296267431229353,
0.08263242244720459,
0.000831269018817693,
-0.03762412443757057,
-0.0027602745685726404,
0.0012713526375591755,
0.0004332158714532852,
-0.008619265630841255,
0.017669273540377617,
0.0030481694266200066,
-0.017484668642282486,
0.008408288471400738,
-0.018442854285240173,
0.011375144124031067,
-0.03713184595108032,
-0.055592283606529236,
-0.01935708522796631,
0.00810500979423523,
0.012605840340256691,
0.019972432404756546,
0.033861711621284485,
-0.015946300700306892,
0.03846802935004234,
0.01854834146797657,
0.03544403612613678,
-0.039663564413785934,
-0.05481870099902153,
-0.03903063386678696,
0.012605840340256691,
-0.006043594796210527,
-0.049614619463682175,
-0.033193621784448624,
-0.04335565119981766,
0.0022679963149130344,
-0.0009230217547155917,
-0.02269754558801651,
0.07967875897884369,
-0.01607816107571125,
-0.02136136032640934,
-0.017994528636336327,
0.059530507773160934,
0.011076261289417744,
-0.0013537652557715774,
0.06111283227801323,
-0.028059862554073334,
0.02686432935297489,
-0.0030877275858074427,
0.06280064582824707,
0.02283819578588009,
0.030890461057424545,
-0.0037184590473771095,
-0.037835102528333664,
0.06318743526935577,
0.0560493990778923,
0.020816339179873466,
-0.016517695039510727,
0.020113084465265274,
0.018442854285240173,
-0.05629553645849228,
0.005678781773895025,
0.0814368948340416,
-0.0006466646445915103,
0.01724732108414173,
-0.023295311257243156,
0.04476216062903404,
0.013713466003537178,
-0.016667135059833527,
-0.013229978270828724,
-0.03808123990893364,
-0.025598470121622086,
0.014715604484081268,
-0.0025778680574148893,
-0.048630062490701675,
0.07559987902641296,
0.06044473871588707,
0.04599285498261452,
-0.057913023978471756,
0.0014174977550283074,
0.03853835538029671,
0.0050942013040184975,
0.04135137423872948,
0.019814200699329376,
-0.002259205561131239,
0.04592252895236015,
-0.08199949562549591,
0.019603224471211433,
-0.06301161646842957,
0.05397479608654976,
-0.02749725803732872,
-0.01591992750763893,
-0.01969113200902939,
0.03326394781470299,
-0.026108330115675926,
-0.014882626943290234,
-0.03512757271528244,
0.021660244092345238,
-0.030046556144952774,
-0.0078017315827310085,
-0.01323876902461052,
0.01722973957657814,
-0.029923487454652786,
0.0003873395035043359,
-0.017607739195227623,
0.02454358898103237,
0.017018763348460197,
-0.04286337271332741,
-0.04490281268954277,
-0.0011515795486047864,
-0.026618190109729767,
-0.04655545949935913,
0.023488705977797508,
0.034353990107774734,
-0.002630612114444375,
-0.0027317048516124487,
0.02155475690960884,
0.008623660542070866,
-0.0022877752780914307,
0.0037228544242680073,
-0.023277729749679565,
-0.03595389425754547,
-0.017475878819823265,
0.017511041834950447,
-0.01398597750812769,
-0.04395341873168945,
0.10668373852968216,
0.03132999688386917,
-0.016684716567397118,
-0.0041404119692742825,
0.00786326639354229,
0.025387493893504143,
-0.0261610746383667,
0.0020075724460184574,
-0.04135137423872948,
-0.07785028964281082,
-0.05893274396657944,
-0.00011331740824971348,
0.06635207682847977,
0.044621508568525314,
0.07756899297237396,
-0.006579826585948467,
0.02879827842116356,
-0.012561886571347713,
-0.005098596215248108,
-0.0028459837194532156,
0.10787926614284515,
-0.004215132910758257,
-0.04722355306148529,
-0.016192439943552017,
-0.017352810129523277,
0.00554252602159977,
0.021431686356663704,
-0.01151579525321722,
-0.02201187238097191,
0.021730570122599602,
0.05499451607465744,
0.020939407870173454,
-0.04518411308526993,
-0.01923401467502117,
0.011375144124031067,
-0.07014965265989304,
-0.07004416733980179,
-0.002439414616674185,
0.006825965829193592,
-0.013801373541355133,
0.0010861988412216306,
-0.008425869978964329,
-0.0033668316900730133,
-0.01919885352253914,
-0.03300022706389427,
0.007718220353126526,
-0.060726042836904526,
0.05418577417731285,
-0.006329291965812445,
-0.04782131686806679,
0.023453542962670326,
0.014056302607059479,
0.009485147893428802,
-0.026758840307593346,
0.003149262396618724,
-0.06111283227801323,
-0.02881585992872715,
0.02570395916700363,
0.017484668642282486,
-0.01870657503604889,
0.010891657322645187,
0.00642159441486001,
-0.010082913562655449,
0.01424090750515461,
-0.015664998441934586,
0.00459752744063735,
-0.0004532696329988539,
-0.059389859437942505,
-0.001116416766308248,
0.018179133534431458,
-0.018688993528485298,
0.06744212657213211,
-0.002413042588159442,
0.010381797328591347,
-0.04272272065281868,
-0.0050766197964549065,
0.0025141355581581593,
0.028851022943854332,
-0.03351008519530296,
0.014196953736245632,
0.012491561472415924,
-0.05249796062707901,
0.05320121720433235,
-0.013599187135696411,
0.004162388853728771,
-0.10147964954376221,
-0.02057019993662834,
-0.015796858817338943,
0.0037316451780498028,
0.06547301262617111,
0.006395222153514624,
-0.052076008170843124,
-0.03477594256401062,
0.0007340220618061721,
-0.05063433572649956,
-0.014478255994617939,
-0.048454247415065765,
0.04173816367983818,
-0.043812766671180725,
0.06677403301000595,
0.004905201494693756,
-0.012553095817565918,
0.0010136757045984268,
-0.008250056765973568,
-0.042300768196582794,
-0.024613913148641586,
0.014935371465981007,
-0.02368210069835186,
-0.058721765875816345,
0.012895932421088219,
0.031382739543914795,
0.08502349257469177,
0.048770710825920105,
0.0014109046896919608,
-0.037518639117479324,
-0.009353287518024445,
-0.08980562537908554,
-0.025211680680513382,
0.025440238416194916,
-0.0338265486061573,
-0.05949534475803375,
0.021449267864227295,
0.04036681726574898,
0.01548918429762125,
0.045289602130651474,
-0.060515064746141434,
-0.06367971003055573,
-0.04416439309716225,
-0.0011054284404963255,
0.030538834631443024,
0.06578947603702545,
-0.07057160884141922,
-0.021607499569654465,
0.012166306376457214,
0.011243284679949284,
0.020992152392864227,
-0.004773341119289398,
0.05137275531888008,
0.00785887148231268,
-0.006909477058798075,
0.02368210069835186,
0.06199190020561218,
0.03730766102671623,
-0.003276727395132184,
-0.01773959957063198,
0.025264425203204155,
-0.02948395162820816,
0.027778560295701027,
0.0036745057441294193,
0.015788067132234573,
0.022785451263189316,
0.010469703935086727,
0.034389153122901917,
0.03048609010875225,
-0.035672593861818314,
0.025053447112441063,
-0.006201827432960272,
0.021923964843153954,
0.017634110525250435,
0.00566999102011323,
-0.03368590027093887,
0.026635771617293358,
-0.029888324439525604,
0.019093364477157593,
0.01923401467502117,
0.039487749338150024,
-0.06684435904026031,
-0.032560691237449646,
-0.013317885808646679,
0.06898928433656693,
0.03628794103860855,
0.032402459532022476,
0.017792344093322754,
0.04609834402799606,
0.038186728954315186,
0.028921348974108696,
0.03607696667313576,
0.012816816568374634,
-0.017423134297132492,
-0.026459956541657448,
0.04782131686806679,
-0.0029800417833030224,
-0.035514362156391144,
0.04226560518145561,
0.03829221799969673,
-0.023980984464287758,
-0.032701343297958374,
-0.02551056444644928,
-0.026758840307593346,
0.0038459240458905697,
-0.0032305761706084013,
0.05569777265191078,
0.05186503380537033,
-0.03393203765153885,
0.0028371931985020638,
-0.05808883532881737,
-0.0014691429678350687,
-0.0008329172851517797,
-0.019761456176638603,
0.014434302225708961,
0.023154661059379578,
-0.01724732108414173,
-0.013353047892451286,
-0.019005456939339638,
-0.004913992248475552,
0.08150722086429596,
0.018847225233912468,
0.00020410868455655873,
0.022644801065325737,
-0.007573173847049475,
0.029079580679535866,
0.047434527426958084,
-0.002628414425998926,
0.005155736114829779,
0.048278432339429855,
-0.0017614332027733326,
0.016851739957928658,
0.01299263071268797,
-0.03546161577105522,
-0.00041288742795586586,
0.00786326639354229,
0.05520549416542053,
-0.037659287452697754,
-0.012227840721607208,
0.030257532373070717,
-0.004650271497666836
] |
20,867 | precession.precession | eval_m2 |
Mass of the lighter black hole in units of the total mass.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
m2: float
Mass of the secondary (lighter) black hole.
Examples
--------
``m2 = precession.eval_m2(q)``
| def eval_m2(q):
"""
Mass of the lighter black hole in units of the total mass.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
Returns
-------
m2: float
Mass of the secondary (lighter) black hole.
Examples
--------
``m2 = precession.eval_m2(q)``
"""
q = np.atleast_1d(q).astype(float)
m2 = q/(1+q)
return m2
| (q) | [
0.06826918572187424,
0.0642850250005722,
0.006788333412259817,
0.007340194191783667,
0.054163094609975815,
-0.0007363749318756163,
0.020871995016932487,
-0.05211717262864113,
-0.080472931265831,
0.0468408465385437,
0.06812561303377151,
0.019992606714367867,
-0.006685140077024698,
0.06586433202028275,
0.007160727400332689,
0.03478067368268967,
0.03108365833759308,
-0.04888676851987839,
0.033991020172834396,
0.016286617144942284,
-0.02580733224749565,
-0.015416202135384083,
0.03754446282982826,
0.02499973215162754,
-0.03662918508052826,
-0.026184212416410446,
-0.011889678426086903,
-0.004697544500231743,
-0.07781682163476944,
-0.044041164219379425,
-0.005388492252677679,
0.0064787534065544605,
0.03901609405875206,
0.04655370116233826,
0.019059378653764725,
0.0019270252669230103,
0.05150698497891426,
0.029019789770245552,
-0.14500921964645386,
-0.011916598305106163,
-0.004329637624323368,
0.047989435493946075,
0.014662441797554493,
0.04375401884317398,
0.010534703731536865,
-0.015766162425279617,
0.02101556770503521,
0.004273554310202599,
-0.010418050922453403,
0.0543784536421299,
0.005222485400736332,
-0.017623644322156906,
-0.02964792400598526,
-0.00418382091447711,
-0.011010291054844856,
0.03797518461942673,
-0.022846128791570663,
-0.02948640286922455,
0.01363948080688715,
-0.04440009966492653,
0.02026180736720562,
-0.01673528365790844,
-0.005397465545684099,
0.01363050751388073,
-0.0045831347815692425,
0.010355236940085888,
0.017354443669319153,
0.058793339878320694,
-0.008183687925338745,
0.05376826599240303,
-0.04766639322042465,
0.016232775524258614,
-0.011117971502244473,
0.003631960367783904,
0.016941670328378677,
0.044794924557209015,
0.051076263189315796,
-0.008915015496313572,
0.031011871993541718,
0.030545257031917572,
0.00543784536421299,
0.012401158921420574,
0.01627764292061329,
-0.09224595874547958,
-0.09109736979007721,
0.031047765165567398,
0.04073897376656532,
0.007483767345547676,
-0.068699911236763,
-0.036970172077417374,
-0.05283503979444504,
-0.0156136155128479,
-0.0030038263648748398,
0.03194509819149971,
0.02408445067703724,
0.010435997508466244,
-0.042533643543720245,
-0.013801001012325287,
-0.011037210933864117,
-0.015748215839266777,
0.007874107919633389,
0.08241117745637894,
0.01747109740972519,
-0.0023375556338578463,
0.050932690501213074,
-0.04116969555616379,
-0.021374501287937164,
-0.006734493654221296,
0.006106359418481588,
0.023887038230895996,
-0.06507468223571777,
0.023240957409143448,
-0.11442805826663971,
-0.0009259367943741381,
-0.07738610357046127,
0.02343836985528469,
-0.05911637842655182,
0.04766639322042465,
0.080472931265831,
0.047881755977869034,
0.036862488836050034,
0.01202427875250578,
0.003636447014287114,
0.00205938215367496,
-0.018969645723700523,
0.022307729348540306,
0.018449191004037857,
-0.03438584879040718,
0.012625493109226227,
-0.0027996827848255634,
-0.020046446472406387,
0.007165214046835899,
0.007618367671966553,
0.026166265830397606,
-0.020566901192069054,
-0.015236735343933105,
-0.01712113805115223,
-0.07214567065238953,
0.09841962158679962,
0.003970704041421413,
-0.016878856346011162,
0.023581944406032562,
-0.020154127851128578,
-0.05868566036224365,
-0.05671152472496033,
0.001967405201867223,
0.04504618048667908,
0.03478067368268967,
-0.0025125357788056135,
0.01959777995944023,
-0.019902873784303665,
0.0653977170586586,
0.15922299027442932,
-0.034672994166612625,
0.04834836721420288,
0.022146208211779594,
0.06636684387922287,
-0.04436420649290085,
0.011091051623225212,
-0.0450102835893631,
-0.02342042326927185,
-0.016708362847566605,
-0.012733172625303268,
0.0001904031087178737,
0.05039428919553757,
-0.02252309024333954,
0.0071786739863455296,
-0.02720717340707779,
0.0013953547459095716,
0.02272050268948078,
-0.029988911002874374,
-0.049496956169605255,
-0.020064393058419228,
-0.04217470809817314,
-0.00427131075412035,
0.026955921202898026,
-0.05355290696024895,
-0.0008687317022122443,
0.0034524935763329268,
-0.007721561007201672,
0.05470149591565132,
-0.037006065249443054,
0.0029454997275024652,
-0.03923145309090614,
0.01084877084940672,
0.06984850019216537,
-0.0029477430507540703,
0.016528896987438202,
-0.008771441876888275,
0.006667193491011858,
0.05994192883372307,
-0.040846653282642365,
-0.00037631954182870686,
-0.02718922682106495,
-0.005783319007605314,
-0.02171548828482628,
0.05778832361102104,
0.02898389659821987,
0.026920028030872345,
0.0468408465385437,
-0.026309840381145477,
0.02180522121489048,
-0.054916854947805405,
0.04698441922664642,
0.027853254228830338,
-0.03679070249199867,
-0.058147259056568146,
0.02033359371125698,
0.000574293895624578,
0.0018294401234015822,
-0.027530213817954063,
0.05707045644521713,
-0.01950804702937603,
-0.012320399284362793,
0.05628080293536186,
0.045476898550987244,
0.03189126029610634,
-0.01624174974858761,
-0.0008176958071999252,
0.02503562532365322,
-0.00037968455580994487,
-0.008556081913411617,
-0.001230469555594027,
0.03693427890539169,
-0.018933752551674843,
0.014913694933056831,
-0.007254947442561388,
0.01019371673464775,
-0.010741090402007103,
0.03750856965780258,
0.03503192961215973,
-0.010050143115222454,
0.03998521342873573,
-0.0626339316368103,
0.004233174491673708,
0.04780996963381767,
-0.01091158390045166,
0.017740298062562943,
-0.09540457278490067,
0.06421323865652084,
0.01599946990609169,
-0.04375401884317398,
-0.040128786116838455,
0.0624544620513916,
-0.003957244101911783,
-0.042318280786275864,
-0.005209025461226702,
-0.017201896756887436,
0.014725254848599434,
0.07300711423158646,
-0.06880758702754974,
-0.010489837266504765,
0.01624174974858761,
0.02180522121489048,
0.011997358873486519,
-0.0438975915312767,
-0.03131696581840515,
-0.003753100521862507,
0.007609394378960133,
0.008309314958751202,
0.03135285899043083,
-0.04307204484939575,
-0.0011317627504467964,
-0.003634203691035509,
-0.029217202216386795,
0.05527579039335251,
-0.07002796232700348,
0.04465135186910629,
0.029342830181121826,
-0.030186323449015617,
0.04314383119344711,
-0.026758506894111633,
0.03192715346813202,
-0.004488914739340544,
-0.008008708246052265,
0.012607545591890812,
0.037759825587272644,
0.01444708090275526,
0.032393764704465866,
0.000861440843436867,
-0.024479277431964874,
-0.05534757673740387,
0.007295327261090279,
-0.013352333568036556,
-0.018215885385870934,
0.029324883595108986,
-0.005554499104619026,
-0.03740089014172554,
0.05470149591565132,
0.010498810559511185,
-0.022074421867728233,
-0.024766424670815468,
-0.02896595001220703,
0.054234880954027176,
0.0841340571641922,
-0.0202977005392313,
-0.05746528506278992,
-0.012230665422976017,
0.036144621670246124,
0.04203113541007042,
-0.03181947022676468,
0.040954332798719406,
-0.019041432067751884,
0.0420670285820961,
0.0029567163437604904,
0.005191078409552574,
0.03589336946606636,
0.0025080491323024035,
0.00194833695422858,
0.01633148267865181,
-0.018933752551674843,
0.004688571207225323,
-0.061880167573690414,
0.022433355450630188,
-0.016932697966694832,
0.016448136419057846,
0.026004746556282043,
0.04192345589399338,
0.021589862182736397,
-0.017569804564118385,
0.02647135965526104,
-0.014725254848599434,
0.0402364656329155,
0.013397200033068657,
0.01861071214079857,
-0.013477960601449013,
-0.05864976719021797,
0.0376521460711956,
0.07796040177345276,
-0.009861703030765057,
-0.011135918088257313,
0.019202953204512596,
-0.019023485481739044,
0.010794931091368198,
-0.009161782450973988,
-0.0841340571641922,
0.04142094776034355,
-0.049784105271101,
0.0011968195904046297,
-0.027745574712753296,
0.003885457292199135,
-0.03341672569513321,
0.017363417893648148,
-0.006258906330913305,
-0.00720559386536479,
0.02173343487083912,
0.0017913035117089748,
-0.06148534268140793,
0.005065451841801405,
-0.011117971502244473,
-0.025215091183781624,
-0.04694852605462074,
-0.006254419684410095,
-0.02659698761999607,
-0.03596515581011772,
0.042605429887771606,
-0.03984164074063301,
-0.025968853384256363,
-0.03499603644013405,
-0.018431244418025017,
-0.000980898505076766,
0.07401213049888611,
-0.06101872771978378,
-0.015452095307409763,
0.0032461066730320454,
0.02338453009724617,
-0.05757296457886696,
0.042497750371694565,
0.008798361755907536,
-0.007340194191783667,
-0.04120558872818947,
0.019220899790525436,
-0.03562416881322861,
0.005267351865768433,
-0.0027323828544467688,
0.027889147400856018,
-0.0481330081820488,
0.008861175738275051,
0.02193084917962551,
0.03883662447333336,
-0.027781467884778976,
-0.038621265441179276,
-0.09045129269361496,
-0.02896595001220703,
0.004053707234561443,
0.06607969105243683,
-0.03433200716972351,
-0.012885719537734985,
-0.010714170522987843,
-0.0008995775715447962,
0.013836894184350967,
0.029271041974425316,
0.03743678331375122,
-0.009206648916006088,
-0.024658745154738426,
0.09856319427490234,
0.014276587404310703,
-0.03181947022676468,
-0.10186538100242615,
0.014294533990323544,
-0.04601529985666275,
0.010310370475053787,
0.018574818968772888,
-0.022325675934553146,
-0.0499635711312294,
-0.07910898327827454,
-0.027009760960936546,
0.08700552582740784,
-0.023510156199336052,
0.04073897376656532,
-0.026722613722085953,
-0.04113380238413811,
-0.013011346571147442,
0.005859592463821173,
-0.05039428919553757,
-0.04055950790643692,
0.0438975915312767,
-0.10904406011104584,
-0.0038091838359832764,
0.0798986405134201,
0.009341249242424965,
-0.052583787590265274,
0.010427024215459824,
-0.03370387479662895,
-0.014070200733840466,
-0.031011871993541718,
-0.007237000856548548,
0.026148319244384766,
-0.021356554701924324,
-0.021428341045975685,
-0.012553705833852291,
0.03644971549510956,
-0.022864077240228653,
-0.05132751911878586,
-0.0250715184956789,
-0.014536814764142036,
0.036342035979032516,
-0.01247294619679451,
0.055885978043079376,
-0.014159934595227242,
0.025430452078580856,
0.05211717262864113,
0.038621265441179276,
-0.019202953204512596,
-0.028445495292544365,
-0.06801793724298477,
0.020836101844906807,
0.01206914521753788,
-0.02175138145685196,
-0.033919233828783035,
-0.02733280137181282,
0.004908418282866478,
0.00838558841496706,
-0.003797967219725251,
0.06923831254243851,
-0.009960410185158253,
0.007959354668855667,
-0.03592926263809204,
0.05459381639957428,
0.0015400499105453491,
-0.0249817855656147,
0.0499635711312294,
-0.045512791723012924,
0.040846653282642365,
-0.017237789928913116,
0.05244021117687225,
0.045728154480457306,
-0.009148322977125645,
0.0062768529169261456,
-0.029881229624152184,
0.027853254228830338,
0.009996303357183933,
0.011153864674270153,
-0.0512557327747345,
0.02185906283557415,
0.03440379351377487,
-0.04924570396542549,
-0.01440221443772316,
0.08140616118907928,
-0.0005095176165923476,
-0.005047505255788565,
-0.019687512889504433,
-0.003461466869339347,
0.003311163280159235,
-0.004728951491415501,
-0.027781467884778976,
-0.030617043375968933,
-0.03027605637907982,
0.034726835787296295,
-0.030814457684755325,
-0.03329110145568848,
0.07501713931560516,
0.05911637842655182,
-0.0038091838359832764,
-0.05211717262864113,
0.015846922993659973,
0.022200049832463264,
0.02112324722111225,
0.01756083033978939,
0.02571759931743145,
-0.014608601108193398,
0.005074425134807825,
-0.049389276653528214,
0.0013246897142380476,
-0.06762310862541199,
0.033255208283662796,
-0.05434256047010422,
-0.01862865872681141,
-0.006949853617697954,
0.07132012397050858,
-0.00043969377293251455,
-0.0033986533526331186,
0.01204222533851862,
0.012365265749394894,
-0.019220899790525436,
-0.011252570897340775,
-0.025843225419521332,
0.03657534345984459,
0.00242055905982852,
-0.015640536323189735,
-0.017919763922691345,
-0.009861703030765057,
-0.009260489605367184,
-0.0696331337094307,
-0.00971812941133976,
-0.05617312341928482,
-0.0265431459993124,
-0.03208867087960243,
0.03413459286093712,
-0.051183946430683136,
-0.011369224637746811,
-0.0019786220509558916,
0.00001859514850366395,
-0.020584847778081894,
-0.03919555991888046,
-0.0032864867243915796,
0.0059582991525530815,
-0.010059116408228874,
-0.051686450839042664,
-0.009184216149151325,
-0.000399874581489712,
-0.036108728498220444,
0.06604380160570145,
0.03291422128677368,
-0.0360010489821434,
0.040882546454668045,
-0.016205856576561928,
-0.008609921671450138,
-0.025394558906555176,
-0.014976507984101772,
-0.026722613722085953,
-0.02657904103398323,
-0.03837001323699951,
-0.0073357075452804565,
0.037759825587272644,
0.03826233372092247,
0.04422063007950783,
-0.03808286413550377,
0.028194241225719452,
-0.024640798568725586,
-0.006267879623919725,
0.022917916998267174,
0.060444433242082596,
0.0024385058786720037,
-0.03255528584122658,
-0.018027445301413536,
-0.015254681929945946,
0.025089465081691742,
-0.024335704743862152,
-0.0002835015475284308,
-0.01177302561700344,
-0.0035153068602085114,
0.08793875575065613,
0.005814725998789072,
0.002875956241041422,
0.012867772951722145,
0.05796779319643974,
-0.06514646857976913,
-0.027063600718975067,
-0.02194879576563835,
0.01059751771390438,
0.03722142428159714,
0.01610714942216873,
0.0037463705521076918,
-0.0033941667061299086,
-0.04310793802142143,
-0.051758237183094025,
0.013029293157160282,
-0.030796511098742485,
0.04594351351261139,
0.017273684963583946,
-0.007829241454601288,
0.01668144389986992,
-0.05043018236756325,
-0.014025334268808365,
-0.04368223249912262,
-0.01324465312063694,
-0.014895748347043991,
-0.03138875216245651,
0.014043280854821205,
0.014474001713097095,
-0.033919233828783035,
0.0402364656329155,
-0.013899707235395908,
-0.03497808799147606,
-0.012374239042401314,
0.0034053833223879337,
-0.03959038481116295,
-0.04228238761425018,
-0.005173131823539734,
-0.018431244418025017,
0.013486933894455433,
-0.019274739548563957,
0.040092892944812775,
0.008852202445268631,
0.019633673131465912,
-0.033057793974876404,
-0.01008603721857071,
-0.007658747490495443,
0.030904190614819527,
-0.05373237282037735,
0.04759460687637329,
0.051040370017290115,
-0.023653730750083923,
0.03833412006497383,
-0.0010874569416046143,
-0.017991552129387856,
-0.07724253088235855,
-0.008143308572471142,
-0.006765900179743767,
-0.03199893981218338,
0.04375401884317398,
0.026184212416410446,
-0.06966903060674667,
-0.07232514023780823,
-0.019167060032486916,
-0.025161251425743103,
-0.012383212335407734,
-0.02955818921327591,
0.07006385922431946,
-0.02580733224749565,
0.0422464944422245,
-0.026686720550060272,
-0.005913432687520981,
-0.04465135186910629,
-0.007317760493606329,
-0.009439956396818161,
0.01014885026961565,
0.016878856346011162,
-0.003903403878211975,
-0.04382580518722534,
0.00603008596226573,
0.05060965195298195,
0.07042279094457626,
0.008026654832065105,
-0.04192345589399338,
0.01563156209886074,
0.004358801059424877,
-0.046338338404893875,
-0.01323567982763052,
0.04544100537896156,
-0.005756399128586054,
-0.074586421251297,
0.03043757751584053,
0.006110846064984798,
-0.0012484162580221891,
0.06177248805761337,
-0.03750856965780258,
-0.04687673971056938,
-0.056496161967515945,
0.03948270529508591,
0.01440221443772316,
0.05251200124621391,
-0.040846653282642365,
-0.08233939111232758,
0.009045128710567951,
-0.0003381828428246081,
0.013325413689017296,
0.005375032313168049,
0.0808318704366684,
0.01959777995944023,
0.014267614111304283,
-0.005325678735971451,
0.05592187121510506,
0.03356030210852623,
0.03951859846711159,
-0.007353654131293297,
0.0453692190349102,
-0.03959038481116295,
-0.019974660128355026,
-0.008762468583881855,
0.008618894964456558,
-0.018987592309713364,
-0.0006359856342896819,
0.025968853384256363,
0.029988911002874374,
-0.027009760960936546,
0.03372181951999664,
0.007407494354993105,
0.02264871634542942,
-0.0014110581250861287,
-0.004067167639732361,
-0.002613486023619771,
0.02171548828482628,
-0.01836843229830265,
0.021571915596723557,
-0.004652678035199642,
0.0026718126609921455,
-0.05035839602351189,
-0.049461062997579575,
-0.02354605123400688,
0.04343097656965256,
0.0562090165913105,
-0.00032948990701697767,
0.007295327261090279,
0.02264871634542942,
0.02027975395321846,
0.0202977005392313,
0.01936447247862816,
0.020566901192069054,
-0.011432038620114326,
-0.0297556035220623,
0.04845605045557022,
-0.006245446391403675,
-0.04386169835925102,
0.06758721172809601,
0.011521771550178528,
-0.014106093905866146,
-0.009969383478164673,
-0.04780996963381767,
-0.038549479097127914,
-0.005025071557611227,
-0.0009752901387400925,
0.06909473985433578,
0.02571759931743145,
-0.027530213817954063,
-0.047163888812065125,
-0.07709895819425583,
0.011037210933864117,
0.012697279453277588,
0.02797888219356537,
0.037831611931324005,
0.03436790034174919,
0.004688571207225323,
-0.05215306580066681,
0.018897859379649162,
-0.026094479486346245,
0.06572075933218002,
0.033003952354192734,
0.02657904103398323,
0.03754446282982826,
-0.006792820058763027,
0.06974081695079803,
0.05236842483282089,
-0.026202159002423286,
0.03528318181633949,
0.05200949311256409,
-0.04583583399653435,
-0.019041432067751884,
-0.001879915245808661,
-0.0038809706456959248,
0.022433355450630188,
0.010355236940085888,
0.04888676851987839,
-0.02959408238530159,
0.004071654286235571,
0.0008821916999295354,
-0.000967438449151814
] |
20,868 | precession.precession | eval_nutation_freq |
Nutation frequency of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
littleomega: float
Squared time derivative of the weighted spin difference.
Examples
--------
``littleomega = precession.eval_nutation_freq(kappa,r,chieff,q,chi1,chi2)``
| def eval_nutation_freq(kappa, r, chieff, q, chi1, chi2, precomputedroots=None):
"""
Nutation frequency of deltachi as it oscillates from deltachi- to deltachi+ back to deltachi-.
This of the five phenomenological parameters from arxiv:2103.03894.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
littleomega: float
Squared time derivative of the weighted spin difference.
Examples
--------
``littleomega = precession.eval_nutation_freq(kappa,r,chieff,q,chi1,chi2)``
"""
tau = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
littleomega = (2 * np.pi) / tau
return littleomega
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None) | [
-0.02927369624376297,
0.02965695410966873,
0.018615441396832466,
0.02540460415184498,
0.04850965365767479,
0.03659211844205856,
-0.05274375155568123,
-0.017027653753757477,
0.019947724416851997,
0.047086119651794434,
0.034475069493055344,
0.003848560154438019,
0.008778458461165428,
0.008865147829055786,
-0.027466902509331703,
0.008564015850424767,
-0.003926124423742294,
0.05526231229305267,
-0.03212076425552368,
-0.03723088279366493,
-0.03097098506987095,
-0.008910774253308773,
-0.014536470174789429,
0.04376453906297684,
-0.028087416663765907,
-0.024546833708882332,
-0.020768992602825165,
0.004161098971962929,
-0.03666511923074722,
0.011844531632959843,
0.021371258422732353,
-0.00005910003528697416,
0.025514105334877968,
0.050736203789711,
0.019035201519727707,
-0.05358327180147171,
-0.013295440934598446,
0.029218943789601326,
-0.10592551529407501,
0.009727480821311474,
0.017629919573664665,
-0.02367081306874752,
0.042121998965740204,
-0.002783191157504916,
-0.019217707216739655,
0.02226552926003933,
0.03275952860713005,
0.08081292361021042,
0.021499011665582657,
0.0031162614468485117,
-0.017237534746527672,
-0.05040769651532173,
-0.055992331355810165,
-0.0149014787748456,
-0.006419590208679438,
0.06540955603122711,
-0.01567712239921093,
-0.0632925033569336,
0.01162552647292614,
-0.012766178697347641,
0.0371943823993206,
-0.009043090045452118,
0.04124597832560539,
-0.0036021792329847813,
0.012118288315832615,
-0.003294203197583556,
0.019181204959750175,
0.03956694155931473,
0.009056777693331242,
-0.028105666860938072,
-0.03265002742409706,
-0.0009615697199478745,
0.03573434799909592,
-0.017237534746527672,
0.06424152851104736,
0.030386971309781075,
-0.02941969968378544,
-0.052086737006902695,
0.006154958624392748,
0.045991092920303345,
-0.03650086745619774,
-0.008418012410402298,
0.01856069080531597,
-0.02367081306874752,
0.013331941328942776,
0.05449579656124115,
0.011725903488695621,
-0.038800422102212906,
-0.0047542378306388855,
-0.029529200866818428,
-0.052926257252693176,
-0.04927616938948631,
0.025094347074627876,
-0.005607445724308491,
-0.017921926453709602,
0.001379048335365951,
-0.047049619257450104,
-0.025733111426234245,
0.05767137184739113,
-0.04182999208569527,
0.02564185857772827,
0.025879114866256714,
0.02870793268084526,
0.02631712518632412,
0.056101832538843155,
-0.017702920362353325,
-0.05055370181798935,
0.017274035140872,
0.03525983914732933,
-0.012109162285923958,
-0.08088592439889908,
0.028689682483673096,
0.04376453906297684,
0.0028790058568120003,
-0.000735720619559288,
-0.02420007437467575,
0.00031111284624785185,
0.035880353301763535,
0.0763598158955574,
0.02768590860068798,
-0.00668422132730484,
-0.024528583511710167,
-0.008021065965294838,
0.03370855003595352,
-0.010968510992825031,
-0.0006176630849950016,
0.016087757423520088,
0.008655267767608166,
0.048144642263650894,
0.03097098506987095,
0.06533655524253845,
0.045881591737270355,
0.09628928452730179,
0.012100037187337875,
0.033343542367219925,
0.04453105852007866,
0.01780329830944538,
-0.02511259727180004,
0.06752660125494003,
-0.05442279204726219,
0.027211396023631096,
0.015704497694969177,
0.010229367762804031,
0.00446679349988699,
-0.008431700058281422,
0.009471975266933441,
-0.024930091574788094,
0.03575259819626808,
-0.011032386682927608,
-0.04467706009745598,
-0.03040522150695324,
0.07898787409067154,
0.09789532423019409,
-0.007058355025947094,
0.0038964676205068827,
-0.0022607725113630295,
0.038070403039455414,
0.009800482541322708,
-0.06424152851104736,
-0.057999879121780396,
-0.0026919390074908733,
-0.007437051739543676,
0.013030809350311756,
0.014061959460377693,
0.02392631769180298,
-0.034402068704366684,
0.05646684020757675,
-0.011196641251444817,
0.01141564641147852,
0.06164996325969696,
-0.019016951322555542,
-0.029620453715324402,
0.0023337742313742638,
0.005356502253562212,
0.008148818276822567,
0.010868133045732975,
-0.05588282644748688,
-0.07935288548469543,
-0.022283779457211494,
0.03365379944443703,
-0.02730264887213707,
-0.0754837915301323,
-0.05869339406490326,
-0.07369524985551834,
-0.007583055179566145,
0.05675884708762169,
0.02169976569712162,
0.025495855137705803,
0.007053792476654053,
0.002897256286814809,
0.05117421597242355,
-0.01856069080531597,
0.0025687485467642546,
0.057999879121780396,
0.1050494983792305,
-0.00037955198786221445,
0.04029695689678192,
0.012300792150199413,
-0.022247279062867165,
0.020622989162802696,
0.012839180417358875,
0.02264878898859024,
-0.034438569098711014,
-0.010557875968515873,
0.010740379802882671,
-0.02230202965438366,
0.002386244246736169,
0.07004516571760178,
-0.0066385953687131405,
-0.010685629211366177,
0.043910544365644455,
-0.02018497884273529,
-0.006597531959414482,
0.027923163026571274,
-0.03018621727824211,
0.0003513208357617259,
0.04639260098338127,
-0.01719190925359726,
-0.0026600006967782974,
-0.016936402767896652,
0.0185971911996603,
0.0352233350276947,
0.030587727203965187,
-0.0032645463943481445,
0.022557536140084267,
0.021517261862754822,
-0.033343542367219925,
0.016571393236517906,
-0.024327827617526054,
-0.038070403039455414,
0.024364328011870384,
0.03927493467926979,
-0.011999660171568394,
-0.03836240991950035,
0.022320279851555824,
-0.03573434799909592,
-0.01444521825760603,
0.036519117653369904,
0.015147860161960125,
0.08417099714279175,
-0.06482554227113724,
-0.02367081306874752,
0.033416543155908585,
0.0067070345394313335,
-0.03567959740757942,
-0.020768992602825165,
0.033270541578531265,
0.02363431081175804,
-0.02586086466908455,
0.027430402114987373,
-0.0013881735503673553,
-0.0704466700553894,
-0.016233760863542557,
0.07570280134677887,
0.009389848448336124,
0.037887901067733765,
0.035497091710567474,
0.06665058434009552,
0.03241277113556862,
0.0006131004774942994,
0.038946423679590225,
0.05055370181798935,
-0.05891240015625954,
0.02836117334663868,
-0.0869450643658638,
-0.008600517176091671,
-0.0576348677277565,
0.036062855273485184,
-0.03942093625664711,
-0.011935783550143242,
-0.018305184319615364,
0.023269303143024445,
-0.026481378823518753,
-0.05624783784151077,
-0.04263301193714142,
0.0011212610406801105,
0.052123237401247025,
0.057196859270334244,
-0.025313351303339005,
0.012820929288864136,
-0.05040769651532173,
-0.0566493459045887,
0.025203848257660866,
-0.01654401794075966,
-0.08446300774812698,
0.07760084420442581,
-0.017392663285136223,
0.023305803537368774,
0.08563103526830673,
-0.03305153548717499,
-0.012601924128830433,
-0.062014974653720856,
-0.025879114866256714,
0.040734969079494476,
0.04128248244524002,
0.04529757797718048,
-0.0747537761926651,
-0.003161887638270855,
0.049130167812108994,
0.01912645436823368,
-0.020878495648503304,
0.008463638834655285,
-0.030040213838219643,
-0.04635610058903694,
-0.0007431348203681409,
-0.009599728509783745,
0.10030438005924225,
0.014107584953308105,
0.020312732085585594,
-0.008668956346809864,
-0.03411006182432175,
-0.02567836083471775,
-0.025057844817638397,
0.04726862162351608,
0.012027035467326641,
-0.038800422102212906,
-0.006396776996552944,
-0.008226382546126842,
0.06811061501502991,
0.044823065400123596,
-0.006446965504437685,
0.03520508483052254,
0.05219624191522598,
0.027430402114987373,
0.010859007947146893,
-0.03033222071826458,
-0.03673812374472618,
-0.0011549103073775768,
-0.01814093068242073,
-0.030551224946975708,
-0.042121998965740204,
-0.008732832036912441,
-0.03463932126760483,
0.015439867042005062,
-0.06916914135217667,
-0.02279479242861271,
0.04168399050831795,
-0.018870947882533073,
-0.006565593648701906,
0.0038759359158575535,
-0.0291276928037405,
-0.030879734084010124,
-0.013377567753195763,
0.01711890660226345,
-0.01954621449112892,
0.009389848448336124,
-0.016562268137931824,
-0.04215850308537483,
0.0474146269261837,
0.03978594392538071,
0.016836024820804596,
-0.006442402955144644,
0.01382470317184925,
0.027320899069309235,
0.057963378727436066,
0.031828757375478745,
-0.01090463437139988,
0.017009403556585312,
-0.03150025010108948,
-0.032212015241384506,
-0.07070218026638031,
0.01780329830944538,
0.012939557433128357,
-0.014718974940478802,
0.04456755891442299,
-0.0002619222505018115,
-0.031408995389938354,
0.07234472036361694,
-0.04869215562939644,
0.0012182164937257767,
-0.022940795868635178,
0.023086799308657646,
0.02779540978372097,
-0.005561819765716791,
0.04131898283958435,
0.013906829990446568,
0.016443639993667603,
0.016297636553645134,
-0.07062917947769165,
-0.05843788757920265,
0.005201373714953661,
0.0022550690919160843,
-0.0862150490283966,
0.009006588719785213,
-0.03927493467926979,
0.018013177439570427,
-0.07303823530673981,
-0.0011480663670226932,
0.01315856259316206,
0.011680277064442635,
-0.018761444836854935,
-0.025970367714762688,
0.04245050996541977,
-0.012474171817302704,
-0.04062546417117119,
0.04036995768547058,
-0.01470984984189272,
-0.02941969968378544,
-0.1077505573630333,
-0.018204808235168457,
0.024054070934653282,
-0.062160976231098175,
-0.0484001487493515,
0.03332529217004776,
0.025806112214922905,
0.02620762214064598,
0.02257578633725643,
-0.02691938914358616,
-0.007551116868853569,
0.016671771183609962,
-0.015613245777785778,
0.009608853608369827,
-0.011598150245845318,
-0.006912351585924625,
-0.05778087303042412,
0.021754516288638115,
-0.08387899398803711,
-0.09906335175037384,
0.022046523168683052,
0.05551781877875328,
-0.018870947882533073,
-0.036227110773324966,
-0.0024683710653334856,
0.05336426943540573,
0.0704466700553894,
0.05540831759572029,
0.05986142158508301,
0.03173750266432762,
-0.02878093346953392,
0.05858389288187027,
0.00013759115245193243,
0.0021489886566996574,
-0.007281923200935125,
0.040844470262527466,
0.011890157125890255,
-0.010229367762804031,
-0.0022208497393876314,
0.013249814510345459,
0.007934375666081905,
-0.021955272182822227,
-0.0527072511613369,
0.037285637110471725,
0.06029943376779556,
-0.023305803537368774,
-0.022886043414473534,
0.0022060212213546038,
0.013441444374620914,
-0.04756062850356102,
-0.0632925033569336,
0.0111145144328475,
-0.009029402397572994,
0.0014246745267882943,
-0.003923843149095774,
0.008846897631883621,
0.06628557294607162,
0.03635486215353012,
-0.051064714789390564,
0.0001364505005767569,
0.009490225464105606,
-0.029784707352519035,
0.016972903162240982,
0.07435226440429688,
0.057014353573322296,
-0.008477326482534409,
-0.020458735525608063,
0.04719562083482742,
0.007437051739543676,
-0.034183062613010406,
-0.02863493002951145,
-0.050736203789711,
0.02825167030096054,
0.02821516990661621,
-0.0018877792172133923,
0.004149692133069038,
-0.04573558643460274,
-0.01384295430034399,
-0.04836364835500717,
0.06384001672267914,
0.025240350514650345,
-0.09417223930358887,
-0.009398973546922207,
0.03744988888502121,
0.05179473012685776,
0.007268235087394714,
0.04847315326333046,
-0.047086119651794434,
-0.00836782343685627,
-0.07234472036361694,
-0.049969688057899475,
-0.03212076425552368,
0.010539625771343708,
-0.040807969868183136,
0.02131650596857071,
-0.00008341018838109449,
-0.009211906231939793,
-0.03905592858791351,
0.052086737006902695,
0.01162552647292614,
-0.022210776805877686,
0.02268528938293457,
-0.01558587048202753,
0.03462107107043266,
-0.014426968060433865,
0.01495623029768467,
0.004491887986660004,
-0.02821516990661621,
-0.002641750266775489,
-0.01772117055952549,
-0.03934793546795845,
-0.009782232344150543,
-0.019327208399772644,
-0.05774437263607979,
0.025660108774900436,
-0.02712014503777027,
0.026864638552069664,
-0.034292563796043396,
0.026335375383496284,
-0.01414408627897501,
-0.062160976231098175,
0.00406300276517868,
-0.007756434381008148,
0.0028949750121682882,
0.0013904549414291978,
0.047998640686273575,
0.027065392583608627,
0.03828940913081169,
0.00890164915472269,
0.01012899074703455,
0.054167285561561584,
-0.014664223417639732,
-0.02014847844839096,
-0.021261755377054214,
-0.014673348516225815,
-0.005415816325694323,
-0.024254826828837395,
-0.055079810321331024,
-0.03516858443617821,
-0.048947662115097046,
0.015193485654890537,
0.025422854349017143,
-0.05055370181798935,
0.03305153548717499,
0.0023565872106701136,
-0.0458085872232914,
0.03496783226728439,
-0.02215602621436119,
0.01586875133216381,
-0.016644395887851715,
0.020878495648503304,
-0.029054690152406693,
-0.046027593314647675,
-0.04858265444636345,
0.04106347635388374,
0.02814216911792755,
-0.034183062613010406,
0.0698261559009552,
0.04131898283958435,
-0.003465301124379039,
0.013651324436068535,
-0.025203848257660866,
-0.03025921806693077,
-0.06175946816802025,
0.06442403048276901,
0.003969469107687473,
0.04120947793126106,
0.012510672211647034,
-0.0040880972519516945,
-0.004708611872047186,
-0.04723212122917175,
0.03759589418768883,
-0.030624227598309517,
0.04785263538360596,
0.05555431917309761,
-0.016617020592093468,
-0.10475748777389526,
-0.015722747892141342,
0.022283779457211494,
-0.0803019106388092,
0.02264878898859024,
-0.06405901908874512,
-0.04226800426840782,
0.03744988888502121,
0.04453105852007866,
-0.004986931104212999,
-0.008714581839740276,
0.009056777693331242,
0.02173626609146595,
0.05767137184739113,
-0.014326590113341808,
0.04657510668039322,
-0.056138332933187485,
-0.0298029575496912,
-0.0484001487493515,
-0.03540584072470665,
-0.01064000278711319,
-0.031116988509893417,
0.020239731296896935,
-0.02279479242861271,
0.04511507228016853,
-0.022849543020129204,
-0.04168399050831795,
-0.042998023331165314,
-0.01546724233776331,
-0.05383877828717232,
-0.02328755334019661,
0.0010300088906660676,
0.015613245777785778,
0.0401509553194046,
0.06836612522602081,
-0.032175514847040176,
0.0032873593736439943,
0.007058355025947094,
0.05639383941888809,
0.05526231229305267,
0.01958271488547325,
0.03414656221866608,
0.032942034304142,
-0.05252474918961525,
-0.01213653851300478,
0.03170100226998329,
-0.08475501090288162,
0.024181824177503586,
-0.0020805494859814644,
-0.018925700336694717,
-0.015512868762016296,
-0.03529633954167366,
-0.010603501461446285,
-0.044786565005779266,
-0.03184700757265091,
-0.038909923285245895,
-0.031025737524032593,
-0.0074918027967214584,
-0.01639801450073719,
-0.0385449156165123,
-0.026937639340758324,
0.018305184319615364,
-0.03582560271024704,
0.017410913482308388,
-0.0704466700553894,
-0.05486080422997475,
0.0027193145360797644,
0.06734409928321838,
0.0010026332456618547,
0.019454961642622948,
-0.00944459903985262,
0.015339489094913006,
-0.013769952580332756,
-0.0034903953783214092,
0.02881743386387825,
0.031828757375478745,
-0.03312453627586365,
-0.008034753613173962,
0.03241277113556862,
0.027850162237882614,
-0.060007426887750626,
-0.040917471051216125,
0.0431075245141983,
-0.045954592525959015,
-0.03540584072470665,
-0.009882609359920025,
0.023908067494630814,
0.024966593831777573,
-0.021937021985650063,
-0.03909242898225784,
0.012008785270154476,
-0.005205936264246702,
0.05029819533228874,
-0.013569197617471218,
-0.04737812653183937,
-0.023835066705942154,
0.04843664914369583,
-0.012903056107461452,
0.03847191482782364,
-0.03920193016529083,
0.03018621727824211,
0.0487651601433754,
-0.013505320996046066,
0.05624783784151077,
-0.004418886266648769,
0.004808989353477955,
0.03192000836133957,
0.009161717258393764,
-0.00591770326718688,
-0.020987998694181442,
0.0009267798159271479,
0.01412583515048027,
0.030003713443875313,
-0.001679039909504354,
-0.0401509553194046,
-0.037960901856422424,
-0.00893814954906702,
0.02642662823200226,
-0.014855853281915188,
-0.001822762074880302,
0.03569784760475159,
-0.013131187297403812,
-0.05168522894382477,
0.07489977777004242,
0.015312113799154758,
-0.05489730462431908,
0.005237874574959278,
0.029291946440935135,
0.08000990003347397,
-0.03611760959029198,
-0.027028892189264297,
0.02480233833193779,
-0.021955272182822227,
-0.016836024820804596,
-0.0316462516784668,
0.01700027845799923,
-0.005940516013652086,
0.0586203932762146,
0.00004790738967130892,
0.023835066705942154,
-0.059021901339292526,
0.018569815903902054,
-0.013797327876091003,
0.04135548323392868,
0.011598150245845318,
0.02211952582001686,
0.01136089488863945,
-0.02533160150051117,
-0.003348954487591982,
0.032266765832901,
0.009330534376204014,
-0.0043641347438097,
0.0527072511613369,
0.008440825156867504,
-0.026335375383496284,
-0.001615163404494524,
0.014034583233296871,
-0.01821393333375454,
0.026335375383496284,
-0.07760084420442581,
-0.019783470779657364,
-0.019144704565405846,
0.007208921480923891,
-0.020057225599884987,
0.06088344752788544,
0.04515157267451286,
0.0123464185744524,
0.025879114866256714,
-0.0022721788845956326,
0.030021963641047478,
0.0648985430598259,
-0.04175699129700661,
-0.04934917390346527,
0.008372385986149311,
0.06770911067724228,
0.02283129282295704,
0.006451528053730726,
-0.0028995375614613295,
-0.03385455533862114,
-0.030496474355459213,
-0.015613245777785778,
0.006821099668741226,
-0.0061138952150940895,
-0.021791018545627594,
-0.020239731296896935,
0.021371258422732353,
0.029054690152406693,
-0.012455920688807964,
0.0316462516784668,
0.04372803866863251,
-0.0011571915820240974,
-0.032887279987335205,
0.023543059825897217,
-0.022502783685922623
] |
20,869 | precession.precession | eval_phiL |
Evaluate the azimuthal angle of L in a plane orthogonal to J along the precession cycle.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
phiL: float
Azimuthal angle spanned by L about J.
Examples
--------
``phiL = precession.eval_phiL(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
| def eval_phiL(deltachi, kappa, r, chieff, q, chi1, chi2, cyclesign=1, precomputedroots=None):
"""
Evaluate the azimuthal angle of L in a plane orthogonal to J along the precession cycle.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
phiL: float
Azimuthal angle spanned by L about J.
Examples
--------
``phiL = precession.eval_phiL(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
"""
q = np.atleast_1d(q).astype(float)
r = np.atleast_1d(r).astype(float)
u= eval_u(r=r,q=q)
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
bigC0, bigCplus, bigCminus,bigRplus,bigRminus = intertial_ingredients(kappa, r, chieff, q, chi1, chi2)
psiperiod = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]), return_psiperiod=True)
deltachitilde = affine(deltachi,deltachiminus,deltachiplus)
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
phiL = np.sign(cyclesign) * bigC0 * psiperiod * ( scipy.special.ellipkinc(np.arcsin(deltachitilde**(1/2)), m)
- bigCplus / (bigRplus - deltachiminus*(1-q)*r**(-1/2))
* ellippi( (1-q)*r**(-1/2)*(deltachiplus-deltachiminus) / (bigRplus - deltachiminus*(1-q)*r**(-1/2)), np.arcsin(deltachitilde**(1/2)), m)
- bigCminus / (bigRminus - deltachiminus*(1-q)*r**(-1/2))
* ellippi( (1-q)*r**(-1/2)*(deltachiplus-deltachiminus) / (bigRminus - deltachiminus*(1-q)*r**(-1/2)), np.arcsin(deltachitilde**(1/2)), m) )
return phiL
| (deltachi, kappa, r, chieff, q, chi1, chi2, cyclesign=1, precomputedroots=None) | [
0.00702328234910965,
-0.01626851223409176,
-0.01043348666280508,
0.04617784172296524,
0.008824991062283516,
0.014249438419938087,
-0.030488967895507812,
-0.03705820068717003,
-0.07863757759332657,
0.048998747020959854,
0.05282435938715935,
-0.024035662412643433,
0.02316620573401451,
0.011621745303273201,
-0.09413323551416397,
0.0247312281280756,
-0.010588057339191437,
-0.02782263234257698,
-0.039608608931303024,
-0.07477332651615143,
-0.033599693328142166,
-0.05483376979827881,
0.048419106751680374,
0.07944907248020172,
-0.0339667983353138,
-0.017224913462996483,
0.011728012003004551,
0.007544956635683775,
-0.051085446029901505,
0.02811245061457157,
0.03433389961719513,
0.03412136808037758,
-0.029136478900909424,
-0.004617784172296524,
0.0016157414065673947,
-0.018983149901032448,
0.034237295389175415,
-0.032942768186330795,
-0.05506562814116478,
-0.0016290247440338135,
0.03274955600500107,
0.01820063777267933,
0.08748672157526016,
-0.04173394665122032,
-0.03891304135322571,
-0.029986614361405373,
-0.02761009894311428,
0.02931036986410618,
0.029213763773441315,
0.018625706434249878,
0.02880801633000374,
-0.06329648941755295,
-0.003233897965401411,
-0.04007231816649437,
-0.0011296906741335988,
0.05707503855228424,
0.022200141102075577,
-0.000873079989105463,
0.003154197707772255,
-0.062330424785614014,
0.0278805959969759,
-0.02703046053647995,
0.02042258530855179,
0.07145006209611893,
0.030778786167502403,
-0.00387150002643466,
0.0348169319331646,
0.01583378203213215,
0.03955064341425896,
-0.009588181041181087,
-0.04057467356324196,
0.002958569908514619,
0.0068832035176455975,
-0.031068606302142143,
0.026682676747441292,
-0.005752908997237682,
-0.03213127702474594,
-0.04787811264395714,
-0.008158407174050808,
0.006110352464020252,
-0.04509584978222847,
-0.02737824246287346,
0.028846658766269684,
0.0028112451545894146,
0.02666335552930832,
0.022064892575144768,
0.03547385707497597,
-0.01977532170712948,
0.04409114271402359,
0.0032652949448674917,
-0.04080652818083763,
-0.06491947174072266,
-0.011670048348605633,
0.003646890167146921,
0.04482535272836685,
0.025774577632546425,
0.019456520676612854,
-0.0243061613291502,
0.07067721337080002,
-0.01437502633780241,
0.07589396089315414,
0.014085207134485245,
0.03300073370337486,
0.022972993552684784,
0.05556797981262207,
0.005873666610568762,
-0.05154915526509285,
0.0009944416815415025,
0.08331332355737686,
-0.030875394120812416,
-0.05707503855228424,
0.04892146214842796,
-0.012442899867892265,
-0.005100816022604704,
-0.08941885083913803,
0.0017208008794113994,
-0.03153231739997864,
0.0056852842681109905,
0.0056852842681109905,
0.02840227074921131,
0.005892988294363022,
-0.019089417532086372,
-0.01941787824034691,
-0.024344803765416145,
0.0341406874358654,
-0.004429401829838753,
0.026856567710638046,
0.0010675003286451101,
-0.029696796089410782,
0.0003082346811424941,
0.06642653793096542,
0.05726825073361397,
0.0649581179022789,
0.007419368717819452,
-0.03844933211803436,
0.010742627084255219,
-0.010307898744940758,
-0.029020551592111588,
0.03133910521864891,
0.0035599444527179003,
0.011979188770055771,
0.029406975954771042,
0.010955161415040493,
0.04467078298330307,
-0.007037773262709379,
0.04532770439982414,
0.04467078298330307,
0.014645524322986603,
-0.02538815140724182,
0.0245186947286129,
-0.020480548962950706,
0.0017208008794113994,
0.06360562890768051,
-0.00374591164290905,
0.0549110546708107,
-0.06383748352527618,
0.04134752228856087,
0.030063899233937263,
-0.01728287898004055,
-0.048650965094566345,
-0.024132268503308296,
-0.03133910521864891,
-0.005579017568379641,
0.017727266997098923,
-0.019118398427963257,
-0.014500615186989307,
0.011409210972487926,
0.026122359558939934,
-0.005579017568379641,
0.06515133380889893,
0.0015746837016195059,
-0.038816437125205994,
-0.049578383564949036,
0.018519438803195953,
-0.01821029931306839,
0.0010234236251562834,
-0.002523841103538871,
-0.03850729763507843,
0.0017075174255296588,
-0.032594986259937286,
-0.052012864500284195,
-0.007858927361667156,
-0.006361528765410185,
-0.06862916052341461,
0.02594846859574318,
0.08354517817497253,
0.030740143731236458,
-0.02359127439558506,
-0.02703046053647995,
-0.0007474917219951749,
-0.06638789176940918,
-0.013611836358904839,
0.03197670727968216,
0.05282435938715935,
0.0016459309263154864,
0.04467078298330307,
0.055104270577430725,
0.03381222486495972,
-0.05568390712141991,
0.023533308878540993,
0.005414786748588085,
0.029522905126214027,
-0.01157344225794077,
-0.04428435489535332,
0.03893236443400383,
-0.02086697332561016,
-0.0846271738409996,
0.012703736312687397,
0.015012628398835659,
0.00333291944116354,
0.03367697820067406,
-0.015543963760137558,
-0.03348376601934433,
0.004443892743438482,
-0.03972453624010086,
0.07709188014268875,
0.008399923332035542,
0.021639825776219368,
0.03097200021147728,
-0.007037773262709379,
0.03920286148786545,
-0.001895899884402752,
-0.0064243231900036335,
-0.013495909050107002,
0.018152335658669472,
0.010114685632288456,
0.008834651671350002,
0.07674409449100494,
-0.03189942240715027,
-0.019611092284321785,
0.007458011154085398,
-0.01769828610122204,
-0.011612084694206715,
-0.031068606302142143,
0.00047669201740063727,
-0.0031348764896392822,
-0.03980182111263275,
0.06770174205303192,
-0.0301798265427351,
0.07117956876754761,
-0.04451621323823929,
-0.008887785486876965,
0.03213127702474594,
0.04981024190783501,
-0.04436163976788521,
0.011090409941971302,
0.018335888162255287,
0.007912061177194118,
-0.013863013125956059,
0.024576658383011818,
-0.05525884032249451,
-0.032440416514873505,
0.02446073107421398,
0.023475345224142075,
0.01368912123143673,
-0.0190700963139534,
0.06689024716615677,
0.03622738644480705,
0.0536358505487442,
-0.022972993552684784,
0.014529597014188766,
-0.05135594308376312,
0.015737175941467285,
0.02602575346827507,
-0.0670061707496643,
0.0019285045564174652,
-0.011592763476073742,
-0.008042479865252972,
-0.0017014795448631048,
-0.0015746837016195059,
0.01886722259223461,
0.000801229034550488,
-0.07813522219657898,
0.0049365852028131485,
0.030450325459241867,
0.05185829475522041,
0.042120374739170074,
0.04389793053269386,
-0.056611329317092896,
0.022702494636178017,
-0.03110724873840809,
-0.04223630204796791,
0.001585551886819303,
-0.004231358878314495,
-0.12311514467000961,
0.06136436015367508,
-0.04938517138361931,
-0.03620806336402893,
0.07655087858438492,
-0.020828330889344215,
0.022837743163108826,
-0.03155163675546646,
-0.01531210821121931,
0.00014279628521762788,
0.1500876396894455,
0.027629420161247253,
-0.07264798134565353,
-0.050080738961696625,
0.0582343153655529,
-0.034237295389175415,
-0.01233663223683834,
-0.019118398427963257,
0.0905008390545845,
-0.06082336604595184,
-0.013177108019590378,
-0.017456769943237305,
0.04196580499410629,
-0.0037724783178418875,
0.005207082722336054,
-0.019311612471938133,
0.0051974221132695675,
0.024248197674751282,
0.014916022308170795,
0.0000530957622686401,
0.00978139415383339,
-0.02666335552930832,
-0.009660636074841022,
-0.01139955036342144,
0.04961702600121498,
-0.009013373404741287,
0.008356450125575066,
0.02409362606704235,
0.0140465646982193,
0.006689990404993296,
0.020480548962950706,
-0.043704718351364136,
0.014925682917237282,
0.019021792337298393,
0.03153231739997864,
-0.06422390788793564,
-0.02330145426094532,
0.03255634382367134,
-0.04057467356324196,
0.004431816749274731,
-0.03661381080746651,
-0.022760458290576935,
0.0036154931876808405,
-0.006376019679009914,
-0.002240060130134225,
-0.03528064489364624,
0.06461033225059509,
-0.00476752407848835,
-0.04532770439982414,
0.04281593859195709,
0.0008942126296460629,
-0.0008863633847795427,
0.08315875381231308,
0.00185001187492162,
0.015553624369204044,
0.04640969634056091,
-0.017311859875917435,
-0.0037893846165388823,
0.01872231252491474,
0.019611092284321785,
0.012752039358019829,
0.031300462782382965,
-0.05433141812682152,
-0.02903987281024456,
0.01179563719779253,
-0.0159207284450531,
0.022915029898285866,
-0.04888281971216202,
-0.02896258793771267,
0.03547385707497597,
-0.015737175941467285,
-0.056688614189624786,
-0.02028733678162098,
-0.0007988138822838664,
0.011158035136759281,
0.02200692892074585,
0.007482162676751614,
-0.023823129013180733,
0.033657655119895935,
0.01132226549088955,
0.020596476271748543,
0.06549911201000214,
0.04633241146802902,
0.033155303448438644,
-0.08594101667404175,
-0.011206338182091713,
0.04602327197790146,
-0.0016990643925964832,
-0.021639825776219368,
-0.007627072278410196,
0.022180819883942604,
0.007670545019209385,
0.010269256308674812,
-0.001475662225857377,
0.04177258908748627,
-0.004888281691819429,
0.017389144748449326,
-0.03956996649503708,
0.09320581704378128,
-0.03956996649503708,
0.0071198889054358006,
0.03535792976617813,
0.0245186947286129,
0.02573593519628048,
-0.044786710292100906,
0.015292786993086338,
0.05286300182342529,
-0.05827295780181885,
0.006535420194268227,
-0.029291048645973206,
-0.02631557360291481,
-0.03348376601934433,
0.05827295780181885,
0.014461972750723362,
-0.03740598261356354,
0.030315076932311058,
-0.008114933967590332,
0.023707201704382896,
0.00725996820256114,
-0.01333167776465416,
-0.08339060842990875,
0.029213763773441315,
-0.07535295933485031,
-0.05885259434580803,
-0.017833534628152847,
0.061905357986688614,
0.023552631959319115,
-0.055877119302749634,
-0.01950482465326786,
0.04625512659549713,
0.06109386309981346,
0.0774783045053482,
-0.01950482465326786,
0.031068606302142143,
-0.03727073594927788,
0.0029271726962178946,
0.030875394120812416,
-0.016181565821170807,
0.005849515087902546,
0.014693827368319035,
-0.009940794669091702,
0.03390883281826973,
0.00015117386647034436,
0.04525041952729225,
0.04652562364935875,
-0.034372542053461075,
0.03786969557404518,
-0.007815455086529255,
0.0012896949192509055,
-0.0007179060485213995,
-0.00046491812099702656,
-0.019166702404618263,
0.00038461407530121505,
-0.026006432250142097,
-0.021195435896515846,
0.008588305674493313,
0.019089417532086372,
0.035802315920591354,
0.009660636074841022,
0.012394595891237259,
0.03377358242869377,
0.009805546142160892,
0.0054775807075202465,
-0.008143916726112366,
-0.06480354815721512,
-0.006487117148935795,
0.0185580812394619,
0.05464055761694908,
0.09127368777990341,
0.0316675640642643,
0.03723209351301193,
0.005289198365062475,
0.005535544361919165,
-0.030991321429610252,
-0.03779240697622299,
-0.03557046130299568,
-0.007284119725227356,
-0.028209058567881584,
-0.027223672717809677,
0.04810996726155281,
0.007714018225669861,
-0.019466182217001915,
-0.027436206117272377,
0.020828330889344215,
-0.038603901863098145,
-0.07991278171539307,
-0.03441118448972702,
-0.03928014636039734,
0.036381956189870834,
0.018954169005155563,
0.03377358242869377,
-0.02718503028154373,
0.002256966196000576,
0.007887909188866615,
0.005434107966721058,
-0.06526725739240646,
-0.05583847686648369,
0.03900964930653572,
0.03870050981640816,
0.0331166610121727,
-0.008172898553311825,
-0.02444140985608101,
0.05858209729194641,
-0.04215901717543602,
0.011061428114771843,
0.006704481318593025,
0.006921845953911543,
0.034527115523815155,
0.004511517006903887,
0.004110600799322128,
0.049423813819885254,
-0.02960018999874592,
0.07689866423606873,
-0.04049738869071007,
-0.06379884481430054,
0.04737576097249985,
-0.040458742529153824,
-0.046564266085624695,
0.055877119302749634,
-0.024286840111017227,
-0.03956996649503708,
0.0481872521340847,
-0.014664845541119576,
0.004120261408388615,
-0.011109731160104275,
-0.017041362822055817,
0.014558578841388226,
-0.009878000244498253,
-0.029947971925139427,
-0.027783989906311035,
0.014481293968856335,
0.0586593821644783,
-0.014307402074337006,
-0.060630153864622116,
0.018152335658669472,
0.0011930885957553983,
-0.06066879630088806,
-0.06576961278915405,
-0.04157937690615654,
0.04737576097249985,
-0.06124843284487724,
0.017447108402848244,
-0.08254047483205795,
-0.07635767012834549,
-0.014500615186989307,
-0.05324942618608475,
-0.038256119936704636,
0.033947475254535675,
0.01032721996307373,
-0.039183542132377625,
0.035010144114494324,
-0.03477828949689865,
-0.01605597697198391,
0.03844933211803436,
-0.01964007318019867,
0.0332905538380146,
0.015167199075222015,
-0.016384439542889595,
0.005921970121562481,
0.053442638367414474,
0.011051767505705357,
0.03441118448972702,
0.026991818100214005,
-0.02129204198718071,
-0.010955161415040493,
0.01487737987190485,
-0.014452312141656876,
-0.06345105916261673,
-0.0183455478399992,
-0.0733049064874649,
-0.011689369566738605,
-0.01057839673012495,
0.024847155436873436,
0.011766654439270496,
0.0042724162340164185,
0.023765165358781815,
-0.018094372004270554,
-0.002567314077168703,
0.038623224943876266,
-0.05699775367975235,
-0.07430961728096008,
-0.05900716409087181,
0.03060489520430565,
-0.04660290852189064,
0.021407969295978546,
-0.0578092485666275,
0.020190728828310966,
-0.001345243537798524,
0.002717053983360529,
-0.028189735487103462,
0.02718503028154373,
0.02838294953107834,
0.026257609948515892,
0.07539160549640656,
0.0028281512204557657,
0.0019635243806988,
-0.06229178234934807,
-0.011051767505705357,
-0.02144661173224449,
-0.0498875267803669,
-0.008631778880953789,
-0.0034222803078591824,
0.013891994953155518,
0.01685781031847,
0.028846658766269684,
0.006095861550420523,
-0.03628534823656082,
-0.033889513462781906,
-0.04277729615569115,
-0.014703487977385521,
-0.0486123226583004,
-0.011032446287572384,
0.035667069256305695,
-0.02351398766040802,
0.0029658153653144836,
-0.029233084991574287,
0.06735395640134811,
-0.041849877685308456,
0.0389903262257576,
0.007124719209969044,
0.023069599643349648,
0.003050345927476883,
0.01764032244682312,
-0.013032197952270508,
0.07148870825767517,
0.027513490989804268,
-0.07442554086446762,
0.007003961130976677,
-0.0006351868505589664,
0.002717053983360529,
-0.05634082853794098,
-0.020557833835482597,
0.03734802082180977,
-0.06082336604595184,
0.034527115523815155,
-0.01721525378525257,
0.027919238433241844,
0.024248197674751282,
-0.013611836358904839,
0.03238245099782944,
-0.02774534747004509,
-0.002750866115093231,
0.03433389961719513,
-0.02610303834080696,
-0.0013343753525987267,
-0.02107950858771801,
-0.07098635286092758,
0.01096482202410698,
-0.053017571568489075,
-0.0035068108700215816,
0.019823625683784485,
0.01727321743965149,
-0.0075063141994178295,
-0.005207082722336054,
0.06824273616075516,
0.026721319183707237,
-0.01426875963807106,
0.02938765473663807,
-0.02840227074921131,
0.017466429620981216,
-0.09567894041538239,
-0.03730937838554382,
0.021388648077845573,
0.04134752228856087,
-0.01272305753082037,
-0.010675002820789814,
0.01139955036342144,
0.023340096697211266,
-0.08346789330244064,
-0.011351247318089008,
0.013669800013303757,
-0.039106253534555435,
0.05286300182342529,
-0.000009160622539639007,
-0.007974855601787567,
-0.0018125768983736634,
0.0034971502609550953,
-0.08107206225395203,
-0.00011872016330016777,
-0.03300073370337486,
0.014307402074337006,
0.015688873827457428,
-0.01741812750697136,
-0.004141997545957565,
0.029522905126214027,
0.005303689278662205,
-0.008308147080242634,
0.016596972942352295,
-0.02890462428331375,
0.018055729568004608,
0.006588554009795189,
0.04053603112697601,
0.0586593821644783,
0.042120374739170074,
-0.006013745907694101,
-0.06712210178375244,
-0.017678964883089066,
0.040458742529153824,
0.011051767505705357,
0.001579514006152749,
0.07647359371185303,
-0.022258106619119644,
-0.07005893439054489,
0.036111459136009216,
0.010394844226539135,
-0.01165072713047266,
0.03133910521864891,
-0.016799846664071083,
-0.033947475254535675,
0.006177976727485657,
-0.03255634382367134,
0.03489421680569649,
0.03837204724550247,
-0.017456769943237305,
-0.06101657822728157,
-0.020036159083247185,
0.000593223434407264,
0.04652562364935875,
0.04853503778576851,
-0.08980527520179749,
0.021968286484479904,
0.03338715806603432,
0.018674010410904884,
0.007279289420694113,
0.033309873193502426,
-0.01814267411828041,
0.0034150348510593176,
-0.035164717584848404,
0.029851365834474564,
-0.028286343440413475,
-0.012491202913224697,
-0.00654025049880147,
0.03348376601934433,
-0.031203854829072952,
-0.015118896029889584,
0.024847155436873436,
-0.034314580261707306,
0.05788653343915939,
0.031938064843416214,
0.025272224098443985,
-0.02171711064875126,
-0.04223630204796791,
-0.053519923239946365,
-0.028267022222280502,
-0.018886543810367584,
0.024789191782474518,
0.01154446043074131,
0.02272181585431099,
-0.013640818186104298,
-0.024711906909942627,
0.053172141313552856,
0.007656054105609655,
-0.0243061613291502,
0.0005633358377963305,
0.048573680222034454,
-0.005569356959313154,
0.008119764737784863,
0.00387150002643466,
-0.029986614361405373,
-0.008544832468032837,
-0.012848646380007267,
-0.023204848170280457,
0.03468168526887894,
0.010095364414155483,
-0.0477621853351593,
0.0009714977350085974,
-0.04467078298330307,
-0.019379235804080963,
0.020693082362413406,
0.0750051811337471,
0.011206338182091713,
-0.017621001228690147,
-0.021755753085017204,
0.019330933690071106
] |
20,870 | precession.precession | eval_q |
Mass ratio, 0 < q = m2/m1 < 1.
Parameters
----------
m1: float
Mass of the primary (heavier) black hole.
m2: float
Mass of the secondary (lighter) black hole.
Returns
-------
q: float
Mass ratio: 0<=q<=1.
Examples
--------
``q = precession.eval_q(m1,m2)``
| def eval_q(m1, m2):
"""
Mass ratio, 0 < q = m2/m1 < 1.
Parameters
----------
m1: float
Mass of the primary (heavier) black hole.
m2: float
Mass of the secondary (lighter) black hole.
Returns
-------
q: float
Mass ratio: 0<=q<=1.
Examples
--------
``q = precession.eval_q(m1,m2)``
"""
m1 = np.atleast_1d(m1).astype(float)
m2 = np.atleast_1d(m2).astype(float)
q = m2/m1
assert (q < 1).all(), "The convention used in this code is q=m2/m1<1."
return q
| (m1, m2) | [
0.023317229002714157,
0.03387495130300522,
-0.00169758265838027,
0.01144204568117857,
0.018516622483730316,
0.019707750529050827,
0.0127143869176507,
-0.04829481616616249,
-0.06009780988097191,
0.056127384305000305,
0.07861443608999252,
0.038729701191186905,
0.022703617811203003,
0.10063225030899048,
-0.04526285454630852,
-0.0023777438327670097,
0.030680565163493156,
-0.025627294555306435,
0.05244571715593338,
-0.006993364077061415,
-0.03454270586371422,
0.01747889816761017,
0.020285267382860184,
0.04125633463263512,
-0.022126100957393646,
-0.030048904940485954,
-0.00511643523350358,
-0.008035601116716862,
-0.07969728112220764,
-0.0004342653264757246,
0.0045163594186306,
0.011342785321176052,
0.016883334144949913,
0.03481341525912285,
0.0045163594186306,
0.0009886586340144277,
0.05435873940587044,
0.005648833233863115,
-0.1458229124546051,
-0.00900113582611084,
-0.035427026450634,
0.035499218851327896,
0.043530307710170746,
0.0027341796085238457,
-0.011974443681538105,
-0.011396926827728748,
0.015989989042282104,
0.008410084061324596,
-0.024111313745379448,
0.09023695439100266,
0.011108169332146645,
-0.007331752683967352,
-0.012894860468804836,
-0.014519126154482365,
-0.05327589809894562,
0.04244746267795563,
-0.02035745605826378,
-0.03481341525912285,
-0.02716132253408432,
-0.06980730593204498,
0.04591256380081177,
0.0036816676147282124,
0.004238880705088377,
-0.01043139211833477,
0.032016072422266006,
0.02595214731991291,
-0.0068309372290968895,
0.020285267382860184,
0.002219829009845853,
0.03789952024817467,
-0.07803691923618317,
0.004148643929511309,
-0.04053444042801857,
-0.028821682557463646,
0.030048904940485954,
0.05342027544975281,
0.023605987429618835,
0.023100659251213074,
-0.0069166626781225204,
0.024851256981492043,
0.046490076929330826,
-0.01938289776444435,
0.04313326254487038,
-0.12185598164796829,
-0.0588705874979496,
0.057065848261117935,
-0.013174595311284065,
0.047284163534641266,
0.020501835271716118,
-0.06785818934440613,
-0.02808173932135105,
-0.0056939516216516495,
0.015349306166172028,
0.031907785683870316,
0.057607270777225494,
0.02380450814962387,
-0.03789952024817467,
-0.033766668289899826,
-0.0454794242978096,
-0.0026574782095849514,
-0.01123450044542551,
0.09283577650785446,
0.032016072422266006,
-0.04450486600399017,
0.022017816081643105,
-0.052373528480529785,
-0.019021950662136078,
-0.03160098195075989,
0.01564708724617958,
0.004094501957297325,
-0.08482273668050766,
-0.014320604503154755,
-0.08641090989112854,
0.004602084867656231,
-0.032954536378383636,
0.030319616198539734,
-0.07702626287937164,
0.06110846623778343,
0.08532806485891342,
0.019761892035603523,
0.022559238597750664,
0.051182400435209274,
0.01938289776444435,
0.013111429288983345,
0.03667229786515236,
0.011387903243303299,
0.037394192069768906,
0.0019682934507727623,
-0.012209059670567513,
-0.016278745606541634,
0.03851313143968582,
0.009122955612838268,
0.0015610993141308427,
0.04443267732858658,
-0.015971940010786057,
0.01364382728934288,
-0.020808640867471695,
-0.010151657275855541,
0.08135763555765152,
0.017993248999118805,
0.006686558481305838,
0.0026665020268410444,
-0.022396812215447426,
-0.04190604016184807,
-0.03335157781839371,
0.03502998501062393,
0.025446821004152298,
-0.007828055880963802,
-0.03461489453911781,
0.04973860830068588,
0.00682191364467144,
0.052373528480529785,
0.10886186361312866,
-0.058112598955631256,
0.04190604016184807,
-0.022938232868909836,
0.07644874602556229,
-0.027107181027531624,
-0.0022638195659965277,
-0.03909064829349518,
-0.013264832086861134,
0.000017976894014282152,
0.004692321643233299,
0.026060432195663452,
0.028532924130558968,
-0.02449030987918377,
-0.003817023243755102,
-0.03185364603996277,
0.00007656041270820424,
0.03452465683221817,
0.015069571323692799,
-0.02142225205898285,
-0.04028177633881569,
-0.07197299599647522,
0.002804113319143653,
-0.020772546529769897,
-0.03970425948500633,
-0.011766898445785046,
-0.021837342530488968,
-0.02048378810286522,
0.04486581310629845,
-0.04486581310629845,
0.004157667513936758,
-0.022144148126244545,
0.027359845116734505,
0.0441439189016819,
-0.011026956140995026,
0.024779068306088448,
0.0147176468744874,
0.018949760124087334,
0.003889212617650628,
-0.04306107386946678,
-0.008906387723982334,
-0.018823428079485893,
0.0314205065369606,
-0.014167201705276966,
0.05540549010038376,
-0.017975201830267906,
0.03143855556845665,
0.058293070644140244,
-0.011550329625606537,
0.016242651268839836,
0.007237003650516272,
0.028117835521697998,
0.026258952915668488,
-0.039271123707294464,
-0.06977121531963348,
0.020501835271716118,
0.009014671668410301,
-0.021909533068537712,
-0.035535313189029694,
0.011081097647547722,
-0.03901845961809158,
-0.006497060880064964,
0.023876698687672615,
0.06345462799072266,
0.055983006954193115,
-0.04183385148644447,
-0.005477383267134428,
0.013959656469523907,
0.06796647608280182,
-0.018805380910634995,
0.011270595714449883,
0.033008676022291183,
-0.003954634536057711,
0.021873436868190765,
-0.03133026883006096,
0.025392679497599602,
-0.006307563278824091,
0.00901015941053629,
0.039523784071207047,
0.02463468909263611,
0.011694708839058876,
-0.07034873217344284,
0.0020461229141801596,
0.011387903243303299,
-0.031095653772354126,
0.032431162893772125,
-0.05793212354183197,
0.04804215580224991,
0.009276358410716057,
-0.013932585716247559,
-0.0388379842042923,
0.033658385276794434,
0.0022717153187841177,
-0.07399430125951767,
0.0022581797093153,
-0.0015272604068741202,
0.012939979322254658,
0.052914950996637344,
-0.04861966893076897,
-0.04486581310629845,
-0.02461664006114006,
-0.012290272861719131,
0.035427026450634,
0.036618154495954514,
-0.014816908165812492,
-0.005215696059167385,
0.03822437301278114,
0.025121968239545822,
0.03934331238269806,
-0.018967807292938232,
-0.0028559996280819178,
0.009962160140275955,
-0.05342027544975281,
0.04880014434456825,
-0.07594341784715652,
0.0294533409178257,
0.012967050075531006,
-0.007841591723263264,
-0.037249814718961716,
0.026385284960269928,
0.026421379297971725,
-0.03477732092142105,
-0.010016301646828651,
0.01860686019062996,
0.033098913729190826,
0.03266577795147896,
-0.005942103452980518,
-0.018092509359121323,
0.000012522139513748698,
-0.06468185037374496,
0.011469116434454918,
-0.0022017816081643105,
0.010927694849669933,
0.03268382325768471,
-0.0163780078291893,
-0.0455155186355114,
0.07269489020109177,
-0.0039907293394207954,
-0.0227397121489048,
-0.015827560797333717,
-0.03826046735048294,
0.01150521170347929,
0.04093148186802864,
-0.019455086439847946,
-0.013355068862438202,
-0.015213950537145138,
0.021729057654738426,
0.04793386906385422,
-0.012858766131103039,
0.0481143444776535,
0.0160621777176857,
0.03452465683221817,
-0.020140888169407845,
-0.008721401914954185,
0.045948658138513565,
0.021981721743941307,
0.021313969045877457,
-0.023750366643071175,
-0.051435064524412155,
0.013815277256071568,
-0.06063923239707947,
0.04854748025536537,
-0.011207429692149162,
0.020700357854366302,
0.06789428740739822,
0.030066952109336853,
0.00749417906627059,
-0.030536185950040817,
0.02676428109407425,
0.04612912982702255,
0.0601700022816658,
0.04630960524082184,
-0.013373116962611675,
-0.04053444042801857,
-0.07153985649347305,
0.026042385026812553,
0.059339821338653564,
0.01123450044542551,
-0.006582785863429308,
0.06897712498903275,
0.016802120953798294,
0.011387903243303299,
0.015313210897147655,
-0.045010194182395935,
0.04732025787234306,
-0.0254287738353014,
-0.002790577709674835,
-0.010720150545239449,
0.017072832211852074,
-0.017163068056106567,
0.033766668289899826,
-0.04168947413563728,
-0.013544566929340363,
0.0058067478239536285,
-0.028839729726314545,
-0.05313151702284813,
0.02528439462184906,
-0.026818422600626945,
-0.06179426610469818,
-0.02008674666285515,
0.03488560765981674,
-0.031637076288461685,
-0.006961781065911055,
0.01911218650639057,
-0.024021077901124954,
-0.02125982567667961,
-0.0294533409178257,
-0.007602463476359844,
0.060675326734781265,
0.07969728112220764,
-0.07056529819965363,
-0.0103592025116086,
-0.03114979714155197,
0.002206293633207679,
-0.026060432195663452,
0.01031408365815878,
-0.02192758023738861,
-0.0029890991281718016,
-0.03246725723147392,
-0.020519882440567017,
-0.04497409611940384,
-0.017903011292219162,
-0.025789720937609673,
0.06331024318933487,
-0.03425394743680954,
0.023624034598469734,
0.01898585446178913,
0.0314205065369606,
-0.0038779331371188164,
-0.054503120481967926,
-0.0802026018500328,
-0.025121968239545822,
-0.020429646596312523,
0.010611865669488907,
-0.02503173053264618,
-0.0038350706454366446,
0.0056939516216516495,
0.03466903790831566,
0.027991503477096558,
-0.008504833094775677,
0.027720792219042778,
-0.004809629637748003,
-0.06100017949938774,
0.045948658138513565,
0.01860686019062996,
-0.01812860369682312,
-0.10763464123010635,
-0.008743960410356522,
-0.02557315304875374,
0.014058917760848999,
-0.027738839387893677,
-0.03317110240459442,
0.025320488959550858,
-0.03667229786515236,
-0.0036997150164097548,
0.034326136112213135,
-0.0041193170472979546,
0.056524429470300674,
-0.01131571363657713,
-0.07464400678873062,
-0.016883334144949913,
0.060783613473176956,
-0.06471794098615646,
-0.043169356882572174,
0.027865171432495117,
-0.12127846479415894,
0.016405077651143074,
0.06486232578754425,
0.014898121356964111,
-0.03706933930516243,
0.04493800178170204,
-0.030283521860837936,
0.014446936547756195,
-0.02288409136235714,
0.028821682557463646,
0.01691942848265171,
0.0022784830071032047,
-0.019021950662136078,
-0.010061420500278473,
0.04165337607264519,
-0.03955988213419914,
-0.03530069813132286,
-0.008121325634419918,
0.007115183863788843,
0.049955178052186966,
0.025230253115296364,
0.03696105629205704,
-0.01245269924402237,
0.02985038422048092,
-0.00200551631860435,
0.023461608216166496,
-0.03974035382270813,
-0.09160855412483215,
-0.06922978907823563,
0.04602084681391716,
-0.02757641300559044,
-0.06168598309159279,
-0.03531874343752861,
-0.05320370942354202,
0.03248530253767967,
-0.008500320836901665,
0.0003742013650480658,
0.09081447124481201,
0.0027432034257799387,
-0.027919312939047813,
-0.038332659751176834,
-0.005003639031201601,
-0.00928538292646408,
0.026962801814079285,
0.050785358995199203,
-0.051687728613615036,
0.030554233118891716,
-0.009745591320097446,
0.07717064023017883,
0.04963032528758049,
0.014022822491824627,
0.014934215694665909,
-0.03934331238269806,
0.03995692357420921,
0.016955522820353508,
-0.005626274272799492,
-0.014455960132181644,
-0.0030116583220660686,
0.041545093059539795,
-0.04371077939867973,
0.010458462871611118,
0.06648658961057663,
-0.013445306569337845,
-0.007376871071755886,
0.009808756411075592,
-0.010602842085063457,
0.04858357459306717,
0.023353323340415955,
-0.06637830287218094,
-0.04439658299088478,
-0.02808173932135105,
0.004791582468897104,
-0.014528149738907814,
0.02290213853120804,
0.009835828095674515,
0.06540374457836151,
0.010693078860640526,
-0.08142982423305511,
-0.026385284960269928,
0.010332130827009678,
-0.008175468072295189,
0.016387030482292175,
-0.003255298128351569,
0.014374746941030025,
0.020501835271716118,
-0.08402865380048752,
0.014961287379264832,
-0.015159808099269867,
0.03909064829349518,
-0.009700472466647625,
0.001668255659751594,
-0.022559238597750664,
0.026150669902563095,
-0.015520756132900715,
-0.03696105629205704,
0.02127787284553051,
0.017578158527612686,
-0.005847354419529438,
-0.001532900263555348,
0.009402690455317497,
0.025519009679555893,
-0.0061676958575844765,
-0.015006405301392078,
-0.0207364521920681,
0.01710892654955387,
-0.005644321441650391,
-0.019617512822151184,
-0.051723822951316833,
-0.05006346106529236,
-0.0481504388153553,
-0.03696105629205704,
0.03600454330444336,
-0.022414859384298325,
-0.013346045278012753,
-0.009610235691070557,
0.011766898445785046,
-0.03851313143968582,
-0.039812542498111725,
0.059845149517059326,
-0.045154571533203125,
-0.012660244479775429,
-0.010602842085063457,
0.03569773957133293,
-0.013562614098191261,
0.020682310685515404,
0.070854052901268,
0.03441637381911278,
0.0037899520248174667,
0.0334237664937973,
-0.0042817434296011925,
0.02717936970293522,
0.011965420097112656,
0.010954766534268856,
-0.013607732951641083,
-0.05417826771736145,
0.011821040883660316,
-0.010350178927183151,
0.04858357459306717,
0.02301042340695858,
0.05342027544975281,
-0.00907332543283701,
0.029056299477815628,
-0.021332016214728355,
0.0036703881341964006,
-0.010115562938153744,
0.07854224741458893,
-0.004293023142963648,
-0.041148051619529724,
-0.03468708321452141,
-0.0027251560240983963,
0.019437039270997047,
0.009953135624527931,
-0.0020822177175432444,
-0.035787977278232574,
0.0035801511257886887,
0.09839437156915665,
0.005608226638287306,
-0.028190024197101593,
-0.0016502082580700517,
0.0187512394040823,
-0.077603779733181,
-0.08597777038812637,
0.0005944359581917524,
0.022811902686953545,
0.003013914218172431,
-0.02367817610502243,
0.006127089262008667,
0.008527392521500587,
-0.014753742143511772,
-0.026132622733712196,
0.025988243520259857,
-0.0033252318389713764,
0.056380048394203186,
-0.028316356241703033,
0.004308814648538828,
0.012227106839418411,
-0.002332625212147832,
0.003350046928972006,
-0.02874949388206005,
0.035390932112932205,
-0.02380450814962387,
-0.0254287738353014,
-0.013246784918010235,
-0.0021205684170126915,
-0.003501193830743432,
0.0274320337921381,
-0.044360484927892685,
-0.006235373672097921,
0.009177098050713539,
-0.024706877768039703,
0.009547069668769836,
-0.020501835271716118,
-0.02156663127243519,
-0.01583658531308174,
0.014067941345274448,
-0.014347675256431103,
0.04602084681391716,
0.006429383065551519,
0.01512371376156807,
-0.06771381199359894,
0.0060052694752812386,
-0.011613495647907257,
0.04472143575549126,
-0.03398323804140091,
0.026421379297971725,
0.023768413811922073,
-0.03923502564430237,
0.032052166759967804,
0.022252433001995087,
0.007295657880604267,
-0.11665833741426468,
-0.01979798823595047,
-0.012010538950562477,
0.023479655385017395,
0.04493800178170204,
0.036058686673641205,
-0.054647497832775116,
-0.04833091422915459,
-0.01717209257185459,
-0.009068814106285572,
0.01800227165222168,
-0.022396812215447426,
0.037935614585876465,
-0.03246725723147392,
0.046778835356235504,
-0.04298888519406319,
-0.006898615043610334,
0.018164698034524918,
-0.019707750529050827,
-0.06785818934440613,
-0.026006290689110756,
0.023100659251213074,
-0.021981721743941307,
-0.03710543364286423,
0.014203296974301338,
0.06139722466468811,
0.025789720937609673,
0.0184173621237278,
0.006203790660947561,
-0.009691448882222176,
-0.05378122627735138,
-0.04721197485923767,
0.004135108552873135,
0.04764511063694954,
-0.004286255221813917,
-0.08749374747276306,
0.0361308753490448,
-0.0314566008746624,
0.030193284153938293,
0.0441078245639801,
-0.036870818585157394,
-0.04645398259162903,
-0.052120864391326904,
0.032954536378383636,
0.02153053693473339,
0.04230308532714844,
-0.0629853904247284,
-0.04230308532714844,
0.031925834715366364,
0.0008425875566899776,
0.004904378205537796,
-0.01614339090883732,
0.03955988213419914,
-0.008658235892653465,
0.023226991295814514,
-0.0025401702150702477,
0.023912793025374413,
0.06663096696138382,
0.01754206418991089,
-0.023208944126963615,
0.04067881777882576,
-0.02463468909263611,
0.008468737825751305,
0.006230861879885197,
0.02142225205898285,
0.0031379901338368654,
-0.038332659751176834,
0.01124352402985096,
0.011857136152684689,
-0.04237527400255203,
-0.007002387661486864,
-0.029092393815517426,
0.026421379297971725,
-0.003329743631184101,
-0.014338651672005653,
-0.020032603293657303,
0.004286255221813917,
-0.03468708321452141,
0.029633816331624985,
-0.012732434086501598,
0.06367119401693344,
-0.021205684170126915,
-0.043674685060977936,
-0.030066952109336853,
0.019455086439847946,
0.04450486600399017,
-0.019599465653300285,
-0.03235897049307823,
0.024255692958831787,
0.03851313143968582,
0.0388379842042923,
0.034560754895210266,
0.006691070273518562,
-0.05334808677434921,
-0.012091752141714096,
0.04378297179937363,
-0.043422020971775055,
-0.026800375431776047,
0.07702626287937164,
0.03988473489880562,
-0.05334808677434921,
0.012209059670567513,
-0.04295279085636139,
-0.02528439462184906,
0.023515749722719193,
-0.0020980092231184244,
0.0027093645185232162,
0.016098272055387497,
-0.05092973634600639,
-0.0061812312342226505,
-0.09514584392309189,
0.018435409292578697,
0.0028334404341876507,
0.0374663844704628,
0.008915411308407784,
0.04638179391622543,
-0.05334808677434921,
-0.008170955814421177,
-0.02035745605826378,
-0.03891017287969589,
0.059339821338653564,
0.0053194682113826275,
0.010539676062762737,
0.011523258872330189,
0.02263142727315426,
0.06100017949938774,
0.03160098195075989,
-0.006041364278644323,
0.033369626849889755,
0.017830822616815567,
-0.0025176110211759806,
-0.02432788349688053,
0.003717762418091297,
-0.022017816081643105,
0.05511673167347908,
-0.000288194278255105,
0.07143156975507736,
-0.030951274558901787,
-0.0005335260066203773,
0.018841475248336792,
0.025464868173003197
] |
20,871 | precession.precession | eval_r |
Orbital separation of the binary. Valid inputs are either (L,q) or (u,q).
Parameters
----------
L: float, optional (default: None)
Magnitude of the Newtonian orbital angular momentum.
u: float, optional (default: None)
Compactified separation 1/(2L).
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
Returns
-------
r: float
Binary separation.
Examples
--------
``r = precession.eval_r(L=L,q=q)``
``r = precession.eval_r(u=u,q=q)``
| def eval_r(L=None,u=None,q=None):
"""
Orbital separation of the binary. Valid inputs are either (L,q) or (u,q).
Parameters
----------
L: float, optional (default: None)
Magnitude of the Newtonian orbital angular momentum.
u: float, optional (default: None)
Compactified separation 1/(2L).
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
Returns
-------
r: float
Binary separation.
Examples
--------
``r = precession.eval_r(L=L,q=q)``
``r = precession.eval_r(u=u,q=q)``
"""
q = np.atleast_1d(q).astype(float)
if L is not None and u is None and q is not None:
L = np.atleast_1d(L).astype(float)
r = (L * (1+q)**2 / q )**2
elif L is None and u is not None and q is not None:
u = np.atleast_1d(u).astype(float)
r = (2*u*q/(1+q)**2)**(-2)
else:
raise TypeError("Provide either (L,q) or (u,q).")
return r
| (L=None, u=None, q=None) | [
-0.02457333728671074,
0.0414169505238533,
-0.019899550825357437,
0.0304695013910532,
0.010677807033061981,
-0.007855558767914772,
-0.02757534757256508,
-0.057595446705818176,
-0.07078991085290909,
0.0405181460082531,
0.06960348784923553,
0.008925137110054493,
0.026011426001787186,
0.0740615576505661,
-0.05960876867175102,
0.00881278607994318,
-0.014902192167937756,
-0.04281908646225929,
-0.03480174392461777,
-0.010542986914515495,
-0.05209475755691528,
0.009716086089611053,
0.04134504497051239,
0.11087662726640701,
-0.014983084984123707,
-0.025472143664956093,
0.03667125850915909,
-0.012924821116030216,
-0.07902296632528305,
0.010569950565695763,
0.07050228863954544,
0.014929156750440598,
-0.04526383802294731,
0.010677807033061981,
0.007662315387278795,
-0.007563446648418903,
0.0466659739613533,
0.05755949392914772,
-0.06575659662485123,
-0.029121292755007744,
-0.07215609401464462,
-0.012403513304889202,
0.051807139068841934,
0.02746749110519886,
-0.01045310590416193,
-0.03102676011621952,
0.029948193579912186,
-0.046090736985206604,
-0.029858313500881195,
0.03401079401373863,
0.06892039626836777,
0.005622027441859245,
-0.031637948006391525,
-0.0410933792591095,
-0.01801205798983574,
0.015261714346706867,
0.008898172527551651,
0.05813472718000412,
-0.01302368938922882,
-0.05284975469112396,
0.0033390617463737726,
0.009131861850619316,
0.015279690735042095,
0.06377922743558884,
0.04508407413959503,
0.01678069494664669,
-0.043178606778383255,
0.04263932630419731,
0.03570054844021797,
0.03055938147008419,
-0.05051286146044731,
0.015162846073508263,
0.013661840930581093,
-0.019629908725619316,
0.034082699567079544,
0.023566676303744316,
-0.006120864301919937,
-0.014641539193689823,
-0.0005328230326995254,
-0.0038873329758644104,
0.039799101650714874,
0.009994715452194214,
0.07269537448883057,
-0.00028930295957252383,
0.015962783247232437,
-0.02061859518289566,
-0.013706780970096588,
-0.021355614066123962,
0.0015481922309845686,
-0.020960140973329544,
-0.0711134746670723,
-0.04803215712308884,
-0.037354350090026855,
0.016852600499987602,
0.017796345055103302,
0.05860210955142975,
-0.01255631074309349,
0.011262031272053719,
-0.0012077696155756712,
-0.04803215712308884,
-0.007500530686229467,
0.051699284464120865,
-0.04210004210472107,
0.0057793185114860535,
0.017185157164931297,
0.02248810976743698,
-0.021247757598757744,
0.0005507991299964488,
0.0018021046416833997,
-0.00834540743380785,
-0.03872053325176239,
0.07355822622776031,
-0.05486307665705681,
0.013392199762165546,
-0.10426142066717148,
0.029085339978337288,
-0.07492440938949585,
0.03602411597967148,
-0.018874911591410637,
0.04637835547327995,
0.014030351303517818,
0.05277784913778305,
-0.05500688776373863,
0.017508728429675102,
0.0304695013910532,
0.007010681554675102,
0.008655495010316372,
0.027898916974663734,
-0.020007407292723656,
-0.027809036895632744,
0.05561807379126549,
0.0451919324696064,
0.01622343622148037,
-0.0007319645956158638,
0.00938352756202221,
0.06762611120939255,
-0.057523541152477264,
0.011235066689550877,
0.03055938147008419,
0.003997436724603176,
0.03882839158177376,
0.019144553691148758,
0.03226711228489876,
0.0384688675403595,
0.013014701195061207,
0.06482183933258057,
0.03410067409276962,
0.04134504497051239,
0.005725389812141657,
0.06546898186206818,
-0.005082744173705578,
0.018245749175548553,
0.13223223388195038,
-0.01110923383384943,
0.03532304987311363,
-0.050872381776571274,
0.07229989767074585,
-0.03093688003718853,
0.004610871430486441,
-0.035394955426454544,
-0.02061859518289566,
0.007833088748157024,
-0.01321243867278099,
-0.01167548168450594,
0.01083060447126627,
-0.029498791322112083,
0.02137359045445919,
0.010462094098329544,
0.013248390518128872,
0.02184096910059452,
0.042243849486112595,
-0.03695887699723244,
-0.016277365386486053,
0.03911600634455681,
-0.07895106077194214,
0.007900498807430267,
-0.041956234723329544,
-0.030703190714120865,
-0.0446166954934597,
-0.04806810989975929,
0.0562652125954628,
0.024411553516983986,
0.039691243320703506,
-0.06216137856245041,
0.016627898439764977,
0.0212837103754282,
-0.018155867233872414,
-0.05335308611392975,
-0.01912657730281353,
-0.022200491279363632,
-0.023926198482513428,
-0.02877974696457386,
-0.03102676011621952,
-0.0021155630238354206,
-0.007469072472304106,
0.01923443377017975,
0.041488852351903915,
0.026658566668629646,
0.007123032119125128,
0.0067455340176820755,
0.026784399524331093,
0.02043883316218853,
-0.03215925395488739,
0.022577989846467972,
-0.04159671068191528,
-0.02886962704360485,
-0.0740615576505661,
0.041201237589120865,
0.07050228863954544,
-0.026568684726953506,
0.08182723820209503,
0.011450779624283314,
-0.03564662113785744,
0.06338375061750412,
-0.007958921603858471,
0.08635721355676651,
-0.023476796224713326,
0.04619859531521797,
0.0740615576505661,
-0.005550122819840908,
0.05781115964055061,
-0.037821728736162186,
0.06985515356063843,
0.011091257445514202,
-0.020025383681058884,
-0.010372213087975979,
-0.028653914108872414,
0.017212122678756714,
-0.009338587522506714,
-0.02297346480190754,
0.02211061120033264,
-0.06600826233625412,
-0.015072965063154697,
-0.04012266919016838,
0.033525437116622925,
-0.010677807033061981,
-0.021697159856557846,
0.07557155191898346,
-0.032968178391456604,
0.04763668403029442,
-0.04425717517733574,
0.002640240592882037,
-0.01542349997907877,
0.00010034318984253332,
0.03672518581151962,
-0.019647885113954544,
0.017967117950320244,
0.01801205798983574,
-0.03546685725450516,
-0.0013111323351040483,
-0.07506822049617767,
-0.019054673612117767,
0.003734536236152053,
0.01302368938922882,
0.049542151391506195,
0.06715873628854752,
0.06715873628854752,
0.028240462765097618,
0.03579042851924896,
0.001780758029781282,
0.014380885288119316,
-0.07607488334178925,
0.043933603912591934,
0.01855134218931198,
-0.01715819351375103,
-0.026676543056964874,
-0.009428467601537704,
-0.013194462284445763,
0.05885377153754234,
-0.020600618794560432,
-0.0036266795359551907,
0.035970188677310944,
-0.03553876280784607,
-0.029139269143342972,
-0.002307682763785124,
0.01026435662060976,
0.03629375994205475,
0.01846146211028099,
0.05026119574904442,
0.0033840020187199116,
-0.024249767884612083,
-0.02868986688554287,
-0.01939621940255165,
0.03800148889422417,
-0.06920801103115082,
0.05439569801092148,
-0.02268584631383419,
-0.07251561433076859,
0.0352691225707531,
-0.01359892450273037,
0.04328646510839462,
0.014282017014920712,
-0.032482825219631195,
0.02924712561070919,
0.09548907727003098,
-0.006588242948055267,
0.008125199936330318,
-0.033525437116622925,
0.09922810643911362,
0.013194462284445763,
-0.05446760356426239,
-0.03447817265987396,
0.08362484723329544,
-0.03742625564336777,
-0.04087766632437706,
-0.05504283681511879,
0.08736387640237808,
-0.06187376007437706,
-0.014596598222851753,
0.005365867633372545,
-0.013796661980450153,
0.0346938855946064,
-0.019360266625881195,
0.021265733987092972,
-0.029462838545441628,
-0.03710268437862396,
0.03241091966629028,
0.023512747138738632,
-0.014956120401620865,
-0.019432172179222107,
0.01763456128537655,
0.0542159378528595,
0.04112933203577995,
0.020223120227456093,
-0.04472455382347107,
0.002813260769471526,
-0.0446166954934597,
0.022649893537163734,
0.016367245465517044,
0.019989430904388428,
-0.03131437674164772,
0.009572276845574379,
-0.011792326346039772,
0.06989110261201859,
-0.03480174392461777,
-0.038289107382297516,
0.05360475182533264,
-0.0037525121588259935,
0.003909802995622158,
-0.0405181460082531,
0.016744744032621384,
0.017041349783539772,
-0.04947024583816528,
0.05464736372232437,
-0.033327702432870865,
0.012520357966423035,
0.05885377153754234,
-0.013491068035364151,
0.0510161891579628,
0.01977371796965599,
-0.0033480499405413866,
0.012304645031690598,
0.0032401932403445244,
-0.037821728736162186,
-0.001631331630051136,
-0.016079626977443695,
-0.039619337767362595,
0.007006187457591295,
0.05051286146044731,
-0.020654546096920967,
0.008138682693243027,
-0.014740407466888428,
-0.014156184159219265,
0.004503014497458935,
-0.04695359244942665,
-0.023117274045944214,
-0.05435974523425102,
0.001571785775013268,
0.00792746338993311,
0.014192136004567146,
-0.015010048635303974,
-0.011756373569369316,
-0.016241412609815598,
0.010758699849247932,
-0.02333298698067665,
0.12043991684913635,
0.04501217231154442,
-0.032770443707704544,
-0.03620387986302376,
-0.03471186012029648,
-0.04325051233172417,
0.0006353430217131972,
0.0019009732641279697,
-0.016016710549592972,
-0.011100245639681816,
0.010345249436795712,
-0.017508728429675102,
0.03363329544663429,
-0.022434180602431297,
0.028186535462737083,
-0.002923364285379648,
-0.024141911417245865,
0.059572815895080566,
-0.0005538887926377356,
-0.09671145677566528,
0.03268056362867355,
0.021625256165862083,
0.029480814933776855,
-0.07456488907337189,
-0.018623245880007744,
-0.004069341346621513,
0.00229869456961751,
-0.01302368938922882,
-0.0018492919625714421,
0.0031660418026149273,
-0.018964791670441628,
0.024986788630485535,
0.03384900838136673,
-0.025166548788547516,
-0.0078061241656541824,
-0.0114417914301157,
-0.031080689281225204,
0.0119541110470891,
0.043645985424518585,
-0.0822586640715599,
-0.01687956415116787,
0.04540764540433884,
-0.050405003130435944,
-0.002268359996378422,
0.05213071033358574,
0.015243738889694214,
-0.035215191543102264,
0.025184525176882744,
0.06367137283086777,
0.0268203504383564,
0.0653611272573471,
0.07722535729408264,
0.0304695013910532,
0.013607912696897984,
0.040374334901571274,
-0.03908005729317665,
0.00038760979077778757,
-0.03460400551557541,
-0.04321455955505371,
0.01491118036210537,
-0.001571785775013268,
0.030487477779388428,
0.07866344600915909,
0.02541821449995041,
-0.008300467394292355,
0.008907160721719265,
0.0003187950060237199,
0.006260178983211517,
-0.0017054830677807331,
-0.03872053325176239,
-0.038217201828956604,
0.008390347473323345,
-0.00131337926723063,
-0.06809349358081818,
-0.06050757318735123,
-0.013329283334314823,
0.02166120894253254,
-0.01696944423019886,
0.021301686763763428,
0.046090736985206604,
-0.017302002757787704,
-0.032950203865766525,
-0.03393888846039772,
-0.006830920465290546,
-0.01921645738184452,
0.018874911591410637,
0.01932431384921074,
0.013095594011247158,
0.03363329544663429,
-0.03965529054403305,
0.03803744167089462,
0.07665012031793594,
-0.056301165372133255,
-0.0425674207508564,
-0.023207154124975204,
0.03954743593931198,
-0.004633341450244188,
-0.01135191135108471,
0.04512002691626549,
0.023207154124975204,
0.025202501565217972,
0.01433594524860382,
0.005406314041465521,
-0.004974887706339359,
-0.08793911337852478,
-0.04217194765806198,
-0.017580632120370865,
-0.042423613369464874,
0.042998846620321274,
0.025831665843725204,
-0.03607804700732231,
-0.036149948835372925,
0.015450463630259037,
0.030343668535351753,
0.00861954316496849,
-0.018497413024306297,
0.059752579778432846,
0.001128562493249774,
-0.009041981771588326,
-0.02626309171319008,
-0.012673155404627323,
0.0307571180164814,
-0.02851010486483574,
0.005959079135209322,
-0.004096305463463068,
0.05241832882165909,
0.005595063325017691,
-0.01528867892920971,
0.003118854481726885,
0.016816647723317146,
0.009491384029388428,
0.014219100587069988,
-0.005397325847297907,
-0.058817822486162186,
0.04565931111574173,
-0.07478060573339462,
0.004974887706339359,
0.05993233993649483,
0.020366929471492767,
-0.015405523590743542,
0.022164540365338326,
0.032482825219631195,
0.011414827778935432,
-0.04414931684732437,
-0.019342290237545967,
0.004947923589497805,
0.02185894548892975,
-0.01573808118700981,
-0.012484406121075153,
-0.03588030859827995,
0.031278423964977264,
-0.02926510199904442,
-0.043538130819797516,
0.006637677550315857,
-0.008570108562707901,
-0.037354350090026855,
-0.023548699915409088,
-0.034172579646110535,
0.028240462765097618,
-0.05130380764603615,
0.038756486028432846,
-0.030056050047278404,
0.029750457033514977,
0.0007864546496421099,
-0.012727083638310432,
-0.0038805920630693436,
0.04648621007800102,
0.06820134818553925,
0.03555673733353615,
0.013518032617866993,
0.007311781402677298,
0.04716930538415909,
0.06751825660467148,
0.024968812242150307,
-0.0016897540772333741,
-0.024501433596014977,
-0.03672518581151962,
-0.01397642306983471,
0.06525326520204544,
0.04867929592728615,
0.01939621940255165,
0.0294448621571064,
0.005842234473675489,
-0.001004976686090231,
-0.016529029235243797,
-0.039223864674568176,
-0.06884849071502686,
-0.0016122320666909218,
0.011369887739419937,
-0.03911600634455681,
-0.016933493316173553,
0.017095277085900307,
-0.048427630215883255,
0.0466659739613533,
0.04303479939699173,
-0.042243849486112595,
0.017328966408967972,
0.008790316060185432,
-0.01660093478858471,
-0.00656577292829752,
-0.030145930126309395,
0.027521418407559395,
-0.057595446705818176,
-0.056301165372133255,
-0.006956753320991993,
-0.016367245465517044,
-0.03593423590064049,
-0.002813260769471526,
-0.05374855920672417,
0.015477428212761879,
-0.01658295840024948,
0.0029862807132303715,
0.03667125850915909,
0.001551562687382102,
0.017607595771551132,
0.007334251422435045,
-0.004979381337761879,
-0.012709107249975204,
-0.022434180602431297,
-0.002348128939047456,
-0.04623454809188843,
-0.018146879971027374,
-0.01452469453215599,
0.021589303389191628,
0.00722190085798502,
-0.025058692321181297,
-0.07118538022041321,
-0.005370361730456352,
-0.01773342862725258,
-0.05346094071865082,
-0.03836101293563843,
-0.03681506589055061,
0.004491779487580061,
-0.028438201174139977,
-0.07837582379579544,
0.038684580475091934,
-0.03562864288687706,
-0.010938460938632488,
0.05054881051182747,
0.028725817799568176,
-0.014174160547554493,
-0.020654546096920967,
-0.011271018534898758,
0.0070735979825258255,
0.028797723352909088,
-0.030721167102456093,
0.01236756145954132,
-0.006835414562374353,
-0.019198480993509293,
-0.05004548281431198,
0.023297034204006195,
0.0019313079537823796,
-0.06741040199995041,
0.061909712851047516,
0.013509044423699379,
0.018982768058776855,
0.01622343622148037,
0.005392832215875387,
0.006781486328691244,
-0.019917525351047516,
-0.02700011245906353,
0.037066731601953506,
0.006597231142222881,
-0.0049928636290133,
-0.013086605817079544,
-0.024807026609778404,
0.04206408932805061,
0.013347258791327477,
-0.04774453863501549,
0.029139269143342972,
0.014362908899784088,
-0.012843928299844265,
-0.013985411264002323,
0.05482712388038635,
-0.00656577292829752,
-0.05277784913778305,
0.018236760050058365,
0.04422122240066528,
0.016340281814336777,
-0.0255080945789814,
-0.014407849870622158,
0.013967434875667095,
0.010300309397280216,
0.0007415143772959709,
-0.00585571676492691,
-0.05173523351550102,
-0.008417312055826187,
-0.035394955426454544,
0.018317652866244316,
-0.07866344600915909,
-0.014264040626585484,
0.002471714746206999,
-0.025454167276620865,
-0.044940266758203506,
-0.0763624981045723,
0.003112113568931818,
-0.043178606778383255,
0.0568404495716095,
-0.035125311464071274,
0.0015223515219986439,
-0.015783021226525307,
-0.00558158103376627,
-0.036994826048612595,
0.047564778476953506,
-0.032105326652526855,
-0.012790000066161156,
0.0515914261341095,
0.011324946768581867,
-0.04961405321955681,
0.06895634531974792,
-0.013221426866948605,
-0.012493394315242767,
0.004577165935188532,
0.03757006302475929,
0.026191188022494316,
-0.019180506467819214,
0.03000212274491787,
0.007747701834887266,
-0.057703301310539246,
0.04170456901192665,
-0.04479645937681198,
-0.059285201132297516,
0.03667125850915909,
-0.0033210855908691883,
0.04508407413959503,
0.042531467974185944,
-0.019827645272016525,
-0.048319775611162186,
0.023656556382775307,
-0.02193085104227066,
0.05008143186569214,
-0.010785664431750774,
0.0015122399199754,
-0.024321671575307846,
-0.04583907127380371,
0.00722190085798502,
0.05220261216163635,
-0.0013358494034036994,
-0.06960348784923553,
-0.006453422363847494,
0.06715873628854752,
-0.0018953557591885328,
0.0378936342895031,
-0.01190018281340599,
0.011181138455867767,
-0.040266480296850204,
-0.04742097109556198,
0.04375384375452995,
0.007293805480003357,
0.002307682763785124,
-0.003017738927155733,
0.020097287371754646,
-0.05238237604498863,
-0.04501217231154442,
0.013661840930581093,
-0.052166663110256195,
0.07887915521860123,
-0.004889500793069601,
0.015477428212761879,
-0.012520357966423035,
-0.037821728736162186,
-0.040266480296850204,
-0.05238237604498863,
-0.027036065235733986,
-0.026982136070728302,
0.009581265039741993,
-0.003096384461969137,
0.050405003130435944,
-0.03224913403391838,
-0.01810193993151188,
0.0012673154706135392,
-0.026137258857488632,
0.0038963211700320244,
0.011549648828804493,
-0.027880940586328506,
0.03629375994205475,
-0.028276415541768074,
0.03494555130600929,
-0.0030065039172768593,
-0.016277365386486053,
-0.03818124905228615,
0.009922810830175877,
0.03893624618649483,
-0.040733858942985535,
-0.0038918270729482174,
-0.005406314041465521,
-0.007639845367521048,
-0.0011206979397684336,
0.04961405321955681,
-0.029966169968247414,
-0.013032677583396435,
0.0041389986872673035,
-0.009419480338692665
] |
20,872 | precession.precession | eval_tau |
Evaluate the nutation period.
Setting return_psiperiod=True return the phase-period instead of the time period (i.e. returns tau/2K(m) insteaf of tau). This is useful to avoid the evaluation of an elliptic integral when it's not needed.
Setting donotnormalize=True is equivalent to mathcalA=1.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
MISSING: COULD NOT BUILD, optional (default: False)
FILL MANUALLY.
donotnormalize: boolean, optional (default: False)
If True omit the numerical prefactor.
Returns
-------
tau: float
Nutation period.
Examples
--------
``tau = precession.eval_tau(kappa,r,chieff,q,chi1,chi2)``
``tau = precession.eval_tau(kappa,r,chieff,q,chi1,chi2,return_psiperiod=True)``
| def eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=None, return_psiperiod=False, donotnormalize=False):
"""
Evaluate the nutation period.
Setting return_psiperiod=True return the phase-period instead of the time period (i.e. returns tau/2K(m) insteaf of tau). This is useful to avoid the evaluation of an elliptic integral when it's not needed.
Setting donotnormalize=True is equivalent to mathcalA=1.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
MISSING: COULD NOT BUILD, optional (default: False)
FILL MANUALLY.
donotnormalize: boolean, optional (default: False)
If True omit the numerical prefactor.
Returns
-------
tau: float
Nutation period.
Examples
--------
``tau = precession.eval_tau(kappa,r,chieff,q,chi1,chi2)``
``tau = precession.eval_tau(kappa,r,chieff,q,chi1,chi2,return_psiperiod=True)``
"""
q=np.atleast_1d(q).astype(float)
u = eval_u(r,q)
if donotnormalize:
mathcalA = 1
else:
mathcalA = ddchidt_prefactor(r, chieff, q)
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
psiperiod = 2 / ( mathcalA * (deltachi3 - (1-q)*deltachiminus)**(1/2) )
if return_psiperiod:
tau = psiperiod
else:
tau = 2*scipy.special.ellipk(m) * psiperiod
return tau
| (kappa, r, chieff, q, chi1, chi2, precomputedroots=None, return_psiperiod=False, donotnormalize=False) | [
0.010521069169044495,
0.01721452921628952,
0.002444472862407565,
0.008786987513303757,
0.02630753070116043,
0.033904463052749634,
-0.0306208785623312,
-0.08626694232225418,
-0.012357155792415142,
0.04165682941675186,
0.06330128014087677,
-0.008485830388963223,
0.011045665480196476,
0.014368108473718166,
-0.061086319386959076,
0.03573083505034447,
0.04018018767237663,
0.0418899841606617,
-0.04682507365942001,
-0.04150139167904854,
-0.00944758951663971,
-0.04204541817307472,
-0.04060763493180275,
0.045931316912174225,
-0.027551017701625824,
-0.02543320320546627,
0.003057716181501746,
-0.030990038067102432,
-0.07286059111356735,
-0.00748035404831171,
0.034293051809072495,
0.042123135179281235,
0.003373445477336645,
0.029882557690143585,
0.06104746088385582,
-0.026773838326334953,
0.0039830454625189304,
0.016884228214621544,
-0.05968739464879036,
0.03821780905127525,
-0.016068188473582268,
-0.022946229204535484,
0.05813303589820862,
-0.03874240443110466,
-0.017078522592782974,
0.012978900223970413,
0.04068535566329956,
0.07585272938013077,
0.0033321576192975044,
0.007349204737693071,
0.03217523545026779,
-0.043677493929862976,
0.01218229066580534,
-0.020031806081533432,
-0.06232980638742447,
0.07021818310022354,
-0.015193861909210682,
-0.014115525409579277,
0.0007431780104525387,
-0.058171894401311874,
0.044260378926992416,
-0.01809857040643692,
0.04507641866803169,
0.01955578289926052,
0.03180607780814171,
0.0326998345553875,
0.014552689157426357,
-0.013221768662333488,
-0.014640121720731258,
0.004002475179731846,
-0.01740882359445095,
-0.02298508770763874,
-0.02055640146136284,
-0.03573083505034447,
0.06664315611124039,
-0.005610265303403139,
-0.01550473365932703,
-0.03266097605228424,
-0.02906651794910431,
0.020128952339291573,
-0.042006559669971466,
0.022169049829244614,
0.012629169039428234,
0.005449972115457058,
0.03229181468486786,
0.056889548897743225,
0.009418445639312267,
-0.034681640565395355,
-0.001997594488784671,
-0.010045046918094158,
-0.029999133199453354,
-0.08432398736476898,
0.04352205991744995,
0.018506590276956558,
0.041734546422958374,
0.038684114813804626,
-0.01889517903327942,
-0.06629342585802078,
0.002637553494423628,
-0.09263981133699417,
0.04087964817881584,
0.021663881838321686,
0.04744681715965271,
-0.006771177519112825,
0.06932442635297775,
0.007213198579847813,
-0.06046457588672638,
0.025608068332076073,
0.052109893411397934,
-0.027609307318925858,
-0.0776791051030159,
0.05918223038315773,
-0.04204541817307472,
-0.014300105161964893,
-0.033010706305503845,
-0.05568492040038109,
-0.0336713083088398,
0.044571250677108765,
0.031456347554922104,
0.026113236322999,
-0.0015701457159593701,
0.010346204042434692,
-0.00904928520321846,
-0.005333395209163427,
0.0011675909627228975,
-0.00711605092510581,
-0.003123290603980422,
0.05164358764886856,
-0.013736650347709656,
-0.005056525114923716,
0.0259383711963892,
-0.005289678927510977,
0.06602141261100769,
-0.017457397654652596,
0.007669791579246521,
0.01090965885668993,
0.02962997369468212,
0.01222115010023117,
0.012561165727674961,
0.010967947542667389,
0.038295526057481766,
0.02924138307571411,
-0.02894994243979454,
0.009311583824455738,
0.012881752103567123,
0.016864798963069916,
0.005022523459047079,
0.011337107978761196,
-0.01788484677672386,
0.005075954366475344,
-0.06264068186283112,
0.03452620655298233,
0.04666963592171669,
0.0009113645646721125,
0.04130709916353226,
-0.06753691285848618,
0.0786505788564682,
-0.02710413932800293,
-0.058443907648324966,
-0.09955671429634094,
-0.06765348464250565,
0.0009283653926104307,
-0.013367489911615849,
0.0013175623025745153,
0.022654786705970764,
-0.0005983675946481526,
0.017165955156087875,
0.01339663378894329,
0.028541922569274902,
0.05692840740084648,
-0.024869749322533607,
-0.021255863830447197,
-0.03264154493808746,
0.013406348414719105,
-0.00919500645250082,
-0.012668028473854065,
-0.005090526770800352,
-0.05634552240371704,
-0.007388063706457615,
-0.0009581167832948267,
-0.02337367832660675,
-0.04822399467229843,
-0.03942243754863739,
-0.05595693364739418,
-0.018049996346235275,
0.06640999764204025,
0.022441061213612556,
0.01641792058944702,
-0.00726177217438817,
-0.024209145456552505,
0.03231124207377434,
0.008548975922167301,
0.0011481614783406258,
0.08548975735902786,
0.058560486882925034,
0.02494746632874012,
0.05587921664118767,
0.058949075639247894,
-0.02896937169134617,
0.021450158208608627,
0.012201719917356968,
0.015446444973349571,
-0.013299486599862576,
-0.005789988208562136,
0.018127715215086937,
-0.038781262934207916,
-0.05898793414235115,
0.008704411797225475,
0.018079141154885292,
-0.003366159275174141,
0.022732503712177277,
-0.035672545433044434,
-0.011871418915688992,
-0.0010242984862998128,
-0.04647534340620041,
0.05086640641093254,
0.06889697164297104,
-0.029124807566404343,
0.023723408579826355,
0.01800142414867878,
0.03631372004747391,
0.02378169633448124,
0.09054142981767654,
-0.004735938273370266,
0.024597736075520515,
0.030407153069972992,
-0.021858178079128265,
0.07429837435483932,
-0.012230864726006985,
-0.030892889946699142,
0.03415704518556595,
0.03137862682342529,
-0.060503434389829636,
-0.04616447165608406,
0.02700699307024479,
0.00875298585742712,
-0.03081517294049263,
0.013066332787275314,
0.010433636605739594,
0.06994616985321045,
-0.03180607780814171,
0.009947899729013443,
-0.004675221163779497,
0.021450158208608627,
-0.07324918359518051,
-0.061669204384088516,
0.036527443677186966,
0.03631372004747391,
-0.022071901708841324,
-0.008048666641116142,
0.011764557100832462,
-0.055995792150497437,
-0.016456779092550278,
0.06007598713040352,
0.0042550587095320225,
0.049856074154376984,
0.05059439316391945,
0.06396188586950302,
0.06077544763684273,
0.0168356541544199,
0.07981634885072708,
-0.018322009593248367,
-0.010773653164505959,
0.027434440329670906,
-0.07907802611589432,
-0.015252150595188141,
-0.052381906658411026,
0.010695935226976871,
-0.026929274201393127,
0.0015580023173242807,
-0.02415085770189762,
0.02953282557427883,
-0.03586684167385101,
-0.04301689192652702,
-0.019779222086071968,
0.030756883323192596,
0.04080193117260933,
0.05109956115484238,
-0.04729137942194939,
0.009491306729614735,
-0.03668287768959999,
-0.03501194342970848,
0.01770026609301567,
-0.010880514979362488,
-0.0667208731174469,
0.012823464348912239,
-0.029707692563533783,
0.03549768030643463,
0.08852075785398483,
0.02104213833808899,
-0.0231988113373518,
-0.0399470329284668,
-0.019701503217220306,
-0.0036381722893565893,
0.054558008909225464,
0.033010706305503845,
-0.09069686383008957,
-0.049078892916440964,
0.06372872740030289,
-0.027337294071912766,
-0.004461497068405151,
0.01867174170911312,
-0.016505353152751923,
-0.009753604419529438,
0.007368634454905987,
0.01946835033595562,
0.08471257984638214,
0.02201361395418644,
0.03328271955251694,
-0.020692408084869385,
-0.01301775872707367,
-0.05016694590449333,
-0.021741600707173347,
0.05389740690588951,
-0.0030965751502662897,
-0.034487348049879074,
0.01189084816724062,
-0.05704498663544655,
0.041812263429164886,
0.02133358083665371,
-0.022460492327809334,
0.024617165327072144,
0.06481678038835526,
-0.01354235503822565,
-0.010550213977694511,
-0.07309374213218689,
-0.03248610720038414,
0.0467473566532135,
-0.00740749342367053,
-0.023023946210741997,
-0.03425419330596924,
0.020517542958259583,
-0.02514176070690155,
0.03600284829735756,
-0.07662991434335709,
-0.029474537819623947,
0.015533878467977047,
-0.03021285869181156,
0.028600210323929787,
0.000209474193979986,
0.017292246222496033,
0.005658839363604784,
-0.037013180553913116,
-0.017641978338360786,
-0.018963182345032692,
-0.0182928666472435,
0.018224863335490227,
0.0009210793068632483,
0.05059439316391945,
0.026171524077653885,
-0.0032447250559926033,
0.038120660930871964,
0.011220530606806278,
0.03973330929875374,
0.0005157922860234976,
0.008820989169180393,
-0.009802178479731083,
0.0010151908500120044,
0.01287203747779131,
-0.0354393906891346,
-0.005527690052986145,
-0.007368634454905987,
0.01258059497922659,
0.015922468155622482,
0.049350906163454056,
-0.020808985456824303,
-0.029901986941695213,
0.02191646583378315,
-0.008981281891465187,
-0.007966090925037861,
-0.0027468441985547543,
-0.03990817442536354,
0.01937120221555233,
-0.03891726955771446,
0.05370311439037323,
0.05312022939324379,
0.02504461444914341,
-0.010540498420596123,
-0.0567341148853302,
-0.06372872740030289,
0.043094612658023834,
-0.019293485209345818,
-0.09333927184343338,
0.01345492247492075,
-0.01984722539782524,
-0.010598787106573582,
-0.0038130376487970352,
-0.00033273003646172583,
0.048962317407131195,
-0.005440257489681244,
0.012502877041697502,
-0.013979518786072731,
0.04744681715965271,
-0.003021285869181156,
-0.05762787163257599,
0.04643648490309715,
-0.00095690245507285,
-0.03514795005321503,
-0.09038598835468292,
0.0062805828638374805,
0.025180621072649956,
-0.040257904678583145,
0.02133358083665371,
0.03549768030643463,
0.03196151182055473,
-0.01251259259879589,
0.03112604469060898,
-0.0201483815908432,
-0.004590217024087906,
0.03782922029495239,
-0.02024552971124649,
0.001158483442850411,
-0.02953282557427883,
0.008922994136810303,
-0.06913013011217117,
0.0399470329284668,
-0.07095649838447571,
-0.08595606684684753,
-0.016787080094218254,
0.016311056911945343,
-0.001961164176464081,
-0.06819751113653183,
-0.02924138307571411,
0.08168157935142517,
0.07468696683645248,
0.05545176565647125,
0.05626780539751053,
0.0026351246051490307,
-0.022460492327809334,
0.04146253317594528,
0.01857459358870983,
0.02063411846756935,
-0.03590570017695427,
-0.0069994740188121796,
0.019040901213884354,
0.012755461037158966,
-0.012881752103567123,
0.011686839163303375,
0.030892889946699142,
-0.0004893803270533681,
-0.04562044516205788,
0.0438329316675663,
0.006615741644054651,
-0.027648165822029114,
0.015087000094354153,
0.015417301096022129,
-0.02259649708867073,
-0.003878612071275711,
-0.05074983090162277,
-0.015796175226569176,
0.021275293081998825,
-0.008194387890398502,
0.0348176471889019,
0.0037013180553913116,
0.03073745407164097,
0.0033321576192975044,
-0.006479735020548105,
-0.009685601107776165,
-0.003963616210967302,
-0.04052991792559624,
-0.004160339944064617,
0.03825666755437851,
0.07814541459083557,
-0.005712270271033049,
0.021061567589640617,
0.06761462986469269,
0.009287296794354916,
-0.0567341148853302,
-0.022829651832580566,
-0.039169855415821075,
0.021178144961595535,
0.018623167648911476,
0.01027820073068142,
0.01769055239856243,
-0.00415791105479002,
-0.00543054286390543,
-0.015533878467977047,
0.05016694590449333,
0.01236687134951353,
-0.06885811686515808,
0.00048087991308420897,
0.006576882675290108,
0.018370583653450012,
0.04698050767183304,
0.02681269682943821,
-0.04880687966942787,
-0.0238594152033329,
-0.013338345102965832,
-0.02455887570977211,
-0.05692840740084648,
-0.018127715215086937,
-0.007519213017076254,
0.03341872617602348,
0.060697730630636215,
-0.05032237991690636,
-0.06811979413032532,
0.05529633164405823,
-0.00044566395808942616,
0.019604356959462166,
-0.008097240701317787,
0.027920179069042206,
0.05389740690588951,
0.029416250064969063,
0.006465163081884384,
0.013639502227306366,
-0.007320060860365629,
-0.014746983535587788,
-0.022266196087002754,
-0.032544396817684174,
-0.0036017419770359993,
-0.019011756405234337,
-0.05335338041186333,
0.0412682369351387,
-0.027609307318925858,
0.033321578055620193,
-0.013085762038826942,
0.021391870453953743,
-0.0236845500767231,
-0.02475317195057869,
-0.04635876417160034,
-0.00623686658218503,
-0.011395396664738655,
0.007106336299329996,
0.0818370133638382,
0.030368294566869736,
0.03998589143157005,
-0.024908607825636864,
0.0006976401782594621,
0.007660076953470707,
-0.005192531272768974,
-0.007422065362334251,
-0.05172130465507507,
-0.008500401861965656,
-0.019147763028740883,
-0.05378083139657974,
0.00011650104715954512,
-0.0764356181025505,
-0.0577055886387825,
0.01272631622850895,
0.010453065857291222,
-0.04507641866803169,
0.05109956115484238,
0.04060763493180275,
-0.045737020671367645,
0.0399470329284668,
-0.01605847477912903,
-0.030290575698018074,
0.01623333990573883,
0.033030133694410324,
0.01770026609301567,
-0.006027999334037304,
-0.012638883665204048,
0.07041247189044952,
0.07472582161426544,
-0.008121526800096035,
0.01760311797261238,
0.043483201414346695,
-0.02043982408940792,
-0.03405989706516266,
-0.01976950652897358,
-0.02036210708320141,
-0.07938890159130096,
0.03920871391892433,
-0.043483201414346695,
-0.0027954180259257555,
0.008286678232252598,
-0.0021408870816230774,
-0.0023886130657047033,
-0.003361301962286234,
0.02661840245127678,
-0.026579543948173523,
0.02485031820833683,
0.03808180242776871,
-0.03231124207377434,
-0.08797673135995865,
-0.005891993176192045,
0.026851557195186615,
-0.047796547412872314,
-0.021197574213147163,
-0.034875936806201935,
0.015990471467375755,
-0.03452620655298233,
0.05106070265173912,
-0.04332776367664337,
0.011375967413187027,
0.024228574708104134,
0.01566988416016102,
0.0699073076248169,
0.00973417516797781,
0.011103954166173935,
-0.048379432410001755,
-0.006606027018278837,
-0.03749891743063927,
-0.019604356959462166,
-0.0007012831629253924,
-0.011715983040630817,
0.0017085808794945478,
-0.015427015721797943,
0.04336662217974663,
-0.035478249192237854,
-0.0238594152033329,
-0.023937132209539413,
-0.008145813830196857,
-0.008680124767124653,
-0.04305575042963028,
-0.01291089691221714,
0.012823464348912239,
0.02092556096613407,
0.04441581666469574,
-0.023820556700229645,
0.04989493265748024,
-0.03753777593374252,
0.020517542958259583,
0.0029338530730456114,
0.05755015090107918,
0.013756079599261284,
-0.016952231526374817,
-0.01888546533882618,
0.041151661425828934,
0.011910278350114822,
-0.08859848231077194,
0.04810741916298866,
-0.022441061213612556,
0.015378441661596298,
-0.04340548440814018,
-0.04694164916872978,
0.009029855951666832,
-0.07134509086608887,
-0.003584741149097681,
-0.05626780539751053,
0.033030133694410324,
0.009977043606340885,
-0.028095044195652008,
-0.028328197076916695,
-0.05323680490255356,
0.039169855415821075,
0.04216199368238449,
0.012706886976957321,
-0.04853487014770508,
0.0043327766470611095,
0.003917471040040255,
0.0069849020801484585,
0.004507641773670912,
0.062368664890527725,
0.03730462118983269,
0.013367489911615849,
-0.04018018767237663,
-0.011239960789680481,
0.014338964596390724,
0.03328271955251694,
-0.018030567094683647,
-0.026054946705698967,
0.030290575698018074,
-0.022343914955854416,
-0.0790003091096878,
-0.026113236322999,
0.047407958656549454,
-0.007023761048913002,
-0.038295526057481766,
0.012308582663536072,
-0.008573262952268124,
-0.009097859263420105,
-0.12916725873947144,
0.002367969136685133,
0.05755015090107918,
-0.038878411054611206,
0.01613619178533554,
-0.006819751113653183,
-0.04293917492032051,
0.0013552069431170821,
0.029299672693014145,
-0.02426743507385254,
0.019147763028740883,
-0.017787698656320572,
0.027667595073580742,
0.055024318397045135,
-0.032330673187971115,
0.008432399481534958,
-0.00871412642300129,
0.018360868096351624,
0.03376845642924309,
-0.0013758508721366525,
-0.013513211160898209,
-0.02737615257501602,
0.0018555163405835629,
-0.024714311584830284,
0.05984283238649368,
0.010083905421197414,
-0.044648971408605576,
-0.07099536061286926,
-0.02807561494410038,
0.031359199434518814,
-0.033515870571136475,
0.018049996346235275,
0.09893497079610825,
-0.04904003441333771,
-0.04616447165608406,
0.07375434786081314,
0.009471876546740532,
-0.0032908699940890074,
0.03347701206803322,
-0.005935709457844496,
0.028095044195652008,
-0.038684114813804626,
-0.029319101944565773,
0.07029590010643005,
-0.006688602268695831,
-0.024889178574085236,
-0.008524688892066479,
-0.001964807277545333,
0.001694008708000183,
0.05354767665266991,
0.027725882828235626,
-0.036838315427303314,
-0.03227238357067108,
0.047485675662755966,
0.01711738109588623,
0.05700612813234329,
0.009598168544471264,
0.010035332292318344,
-0.00856354832649231,
-0.013707505539059639,
0.020012374967336655,
-0.02858078107237816,
-0.010113050229847431,
0.04810741916298866,
0.021761029958724976,
-0.008767557330429554,
-0.0054159704595804214,
0.033399295061826706,
-0.006450591143220663,
0.026268672198057175,
0.012522307224571705,
-0.03143691644072533,
-0.03528395667672157,
-0.05696726590394974,
-0.012920611537992954,
-0.04266716167330742,
0.0069266133941709995,
-0.004896231926977634,
0.00609114533290267,
0.0201483815908432,
0.0036430296022444963,
-0.025180621072649956,
0.0670706033706665,
-0.03357416018843651,
-0.054441433399915695,
-0.027725882828235626,
0.10305401682853699,
0.02533605694770813,
0.022091330960392952,
0.02473374269902706,
-0.023159952834248543,
-0.01858430728316307,
0.024772601202130318,
-0.0201483815908432,
0.032039228826761246,
0.014902419410645962,
-0.038586970418691635,
0.0007037118775770068,
-0.01437782309949398,
-0.005323680583387613,
0.027648165822029114,
0.06497221440076828,
0.022479921579360962,
-0.020789556205272675,
0.001771726761944592,
-0.02622981369495392
] |
20,873 | precession.precession | eval_theta1 |
Angle between the orbital angular momentum and the spin of the primary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
theta1: float
Angle between orbital angular momentum and primary spin.
Examples
--------
``theta1 = precession.eval_theta1(deltachi,chieff,q,chi1)``
| def eval_theta1(deltachi, chieff, q, chi1):
"""
Angle between the orbital angular momentum and the spin of the primary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
Returns
-------
theta1: float
Angle between orbital angular momentum and primary spin.
Examples
--------
``theta1 = precession.eval_theta1(deltachi,chieff,q,chi1)``
"""
costheta1 = eval_costheta1(deltachi, chieff, q, chi1)
theta1 = np.arccos(costheta1)
return theta1
| (deltachi, chieff, q, chi1) | [
-0.01830391399562359,
0.034798044711351395,
0.04805785417556763,
0.005783248692750931,
0.015544440597295761,
-0.029243258759379387,
-0.01911921426653862,
0.03357957676053047,
-0.04726943373680115,
0.017855947837233543,
0.11088068783283234,
0.0229179710149765,
0.013851126655936241,
0.039492733776569366,
-0.055762879550457,
-0.0036262895446270704,
0.011682968586683273,
0.0015018079429864883,
-0.0278635211288929,
-0.0587732158601284,
-0.0031156076584011316,
-0.03999445587396622,
0.03813091665506363,
0.05787728354334831,
-0.07056369632482529,
-0.04010196775197983,
0.007713984698057175,
0.004748445935547352,
-0.07249891012907028,
-0.02211163006722927,
0.02530115284025669,
-0.027415554970502853,
-0.010383865796029568,
0.03553270921111107,
0.009183314628899097,
-0.0028177096974104643,
0.02119777910411358,
0.009053404442965984,
-0.07024116069078445,
-0.006020670756697655,
0.012453471310436726,
0.03723498061299324,
0.035084743052721024,
-0.027254287153482437,
-0.0418579988181591,
0.006549271289259195,
-0.04909713566303253,
0.05149823799729347,
-0.015508603304624557,
0.00701963622123003,
0.011252920143306255,
-0.047842830419540405,
-0.02021225169301033,
-0.02229081653058529,
0.015893854200839996,
0.042073022574186325,
0.02119777910411358,
0.004347515758126974,
-0.010124044492840767,
0.00046532528358511627,
0.029691224917769432,
-0.01299999002367258,
0.04450995847582817,
0.03934938460588455,
0.03526392951607704,
-0.011682968586683273,
0.009246029891073704,
0.04855957627296448,
0.008659194223582745,
-0.009272907860577106,
-0.03730665519833565,
0.03621361777186394,
0.007879732176661491,
-0.04931216314435005,
-0.0018456223187968135,
0.002201755763962865,
-0.041678812354803085,
-0.024243950843811035,
0.02039143815636635,
0.014048231765627861,
-0.056587137281894684,
-0.03144725412130356,
-0.006526872981339693,
-0.05905991420149803,
-0.017264632508158684,
0.05167742446064949,
-0.03660782799124718,
-0.03159060329198837,
-0.03730665519833565,
0.02668089047074318,
-0.004967949353158474,
-0.04988555982708931,
-0.02657337673008442,
0.005021705292165279,
0.10908882319927216,
0.03544311597943306,
-0.013958638533949852,
-0.01652100682258606,
0.00398018304258585,
0.0036173302214592695,
-0.0030103353783488274,
0.018492059782147408,
0.027361799031496048,
0.027917277067899704,
0.02121569775044918,
-0.04572843015193939,
-0.04691106081008911,
-0.0005126417381688952,
0.06984695047140121,
-0.05615708976984024,
-0.09138518571853638,
-0.022667108103632927,
0.008426251821219921,
-0.05085316672921181,
-0.018339751288294792,
-0.033920031040906906,
-0.05733972415328026,
0.022165386006236076,
-0.0003575333394110203,
0.01781115122139454,
0.09081178903579712,
0.035210173577070236,
0.03870431333780289,
0.028042707592248917,
0.03574773296713829,
0.008193308487534523,
-0.0028423480689525604,
-0.0016350779915228486,
-0.03194897621870041,
-0.03458302095532417,
0.07328733056783676,
0.04114124923944473,
0.037270817905664444,
0.035210173577070236,
-0.00910716038197279,
0.019871797412633896,
0.006114743649959564,
-0.03137557953596115,
0.02768433466553688,
-0.022237060591578484,
0.010222597047686577,
-0.01308958325535059,
0.008645755238831043,
-0.013044786639511585,
0.011494822800159454,
0.03526392951607704,
-0.03664366528391838,
-0.009604403749108315,
-0.050530631095170975,
-0.02626875974237919,
-0.011924870312213898,
0.05067398026585579,
0.05665881186723709,
-0.03752168267965317,
0.004614055622369051,
-0.04687522351741791,
0.016395576298236847,
0.01205030083656311,
0.009935898706316948,
-0.029099909588694572,
-0.011396270245313644,
0.009505851194262505,
0.021269453689455986,
0.02069605514407158,
0.030443808063864708,
-0.021932443603873253,
-0.03716330602765083,
0.021663663908839226,
-0.037844218313694,
-0.00181202485691756,
-0.0014536515809595585,
-0.045155029743909836,
0.003910748288035393,
0.0008785744430497289,
0.01145002618432045,
-0.022470002993941307,
-0.030443808063864708,
-0.011333554051816463,
-0.005465192254632711,
-0.006679181940853596,
-0.02567744441330433,
-0.041678812354803085,
-0.02517572231590748,
-0.03963608294725418,
0.03891933709383011,
0.05286005511879921,
0.04909713566303253,
0.05855819210410118,
0.03660782799124718,
0.007610952015966177,
0.012023422867059708,
0.017381103709340096,
-0.006813571788370609,
0.03436799719929695,
0.05020809546113014,
-0.04841622710227966,
0.0488104373216629,
-0.01394071988761425,
-0.075688436627388,
0.05415020138025284,
0.0019912114366889,
-0.0031133678276091814,
0.0004961229860782623,
-0.022147467359900475,
0.03705579414963722,
-0.030622996389865875,
-0.07027699798345566,
0.03142933547496796,
0.011718805879354477,
-0.03544311597943306,
0.04597929120063782,
0.014836653135716915,
-0.060099195688962936,
0.0303542148321867,
-0.07755197584629059,
0.024674000218510628,
0.030748426914215088,
-0.018277036026120186,
0.04601512849330902,
0.03322120010852814,
0.0065313526429235935,
0.034099217504262924,
0.02866986207664013,
-0.029798736795783043,
0.05723221227526665,
-0.030425889417529106,
-0.04558508098125458,
0.02150239609181881,
-0.04630182683467865,
-0.05336178094148636,
0.02659129537642002,
-0.060170870274305344,
0.017802191898226738,
-0.0428256057202816,
0.031196393072605133,
0.04640933871269226,
-0.0023271862883120775,
0.024172276258468628,
-0.10916049778461456,
0.059095751494169235,
-0.02519364096224308,
0.048237040638923645,
0.030999287962913513,
0.08507781475782394,
-0.040854550898075104,
-0.01613575592637062,
-0.021179860457777977,
0.0007234660442918539,
-0.04350651428103447,
0.014971042983233929,
-0.052609194070100784,
-0.006988278590142727,
-0.0004040098574478179,
-0.00048576376866549253,
-0.03644656017422676,
-0.026662971824407578,
0.017999297007918358,
0.03417089208960533,
0.010688482783734798,
0.02021225169301033,
0.007507919799536467,
-0.025928305462002754,
-0.016646437346935272,
0.03146517276763916,
-0.05536866933107376,
0.01852789707481861,
-0.03891933709383011,
0.015401091426610947,
-0.017381103709340096,
-0.025408664718270302,
-0.03447550907731056,
0.001760508632287383,
-0.0024772551842033863,
0.005792208015918732,
0.00154996442142874,
0.013062705285847187,
0.03553270921111107,
0.02152031473815441,
-0.04300479218363762,
0.0031760830897837877,
-0.016503088176250458,
-0.04318397864699364,
0.01214885339140892,
-0.02569536305963993,
-0.08450441807508469,
0.018922109156847,
-0.00860991794615984,
0.019943471997976303,
0.0627153217792511,
0.02031976357102394,
0.018940027803182602,
-0.006060987710952759,
-0.006123702973127365,
-0.02082148753106594,
0.1284409761428833,
0.05389934033155441,
-0.042180534452199936,
-0.028759455308318138,
0.02908199094235897,
0.034117136150598526,
0.019567180424928665,
0.0617118775844574,
-0.027505148202180862,
-0.08722805231809616,
-0.059884171932935715,
-0.0012811843771487474,
0.01713920198380947,
0.038095079362392426,
-0.017873866483569145,
0.027325961738824844,
0.015893854200839996,
-0.03777254372835159,
-0.0022476722951978445,
0.017793232575058937,
-0.04010196775197983,
-0.025157803669571877,
0.05604957789182663,
-0.008972770534455776,
0.09984279423952103,
-0.01953134313225746,
-0.004524462390691042,
0.02469191886484623,
0.06457886099815369,
-0.05458024889230728,
0.00930874515324831,
-0.03662574663758278,
-0.004708128981292248,
0.034798044711351395,
-0.044151585549116135,
0.00022370331862475723,
-0.042861443012952805,
0.04687522351741791,
-0.022667108103632927,
0.011880073696374893,
-0.022864215075969696,
0.004667811561375856,
0.011889033019542694,
-0.030121272429823875,
-0.05117570236325264,
-0.02338385581970215,
0.04841622710227966,
-0.05010058358311653,
0.04988555982708931,
0.039886943995952606,
-0.012856640852987766,
-0.006083386018872261,
0.007033075205981731,
-0.004358714912086725,
0.010097166523337364,
0.0015230863355100155,
-0.03046172671020031,
0.009783590212464333,
0.022828377783298492,
0.015051676891744137,
0.056407950818538666,
0.08056230843067169,
-0.018178483471274376,
-0.05357680469751358,
0.02279254049062729,
-0.05020809546113014,
0.0199255533516407,
-0.03316744416952133,
-0.010374906472861767,
-0.004811161197721958,
-0.028418999165296555,
-0.02110818587243557,
-0.014254296198487282,
0.016977934166789055,
-0.014379727654159069,
-0.007946927100419998,
-0.02927909605205059,
0.05927493795752525,
-0.016798747703433037,
-0.02279254049062729,
-0.009792549535632133,
0.01981804147362709,
0.04612264037132263,
0.014567873440682888,
-0.08686967939138412,
-0.010733279399573803,
0.04139211028814316,
-0.01393176056444645,
-0.06723082810640335,
0.03245069831609726,
-0.05085316672921181,
-0.008591999299824238,
-0.04142795130610466,
-0.05386350303888321,
0.00776326097548008,
0.018196402117609978,
0.02460232377052307,
-0.01761404611170292,
0.07511503994464874,
-0.014505158178508282,
-0.010141963139176369,
0.06124599277973175,
0.0348338820040226,
0.031913138926029205,
-0.11604126542806625,
-0.021753257140517235,
0.045334216207265854,
-0.0657614916563034,
0.007812537252902985,
-0.027415554970502853,
-0.03605234995484352,
-0.04687522351741791,
0.0626794844865799,
-0.012507227249443531,
-0.02816813811659813,
-0.010769116692245007,
-0.04648101329803467,
-0.01721983589231968,
0.02198619954288006,
0.0547594353556633,
-0.05056646838784218,
0.001165832974947989,
-0.019871797412633896,
-0.07092206925153732,
-0.007507919799536467,
0.10873045027256012,
-0.007333212997764349,
-0.04572843015193939,
-0.06135350465774536,
0.024656081572175026,
0.06099512800574303,
0.03909852355718613,
0.05085316672921181,
0.023885577917099,
-0.008278422057628632,
-0.014460361562669277,
-0.0038592321798205376,
0.0066299051977694035,
-0.016583722084760666,
-0.018850434571504593,
-0.02401100844144821,
0.05733972415328026,
0.01670915260910988,
0.004981388337910175,
0.08056230843067169,
0.003926427103579044,
0.013895923271775246,
-0.009846305474638939,
0.03178770840167999,
-0.008963811211287975,
-0.09346374869346619,
-0.036500316113233566,
0.0059982724487781525,
-0.020050983875989914,
-0.01672707125544548,
-0.034009624272584915,
0.008502406068146229,
0.05049479380249977,
-0.023240506649017334,
0.016297023743391037,
0.04888211190700531,
0.02888488583266735,
-0.010276352986693382,
0.02329426258802414,
-0.0032432780135422945,
-0.019370075315237045,
0.009837346151471138,
0.07740862667560577,
0.08930661529302597,
0.012077178806066513,
0.009711915627121925,
0.00734665198251605,
0.05905991420149803,
0.006647823844105005,
-0.02528323419392109,
-0.029332851991057396,
0.025928305462002754,
-0.017354225739836693,
-0.0052277701906859875,
0.015302538871765137,
0.057590585201978683,
0.026913832873106003,
-0.025462420657277107,
0.027128856629133224,
0.0061281826347112656,
-0.03526392951607704,
-0.0398152694106102,
-0.013564428314566612,
0.05956163629889488,
0.023939333856105804,
0.017175039276480675,
0.011226042173802853,
-0.04608680307865143,
-0.058880727738142014,
-0.033597495406866074,
-0.006853888742625713,
-0.012462430633604527,
0.03673325851559639,
0.011261879466474056,
0.003843553364276886,
0.004219845402985811,
0.03277323395013809,
0.056192927062511444,
-0.006710539571940899,
-0.0557270422577858,
0.04192967340350151,
-0.008502406068146229,
0.08271254599094391,
-0.0428256057202816,
-0.01363610289990902,
-0.016601640731096268,
-0.04024531692266464,
0.00473052728921175,
-0.06723082810640335,
-0.06336039304733276,
0.04035282880067825,
-0.03621361777186394,
-0.02580287493765354,
0.000009370551197207533,
0.0058997198939323425,
0.0010885588126257062,
0.03417089208960533,
0.004139211028814316,
0.0008623356698080897,
-0.029350770637392998,
-0.016673315316438675,
-0.026967588812112808,
0.016485169529914856,
0.06042173132300377,
-0.013044786639511585,
-0.017855947837233543,
0.029207421466708183,
0.016108877956867218,
-0.02825773134827614,
0.023885577917099,
0.007006197236478329,
-0.00293866079300642,
-0.01623430848121643,
-0.024745674803853035,
0.030605077743530273,
-0.017004812136292458,
-0.019674692302942276,
-0.0627153217792511,
-0.032002732157707214,
-0.032791152596473694,
-0.007937967777252197,
-0.010589930228888988,
0.012426593340933323,
0.007884211838245392,
-0.027003426104784012,
0.011369392275810242,
-0.04053201526403427,
-0.0014245337806642056,
0.014997920952737331,
-0.024960698559880257,
0.05386350303888321,
-0.03463677689433098,
-0.062177762389183044,
-0.027702253311872482,
0.053935177624225616,
0.0049231527373194695,
0.08407437056303024,
0.03841761499643326,
-0.026537539437413216,
0.00986422412097454,
0.014648507349193096,
0.022147467359900475,
-0.03777254372835159,
0.023419693112373352,
-0.058701541274785995,
-0.01782011054456234,
-0.007906610146164894,
0.04060368984937668,
0.029834574088454247,
0.029924167320132256,
-0.0032119203824549913,
-0.024853186681866646,
0.011566497385501862,
0.051534075289964676,
0.005017225630581379,
-0.12786757946014404,
-0.030121272429823875,
-0.03694828227162361,
-0.058880727738142014,
-0.01684354431927204,
-0.02178909443318844,
0.031196393072605133,
-0.007333212997764349,
-0.0008791344007477164,
-0.027827683836221695,
0.03452926501631737,
0.0009586485102772713,
0.052035797387361526,
0.04741278290748596,
-0.03931354731321335,
-0.01723775453865528,
-0.03816675394773483,
-0.02198619954288006,
0.012417634017765522,
0.011190204881131649,
-0.0002729796397034079,
-0.015311498194932938,
-0.0012431072536855936,
-0.01308958325535059,
-0.0013047027168795466,
0.0017325107473880053,
-0.01384216733276844,
-0.054329387843608856,
-0.0009155317093245685,
-0.020857324823737144,
-0.008959331549704075,
0.051928285509347916,
0.013851126655936241,
-0.03443967178463936,
-0.005191932898014784,
-0.05687383562326431,
0.07156714051961899,
-0.0013259811094030738,
0.03393794968724251,
0.025211559608578682,
-0.02768433466553688,
0.04361402615904808,
-0.024458974599838257,
-0.02646586485207081,
-0.039671920239925385,
0.05031560733914375,
-0.052609194070100784,
-0.006316328886896372,
-0.026412108913064003,
-0.02091108076274395,
-0.026519620791077614,
-0.022953808307647705,
0.0398152694106102,
-0.054329387843608856,
0.005980353802442551,
-0.03302409499883652,
0.01489040907472372,
0.03133974224328995,
0.0008791344007477164,
-0.01692417822778225,
-0.03426048532128334,
0.011217082850635052,
-0.03537144139409065,
-0.006110263988375664,
-0.0074676028452813625,
-0.04450995847582817,
-0.03155476599931717,
0.08636795729398727,
-0.04132043570280075,
0.03418881073594093,
0.009971735998988152,
-0.06952441483736038,
-0.05966914817690849,
-0.030497564002871513,
0.03275531530380249,
-0.04099790006875992,
-0.024154357612133026,
0.07257058471441269,
0.003895069472491741,
0.05325426906347275,
-0.04687522351741791,
-0.016888340935111046,
-0.03805924206972122,
-0.008426251821219921,
-0.055906228721141815,
-0.0031626441050320864,
0.060170870274305344,
0.012480349279940128,
-0.02209371142089367,
0.015293579548597336,
0.00806339830160141,
-0.0001646277232794091,
0.06232111155986786,
-0.05866570398211479,
-0.01449619885534048,
-0.04766364395618439,
-0.037593357264995575,
0.005088900215923786,
0.043255653232336044,
-0.027612660080194473,
0.0388118252158165,
0.02191452495753765,
0.014012394472956657,
0.031518928706645966,
0.05020809546113014,
0.030192947015166283,
-0.008923494257032871,
0.016977934166789055,
0.05010058358311653,
0.012883518822491169,
0.011763602495193481,
0.01773947663605213,
0.03078426420688629,
0.030927613377571106,
-0.00577428936958313,
-0.0293686892837286,
-0.014460361562669277,
0.0328807458281517,
0.003921947441995144,
0.012543064542114735,
0.11897992342710495,
0.0016888340469449759,
-0.06816259771585464,
0.048523738980293274,
-0.04909713566303253,
0.01459475141018629,
0.011638171970844269,
-0.020373519510030746,
-0.018339751288294792,
0.023043401539325714,
-0.028705699369311333,
0.000664110470097512,
0.052716705948114395,
-0.007503440137952566,
-0.03741416707634926,
-0.03142933547496796,
-0.02211163006722927,
0.05465192347764969,
0.008945892564952374,
0.056192927062511444,
-0.01533837616443634,
0.04658852517604828,
-0.023742228746414185,
0.03741416707634926,
0.05787728354334831,
-0.012686413712799549,
-0.036177780479192734,
-0.0268779955804348,
0.054329387843608856,
-0.0017739476170390844,
0.015150229446589947,
-0.018169524148106575,
0.0716746523976326,
-0.018277036026120186,
-0.049348000437021255,
0.004197447095066309,
0.0005008826265111566,
0.004334076773375273,
0.02987041138112545,
0.015750505030155182,
0.007109229452908039,
0.00607442669570446,
0.017900744453072548,
-0.047556132078170776,
0.009550647810101509,
0.03741416707634926,
-0.020946918055415154,
0.03963608294725418,
0.02178909443318844,
0.005017225630581379,
0.04608680307865143,
-0.04329149052500725,
-0.04687522351741791,
0.017891785129904747,
0.06400546431541443,
0.006262572947889566,
0.011028937064111233,
0.03791589289903641,
0.01850997842848301,
0.008296340703964233,
0.03612402454018593,
0.003731561591848731,
-0.008251544088125229,
0.06608402729034424,
-0.007104749791324139,
0.0028109902050346136,
-0.044653307646512985,
0.04608680307865143,
-0.005586143117398024,
0.037270817905664444,
0.0056712571531534195,
-0.05149823799729347,
-0.0004908033879473805,
0.02657337673008442
] |
20,874 | precession.precession | eval_theta12 |
Angle between the two spins. Valid inputs are either (theta1,theta2,deltaphi) or (deltachi,kappa,chieff,q,chi1,chi2).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
theta12: float
Angle between the two spins.
Examples
--------
``theta12 = precession.eval_theta12(theta1=theta1,theta2=theta2,deltaphi=deltaphi)``
``theta12 = precession.eval_theta12(deltachi=deltachi,kappa=kappa,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
| def eval_theta12(theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, chieff=None, q=None, chi1=None, chi2=None):
"""
Angle between the two spins. Valid inputs are either (theta1,theta2,deltaphi) or (deltachi,kappa,chieff,q,chi1,chi2).
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
theta12: float
Angle between the two spins.
Examples
--------
``theta12 = precession.eval_theta12(theta1=theta1,theta2=theta2,deltaphi=deltaphi)``
``theta12 = precession.eval_theta12(deltachi=deltachi,kappa=kappa,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
"""
costheta12 = eval_costheta12(theta1=theta1, theta2=theta2, deltaphi=deltaphi, deltachi=deltachi, kappa=kappa, chieff=chieff, q=q, chi1=chi1, chi2=chi2)
theta12 = np.arccos(costheta12)
return theta12
| (theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, chieff=None, q=None, chi1=None, chi2=None) | [
0.018283763900399208,
-0.018348468467593193,
0.06773681938648224,
-0.041337206959724426,
-0.006590659264475107,
-0.0179509948939085,
-0.049878254532814026,
0.045293450355529785,
-0.046365704387426376,
0.060637760907411575,
0.06936368346214294,
0.019023248925805092,
0.04895389825105667,
0.014789697714149952,
-0.06104447692632675,
-0.02138959988951683,
0.016425808891654015,
-0.03442302346229553,
-0.04621780663728714,
-0.045552268624305725,
-0.008993985131382942,
-0.015362798236310482,
-0.02355259284377098,
0.04451699182391167,
-0.05827140808105469,
0.02628868818283081,
0.015769515186548233,
0.03238943964242935,
-0.06281924247741699,
0.027342453598976135,
0.056052953004837036,
-0.02342318370938301,
-0.006109993904829025,
0.019060222432017326,
0.015103979036211967,
-0.03545830026268959,
0.014706505462527275,
0.03187179937958717,
-0.103379987180233,
0.016712358221411705,
0.01698966510593891,
0.0025789535138756037,
0.06355872750282288,
-0.01613001339137554,
-0.07897698879241943,
-0.03240792453289032,
-0.060563813894987106,
0.03484822437167168,
-0.024791231378912926,
0.00340625224635005,
0.05024799704551697,
-0.09280535578727722,
-0.0072515737265348434,
0.00022473407443612814,
-0.006965023465454578,
0.05838233232498169,
0.027545811608433723,
0.03384992107748985,
0.022628238424658775,
-0.05361265316605568,
0.07283926010131836,
-0.03290707617998123,
-0.011212439276278019,
0.033775974065065384,
0.03773221746087074,
0.024846691638231277,
-0.009557842276990414,
-0.0018383131828159094,
0.0460699088871479,
0.03516250476241112,
-0.024347539991140366,
0.024476949125528336,
0.0036512066144496202,
-0.039636388421058655,
-0.002537357620894909,
-0.0070066191256046295,
-0.03751037269830704,
-0.01283006276935339,
0.005809578113257885,
0.01085194107145071,
-0.09250956028699875,
-0.07609299570322037,
-0.014281301759183407,
-0.05054379254579544,
-0.008018788881599903,
0.07306110858917236,
0.007242330349981785,
-0.041226282715797424,
-0.041928794234991074,
-0.02821134775876999,
-0.07117541879415512,
-0.0280079897493124,
0.0066230115480721,
0.006586037110537291,
0.06988131999969482,
-0.007071324158459902,
0.021149268373847008,
-0.04839928448200226,
0.002015096368268132,
-0.011304874904453754,
0.015612374991178513,
-0.04521949961781502,
0.026713890954852104,
0.04514555260539055,
0.06485282629728317,
-0.030281906947493553,
-0.0716930627822876,
0.043518684804439545,
0.039636388421058655,
-0.023256799206137657,
-0.06211673095822334,
-0.020594654604792595,
0.0021410398185253143,
-0.03420117497444153,
-0.034404534846544266,
-0.019947605207562447,
-0.05302106589078903,
0.03762129321694374,
-0.004834382329136133,
0.002544290153309703,
0.04976733401417732,
0.016425808891654015,
0.033332280814647675,
0.02076103910803795,
0.03640114516019821,
-0.013939290307462215,
0.057384029030799866,
0.0036904916632920504,
-0.027009686455130577,
0.006687716580927372,
0.04155905172228813,
0.025050051510334015,
0.05520254746079445,
0.06869814544916153,
-0.05231855437159538,
-0.004168846178799868,
0.03063316084444523,
0.007205355912446976,
0.023145876824855804,
-0.026843301951885223,
0.0179509948939085,
-0.011702348478138447,
-0.006341082975268364,
-0.04514555260539055,
-0.0200030654668808,
0.03507006913423538,
-0.020668603479862213,
-0.007209977600723505,
-0.033646561205387115,
-0.00162802217528224,
0.033258333802223206,
0.023959310725331306,
0.0330364890396595,
-0.06026801839470863,
-0.02138959988951683,
-0.03201969712972641,
0.06677548587322235,
0.04289012402296066,
0.009465406648814678,
-0.030411316081881523,
-0.003614232409745455,
0.013449381105601788,
0.033387742936611176,
0.01441995520144701,
0.0645570307970047,
0.01711907610297203,
0.022942518815398216,
0.014299789443612099,
0.007838539779186249,
0.0011334916343912482,
-0.0330364890396595,
-0.021555984392762184,
0.018283763900399208,
-0.02144506201148033,
0.011184709146618843,
-0.042483408004045486,
0.00964103452861309,
-0.07661063224077225,
0.04118930920958519,
0.0006042977911420166,
-0.02279462106525898,
-0.05989827588200569,
-0.043074995279312134,
-0.03789860010147095,
-0.0004020949127152562,
0.10434132069349289,
0.040449824184179306,
0.03105836547911167,
0.001801338978111744,
-0.016120770946145058,
0.057531923055648804,
0.018274519592523575,
-0.010759505443274975,
0.07095357775688171,
-0.0021803248673677444,
-0.030392829328775406,
0.021740855649113655,
-0.024532411247491837,
-0.06925275921821594,
0.03187179937958717,
0.0186812374740839,
-0.0017632092349231243,
-0.020354321226477623,
-0.01345862541347742,
0.07313505560159683,
-0.0017759192269295454,
-0.06851327419281006,
0.008970876224339008,
-0.018274519592523575,
0.003662761067971587,
0.06074868515133858,
-0.008786004967987537,
-0.013514086604118347,
0.0068448567762970924,
-0.005014631897211075,
0.028377732262015343,
0.05383450165390968,
0.00818055123090744,
-0.015002300031483173,
0.02717606909573078,
0.07845934480428696,
-0.003708978882059455,
0.012571243569254875,
0.02756429836153984,
0.05682941526174545,
-0.005999071057885885,
-0.005074715241789818,
0.021500522270798683,
-0.050321947783231735,
-0.052873168140649796,
0.00579109089449048,
0.0009844392770901322,
-0.012016629800200462,
-0.015039273537695408,
0.005925122648477554,
-0.020927421748638153,
0.006627633236348629,
-0.01600060425698757,
-0.02737942710518837,
0.04902784898877144,
-0.017627470195293427,
0.025438280776143074,
-0.0010162140242755413,
0.04355565831065178,
-0.04037587344646454,
0.04048679769039154,
0.007325522135943174,
-0.03335076943039894,
-0.008282231166958809,
-0.00046015603584237397,
-0.011683860793709755,
-0.020594654604792595,
0.023663517087697983,
0.03627173230051994,
-0.06344780325889587,
-0.007870892062783241,
0.0012132173869758844,
0.008069628849625587,
0.0416329987347126,
0.009317509829998016,
0.025752561166882515,
-0.02673237957060337,
-0.058160487562417984,
0.022313956171274185,
0.026843301951885223,
0.025364331901073456,
-0.05952853336930275,
0.0016072242287918925,
0.009862879291176796,
-0.06074868515133858,
-0.036641474813222885,
0.03874900937080383,
-0.057384029030799866,
0.029320575296878815,
0.045552268624305725,
0.000008070061994658317,
0.06211673095822334,
-0.028932346031069756,
-0.008938523940742016,
-0.00964103452861309,
0.011535963974893093,
-0.05620085075497627,
0.011166221462190151,
-0.011092273518443108,
-0.04814046621322632,
0.005347399972379208,
0.0010803411714732647,
-0.014872889965772629,
0.13850551843643188,
-0.01799721270799637,
-0.010722531005740166,
-0.01044522412121296,
0.04673544317483902,
0.0023467091377824545,
0.10434132069349289,
0.05856720358133316,
-0.060563813894987106,
-0.035550735890865326,
0.01709134504199028,
-0.010620852001011372,
0.021999675780534744,
0.02967183105647564,
0.05231855437159538,
-0.068883016705513,
0.0010433669667690992,
0.013735931366682053,
0.07794170826673508,
0.03251884877681732,
0.027934040874242783,
0.02144506201148033,
0.034034792333841324,
-0.06629481911659241,
0.01820981502532959,
-0.010177160613238811,
-0.025808023288846016,
-0.037343986332416534,
0.009511624462902546,
-0.006040667183697224,
0.05512859672307968,
-0.0031844067852944136,
-0.014503147453069687,
-0.02349713258445263,
0.05098748207092285,
0.0035934343468397856,
0.033905383199453354,
-0.042557355016469955,
-0.02222152054309845,
-0.015325824730098248,
0.030152495950460434,
0.01706361398100853,
-0.03996915742754936,
0.02928360179066658,
-0.015288850292563438,
0.0501740500330925,
-0.04932364076375961,
-0.017590496689081192,
-0.020834986120462418,
-0.026695404201745987,
0.006082263309508562,
0.02133413963019848,
0.03100290335714817,
-0.025123998522758484,
0.022203033789992332,
0.024181155487895012,
0.003473268123343587,
-0.025068538263440132,
-0.009423810988664627,
-0.01638883352279663,
-0.02540130540728569,
-0.0006285621784627438,
-0.05620085075497627,
0.0618579126894474,
0.0055923545733094215,
0.018385443836450577,
0.008333070203661919,
0.03760280832648277,
-0.005208746530115604,
-0.01345862541347742,
0.011498990468680859,
-0.0632629320025444,
-0.021999675780534744,
0.048103492707014084,
-0.04518252611160278,
0.021315651014447212,
-0.00234439829364419,
-0.01646278239786625,
-0.012155283242464066,
0.031797848641872406,
0.011138491332530975,
-0.024218130856752396,
0.008883061818778515,
0.030762571841478348,
0.014928351156413555,
0.0388229563832283,
0.0015644726809114218,
0.05653361976146698,
0.06488979607820511,
0.029320575296878815,
-0.07394848763942719,
-0.03837926685810089,
0.0030226444359868765,
-0.01625942438840866,
-0.027730682864785194,
0.05627480149269104,
-0.001514788600616157,
0.027194557711482048,
-0.016009848564863205,
-0.07087962329387665,
0.01625942438840866,
0.01358803454786539,
0.0004330030642449856,
-0.02018793672323227,
0.08038200438022614,
-0.028100425377488136,
0.0020670914091169834,
0.046439651399850845,
0.021223217248916626,
0.028858397156000137,
-0.04939759150147438,
0.011193952523171902,
0.04762282595038414,
-0.06026801839470863,
0.006978888530284166,
-0.03738095983862877,
-0.026381123811006546,
-0.03760280832648277,
0.044332120567560196,
-0.0357356071472168,
-0.02821134775876999,
0.028433194383978844,
-0.03647509217262268,
-0.05361265316605568,
0.023792926222085953,
0.004531655926257372,
-0.041411153972148895,
0.04773375019431114,
-0.0014627935597673059,
0.00015295205230358988,
-0.0010918956249952316,
0.02407023310661316,
0.013772905804216862,
-0.05538741871714592,
-0.025382818654179573,
-0.008827600628137589,
0.08215676993131638,
-0.016869498416781425,
0.016693871468305588,
-0.02845168113708496,
0.011822514235973358,
-0.04100443795323372,
0.006840235088020563,
-0.004862112924456596,
-0.041928794234991074,
0.008952388539910316,
-0.00032439123606309295,
0.02769370935857296,
0.018477879464626312,
-0.003591123502701521,
0.06374359875917435,
-0.0074133360758423805,
-0.03756583109498024,
-0.008721299469470978,
0.03348017856478691,
-0.00024726527044549584,
-0.13436441123485565,
-0.062486473470926285,
0.008799870498478413,
-0.04965640977025032,
0.01829300820827484,
-0.03749188408255577,
0.022813109681010246,
0.0488799512386322,
-0.0031566761899739504,
0.036012914031744,
0.059676431119441986,
-0.02246185392141342,
0.027360940352082253,
-0.022831596434116364,
-0.05213368311524391,
-0.037787679582834244,
-0.00840239692479372,
0.04030192643404007,
0.045367397367954254,
0.047474928200244904,
0.02177782915532589,
-0.007380983326584101,
0.042187612503767014,
0.017719905823469162,
0.006965023465454578,
-0.04207669198513031,
0.0026806327514350414,
-0.01941147819161415,
0.011951924301683903,
0.016481269150972366,
0.060711707919836044,
0.024976102635264397,
-0.021297164261341095,
0.0023420872166752815,
-0.05143117532134056,
-0.04551529511809349,
-0.059047866612672806,
0.03826834261417389,
-0.000830187345854938,
0.025641638785600662,
0.026584481820464134,
-0.019448451697826385,
-0.0017990281339734793,
-0.07479889690876007,
-0.01601909101009369,
0.008952388539910316,
0.02839621901512146,
0.028285296633839607,
0.038675058633089066,
-0.01320904865860939,
-0.04388842731714249,
0.04366658255457878,
0.03634568303823471,
-0.011184709146618843,
-0.008346935734152794,
0.062486473470926285,
0.004575562663376331,
0.03710365295410156,
-0.01597287319600582,
-0.011896463111042976,
0.013560304418206215,
0.008716678246855736,
-0.04285315051674843,
-0.06348478049039841,
-0.09088269621133804,
0.05997222289443016,
-0.02686178870499134,
-0.04322289302945137,
0.05061773955821991,
0.011184709146618843,
0.03368353843688965,
0.050137076526880264,
0.0010589654557406902,
0.008749030530452728,
-0.017590496689081192,
-0.030152495950460434,
-0.01928206905722618,
0.005795713048428297,
0.051024455577135086,
-0.015769515186548233,
0.005855795927345753,
-0.002604373265057802,
-0.019392991438508034,
-0.0473640076816082,
0.023441670462489128,
-0.011110760271549225,
-0.02285008318722248,
-0.0073532527312636375,
-0.061783961951732635,
-0.0053705088794231415,
-0.03845321387052536,
-0.01139731053262949,
-0.058604177087545395,
-0.025567689910531044,
0.027471862733364105,
-0.01855182647705078,
-0.027471862733364105,
-0.02349713258445263,
-0.05838233232498169,
-0.021149268373847008,
0.015769515186548233,
0.0006580260233022273,
0.00612848112359643,
-0.008795248344540596,
-0.053316861391067505,
0.07535351067781448,
-0.003697424428537488,
-0.05564623698592186,
0.027989502996206284,
0.06651666760444641,
-0.013634252361953259,
0.05061773955821991,
-0.004457707516849041,
-0.023700490593910217,
0.001105183269828558,
0.022369418293237686,
-0.017756881192326546,
-0.0643351823091507,
0.0033184385392814875,
-0.07335690408945084,
-0.04074561595916748,
-0.0118132708594203,
0.04551529511809349,
0.01266367919743061,
0.003237557364627719,
0.007579720113426447,
-0.016656897962093353,
0.016157744452357292,
0.07010316848754883,
-0.05087656155228615,
-0.08156518638134003,
-0.0026968088932335377,
-0.012543512508273125,
-0.03185331076383591,
-0.05767982080578804,
-0.023700490593910217,
0.02419964224100113,
0.05557228997349739,
0.0140039948746562,
-0.02534584514796734,
0.028876885771751404,
0.06422426551580429,
-0.03030039370059967,
0.005985205993056297,
0.015288850292563438,
0.006073019467294216,
-0.029394524171948433,
0.0013114302419126034,
0.01823754608631134,
-0.015113222412765026,
-0.025123998522758484,
-0.010814966633915901,
0.017461087554693222,
0.026307174935936928,
0.036382656544446945,
-0.01680479384958744,
-0.015103979036211967,
-0.009493137709796429,
0.0415220782160759,
-0.0431489422917366,
0.0301155224442482,
0.06374359875917435,
0.011896463111042976,
-0.04525647684931755,
-0.04056074470281601,
-0.04089351370930672,
0.01797872595489025,
-0.025512227788567543,
0.05934366211295128,
-0.024939127266407013,
0.034386046230793,
0.05723613128066063,
-0.009539355523884296,
-0.041226282715797424,
-0.02749035134911537,
0.01066706981509924,
-0.019596349447965622,
0.020520705729722977,
-0.020853474736213684,
0.010925889015197754,
-0.011859488673508167,
0.027989502996206284,
0.01597287319600582,
-0.05760587379336357,
0.008379288017749786,
-0.04374052956700325,
-0.01729470305144787,
-0.03207515552639961,
0.04107838496565819,
-0.02503156289458275,
-0.009493137709796429,
0.024791231378912926,
0.02297949232161045,
0.0068125044927001,
0.025050051510334015,
-0.017673688009381294,
-0.05276224762201309,
-0.004561697598546743,
-0.02144506201148033,
0.04451699182391167,
-0.0047742994502186775,
-0.054278191179037094,
-0.05302106589078903,
0.001302186632528901,
0.06710825115442276,
0.01747957430779934,
-0.03874900937080383,
0.05413029342889786,
-0.02560466341674328,
0.02316436357796192,
-0.0400061309337616,
-0.051283277571201324,
-0.020354321226477623,
-0.040523771196603775,
0.0031543653458356857,
-0.014882133342325687,
0.025881970301270485,
0.04285315051674843,
-0.0701771154999733,
0.014558608643710613,
-0.0025419793091714382,
-0.005804956424981356,
-0.003635030472651124,
0.001073408522643149,
0.025364331901073456,
-0.0132460230961442,
-0.020742550492286682,
-0.02477274462580681,
0.03488519787788391,
-0.0025466009974479675,
0.005684790201485157,
0.032629769295454025,
-0.01124017033725977,
-0.013375433161854744,
-0.02623322606086731,
0.023404696956276894,
0.004275146871805191,
-0.0059389881789684296,
0.04577411338686943,
-0.049693383276462555,
-0.06211673095822334,
0.043518684804439545,
0.03603140264749527,
0.05708823353052139,
-0.013098126277327538,
-0.021297164261341095,
0.03187179937958717,
0.019134171307086945,
0.033128924667835236,
-0.014882133342325687,
0.07971647381782532,
0.0089339017868042,
-0.07106449455022812,
0.03934059664607048,
-0.04621780663728714,
-0.02584499679505825,
-0.05505464971065521,
-0.012386372312903404,
-0.003708978882059455,
0.003882295684888959,
-0.023534106090664864,
-0.019707271829247475,
0.006581415422260761,
-0.039636388421058655,
0.004258970730006695,
-0.03775070235133171,
0.0008636952261440456,
0.021223217248916626,
0.07132332026958466,
0.027416402474045753,
-0.041928794234991074,
-0.008619620464742184,
-0.029061757028102875,
0.01756276562809944,
0.04037587344646454,
-0.018459390848875046,
-0.04629175364971161,
-0.06366965174674988,
0.06869814544916153,
-0.03470032662153244,
-0.0005990983336232603,
0.012765358202159405,
0.0733199268579483,
-0.030762571841478348,
0.0023339991457760334,
-0.03150205686688423,
-0.004769677761942148,
0.03697424381971359,
0.021629933267831802,
0.05228158086538315,
-0.020650114864110947,
0.012977959588170052,
-0.03845321387052536,
-0.045367397367954254,
0.03575409576296806,
0.06263437122106552,
0.018986275419592857,
0.0631520077586174,
0.038305316120386124,
-0.030226444825530052,
-0.022517314180731773,
0.007940218783915043,
-0.07235859334468842,
0.010935132391750813,
0.04296407103538513,
0.010260352864861488,
-0.023460157215595245,
0.04477581009268761,
0.03706667944788933,
0.018256032839417458,
0.027028173208236694,
0.03952546790242195,
0.017266971990466118,
-0.0012051293160766363,
-0.016638409346342087,
-0.03473730385303497,
-0.02865503914654255,
0.06278226524591446,
-0.022073624655604362,
0.04588503763079643,
0.023090416565537453,
-0.02878445014357567,
-0.017331676557660103,
0.05793864279985428
] |
20,875 | precession.precession | eval_theta2 |
Angle between the orbital angular momentum and the spin of the secondary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta2 = precession.eval_theta2(deltachi,chieff,q,chi2)``
| def eval_theta2(deltachi, chieff, q, chi2):
"""
Angle between the orbital angular momentum and the spin of the secondary black hole.
Parameters
----------
deltachi: float
Weighted spin difference.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta2 = precession.eval_theta2(deltachi,chieff,q,chi2)``
"""
costheta2 = eval_costheta2(deltachi, chieff, q, chi2)
theta2 = np.arccos(costheta2)
return theta2
| (deltachi, chieff, q, chi2) | [
0.011866752058267593,
0.03756147623062134,
0.03224719688296318,
-0.005644163582473993,
0.02042563445866108,
-0.03555506467819214,
-0.012174040079116821,
0.04406876116991043,
-0.061999935656785965,
0.012671124190092087,
0.13188090920448303,
0.025685688480734825,
0.01021281722933054,
0.014722725376486778,
-0.03260871395468712,
0.0025396475102752447,
0.022739335894584656,
-0.03197605907917023,
-0.04211657494306564,
-0.020172573626041412,
-0.03465127572417259,
-0.07707513868808746,
0.020642545074224472,
0.024058867245912552,
-0.070387102663517,
-0.016729136928915977,
-0.03006002865731716,
0.023462366312742233,
-0.06988097727298737,
-0.005716466344892979,
0.015861500054597855,
-0.06312063336372375,
0.007248389068990946,
0.05043143406510353,
0.03396439552307129,
0.017488321289420128,
0.015626514330506325,
0.027619797736406326,
-0.08922206610441208,
-0.006611217744648457,
-0.001046700868755579,
0.019973739981651306,
0.028288600966334343,
-0.016078408807516098,
-0.039513662457466125,
-0.004387896507978439,
-0.06659118831157684,
0.02684253826737404,
-0.012689200229942799,
-0.016024181619286537,
0.016195902600884438,
-0.08184714615345001,
-0.031144574284553528,
0.011812524870038033,
0.028921253979206085,
0.02848743461072445,
0.010646636597812176,
0.013891239650547504,
0.024058867245912552,
-0.010881621390581131,
0.03936905786395073,
-0.05043143406510353,
0.024058867245912552,
0.06738652288913727,
0.0064033460803329945,
0.03295215219259262,
-0.00704955542460084,
0.031632620841264725,
0.008197368122637272,
0.03926059976220131,
-0.030819211155176163,
0.03756147623062134,
0.012761503458023071,
-0.043164972215890884,
-0.03248218446969986,
0.0007309395004995167,
-0.014541967771947384,
-0.008884247392416,
0.01883496716618538,
0.012011358514428139,
-0.06214454397559166,
-0.031741075217723846,
0.0033530578948557377,
-0.05538420006632805,
-0.027023296803236008,
0.06912179291248322,
-0.012228267267346382,
-0.02841513231396675,
-0.09717541188001633,
-0.0072257942520082,
-0.05484192818403244,
-0.06445824354887009,
0.008450428955256939,
-0.009571127593517303,
0.08408854156732559,
0.01179444883018732,
-0.026029128581285477,
-0.016611644998192787,
0.00238374387845397,
-0.00944459717720747,
0.02611950784921646,
0.024058867245912552,
0.03879063203930855,
0.025233794003725052,
0.050106070935726166,
-0.07562907785177231,
-0.08003956824541092,
0.015734968706965446,
0.060517724603414536,
-0.05017837509512901,
-0.09074043482542038,
0.00897010788321495,
0.014117186889052391,
-0.04215272516012192,
-0.05664950609207153,
-0.0189434215426445,
-0.03362095728516579,
0.03936905786395073,
0.0514436811208725,
0.01912417821586132,
0.05997544899582863,
0.02066062018275261,
0.04291190952062607,
0.02423962578177452,
0.009724771603941917,
0.012680161744356155,
-0.020841378718614578,
0.0033530578948557377,
-0.039694420993328094,
-0.0029825042001903057,
0.04732239991426468,
-0.01765100285410881,
0.05715562775731087,
0.006480168551206589,
-0.017506396397948265,
-0.0025419071316719055,
0.04678012803196907,
-0.026209885254502296,
0.05100985988974571,
-0.015906689688563347,
0.010791243053972721,
-0.007537601515650749,
-0.029590057209134102,
-0.051407527178525925,
-0.02241397090256214,
0.05802326649427414,
-0.019521845504641533,
0.01338511798530817,
-0.001553387613967061,
-0.014776952564716339,
-0.021166741847991943,
0.04443027451634407,
0.07324307411909103,
-0.012960337102413177,
0.03031308948993683,
-0.025269946083426476,
0.02225128933787346,
0.006782937794923782,
0.0051787118427455425,
-0.023570820689201355,
-0.019106103107333183,
-0.012056547217071056,
-0.005115446634590626,
0.021275196224451065,
0.08119641989469528,
0.010718939825892448,
0.008703489787876606,
0.018871117383241653,
-0.021166741847991943,
0.018048670142889023,
-0.05813172087073326,
-0.059469327330589294,
-0.02948160283267498,
-0.013846050016582012,
0.013348965905606747,
-0.013809898868203163,
-0.013873163610696793,
-0.03613349050283432,
0.031921833753585815,
-0.017560623586177826,
-0.01865420863032341,
-0.05350431799888611,
-0.005974046420305967,
-0.02865011617541313,
0.023787731304764748,
0.05502268299460411,
0.04797312989830971,
0.04150199890136719,
0.03662153705954552,
0.004677108954638243,
0.039224449545145035,
0.0181842390447855,
0.0038456229958683252,
0.022739335894584656,
0.04858770594000816,
-0.02619181014597416,
0.049744557589292526,
0.04829849302768707,
-0.054588865488767624,
0.08618533611297607,
0.01847345009446144,
0.028975481167435646,
-0.015988029539585114,
-0.01854575425386429,
0.06814569979906082,
-0.03853756934404373,
-0.04959994927048683,
0.010303196497261524,
-0.005119965877383947,
0.008536288514733315,
0.015274036675691605,
0.027529418468475342,
-0.048876918852329254,
-0.005842996761202812,
-0.014144300483167171,
0.060047753155231476,
0.014957711100578308,
0.0019047356909140944,
0.0007766938069835305,
0.03973057121038437,
0.03712765872478485,
0.010004946030676365,
0.01564459130167961,
-0.01595187932252884,
0.051407527178525925,
-0.015084241516888142,
-0.021672863513231277,
0.017759457230567932,
-0.03371133655309677,
-0.047467008233070374,
-0.00038439282798208296,
-0.03018655814230442,
0.02942737564444542,
-0.040055934339761734,
0.031144574284553528,
0.052347470074892044,
0.006552471313625574,
0.0308372862637043,
-0.08842673152685165,
0.07338768243789673,
-0.036350399255752563,
0.02460114099085331,
-0.01665683463215828,
0.06142151355743408,
-0.05795096233487129,
-0.00958920270204544,
0.027167903259396553,
-0.025504929944872856,
-0.005336875095963478,
0.039513662457466125,
-0.04844310134649277,
-0.0048488290049135685,
-0.005278128664940596,
0.01988336257636547,
-0.0653981864452362,
-0.03813990205526352,
0.01214692648500204,
0.01606033369898796,
0.015219809487462044,
0.017696192488074303,
0.011613691225647926,
-0.026969069615006447,
-0.05784250795841217,
0.02465536817908287,
-0.03712765872478485,
0.01758773811161518,
-0.057227931916713715,
-0.0098874531686306,
-0.012436139397323132,
-0.02000989206135273,
-0.033458273857831955,
-0.025974901393055916,
-0.015301150269806385,
0.02812591940164566,
-0.0064666117541491985,
0.028686268255114555,
0.05943317711353302,
0.008888766169548035,
-0.027457114309072495,
-0.005476962309330702,
-0.020172573626041412,
-0.02948160283267498,
-0.02301047183573246,
-0.039694420993328094,
-0.06738652288913727,
0.0023408138658851385,
-0.026969069615006447,
0.02201630361378193,
0.07960575073957443,
0.01153234951198101,
-0.013547799549996853,
-0.020317180082201958,
-0.006471130531281233,
0.02707752399146557,
0.1550179123878479,
0.07237543910741806,
-0.05664950609207153,
-0.023986564949154854,
0.04020054265856743,
0.024456534534692764,
-0.000464886543340981,
0.08293169736862183,
-0.0075059691444039345,
-0.043526485562324524,
0.014370247721672058,
0.01648511365056038,
0.057987112551927567,
0.02754749357700348,
-0.02588452212512493,
0.03712765872478485,
0.007099263835698366,
-0.055348049849271774,
-0.0011404689867049456,
0.025089187547564507,
-0.03832066059112549,
-0.011676955968141556,
0.0020967908203601837,
-0.014722725376486778,
0.06062617897987366,
-0.023281609639525414,
-0.010646636597812176,
-0.01831076852977276,
0.07678592950105667,
-0.05408274382352829,
0.03756147623062134,
-0.02919238992035389,
-0.039043691009283066,
0.04829849302768707,
0.02183554694056511,
0.017488321289420128,
-0.028848949819803238,
0.04283960536122322,
-0.01678336411714554,
0.005965008400380611,
0.004645476117730141,
-0.01406295970082283,
0.012074623256921768,
-0.017605813220143318,
-0.015988029539585114,
-0.0006219199276529253,
0.0024334522895514965,
-0.04446642845869064,
0.0403813011944294,
0.019196482375264168,
-0.007795181591063738,
-0.022160910069942474,
-0.012716313824057579,
-0.00897010788321495,
-0.0055492655374109745,
0.01972067914903164,
-0.016448963433504105,
-0.004419528879225254,
-0.004525724332779646,
0.022052455693483353,
-0.012526517733931541,
0.07685822993516922,
-0.03412707895040512,
-0.03850141912698746,
0.02948160283267498,
-0.03665768727660179,
-0.00974284764379263,
0.03676614165306091,
-0.003978931810706854,
-0.0065027629025280476,
-0.00846850499510765,
-0.0004389026144053787,
-0.03644077852368355,
0.032048363238573074,
-0.007478855550289154,
-0.0217090155929327,
-0.013186284340918064,
0.040815118700265884,
0.05368507653474808,
-0.011866752058267593,
-0.00038326310459524393,
0.024221550673246384,
0.009715734049677849,
0.01647607609629631,
-0.04985301196575165,
-0.013276662677526474,
0.01532826479524374,
-0.006453054491430521,
-0.10057365894317627,
0.01841922290623188,
-0.02660755254328251,
0.017506396397948265,
-0.050756800919771194,
-0.03146993741393089,
0.017434092238545418,
-0.01141485758125782,
-0.01888919435441494,
0.00879386905580759,
0.09442789107561111,
-0.04255039244890213,
0.008549845777451992,
0.06012005731463432,
0.02742096409201622,
0.018328843638300896,
-0.09572935104370117,
-0.017054501920938492,
0.001110530924052,
-0.029102010652422905,
0.04233348369598389,
-0.034687429666519165,
-0.022703183814883232,
-0.03423553332686424,
0.041285090148448944,
0.03146993741393089,
-0.024221550673246384,
0.010872583836317062,
-0.07266464829444885,
-0.055637262761592865,
0.005418215878307819,
0.03156031668186188,
-0.05664950609207153,
0.010023022070527077,
-0.033458273857831955,
-0.035211626440286636,
-0.007876522839069366,
0.08705297112464905,
-0.002941833809018135,
-0.07541216909885406,
-0.04153814911842346,
-0.0064666117541491985,
0.03595273196697235,
0.017262373119592667,
0.019377239048480988,
0.043924152851104736,
0.005666757933795452,
-0.039694420993328094,
0.006362675689160824,
0.04594864323735237,
-0.02113059163093567,
-0.010465878993272781,
-0.020335257053375244,
0.030873438343405724,
0.037886843085289,
-0.009869378060102463,
0.09659698605537415,
0.01847345009446144,
-0.008608591742813587,
0.02217898704111576,
0.0360250361263752,
0.0019883362110704184,
-0.07476144284009933,
-0.05827632546424866,
0.012634973041713238,
0.002095661126077175,
0.013665292412042618,
-0.04020054265856743,
0.02825244888663292,
0.04656321927905083,
-0.012345760129392147,
0.04761161282658577,
0.0261375829577446,
0.02877664752304554,
0.020859453827142715,
0.0007981588132679462,
-0.007207718677818775,
-0.0268244631588459,
-0.020877528935670853,
0.06391596794128418,
0.08054569363594055,
0.027818631380796432,
-0.004875942599028349,
0.005129003431648016,
0.07194162160158157,
-0.034036699682474136,
0.010836431756615639,
-0.02259472943842411,
-0.008549845777451992,
-0.042695000767707825,
-0.00554474676027894,
-0.024727672338485718,
0.06962791830301285,
0.030963817611336708,
-0.015509022399783134,
0.005418215878307819,
0.0070269606076180935,
-0.05249207466840744,
-0.05278128758072853,
0.0013669810723513365,
0.0011286067310720682,
0.005847516003996134,
0.012228267267346382,
-0.022703183814883232,
-0.026173735037446022,
-0.06492821127176285,
-0.007740954402834177,
-0.029933497309684753,
0.014053921215236187,
0.03107227198779583,
0.005151598248630762,
-0.06301218271255493,
0.006037311628460884,
0.050865255296230316,
0.03911599516868591,
0.02100406028330326,
-0.0728815570473671,
0.03889908641576767,
-0.025812217965722084,
0.03616964444518089,
-0.020100271329283714,
-0.041682757437229156,
-0.04406876116991043,
-0.03658538684248924,
-0.01315013226121664,
-0.06293987482786179,
-0.0465993694961071,
0.057987112551927567,
0.0049166129902005196,
-0.004320112057030201,
0.03006002865731716,
-0.01052914373576641,
0.015174619853496552,
0.025685688480734825,
-0.016982197761535645,
0.029282769188284874,
0.006132209673523903,
-0.02713175117969513,
-0.02429385297000408,
-0.014487740583717823,
0.02942737564444542,
-0.017759457230567932,
0.027348659932613373,
-0.03372941166162491,
0.02452883869409561,
-0.010646636597812176,
0.041393544524908066,
-0.07042325288057327,
-0.012761503458023071,
-0.027113676071166992,
-0.02695099264383316,
0.002010930795222521,
-0.04374339431524277,
-0.015617476776242256,
-0.03141571208834648,
-0.005829439964145422,
-0.05343201756477356,
-0.03853756934404373,
-0.009074043482542038,
0.0067738997749984264,
-0.028342828154563904,
-0.021907849237322807,
0.004862385801970959,
0.0069817714393138885,
-0.02724020555615425,
-0.024221550673246384,
-0.01612359844148159,
0.041755057871341705,
-0.026354491710662842,
-0.01694604754447937,
-0.005323318298906088,
0.030566150322556496,
-0.013809898868203163,
0.061529967933893204,
0.008043723180890083,
-0.055709563195705414,
0.004331409465521574,
0.007207718677818775,
0.002953131217509508,
-0.019666451960802078,
-0.016801441088318825,
-0.05719177797436714,
-0.0006450795335695148,
-0.0040625324472785,
0.039983633905649185,
0.04631015658378601,
-0.01630435697734356,
0.003276235656812787,
-0.02470959536731243,
0.015978991985321045,
0.09674159437417984,
-0.0028627521824091673,
-0.0772920474410057,
0.00408964604139328,
0.0010150682646781206,
-0.055167291313409805,
0.03929675370454788,
-0.037272267043590546,
0.02919238992035389,
0.03889908641576767,
0.015337302349507809,
-0.009516900405287743,
0.014424474909901619,
-0.024438459426164627,
0.02718597836792469,
0.055058836936950684,
-0.02024487778544426,
-0.016024181619286537,
0.003924704622477293,
0.0017510915640741587,
-0.005540227517485619,
-0.04236963763833046,
-0.010727977380156517,
-0.043526485562324524,
-0.015454795211553574,
0.030295012518763542,
0.009263838641345501,
-0.019431468099355698,
-0.0228839423507452,
-0.05267283320426941,
0.03253640979528427,
-0.04656321927905083,
-0.016232052817940712,
0.02653525024652481,
0.031090347096323967,
-0.07866580784320831,
-0.04725009948015213,
-0.01841922290623188,
0.043815698474645615,
-0.0038252875674515963,
0.04453872889280319,
0.012228267267346382,
-0.01214692648500204,
0.05921626836061478,
-0.01624109223484993,
-0.05079295113682747,
-0.04891306906938553,
0.05137137696146965,
-0.07309846580028534,
0.024040792137384415,
0.01759677566587925,
0.011496198363602161,
-0.042695000767707825,
-0.03915214538574219,
0.02725828066468239,
-0.04385185241699219,
0.005824921187013388,
-0.008635705336928368,
-0.019937589764595032,
-0.004505388904362917,
0.015246923081576824,
-0.028523586690425873,
-0.06279527395963669,
0.009408445097506046,
-0.009363255463540554,
0.007374919485300779,
0.010492992587387562,
-0.0043698204681277275,
-0.024854201823472977,
0.06836261600255966,
-0.05523959547281265,
0.039513662457466125,
-0.03501279279589653,
-0.07150779664516449,
-0.022920092567801476,
-0.0034095447044819593,
0.025685688480734825,
-0.02859588898718357,
-0.010999114252626896,
0.0601562075316906,
0.02154633402824402,
0.04012823849916458,
-0.07497835159301758,
-0.038392964750528336,
0.004080608021467924,
-0.003949558828026056,
-0.0095078619197011,
0.0075737531296908855,
0.09298183023929596,
0.047756221145391464,
-0.03560929372906685,
0.018256541341543198,
-0.02105828747153282,
-0.00809343159198761,
0.07830429077148438,
-0.034452442079782486,
-0.013547799549996853,
-0.053576622158288956,
0.023986564949154854,
-0.006629293784499168,
0.039332903921604156,
-0.0049934349954128265,
-0.02977081574499607,
0.03372941166162491,
-0.008369088172912598,
0.03748917579650879,
0.03738072142004967,
0.05827632546424866,
0.019521845504641533,
0.020967908203601837,
0.021618636325001717,
0.002871790202334523,
0.005861072801053524,
0.05339586362242699,
0.04197197034955025,
0.035392384976148605,
-0.013647216372191906,
-0.08148562908172607,
-0.029156237840652466,
0.020570240914821625,
-0.0371999628841877,
0.005983084440231323,
0.10267045348882675,
-0.02194400131702423,
-0.0663742795586586,
0.056179534643888474,
-0.024980733171105385,
0.014460626989603043,
3.0891232682961345e-8,
-0.0009919086005538702,
0.0280716922134161,
0.016042258590459824,
-0.016575492918491364,
0.0018222648650407791,
0.02000989206135273,
-0.043345727026462555,
-0.015725931152701378,
-0.056468747556209564,
-0.028089767321944237,
0.024619216099381447,
0.010402613319456577,
0.007722878362983465,
-0.02418539859354496,
0.020516013726592064,
-0.025342248380184174,
0.028089767321944237,
0.030403466895222664,
-0.004220695234835148,
-0.012237305752933025,
-0.03231950104236603,
0.061638422310352325,
0.004839790984988213,
-0.0064666117541491985,
0.009580165147781372,
0.04262269660830498,
-0.00019883361528627574,
-0.016322432085871696,
-0.03396439552307129,
-0.01544575672596693,
-0.00986033957451582,
0.03976672515273094,
0.020841378718614578,
-0.01930493675172329,
0.013023601844906807,
-0.030764983966946602,
-0.06275912374258041,
0.03331366926431656,
0.04764776676893234,
0.026860613375902176,
0.07331537455320358,
0.03128918260335922,
0.022865865379571915,
0.02076907455921173,
-0.010818356648087502,
-0.06514512002468109,
0.0019578333012759686,
0.08625763654708862,
0.026752158999443054,
0.018148086965084076,
0.020841378718614578,
0.05035913363099098,
0.026517175137996674,
0.01782272197306156,
0.02546877972781658,
0.005508595146238804,
0.022269364446401596,
-0.03542853519320488,
0.006231626495718956,
-0.0015963176265358925,
0.06836261600255966,
-0.006715153343975544,
0.024980733171105385,
0.021799394860863686,
-0.027330584824085236,
-0.016638759523630142,
0.031451862305402756
] |
20,876 | precession.precession | eval_thetaL |
Angle betwen the orbital angular momentum and the total angular momentum.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
thetaL: float
Angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``thetaL = precession.eval_thetaL(deltachi,kappa,r,chieff,q)``
| def eval_thetaL(deltachi, kappa, r, chieff, q):
"""
Angle betwen the orbital angular momentum and the total angular momentum.
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
thetaL: float
Angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``thetaL = precession.eval_thetaL(deltachi,kappa,r,chieff,q)``
"""
costhetaL = eval_costhetaL(deltachi, kappa, r,chieff, q)
thetaL = np.arccos(costhetaL)
return thetaL
| (deltachi, kappa, r, chieff, q) | [
-0.044403571635484695,
0.02492515556514263,
-0.016412368044257164,
0.02802727371454239,
0.027973167598247528,
-0.019171809777617455,
-0.02083108201622963,
-0.0035282080061733723,
-0.060022372752428055,
0.006704722531139851,
0.07993364334106445,
-0.03253616765141487,
0.023193741217255592,
0.030930999666452408,
-0.08368504047393799,
-0.006695705000311136,
-0.04815496876835823,
-0.029542261734604836,
-0.023518381640315056,
-0.0688958689570427,
-0.014753094874322414,
-0.047505687922239304,
0.04714497551321983,
0.05147351324558258,
-0.048948533833026886,
-0.025718720629811287,
0.031165461987257004,
0.03037189692258835,
-0.05688418447971344,
0.04252786934375763,
0.04303286597132683,
-0.04014717414975166,
-0.00015682489902246743,
-0.0019365692278370261,
-0.02588104084134102,
-0.0053971437737345695,
0.017476465553045273,
-0.04682033509016037,
-0.02389712817966938,
-0.06593804061412811,
0.007795874495059252,
0.024961227551102638,
0.05378206446766853,
-0.023013385012745857,
-0.04941745847463608,
-0.044800352305173874,
-0.036792561411857605,
0.04397071525454521,
0.041121095418930054,
-0.004973308183252811,
0.033528123050928116,
-0.03222956135869026,
-0.035313643515110016,
-0.025808898732066154,
0.006858025211840868,
0.04927317425608635,
0.04039967432618141,
-0.011632941663265228,
0.0158352293074131,
-0.007502796594053507,
0.019189845770597458,
-0.04234751686453819,
0.023879092186689377,
0.05753346532583237,
0.035313643515110016,
-0.02149839699268341,
-0.01470800582319498,
0.054142776876688004,
0.031021177768707275,
-0.032806698232889175,
-0.0449446365237236,
0.022742852568626404,
0.03661220520734787,
-0.04754175990819931,
-0.00949572678655386,
0.0008442900725640357,
-0.053637780249118805,
-0.03572846204042435,
-0.012453559786081314,
0.02977672405540943,
-0.03845183178782463,
-0.03621542081236839,
0.013481587171554565,
0.004407442174851894,
0.018143782392144203,
0.004896657075732946,
-0.00027109714574180543,
-0.03354615718126297,
0.004236103966832161,
0.006637089420109987,
-0.06301628053188324,
-0.01679111458361149,
-0.022796958684921265,
0.005054468289017677,
0.04364607483148575,
0.016682900488376617,
-0.005789417773485184,
0.0114886574447155,
0.0398225374519825,
0.027702633291482925,
0.027919059619307518,
0.031832776963710785,
0.029704581946134567,
0.045629989355802536,
0.03518739342689514,
-0.02205749973654747,
-0.05504455417394638,
-0.01542041078209877,
0.09861849248409271,
-0.015916388481855392,
-0.06096022203564644,
0.022039465606212616,
0.03307723253965378,
-0.007750785443931818,
-0.049453530460596085,
0.020506441593170166,
-0.03605310246348381,
-0.001211764756590128,
0.00540165277197957,
0.03769433870911598,
0.04180644825100899,
0.019478414207696915,
-0.001009428291581571,
0.008932115510106087,
0.031003141775727272,
0.02640407346189022,
0.0076290457509458065,
-0.017476465553045273,
-0.026061397045850754,
-0.013878369703888893,
0.08440645784139633,
0.045521777123212814,
0.06727267056703568,
-0.0019771491643041372,
-0.0025948674883693457,
0.058904167264699936,
-0.01322908978909254,
-0.0067678471095860004,
0.028207629919052124,
-0.018702885136008263,
0.004037713166326284,
0.03028172068297863,
0.03859611600637436,
0.01268802210688591,
0.03733362630009651,
0.04375429078936577,
0.00574432872235775,
0.029704581946134567,
-0.04155395179986954,
-0.0158352293074131,
0.009603939950466156,
0.017223967239260674,
0.06658732146024704,
-0.02492515556514263,
0.005469286348670721,
-0.01709771901369095,
0.005230315029621124,
-0.007069943007081747,
0.00639360910281539,
-0.05897631123661995,
-0.022436248138546944,
-0.01542041078209877,
-0.0038370671682059765,
-0.006064460147172213,
0.028369950130581856,
-0.045990701764822006,
0.005676695145666599,
0.04126537963747978,
-0.0515817254781723,
0.022328034043312073,
-0.007489270064979792,
-0.05544133856892586,
-0.020921260118484497,
-0.003604859346523881,
0.024907119572162628,
-0.000038466485420940444,
-0.035259537398815155,
-0.023518381640315056,
0.011308301240205765,
-0.010478665120899677,
-0.028514234349131584,
0.0014056471409276128,
0.00487862154841423,
-0.055585622787475586,
0.026313895359635353,
0.007196191698312759,
-0.01960466243326664,
0.029289763420820236,
-0.02119179256260395,
0.03109331987798214,
-0.03621542081236839,
0.0006036279373802245,
0.0035259537398815155,
0.01868484914302826,
-0.0227248165756464,
0.03221152722835541,
0.029325835406780243,
0.008395557291805744,
-0.059048451483249664,
0.06929265707731247,
0.03666631132364273,
0.052158866077661514,
-0.006082495674490929,
0.00007925787213025615,
0.020434299483895302,
-0.0520867221057415,
-0.08700358122587204,
0.023608559742569923,
0.0048741125501692295,
-0.03134581819176674,
0.06759731471538544,
0.0015206239186227322,
-0.06409841030836105,
0.018811097368597984,
-0.04029146209359169,
0.055838119238615036,
0.0113624082878232,
0.03736969828605652,
0.056451328098773956,
-0.009405548684298992,
0.028369950130581856,
-0.023374097421765327,
0.011560799553990364,
-0.012859360314905643,
0.06215057149529457,
-0.03307723253965378,
-0.02615157514810562,
0.02752227708697319,
-0.05017495155334473,
-0.042672157287597656,
-0.0034605746623128653,
-0.06052736937999725,
0.025899076834321022,
-0.0296144038438797,
0.017864231020212173,
0.017891284078359604,
0.002278117695823312,
0.07087978720664978,
-0.06990586221218109,
0.05526098236441612,
-0.05984201654791832,
0.025087475776672363,
0.020290015265345573,
0.06593804061412811,
-0.027233708649873734,
0.024726765230298042,
0.018053604289889336,
0.005230315029621124,
-0.04689247906208038,
0.03928146883845329,
-0.07639867067337036,
0.002917253179475665,
-0.004829023499041796,
-0.0015206239186227322,
-0.02200339362025261,
-0.0011153871892020106,
0.057569533586502075,
0.0469646193087101,
0.013490605168044567,
-0.004630632232874632,
-0.007299896329641342,
-0.035674355924129486,
-0.01324712485074997,
0.016069691628217697,
-0.06413447856903076,
-0.0065153492614626884,
-0.010767234489321709,
-0.002229647245258093,
0.022454282268881798,
-0.01857663504779339,
0.01929805800318718,
0.02629585936665535,
-0.04732533171772957,
-0.006497313734143972,
0.003922736272215843,
0.008733724243938923,
0.039497897028923035,
0.06813837587833405,
-0.03697291761636734,
0.015014611184597015,
-0.04685640707612038,
-0.032139383256435394,
-0.037297554314136505,
0.018955383449792862,
-0.1470259577035904,
0.06705624610185623,
-0.04350179061293602,
-0.021624647080898285,
0.04119323939085007,
-0.008959168568253517,
0.018188871443271637,
-0.02874869666993618,
-0.013156947679817677,
-0.009360460564494133,
0.17934569716453552,
0.02885691076517105,
-0.04039967432618141,
-0.019189845770597458,
0.08108791708946228,
0.02348230965435505,
0.01709771901369095,
0.03603506460785866,
0.09205354005098343,
-0.10907912254333496,
-0.027179602533578873,
-0.0065333847887814045,
0.03895682841539383,
-0.008373012766242027,
-0.03935360908508301,
0.03585471212863922,
0.01985716074705124,
0.00552790192887187,
0.015285144560039043,
-0.0050860303454101086,
-0.015745051205158234,
-0.019388236105442047,
-0.005866068881005049,
-0.005424197297543287,
0.03812719136476517,
-0.029704581946134567,
-0.008805866353213787,
0.014870326034724712,
0.04371821880340576,
-0.028532270342111588,
-0.016556652262806892,
-0.06164557486772537,
-0.0052618770860135555,
0.05428706109523773,
-0.020235907286405563,
-0.05421492084860802,
-0.015555677935481071,
0.015501570887863636,
-0.056198831647634506,
-0.006641597952693701,
-0.024889085441827774,
0.007583956699818373,
-0.00014005746925249696,
-0.01706164889037609,
-0.04570212960243225,
-0.01019009668380022,
0.04303286597132683,
-0.027684597298502922,
0.004042221698909998,
0.1077805608510971,
-0.004301483277231455,
-0.0018328647129237652,
0.025899076834321022,
0.026620499789714813,
0.004720809869468212,
0.021823037415742874,
-0.030245648697018623,
0.013905423693358898,
0.016195939853787422,
-0.008571404032409191,
0.017629768699407578,
0.045161064714193344,
-0.012318293564021587,
-0.021823037415742874,
0.02099340222775936,
-0.0035778058227151632,
-0.008138550445437431,
-0.07059121876955032,
0.004565253388136625,
0.023103563115000725,
-0.03554810583591461,
-0.020740903913974762,
0.008386539295315742,
-0.02409552037715912,
0.030606359243392944,
0.024420160800218582,
-0.01636727899312973,
-0.006821953691542149,
0.02007358707487583,
0.032950982451438904,
-0.014139886014163494,
0.05010281130671501,
0.04213108867406845,
0.022454282268881798,
-0.09782492369413376,
-0.023356061428785324,
0.03388883173465729,
-0.0037513982970267534,
0.009414566680788994,
-0.0005985554307699203,
-0.029686545953154564,
-0.021714825183153152,
-0.023518381640315056,
-0.04483642429113388,
-0.011741154827177525,
0.0032193490769714117,
0.022905172780156136,
-0.05150958523154259,
0.10590486228466034,
-0.019063595682382584,
-0.026476215571165085,
0.0003886101476382464,
-0.002531742909923196,
-0.001013373490422964,
-0.08512788265943527,
-0.015447464771568775,
0.05875988304615021,
-0.044656068086624146,
-0.01829708367586136,
-0.05378206446766853,
-0.04548570513725281,
0.03967824950814247,
0.047505687922239304,
0.02328391931951046,
-0.04865996539592743,
0.006334993522614241,
-0.020704831928014755,
0.012327311560511589,
0.026620499789714813,
0.027846917510032654,
-0.0515817254781723,
0.01324712485074997,
-0.013138911686837673,
-0.056090619415044785,
-0.00009982968913391232,
0.10352416336536407,
0.0004432804707903415,
-0.07445082813501358,
-0.0204162634909153,
0.03920932486653328,
0.07639867067337036,
0.06676767766475677,
0.021624647080898285,
0.028712624683976173,
-0.020542513579130173,
-0.021227864548563957,
0.027684597298502922,
-0.012976591475307941,
0.010848394595086575,
0.010992678813636303,
0.005383617244660854,
0.03634167090058327,
0.013725067488849163,
0.04191466048359871,
0.034393828362226486,
-0.029596367850899696,
0.04350179061293602,
-0.03037189692258835,
0.0227248165756464,
0.03259027376770973,
-0.059156663715839386,
-0.044547855854034424,
0.008264799602329731,
-0.01731414534151554,
-0.02241821214556694,
-0.000569811265449971,
0.011831332929432392,
0.06301628053188324,
-0.0029555787332355976,
0.062475208193063736,
0.03553007170557976,
0.05140136927366257,
-0.012778200209140778,
-0.02802727371454239,
-0.026368001475930214,
-0.013012662529945374,
0.01019009668380022,
0.05901237949728966,
0.12790825963020325,
0.027143530547618866,
0.021516432985663414,
-0.025754792615771294,
0.038523975759744644,
-0.05060780420899391,
-0.046748194843530655,
-0.034898824989795685,
0.023301955312490463,
-0.03358222916722298,
-0.01653861626982689,
0.030101364478468895,
0.023067492991685867,
-0.010145007632672787,
-0.0055729905143380165,
0.050427451729774475,
-0.026313895359635353,
-0.07654295116662979,
-0.02671067789196968,
0.0024618550669401884,
0.04451178386807442,
0.052411362528800964,
0.03479061275720596,
0.021714825183153152,
-0.021660717204213142,
-0.01207481324672699,
-0.0075704301707446575,
-0.015429428778588772,
-0.05306064337491989,
0.04014717414975166,
0.010911518707871437,
-0.022201785817742348,
0.03468239679932594,
0.0007963830721564591,
0.06265556812286377,
-0.011136963963508606,
-0.0572088249027729,
0.05612669140100479,
-0.02032608538866043,
0.03278866410255432,
-0.031634386628866196,
0.0020785992965102196,
0.02618764527142048,
-0.03967824950814247,
0.06853516399860382,
-0.05443134531378746,
-0.050679948180913925,
0.04995852708816528,
-0.04977817088365555,
-0.006141111254692078,
0.050066739320755005,
-0.01511380635201931,
-0.04350179061293602,
0.022382140159606934,
-0.007178156170994043,
-0.0009412312647327781,
0.004245121963322163,
-0.009405548684298992,
0.016268083825707436,
0.011100892908871174,
0.003981351852416992,
-0.07142084836959839,
-0.002673773095011711,
0.05443134531378746,
0.030660467222332954,
-0.026530321687459946,
0.020091623067855835,
0.01049670111387968,
-0.019640734419226646,
-0.03084082156419754,
-0.016863256692886353,
0.024329982697963715,
-0.04581034556031227,
0.01409479696303606,
-0.05684811249375343,
-0.058543454855680466,
-0.027035318315029144,
-0.03461025655269623,
-0.0034605746623128653,
0.024185698479413986,
-0.000032125855796039104,
-0.01656566932797432,
0.029794760048389435,
0.004765898920595646,
-0.005829997360706329,
0.018775027245283127,
-0.027287814766168594,
0.017305128276348114,
-0.004513401072472334,
-0.010740181431174278,
-0.04671212285757065,
0.08750858157873154,
-0.005978791043162346,
0.025808898732066154,
0.014184975065290928,
-0.03978646546602249,
0.019334129989147186,
-0.006334993522614241,
0.016601741313934326,
-0.08382932096719742,
-0.005135628394782543,
-0.01965877041220665,
0.0020661999005824327,
-0.01524005550891161,
0.027864953503012657,
0.020037516951560974,
0.02676478400826454,
0.023356061428785324,
-0.011010714806616306,
-0.005604553036391735,
0.05381813645362854,
-0.016484510153532028,
-0.07459510862827301,
-0.04223930090665817,
-0.003753652796149254,
-0.0612848624587059,
-0.0065514203161001205,
-0.011064820922911167,
0.021480362862348557,
0.01739530637860298,
-0.03042600490152836,
-0.008228728547692299,
0.04447571188211441,
0.006001335568726063,
0.028351914137601852,
0.03410525992512703,
-0.018468422815203667,
-0.0009733571205288172,
-0.06445912271738052,
0.034898824989795685,
-0.010559825226664543,
-0.015799157321453094,
0.02292320691049099,
-0.03953396528959274,
0.008517296984791756,
0.013571765273809433,
0.034141331911087036,
0.005036432761698961,
-0.010397505015134811,
-0.04050788655877113,
-0.034844718873500824,
-0.021588575094938278,
-0.013066769577562809,
0.019803054630756378,
0.009432602673768997,
-0.03332973271608353,
-0.0015938933938741684,
-0.03870433196425438,
0.045161064714193344,
-0.03856004402041435,
0.02492515556514263,
0.02277892269194126,
0.006366555579006672,
0.022147677838802338,
0.012778200209140778,
-0.015285144560039043,
-0.0008578167180530727,
0.039858605712652206,
-0.041698236018419266,
-0.02113768644630909,
0.006285395473241806,
-0.005288930609822273,
-0.038523975759744644,
-0.050824232399463654,
0.02027197927236557,
-0.04076038673520088,
0.007083469536155462,
-0.036846667528152466,
0.007601992227137089,
0.016971470788121223,
0.0017269056988880038,
0.01698048785328865,
-0.02858637645840645,
0.004042221698909998,
0.023770879954099655,
-0.013725067488849163,
-0.008075426332652569,
-0.0898892730474472,
-0.07993364334106445,
0.08152077347040176,
-0.032950982451438904,
-0.03599899634718895,
0.023969270288944244,
0.0078499810770154,
-0.035259537398815155,
-0.018170835450291634,
0.053385283797979355,
-0.023319989442825317,
-0.02690906822681427,
0.02149839699268341,
-0.010821341536939144,
0.04966995492577553,
-0.09970062226057053,
0.007376547437161207,
0.004484093282371759,
0.02640407346189022,
0.004630632232874632,
-0.02660246379673481,
0.0005444487323984504,
0.03008332848548889,
-0.037550054490566254,
-0.0018024296732619405,
-0.012372399680316448,
-0.02175089530646801,
0.014004618860781193,
-0.03536774963140488,
0.01951448619365692,
-0.033780619502067566,
-0.015095771290361881,
-0.010045811533927917,
0.02384302206337452,
-0.016051655635237694,
-0.008490243926644325,
0.015537642873823643,
0.015844246372580528,
-0.0024302927777171135,
0.061501290649175644,
-0.030750645324587822,
-0.008097969926893711,
0.02389712817966938,
-0.005356563720852137,
-0.0011136963730677962,
-0.00040720932884141803,
0.047866400331258774,
0.0495256707072258,
0.032969020307064056,
0.04162609204649925,
-0.0536017082631588,
-0.034033119678497314,
0.043321434408426285,
-0.0012128920061513782,
0.01854056492447853,
0.09313567727804184,
-0.01915377378463745,
-0.0883021429181099,
0.05078816041350365,
-0.012119902297854424,
-0.013283195905387402,
0.030101364478468895,
0.013021680526435375,
-0.020506441593170166,
0.011840350925922394,
-0.0469646193087101,
-0.019225915893912315,
0.022237855941057205,
0.001321105402894318,
-0.09061069786548615,
-0.03480864688754082,
0.01586228236556053,
0.02880280278623104,
-0.0011458222288638353,
-0.017422359436750412,
0.01521300245076418,
0.008990731090307236,
-0.007065434008836746,
-0.011596870608627796,
0.02701728232204914,
-0.018955383449792862,
-0.013770156539976597,
-0.03468239679932594,
0.055729907006025314,
-0.022382140159606934,
0.029091373085975647,
-0.03518739342689514,
0.04581034556031227,
-0.02860441245138645,
-0.0413735955953598,
0.010568843223154545,
-0.0009034692775458097,
0.024293910712003708,
0.08130434155464172,
-0.016908345744013786,
-0.0007039507618173957,
0.0114886574447155,
-0.03812719136476517,
-0.013598818331956863,
0.021065544337034225,
0.06745302677154541,
0.02470872923731804,
0.08887927979230881,
0.02211160771548748,
-0.007178156170994043,
0.0750279650092125,
-0.04573820158839226,
-0.0648559033870697,
0.0002809603465721011,
0.051293157041072845,
-0.01960466243326664,
0.0159524604678154,
0.002473127329722047,
0.011218124069273472,
-0.004339808598160744,
0.021372148767113686,
-0.014193992130458355,
0.009288317523896694,
0.03172456473112106,
-0.009793314151465893,
0.005757855251431465,
-0.02108358033001423,
0.0002017729275394231,
-0.014753094874322414,
0.041698236018419266,
-0.01575407013297081,
-0.06633482128381729,
-0.023915164172649384,
0.01248963177204132
] |
20,877 | precession.precession | eval_u |
Compactified orbital separation.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
u: float
Compactified separation 1/(2L).
Examples
--------
``u = precession.eval_u(r,q)``
| def eval_u(r, q):
"""
Compactified orbital separation.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
Returns
-------
u: float
Compactified separation 1/(2L).
Examples
--------
``u = precession.eval_u(r,q)``
"""
L = eval_L(r, q)
u = 1 / (2*L)
return u
| (r, q) | [
-0.024767247959971428,
0.03894243389368057,
-0.014044096693396568,
0.05351962894201279,
0.02810567058622837,
-0.005182419903576374,
-0.0015119033632799983,
-0.10249481350183487,
-0.07362008094787598,
0.03887252137064934,
0.06523032486438751,
0.002582470653578639,
0.003753540338948369,
0.07662640511989594,
-0.06023143231868744,
0.01843997649848461,
0.01884198561310768,
-0.03985132649540901,
0.006139376200735569,
-0.006628778297454119,
-0.029381612315773964,
0.014122750610113144,
0.06089562177658081,
0.11088456213474274,
-0.021795878186821938,
-0.04079517349600792,
0.03123435005545616,
-0.016386235132813454,
-0.0556170679628849,
-0.0357438400387764,
0.029905973002314568,
0.05278552696108818,
-0.025571266189217567,
-0.0018407204188406467,
0.010740631259977818,
0.006786086596548557,
0.07879375666379929,
0.022879553958773613,
-0.06991460174322128,
-0.046458255499601364,
-0.06606930494308472,
0.018422499299049377,
0.023194169625639915,
0.017146557569503784,
0.009333599358797073,
0.006178703159093857,
0.043836455792188644,
-0.023945752531290054,
-0.0068166740238666534,
0.04733218625187874,
0.04069029912352562,
0.011999093927443027,
-0.017443694174289703,
-0.01228749193251133,
-0.0107581103220582,
0.008905372582376003,
0.014673328027129173,
0.002573731355369091,
-0.016482368111610413,
-0.03294725716114044,
-0.03455529361963272,
0.017504869028925896,
0.00826303195208311,
0.053205013275146484,
0.026724858209490776,
0.01892937906086445,
-0.01025122869759798,
0.055826812982559204,
0.026567550376057625,
0.01080180611461401,
-0.044745348393917084,
0.016692111268639565,
-0.018212754279375076,
-0.024644898250699043,
0.03908226266503334,
0.007895980961620808,
-0.0057548461481928825,
-0.011448516510426998,
0.008171269670128822,
-0.019611047580838203,
0.037089698016643524,
-0.016639675945043564,
0.061664681881666183,
-0.021830836310982704,
0.01339738629758358,
-0.004561928100883961,
0.03158392384648323,
-0.042927566915750504,
-0.043591756373643875,
0.05816895142197609,
-0.07050888240337372,
-0.04624851047992706,
-0.03516704589128494,
0.02966127172112465,
0.006751128938049078,
0.08452675491571426,
-0.001379720983095467,
-0.0032728775404393673,
0.001770805916748941,
-0.026515113189816475,
0.04593389481306076,
0.09207753837108612,
-0.043696627020835876,
-0.0126895010471344,
0.008883524686098099,
0.00899276603013277,
-0.015092815272510052,
-0.008228074759244919,
0.009202510118484497,
-0.02829793654382229,
-0.010740631259977818,
0.04376654326915741,
-0.06739767640829086,
0.016298841685056686,
-0.08326829224824905,
0.002774735912680626,
-0.10836763679981232,
0.026462677866220474,
0.021725963801145554,
0.055022794753313065,
0.02438271790742874,
0.005925262812525034,
-0.061419982463121414,
0.009010245092213154,
0.01145725604146719,
0.015424910001456738,
-0.009132595732808113,
0.039152178913354874,
0.007917828857898712,
-0.02997588738799095,
0.03268507868051529,
-0.0046886480413377285,
0.043242182582616806,
-0.025746053084731102,
0.02398070879280567,
0.03207332640886307,
-0.07355016469955444,
-0.017251428216695786,
0.05463826283812523,
0.050233643501996994,
0.01019879337400198,
0.030587639659643173,
0.012672021985054016,
0.029626313596963882,
0.031304266303777695,
0.06655870378017426,
0.031042084097862244,
0.05110757797956467,
-0.02644519880414009,
0.014402409084141254,
-0.030255544930696487,
0.07008939236402512,
0.1483587920665741,
-0.05187663808465004,
0.04750697314739227,
-0.04949954152107239,
0.05872826650738716,
-0.044745348393917084,
0.024697333574295044,
-0.04750697314739227,
-0.0067642382346093655,
-0.008271771483123302,
-0.012663282454013824,
-0.011291208676993847,
0.010557105764746666,
-0.04135448858141899,
0.023403914645314217,
-0.018999293446540833,
-0.02931169793009758,
0.037753887474536896,
0.02644519880414009,
-0.05201646685600281,
-0.025746053084731102,
0.04275278002023697,
-0.043591756373643875,
-0.0009706113487482071,
-0.03908226266503334,
-0.014271318912506104,
-0.024907078593969345,
-0.0677822083234787,
0.01647362858057022,
0.007000199984759092,
0.05016373097896576,
-0.034065891057252884,
0.04516483470797539,
0.027126867324113846,
-0.0008733863360248506,
-0.024155495688319206,
0.015451127663254738,
-0.038208331912755966,
-0.01576574333012104,
-0.05093279108405113,
-0.037194568663835526,
-0.007323554717004299,
0.008131942711770535,
0.012121444568037987,
0.05610647052526474,
0.011326165869832039,
-0.0002780197828542441,
-0.0421934649348259,
-0.023753486573696136,
0.02366609312593937,
-0.010696934536099434,
0.015110294334590435,
-0.03873269259929657,
-0.017601002007722855,
-0.05201646685600281,
0.04317227005958557,
0.06030134856700897,
0.001194010372273624,
0.0845966711640358,
0.015599695965647697,
-0.010670716874301434,
0.038453031331300735,
-0.023438870906829834,
0.04376654326915741,
0.020677244290709496,
0.012479756958782673,
0.08180008828639984,
0.05390416085720062,
0.04376654326915741,
-0.025815967470407486,
0.07089340686798096,
-0.0007133474573493004,
-0.055582109838724136,
-0.021533697843551636,
-0.04869552329182625,
0.004701757337898016,
-0.010513409040868282,
-0.0550927072763443,
0.028193064033985138,
-0.07515820115804672,
0.022197887301445007,
-0.03929200768470764,
0.008394122123718262,
0.013834352605044842,
-0.018614763393998146,
0.0730607658624649,
-0.040969960391521454,
0.03359396755695343,
-0.042787738144397736,
-0.028787339106202126,
0.009359817951917648,
0.03431059420108795,
0.02462741918861866,
-0.029032040387392044,
0.020642288029193878,
0.030744947493076324,
-0.05491792410612106,
0.010460972785949707,
-0.08138059824705124,
-0.02730165421962738,
-0.029538920149207115,
0.011597084812819958,
0.0511774905025959,
0.04159919172525406,
0.0467379130423069,
0.039816368371248245,
0.024242889136075974,
0.0054445997811853886,
-0.013449822552502155,
-0.10354352742433548,
0.04481526091694832,
0.017085380852222443,
-0.02911943383514881,
-0.017845703288912773,
-0.02890968881547451,
0.019663482904434204,
0.029241783544421196,
-0.030045801773667336,
0.03908226266503334,
0.049534495919942856,
-0.01913912408053875,
-0.007594474125653505,
-0.0381733737885952,
-0.003731691977009177,
0.007035157177597284,
0.029224304482340813,
0.05732997506856918,
0.006488949526101351,
0.004985785111784935,
-0.025815967470407486,
-0.04149431735277176,
0.0470525287091732,
-0.058343738317489624,
0.04352184012532234,
-0.0215162206441164,
-0.11403071880340576,
0.039012350142002106,
-0.017513608559966087,
0.0024644897785037756,
-0.017688395455479622,
-0.029993366450071335,
0.027021994814276695,
0.109556183218956,
-0.008573278784751892,
-0.027738619595766068,
-0.02866498753428459,
0.07050888240337372,
0.014114011079072952,
-0.06708306074142456,
-0.019855746999382973,
-0.003760094754397869,
-0.03081486187875271,
0.0063491202890872955,
-0.051492106169462204,
0.05781937763094902,
-0.03778884559869766,
-0.031146956607699394,
0.015110294334590435,
-0.027913406491279602,
0.014472323469817638,
-0.04226337745785713,
0.046912699937820435,
-0.016753287985920906,
-0.014612152241170406,
0.004819738212972879,
0.016237666830420494,
-0.003567829728126526,
-0.012803112156689167,
0.029905973002314568,
0.008319837972521782,
0.035691406577825546,
0.05414886027574539,
-0.07134785503149033,
-0.01561717502772808,
-0.05198150873184204,
0.024505069479346275,
0.004297563340514898,
-0.006873479578644037,
-0.04967432841658592,
0.014280058443546295,
-0.043347056955099106,
0.020519936457276344,
-0.042543038725852966,
-0.018474934622645378,
0.06865613907575607,
-0.02689964510500431,
0.010600801557302475,
-0.02861255221068859,
0.01778452843427658,
0.02109673246741295,
-0.059217669069767,
0.06900571286678314,
-0.051946550607681274,
0.02060732990503311,
0.0383831188082695,
-0.013668305240571499,
0.053170058876276016,
0.02216292917728424,
-0.004872174002230167,
-0.025204215198755264,
-0.000034206266718683764,
-0.04443073272705078,
0.004810998681932688,
-0.013178902678191662,
-0.047716718167066574,
-0.04055047035217285,
0.02689964510500431,
-0.010259968228638172,
0.025361523032188416,
-0.0020209690555930138,
-0.006755498703569174,
-0.018544849008321762,
-0.01746991276741028,
-0.026200497522950172,
-0.055931683629751205,
-0.00896654836833477,
0.014044096693396568,
0.015608435496687889,
-0.02307181991636753,
0.0036421138793230057,
0.021026818081736565,
-0.010862981900572777,
-0.035079654306173325,
0.08466658741235733,
-0.0024098691064864397,
0.0008258663001470268,
-0.07669632136821747,
-0.02277468331158161,
-0.011448516510426998,
-0.02109673246741295,
-0.05722510442137718,
-0.0044548711739480495,
-0.027511397376656532,
0.030098237097263336,
-0.043801501393318176,
0.021341433748602867,
-0.02277468331158161,
0.05603655427694321,
0.004780411254614592,
-0.022879553958773613,
0.047157399356365204,
0.007935307919979095,
-0.06652374565601349,
0.058658353984355927,
0.01975087635219097,
-0.015302559360861778,
-0.07250144332647324,
0.00004246766184223816,
-0.00280095380730927,
0.011518430896103382,
0.007507080677896738,
0.010434755124151707,
0.015215165913105011,
-0.045199792832136154,
0.027214260771870613,
0.06582459807395935,
-0.027424003928899765,
0.02090446650981903,
-0.00908889900892973,
-0.020886987447738647,
0.0017030760645866394,
0.03782379999756813,
-0.0848064124584198,
-0.059462372213602066,
0.015389952808618546,
-0.10794814676046371,
-0.009989049285650253,
0.05425373464822769,
0.0010607356671243906,
-0.037194568663835526,
0.023543743416666985,
0.030185630545020103,
-0.029836058616638184,
0.03292977809906006,
0.06886588782072067,
0.029451526701450348,
0.01938382349908352,
0.05152706429362297,
-0.03876764699816704,
-0.0022307129111140966,
-0.018911899998784065,
-0.0339435413479805,
-0.0014998867409303784,
-0.0117631321772933,
0.05061817541718483,
0.06484579294919968,
0.023596178740262985,
0.023106776177883148,
0.020712202414870262,
0.021725963801145554,
-0.010976593010127544,
-0.018964337185025215,
-0.02724921703338623,
-0.005523253697901964,
-0.032667599618434906,
0.015127772465348244,
-0.04568919539451599,
-0.03733439743518829,
-0.0047585628926754,
0.044395774602890015,
-0.05813399329781532,
0.019156601279973984,
0.06110536307096481,
0.014568455517292023,
-0.015914311632514,
-0.028874732553958893,
0.008398491889238358,
0.0025038167368620634,
-0.012759415432810783,
0.04299748316407204,
0.009036462754011154,
0.04533962160348892,
-0.0020482793916016817,
0.08326829224824905,
0.06523032486438751,
-0.03992123901844025,
-0.022827118635177612,
-0.023858359083533287,
0.04201867803931236,
0.00826303195208311,
-0.009158813394606113,
0.04422098770737648,
0.03179366514086723,
0.004487643949687481,
-0.03270255774259567,
0.034065891057252884,
0.014332493767142296,
-0.04481526091694832,
-0.03016815148293972,
-0.00821059662848711,
-0.03943183645606041,
0.0321432389318943,
0.023701051250100136,
-0.01857980713248253,
-0.010688195005059242,
-0.011658260598778725,
0.03918713703751564,
-0.0045094918459653854,
-0.02845524437725544,
0.04890526458621025,
0.012488496489822865,
-0.0378587581217289,
-0.041284576058387756,
-0.008804870769381523,
0.0016855974681675434,
-0.017653437331318855,
0.025571266189217567,
-0.0015151805710047483,
0.03653038293123245,
0.04184389114379883,
-0.033978499472141266,
-0.014061574824154377,
0.006877849344164133,
0.016298841685056686,
0.018055446445941925,
0.006925915367901325,
-0.049988944083452225,
0.022040579468011856,
-0.028734901919960976,
-0.0053004007786512375,
0.0254314374178648,
0.0038343791384249926,
-0.00866504106670618,
0.0213064756244421,
-0.029329176992177963,
-0.002750702667981386,
-0.010670716874301434,
-0.025344043970108032,
0.002182646654546261,
0.032055847346782684,
-0.0006133913993835449,
0.029678750783205032,
-0.019873226061463356,
0.027231737971305847,
0.005684931296855211,
-0.03894243389368057,
0.02100933901965618,
0.0009722499526105821,
-0.056281257420778275,
-0.018405020236968994,
-0.03549914062023163,
0.04020089656114578,
-0.021988144144415855,
0.04638833925127983,
-0.058343738317489624,
0.006252987310290337,
-0.013432343490421772,
-0.007913459092378616,
-0.0009629644337110221,
0.025064386427402496,
0.10620028525590897,
0.012348666787147522,
-0.004968306515365839,
-0.0021280257496982813,
0.02644519880414009,
0.04366167262196541,
0.00745464488863945,
0.009587040171027184,
-0.05358954519033432,
-0.020712202414870262,
-0.0425080806016922,
0.030832340940833092,
0.07375990599393845,
0.026270413771271706,
0.029346656054258347,
0.010111399926245213,
0.0033056498505175114,
-0.018562328070402145,
-0.024907078593969345,
-0.03357648849487305,
0.05271561071276665,
0.006305423565208912,
-0.0018407204188406467,
-0.003388673532754183,
0.018911899998784065,
-0.022285280749201775,
0.05726006254553795,
0.0028752381913363934,
-0.04778663441538811,
0.031863581389188766,
0.019069207832217216,
0.018370062112808228,
-0.034677643328905106,
-0.04467543214559555,
0.03862781822681427,
-0.05767954885959625,
-0.007865393534302711,
0.0018199646146968007,
-0.016193971037864685,
-0.009150073863565922,
0.0428226962685585,
-0.009167552925646305,
0.002698266878724098,
-0.028997082263231277,
0.008791761472821236,
0.02749391831457615,
-0.004762932658195496,
0.024644898250699043,
0.015835657715797424,
-0.04453560337424278,
-0.027860969305038452,
-0.011317426338791847,
0.009018983691930771,
-0.07036904990673065,
-0.020310193300247192,
-0.01503164041787386,
0.012348666787147522,
0.022599896416068077,
-0.040270812809467316,
-0.06855127215385437,
-0.00914133433252573,
0.008118833415210247,
-0.062328871339559555,
-0.06729280948638916,
-0.03904730826616287,
-0.004933349322527647,
-0.023631136864423752,
-0.0507580041885376,
0.04554936662316322,
-0.0015927420463413,
-0.035534098744392395,
0.059007927775382996,
0.007445905357599258,
-0.026934601366519928,
-0.005837869364768267,
-0.05005885660648346,
-0.012977899052202702,
0.035586532205343246,
-0.054673220962285995,
0.04205363616347313,
-0.010941635817289352,
-0.01576574333012104,
-0.008319837972521782,
0.026200497522950172,
0.01587061583995819,
-0.047157399356365204,
0.020782116800546646,
0.023945752531290054,
0.010766848921775818,
0.015040379017591476,
-0.003731691977009177,
-0.0018942488823086023,
-0.06089562177658081,
-0.005938371643424034,
0.0012857732363045216,
0.018405020236968994,
-0.020484980195760727,
0.0036879954859614372,
0.007852284237742424,
0.0466330423951149,
0.017635958269238472,
-0.03670516610145569,
-0.009499646723270416,
0.011789349839091301,
-0.0298185795545578,
-0.01746991276741028,
0.02925926260650158,
-0.003819085191935301,
-0.08159034699201584,
0.024889599531888962,
0.08061154186725616,
0.0215162206441164,
-0.02869994565844536,
-0.023334000259637833,
0.0056630829349160194,
0.021830836310982704,
-0.00008356980106327683,
0.007996482774615288,
-0.04159919172525406,
-0.01468206662684679,
-0.01798553206026554,
0.024714812636375427,
-0.013869309797883034,
-0.014891810715198517,
0.0254314374178648,
-0.0467379130423069,
-0.05988185852766037,
-0.08732334524393082,
0.025711096823215485,
-0.0013611499452963471,
0.057749465107917786,
-0.07320059090852737,
-0.04425594583153725,
-0.00586845725774765,
0.011116421781480312,
-0.025151779875159264,
0.035638969391584396,
-0.0049814158119261265,
0.01843997649848461,
0.027633747085928917,
0.01898181438446045,
-0.038348160684108734,
0.04806629195809364,
-0.017260167747735977,
-0.027266696095466614,
-0.0013076215982437134,
0.021970665082335472,
0.001599296578206122,
-0.018772071227431297,
0.03736935555934906,
-0.023106776177883148,
-0.04069029912352562,
0.05760963633656502,
-0.003910848405212164,
-0.01873711496591568,
0.05474313721060753,
-0.001151406206190586,
0.05642108619213104,
0.04638833925127983,
-0.0038802605122327805,
-0.018562328070402145,
0.009604519233107567,
-0.029748665168881416,
0.041424404829740524,
-0.0007685144664719701,
-0.01798553206026554,
-0.06837648153305054,
-0.049639370292425156,
0.03904730826616287,
0.04887031018733978,
-0.02427784726023674,
-0.030430331826210022,
0.002613058313727379,
0.07355016469955444,
-0.03179366514086723,
0.05236604064702988,
0.008306728675961494,
0.03403093293309212,
-0.02906699664890766,
-0.006340380758047104,
0.03483495116233826,
0.036844998598098755,
-0.029626313596963882,
0.011894222348928452,
0.00886167585849762,
-0.04607372358441353,
-0.04708748683333397,
0.012497236020863056,
-0.06044117733836174,
0.06393690407276154,
-0.0215162206441164,
0.02644519880414009,
0.015241383574903011,
-0.03340170159935951,
-0.05219125375151634,
-0.036844998598098755,
-0.05016373097896576,
-0.02871742472052574,
0.02261737547814846,
-0.01435871236026287,
0.0379636287689209,
-0.00526107382029295,
-0.03614585101604462,
0.005562580656260252,
-0.03950175270438194,
0.028979603201150894,
0.008289250545203686,
0.027913406491279602,
0.03343665972352028,
-0.013746959157288074,
0.006191811989992857,
0.0005664175259880722,
-0.014620891772210598,
-0.045759107917547226,
0.029538920149207115,
0.024155495688319206,
-0.0384879894554615,
-0.006458361633121967,
-0.00552762346342206,
0.0033253133296966553,
0.011990354396402836,
0.06260853260755539,
0.011422298848628998,
0.008752434514462948,
0.0050163730047643185,
-0.0136945229023695
] |
20,878 | precession.precession | eval_v |
Newtonian orbital velocity of the binary.
Parameters
----------
r: float
Binary separation.
Returns
-------
v: float
Newtonian orbital velocity.
Examples
--------
``v = precession.eval_v(r)``
| def eval_v(r):
"""
Newtonian orbital velocity of the binary.
Parameters
----------
r: float
Binary separation.
Returns
-------
v: float
Newtonian orbital velocity.
Examples
--------
``v = precession.eval_v(r)``
"""
r = np.atleast_1d(r).astype(float)
v = 1/r**0.5
return v
| (r) | [
0.02636224403977394,
0.00020043957920279354,
-0.0013785938499495387,
0.04018907621502876,
0.05238010734319687,
0.009677061811089516,
-0.0656387135386467,
-0.024227092042565346,
-0.03428297117352486,
0.05826899781823158,
0.05923325940966606,
0.017666663974523544,
0.04111890122294426,
0.041738785803318024,
-0.0672917366027832,
-0.0016261165728792548,
0.03409356251358986,
-0.010469133965671062,
-0.07686548680067062,
0.008045564405620098,
-0.03376640006899834,
0.01621166057884693,
0.03380084037780762,
0.04359843581914902,
0.02358998917043209,
0.02358998917043209,
0.025518514215946198,
0.015462636016309261,
-0.07121766358613968,
-0.04707666486501694,
-0.006711093708872795,
0.0026775498408824205,
-0.018114356324076653,
-0.006977987941354513,
0.011958574876189232,
0.022178035229444504,
0.02930668741464615,
0.0332842692732811,
-0.084304079413414,
0.01139034889638424,
-0.0047524357214570045,
0.004636208061128855,
-0.01015058346092701,
0.03190675377845764,
-0.03230278939008713,
-0.059577640146017075,
0.032750483602285385,
-0.023521114140748978,
0.027051003649830818,
0.0022492280695587397,
0.020766079425811768,
0.018475955352187157,
0.022229691967368126,
-0.03256107494235039,
-0.020404480397701263,
0.07789862155914307,
0.04538920521736145,
0.07686548680067062,
-0.002470922190696001,
-0.012845352292060852,
0.0026861594524234533,
-0.005277614574879408,
-0.00015322193212341517,
0.03677972033619881,
0.05637491121888161,
0.07438595592975616,
0.0054541090503335,
0.0340246856212616,
0.014240088872611523,
0.0040443055331707,
0.0024580080062150955,
0.020146196708083153,
-0.014653343707323074,
-0.040533456951379776,
0.008945255540311337,
0.05940544977784157,
-0.035987649112939835,
-0.04287523776292801,
0.010968483984470367,
0.009255196899175644,
0.024743661284446716,
-0.0576835535466671,
0.07397270202636719,
-0.004244476091116667,
0.009797594510018826,
-0.030270950868725777,
-0.037709545344114304,
-0.06577646732330322,
-0.04184209927916527,
0.023658866062760353,
-0.03781285881996155,
-0.015617606230080128,
-0.04631903022527695,
0.009065788239240646,
-0.03953475505113602,
0.0295821912586689,
0.06953020393848419,
-0.05072708800435066,
-0.010193631052970886,
-0.015867281705141068,
0.02736094407737255,
0.06908251345157623,
-0.07831187546253204,
-0.01678849570453167,
0.025948988273739815,
0.04518257826566696,
-0.04056789353489876,
0.014360621571540833,
0.004954759031534195,
-0.007782974746078253,
-0.001978029264137149,
0.08630148321390152,
-0.03304320573806763,
-0.0006360257393680513,
-0.11027029156684875,
0.03386971727013588,
-0.05516958236694336,
0.02035282365977764,
-0.018183233216404915,
0.06126509979367256,
0.0924314334988594,
0.004349942319095135,
-0.006073991768062115,
0.031751781702041626,
0.009668451733887196,
-0.026689404621720314,
0.0028282159473747015,
0.015057990327477455,
0.0007624775753356516,
0.015763968229293823,
0.04638790711760521,
0.012320173904299736,
0.03206172212958336,
-0.005213043186813593,
-0.006388238165527582,
0.03331870958209038,
-0.01214798353612423,
-0.03256107494235039,
0.02433040551841259,
-0.026035083457827568,
0.009720109403133392,
0.023193953558802605,
0.035746581852436066,
0.014765267260372639,
0.028049703687429428,
0.02405490167438984,
0.010994313284754753,
0.05826899781823158,
-0.0018682583468034863,
0.006754141300916672,
0.012216859497129917,
0.004408056382089853,
0.09931902587413788,
0.004924625623971224,
0.0366075336933136,
-0.010563838295638561,
0.07982714474201202,
-0.058062370866537094,
0.019371341913938522,
-0.03543664142489433,
-0.0077614509500563145,
0.0034889939706772566,
-0.03764066845178604,
-0.015006332658231258,
0.021368741989135742,
-0.0027571876998990774,
0.011373130604624748,
0.021816436201334,
-0.027998046949505806,
0.06725730001926422,
0.04762767255306244,
-0.02512247860431671,
-0.07714098691940308,
0.02555295266211033,
-0.01604808121919632,
0.011235378682613373,
-0.008833331987261772,
-0.005109729710966349,
0.038742683827877045,
-0.015583168715238571,
-0.0024407890159636736,
-0.014412278309464455,
-0.007679660804569721,
-0.06598309427499771,
0.033955808728933334,
0.05341324582695961,
0.021282648667693138,
0.011967184953391552,
-0.0011665852507576346,
-0.03736516833305359,
0.030305389314889908,
-0.039293691515922546,
0.007059778086841106,
-0.0043585519306361675,
-0.006310752592980862,
-0.007714098785072565,
0.028790120035409927,
0.02631058730185032,
-0.013172512874007225,
-0.03612539917230606,
0.04118777811527252,
0.00858796201646328,
-0.038501620292663574,
-0.014214260503649712,
-0.03509226068854332,
0.007012425921857357,
-0.019715720787644386,
-0.011347301304340363,
0.11233656853437424,
-0.028015265241265297,
0.032733261585235596,
0.03557439520955086,
-0.014334793202579021,
0.023176735267043114,
-0.04569914937019348,
0.00031639859662391245,
-0.02109324000775814,
0.02210915833711624,
0.046043526381254196,
0.020886611193418503,
0.041222214698791504,
-0.003949601203203201,
0.0471455417573452,
0.021988626569509506,
0.008441600017249584,
-0.03688303381204605,
-0.058785565197467804,
0.004687864799052477,
-0.05193241685628891,
-0.06264261901378632,
0.0091518834233284,
-0.010159192606806755,
-0.0012193183647468686,
-0.06467445194721222,
-0.0029681201558560133,
-0.0521390438079834,
0.0210760198533535,
0.03795061260461807,
-0.03543664142489433,
0.02104158140718937,
-0.0033641564659774303,
-0.012406268157064915,
-0.02584567479789257,
0.026517214253544807,
0.0037580402567982674,
0.018854772672057152,
0.009306853637099266,
0.0591643825173378,
-0.05024495720863342,
0.0022944279480725527,
-0.03433462604880333,
-0.0672917366027832,
-0.028996746987104416,
0.05926769599318504,
0.07314618676900864,
0.027980826795101166,
0.056822601705789566,
0.07225079834461212,
0.05775242671370506,
0.03557439520955086,
-0.0010051573626697063,
-0.018441516906023026,
-0.017735539004206657,
-0.012647334486246109,
-0.010581057518720627,
-0.03240610286593437,
-0.04962507262825966,
-0.011071798391640186,
0.07087328284978867,
0.0036202885676175356,
0.029530534520745277,
0.011080407537519932,
-0.0295821912586689,
-0.023968806490302086,
-0.011700290255248547,
-0.00941877719014883,
0.018751459196209908,
0.01643550768494606,
0.027756981551647186,
-0.011967184953391552,
-0.013964585028588772,
-0.04673228785395622,
-0.016203051432967186,
0.04869524762034416,
-0.0889187678694725,
0.031510718166828156,
-0.0066723511554300785,
-0.05940544977784157,
0.032474979758262634,
-0.032957110553979874,
0.012457924894988537,
0.012079107575118542,
0.024950288236141205,
0.04814424365758896,
0.06481220573186874,
0.0042466288432478905,
-0.01880311593413353,
-0.031751781702041626,
0.04108446463942528,
-0.007361109834164381,
-0.009117444977164268,
-0.04435607045888901,
-0.02109324000775814,
-0.03891487419605255,
-0.030305389314889908,
0.0084114670753479,
0.07652110606431961,
0.004337028134614229,
0.003755887970328331,
-0.0004460789496079087,
-0.04060233384370804,
0.003936687018722296,
-0.03877712041139603,
0.011252596974372864,
0.019750159233808517,
-0.0161772221326828,
-0.027756981551647186,
-0.03540220484137535,
0.030202073976397514,
-0.027722543105483055,
0.03981025889515877,
0.05926769599318504,
0.03262994810938835,
0.03083917684853077,
-0.0285662729293108,
-0.028996746987104416,
0.014687782153487206,
0.0058200121857225895,
-0.01906140148639679,
0.02009453810751438,
0.02207471989095211,
-0.02035282365977764,
0.013757958076894283,
0.03417965769767761,
-0.01759778894484043,
-0.004507065750658512,
0.051071468740701675,
0.018923649564385414,
0.0028648062143474817,
0.024140996858477592,
0.03331870958209038,
0.016314974054694176,
-0.04996945336461067,
0.049280695617198944,
-0.04835087060928345,
0.03128686919808388,
0.030219294130802155,
-0.01634080335497856,
0.041291091591119766,
-0.00564782228320837,
-0.02512247860431671,
-0.018475955352187157,
-0.012406268157064915,
-0.0023719132877886295,
-0.05940544977784157,
-0.0336458683013916,
0.018441516906023026,
-0.010167802684009075,
-0.0047309123910963535,
-0.03442072123289108,
-0.07452370226383209,
0.07163091748952866,
-0.032733261585235596,
-0.020921049639582634,
-0.005566032137721777,
-0.04022351652383804,
-0.018648145720362663,
0.035746581852436066,
0.004778264556080103,
0.011751947924494743,
-0.021627027541399002,
-0.01780441589653492,
0.024967508390545845,
-0.022384662181138992,
-0.007963773794472218,
0.05434307083487511,
-0.0036805549170821905,
-0.024881413206458092,
0.01933690346777439,
-0.07851850986480713,
-0.0091518834233284,
-0.015522901900112629,
-0.017055390402674675,
-0.03288823366165161,
0.05224235728383064,
0.0704255923628807,
-0.008721408434212208,
0.02129986695945263,
0.004395142197608948,
0.027154317125678062,
-0.042461980134248734,
-0.0029595105443149805,
0.011993013322353363,
0.0225568525493145,
-0.04156659543514252,
0.027998046949505806,
0.02185087464749813,
-0.021902531385421753,
-0.035781022161245346,
0.011958574876189232,
0.02808414213359356,
0.07204417139291763,
-0.06450226157903671,
-0.00036940074642188847,
-0.0017186684999614954,
-0.05499739199876785,
0.04538920521736145,
0.013465235009789467,
-0.04614683985710144,
-0.029806038364768028,
0.00032689140061847866,
0.03987913578748703,
-0.011381739750504494,
-0.024140996858477592,
-0.06405457109212875,
0.005385233089327812,
0.015092427842319012,
-0.07831187546253204,
-0.005919021088629961,
-0.013766567222774029,
0.0019048486137762666,
0.004700778983533382,
0.04614683985710144,
0.05196685343980789,
0.02889343351125717,
0.07307731360197067,
0.09491096436977386,
-0.004778264556080103,
0.004782569129019976,
0.07156204432249069,
-0.023641647771000862,
-0.010865170508623123,
-0.03967250883579254,
-0.02002566307783127,
0.010408868081867695,
-0.03667640686035156,
0.01854483224451542,
-0.002455855719745159,
-0.016865981742739677,
0.06725730001926422,
-0.019732940942049026,
0.05489407852292061,
0.009126054123044014,
0.0077011846005916595,
-0.050554897636175156,
-0.007081301882863045,
0.0023977416567504406,
-0.04421831667423248,
-0.01566065475344658,
-0.09229367971420288,
-0.012130765244364738,
-0.010624105110764503,
0.03292267024517059,
0.011235378682613373,
0.024244310334324837,
-0.008631008677184582,
-0.07851850986480713,
-0.018424298614263535,
-0.0004250933416187763,
-0.0626770555973053,
-0.008884988725185394,
0.03671084716916084,
-0.027240412309765816,
0.014575858600437641,
-0.037709545344114304,
0.0008512628846801817,
0.0512092188000679,
-0.011872480623424053,
-0.020955488085746765,
-0.02209194004535675,
0.042530857026576996,
-0.01564343459904194,
0.02655165269970894,
0.03266438841819763,
0.016607698053121567,
0.015781186521053314,
-0.03905262425541878,
-0.02505360171198845,
-0.015178523026406765,
-0.07796750217676163,
-0.11970628798007965,
0.019164714962244034,
-0.06302143633365631,
0.04914294183254242,
0.039224814623594284,
-0.0027851685881614685,
-0.021713122725486755,
0.02610396035015583,
0.019939567893743515,
-0.05238010734319687,
-0.04280636087059975,
0.05716698244214058,
0.010262507013976574,
0.024416500702500343,
-0.035712145268917084,
0.010589666664600372,
-0.009504871442914009,
0.05940544977784157,
0.0641578882932663,
0.017218971624970436,
0.011683071963489056,
0.03832942992448807,
-0.06350356340408325,
-0.03743404150009155,
-0.01680571585893631,
-0.01242348738014698,
-0.002752882894128561,
-0.008768760599195957,
-0.04838530719280243,
0.047317732125520706,
-0.006185915321111679,
-0.0008340438944287598,
-0.010064488276839256,
0.038260553032159805,
0.027688104659318924,
0.03316373750567436,
-0.03695191070437431,
0.008665447123348713,
-0.058785565197467804,
-0.02581123635172844,
-0.0016777734272181988,
-0.030391482636332512,
0.0005257166922092438,
-0.028480177745223045,
-0.003958210814744234,
0.026672186329960823,
-0.06036971136927605,
-0.03445516154170036,
0.0314246229827404,
0.05310330539941788,
-0.03405912593007088,
-0.03760623186826706,
-0.03784729912877083,
0.013051980175077915,
-0.054549697786569595,
0.0017089828616008162,
0.003176900092512369,
0.01719314232468605,
-0.0471455417573452,
-0.0053809285163879395,
-0.015290445648133755,
-0.00733958650380373,
0.07293955981731415,
0.006792883854359388,
-0.010348601266741753,
-0.014644734561443329,
0.029461659491062164,
-0.013069198466837406,
0.026207273826003075,
-0.008351201191544533,
-0.02734372578561306,
-0.008346895687282085,
-0.02054223231971264,
0.03636646643280983,
0.0037666498683393,
0.022246910259127617,
-0.009995612315833569,
-0.028049703687429428,
-0.005518679972738028,
-0.01859648898243904,
-0.020421698689460754,
-0.038260553032159805,
0.09015852957963943,
0.0016928400145843625,
-0.03843274340033531,
0.06808380782604218,
0.02711987867951393,
-0.03435184806585312,
0.052104607224464417,
0.017718320712447166,
0.008859160356223583,
0.010073098354041576,
0.002059819409623742,
-0.04831643030047417,
-0.010615495033562183,
0.0091518834233284,
0.02761922962963581,
-0.014765267260372639,
-0.014076508581638336,
-0.013095026835799217,
-0.03388693556189537,
-0.06622416526079178,
0.040740083903074265,
-0.033973030745983124,
-0.053275495767593384,
0.03507504239678383,
-0.004102419596165419,
0.03684859722852707,
0.0026517214719206095,
0.07865625619888306,
-0.007537604309618473,
-0.017683882266283035,
-0.03860493376851082,
-0.006203134078532457,
-0.042255353182554245,
-0.0837530717253685,
-0.016237489879131317,
0.05238010734319687,
0.07252630591392517,
0.002507512690499425,
-0.06574203073978424,
-0.05895775556564331,
-0.0210760198533535,
-0.007098520640283823,
-0.09008965641260147,
-0.062332674860954285,
0.00004254296436556615,
0.02333170548081398,
0.002242770977318287,
-0.04883300140500069,
0.04487263783812523,
-0.04397725313901901,
-0.021695902571082115,
0.0235727708786726,
0.038501620292663574,
0.05813124403357506,
-0.009341292083263397,
0.045526959002017975,
0.007361109834164381,
0.014326184056699276,
-0.04538920521736145,
0.04232423007488251,
-0.021248210221529007,
-0.041015587747097015,
-0.02736094407737255,
-0.013878490775823593,
0.052758924663066864,
-0.043632872402668,
0.0501072034239769,
-0.001319403643719852,
-0.0018585727084428072,
-0.007998212240636349,
-0.025897331535816193,
-0.005441194865852594,
-0.03667640686035156,
-0.010606885887682438,
-0.02131708525121212,
0.016865981742739677,
0.00010936737089650705,
0.044528257101774216,
0.022918449714779854,
-0.010167802684009075,
-0.009763156063854694,
0.011605585925281048,
0.040292393416166306,
0.032010067254304886,
-0.02830798737704754,
0.020180633291602135,
0.04838530719280243,
0.028979528695344925,
-0.03135574609041214,
0.0021082477178424597,
0.027292069047689438,
0.0366075336933136,
-0.04018907621502876,
-0.0283768642693758,
0.04625015705823898,
0.016926247626543045,
-0.00033980561420321465,
-0.007572042290121317,
-0.05372318997979164,
-0.0063236672431230545,
-0.06298699229955673,
-0.0002725440135691315,
0.017942167818546295,
-0.007985297590494156,
0.02331448718905449,
-0.010503572411835194,
-0.09938789904117584,
-0.026930470019578934,
0.07390382140874863,
-0.037020787596702576,
0.02484697476029396,
-0.03338758274912834,
0.04993501678109169,
-0.027481477707624435,
-0.024175435304641724,
0.004459713585674763,
0.042014289647340775,
0.03960363194346428,
-0.00951348152011633,
0.00797668844461441,
0.055307332426309586,
-0.06271149218082428,
-0.0011063189012929797,
-0.07741649448871613,
-0.02854905277490616,
0.06247042492032051,
0.043529558926820755,
-0.01166585274040699,
-0.05578946694731712,
0.043047428131103516,
-0.02560460940003395,
-0.017976606264710426,
0.023503895848989487,
0.004160533659160137,
-0.014903019182384014,
0.01139895897358656,
-0.020731640979647636,
0.02479531802237034,
0.016521602869033813,
-0.03684859722852707,
-0.021523714065551758,
0.025621827691793442,
-0.02887621335685253,
0.012733428739011288,
0.04700779169797897,
-0.06543208658695221,
-0.03705522418022156,
-0.05816568434238434,
0.047283295542001724,
0.06708510965108871,
-0.005075291730463505,
-0.054102007299661636,
-0.01339635904878378,
0.10379595309495926,
-0.04290967434644699,
0.012251297943294048,
-0.04208316281437874,
0.05072708800435066,
-0.05496295541524887,
-0.04631903022527695,
0.023899931460618973,
0.06043858826160431,
0.0014098032843321562,
-0.025948988273739815,
0.011433396488428116,
-0.015109647065401077,
-0.016504382714629173,
0.04948732256889343,
-0.029926571995019913,
0.044734887778759,
0.0035428032279014587,
-0.07548797130584717,
-0.026499995961785316,
-0.010744637809693813,
-0.05014164373278618,
-0.0301331989467144,
-0.024399282410740852,
0.024399282410740852,
0.019009742885828018,
0.006508770864456892,
-0.0004143314727116376,
-0.09298244118690491,
0.010443305596709251,
0.032750483602285385,
-0.04005132615566254,
0.02081773616373539,
0.015479854308068752,
0.016005033627152443,
0.00902274064719677,
0.0010261430870741606,
-0.008850551210343838,
-0.004003410693258047,
-0.0034610130824148655,
-0.006388238165527582,
0.017218971624970436,
0.03288823366165161,
-0.04721441864967346,
-0.011829433031380177,
0.0044640181586146355,
-0.02880733832716942,
-0.0157123114913702,
0.04507926478981972,
-0.02806692197918892,
0.01595337688922882,
-0.002399893943220377,
-0.007490252144634724
] |
20,879 | precession.precession | gwfrequency_to_pnseparation |
Convert GW frequency (in Hz) to PN orbital separation (in natural units, c=G=M=1). We use the 2PN expression reported in Eq. 4.13 of Kidder 1995, arxiv:gr-qc/9506022.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
fGW: float
Gravitational-wave frequency.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
M_msun: float
Total mass of the binary in solar masses.
PNorder: array (default: [0,1,1.5,2])
PN orders considered.
Returns
-------
r: float
Binary separation.
Examples
--------
``r = precession.gwfrequency_to_pnseparation(theta1,theta2,deltaphi,fGW,q,chi1,chi2,M_msun,PNorder=[0,1,1.5,2])``
| def gwfrequency_to_pnseparation(theta1, theta2, deltaphi, fGW, q, chi1, chi2, M_msun, PNorder=[0,1,1.5,2]):
"""
Convert GW frequency (in Hz) to PN orbital separation (in natural units, c=G=M=1). We use the 2PN expression reported in Eq. 4.13 of Kidder 1995, arxiv:gr-qc/9506022.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
fGW: float
Gravitational-wave frequency.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
M_msun: float
Total mass of the binary in solar masses.
PNorder: array (default: [0,1,1.5,2])
PN orders considered.
Returns
-------
r: float
Binary separation.
Examples
--------
``r = precession.gwfrequency_to_pnseparation(theta1,theta2,deltaphi,fGW,q,chi1,chi2,M_msun,PNorder=[0,1,1.5,2])``
"""
theta1 = np.atleast_1d(theta1).astype(float)
theta2 = np.atleast_1d(theta2).astype(float)
deltaphi = np.atleast_1d(deltaphi).astype(float)
fGW = np.atleast_1d(fGW).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
M_msun = np.atleast_1d(M_msun).astype(float)
# Prefactor is pi*Msun*G/c^3/s. It's pi and not 2pi because f is the GW frequency while Kidder's omega is the orbital angular velocity
tildeomega = M_msun * fGW * 1.548e-5
r = tildeomega**(-2/3) * (
(0 in PNorder) * 1
- (1 in PNorder) * tildeomega**(2/3) * ( 1- q/(3*(1+q)**2) )
- (1.5 in PNorder) * tildeomega / (3*(1+q)**2) * ( (2+3*q)*chi1*np.cos(theta1) + q*(3+2*q)*chi2*np.cos(theta2) )
+ (2 in PNorder) * tildeomega**(4/3) * q/(2*(1+q)**2) * (19/2 + (2*q)/(9*(1+q)**2)+ chi1*chi2*(2*np.cos(theta1)*np.cos(theta2) - np.cos(deltaphi)*np.sin(theta1)*np.sin(theta2)) )
)
return r
| (theta1, theta2, deltaphi, fGW, q, chi1, chi2, M_msun, PNorder=[0, 1, 1.5, 2]) | [
0.009595354087650776,
0.02090228535234928,
-0.05293460562825203,
0.004749867599457502,
0.006133950315415859,
-0.02774859592318535,
-0.03666027635335922,
-0.012717309407889843,
-0.01913333684206009,
0.03539810702204704,
0.05446450784802437,
-0.011053541675209999,
0.017029721289873123,
-0.005287723615765572,
-0.09531289339065552,
0.015442447736859322,
0.009848743677139282,
-0.04069539159536362,
-0.02857091836631298,
-0.028016328811645508,
-0.05744781717658043,
-0.014036850072443485,
0.04142209514975548,
0.0767245814204216,
-0.034365423023700714,
-0.059780918061733246,
-0.027519110590219498,
0.012067101895809174,
-0.1019679605960846,
-0.011866302229464054,
0.05194016918540001,
-0.015002600848674774,
-0.016102217137813568,
-0.0018239299533888698,
0.026696788147091866,
0.0030024326406419277,
0.03738697990775108,
0.005211228504776955,
-0.1250694841146469,
0.02883865125477314,
-0.012028854340314865,
-0.0291063841432333,
0.04356395825743675,
-0.013386641629040241,
-0.038018062710762024,
0.04455839470028877,
-0.047235723584890366,
0.06134906783699989,
0.005679761059582233,
0.08781637251377106,
0.022719044238328934,
-0.08919328451156616,
-0.05121346563100815,
-0.03985394537448883,
-0.047771189361810684,
0.020328572019934654,
0.023885594680905342,
-0.04960706830024719,
0.02333100512623787,
-0.048574384301900864,
0.006989739369601011,
-0.01679067313671112,
0.03993044048547745,
0.010575447231531143,
0.02449755370616913,
0.025109514594078064,
0.022872034460306168,
-0.011321274563670158,
0.010977046564221382,
0.03451841324567795,
-0.0026342999190092087,
-0.03570408746600151,
-0.0075395479798316956,
-0.022757291793823242,
-0.010996170341968536,
0.062305256724357605,
0.002775337779894471,
-0.004216792061924934,
0.03363871946930885,
0.0273087490350008,
-0.025970084592700005,
0.06482959538698196,
0.05347007140517235,
-0.028762156143784523,
0.07102569937705994,
0.05041026696562767,
0.039280232042074203,
0.004537115339189768,
-0.0118471784517169,
-0.07152291387319565,
-0.07106394320726395,
-0.04570582136511803,
0.05870998650789261,
0.01128302700817585,
0.012908547185361385,
-0.00859613623470068,
-0.04214879870414734,
-0.03776945546269417,
-0.024707915261387825,
0.004737915005534887,
-0.005048676393926144,
0.03335186094045639,
-0.022145330905914307,
0.02243218757212162,
0.06199927628040314,
-0.048230160027742386,
-0.02780596725642681,
0.01584404706954956,
-0.0016195445787161589,
-0.03132474049925804,
-0.0554971918463707,
0.018473565578460693,
0.04065714403986931,
-0.0424165315926075,
0.01921939291059971,
0.016953226178884506,
-0.03314150124788284,
0.04413767158985138,
0.02774859592318535,
0.03281639516353607,
-0.01051807589828968,
0.01652294024825096,
-0.003736307378858328,
0.03421243280172348,
-0.0225660540163517,
-0.040006935596466064,
0.051787178963422775,
-0.02499477192759514,
0.053776051849126816,
-0.021648112684488297,
0.048536136746406555,
0.029354993253946304,
0.004981743171811104,
-0.03776945546269417,
-0.013042413629591465,
0.0410778671503067,
-0.05159594118595123,
-0.03557021915912628,
0.07370302826166153,
-0.010049543343484402,
0.054541002959012985,
-0.025702351704239845,
0.012315710075199604,
0.0022637767251580954,
-0.0167046170681715,
0.09194710850715637,
0.04103961959481239,
0.004513210617005825,
-0.002672547474503517,
-0.02784421481192112,
-0.056568123400211334,
0.012153157964348793,
0.12422803789377213,
-0.011531636118888855,
0.023120643571019173,
-0.03780770301818848,
0.04237828403711319,
0.03713836893439293,
-0.0469297431409359,
0.021380379796028137,
0.035264238715171814,
0.022623425349593163,
0.008275813423097134,
0.02748086303472519,
0.0017593872034922242,
0.013080661185085773,
0.06280247122049332,
-0.022317444905638695,
0.035455476492643356,
0.005349875893443823,
0.019659239798784256,
-0.024535801261663437,
-0.0245931725949049,
-0.030349429696798325,
-0.04237828403711319,
0.048268407583236694,
-0.015394638292491436,
-0.010498952120542526,
-0.008988173678517342,
0.031343866139650345,
0.03920373693108559,
-0.0034016412682831287,
-0.018798669800162315,
-0.004632734227925539,
0.0034231555182486773,
0.11719048768281937,
0.07454447448253632,
0.011426455341279507,
0.039471469819545746,
-0.017995471134781837,
0.025530237704515457,
0.01548069529235363,
0.023483995348215103,
0.05970442295074463,
0.06628300249576569,
0.02220270223915577,
0.0803198516368866,
0.01245913840830326,
-0.07530942559242249,
0.04260776937007904,
0.07144641876220703,
0.004386515822261572,
-0.06322319805622101,
-0.01385517418384552,
0.006674197036772966,
-0.01243045274168253,
-0.006019208114594221,
0.04543808847665787,
0.03390645235776901,
0.021418627351522446,
0.03646903857588768,
-0.028781279921531677,
-0.020022591575980186,
0.017546063289046288,
-0.011904549784958363,
0.037845950573682785,
0.02635256014764309,
0.028016328811645508,
0.00826147012412548,
-0.043984681367874146,
0.02820756658911705,
0.05347007140517235,
-0.005287723615765572,
-0.032873768359422684,
-0.004642296116799116,
0.0236943569034338,
-0.005732351448386908,
0.016628121957182884,
-0.001417549792677164,
-0.027155758813023567,
0.03750172257423401,
-0.023503119125962257,
-0.024765286594629288,
-0.022642549127340317,
0.07026074826717377,
-0.038916878402233124,
-0.04188106581568718,
-0.015432885847985744,
-0.012851175852119923,
0.07427673786878586,
-0.004704448394477367,
-0.03732960671186447,
-0.03501563146710396,
0.05308759585022926,
-0.013386641629040241,
0.0033729556016623974,
0.03557021915912628,
-0.03264428302645683,
0.05293460562825203,
0.05767730250954628,
-0.04012167826294899,
-0.05771555006504059,
-0.01652294024825096,
-0.010479828342795372,
-0.02147599868476391,
0.013262337073683739,
-0.009150725789368153,
-0.019257640466094017,
0.03828579559922218,
0.003772164462134242,
0.0021131769753992558,
0.0178329199552536,
-0.0564151331782341,
-0.0019470392726361752,
0.007874214090406895,
0.024287192150950432,
-0.004338706377893686,
0.00549330422654748,
0.015767551958560944,
-0.010403333231806755,
-0.012918109074234962,
0.03723398968577385,
-0.05698884651064873,
-0.0020438532810658216,
-0.006224788259714842,
-0.022891158238053322,
0.05790678784251213,
0.03553197160363197,
-0.021781979128718376,
0.03568496182560921,
0.006248692981898785,
-0.023732604458928108,
0.028991641476750374,
0.0019589916337281466,
-0.05067799985408783,
0.10112651437520981,
0.00129802618175745,
-0.033409234136343,
0.07052847743034363,
-0.03669852390885353,
-0.0009149530669674277,
-0.002208795864135027,
0.011407331563532352,
0.05389079451560974,
0.10135599970817566,
0.022814663127064705,
-0.030292058363556862,
-0.05817452073097229,
0.05270512029528618,
-0.0008486174629069865,
-0.017488691955804825,
0.06984002143144608,
0.08284419029951096,
-0.021724607795476913,
-0.01981223002076149,
0.0017378729535266757,
0.11451315879821777,
-0.005861436948180199,
0.014142030850052834,
0.0011151550570502877,
-0.07932541519403458,
-0.00206536753103137,
0.01355875562876463,
0.04207230359315872,
0.020385943353176117,
-0.05496172606945038,
0.031611599028110504,
0.045514583587646484,
0.04295199736952782,
0.02436368726193905,
0.01468705851584673,
0.044214166700839996,
0.02449755370616913,
0.026505550369620323,
0.00972443912178278,
-0.029488859698176384,
-0.0717523992061615,
0.04891861230134964,
0.030770152807235718,
-0.004276554100215435,
-0.025205133482813835,
0.022776415571570396,
-0.03981569781899452,
0.029182879254221916,
0.019554058089852333,
0.0071714152581989765,
0.08131428807973862,
-0.016637682914733887,
-0.00692758709192276,
-0.02472703903913498,
-0.002980918390676379,
-0.040771886706352234,
-0.0401599258184433,
0.06463835388422012,
-0.0509839802980423,
-0.014457573182880878,
-0.009848743677139282,
-0.007697319146245718,
-0.0203094482421875,
0.011359522119164467,
-0.021323008462786674,
0.03140123561024666,
-0.015299019403755665,
0.04635602980852127,
0.004663810599595308,
-0.011120474897325039,
-0.041269104927778244,
-0.013663936406373978,
0.011263903230428696,
0.03524511680006981,
-0.034097690135240555,
0.06876908987760544,
-0.008921240456402302,
0.012449576519429684,
-0.01405597385019064,
-0.02920200303196907,
-0.02053893357515335,
0.03650728613138199,
-0.04616479203104973,
0.0035713647957891226,
0.008476613089442253,
-0.006411245092749596,
-0.026792407035827637,
-0.0008862674003466964,
0.004439106211066246,
0.08781637251377106,
0.034269802272319794,
-0.015136467292904854,
-0.045973554253578186,
-0.04689149558544159,
-0.022413063794374466,
0.010766685009002686,
-0.03815193101763725,
0.06926631182432175,
-0.0005369597347453237,
0.010393771342933178,
0.005063019227236509,
-0.0046709817834198475,
0.022910282015800476,
-0.04635602980852127,
-0.07301457226276398,
0.0072909388691186905,
0.060775354504585266,
0.00006670910079265013,
-0.012650376185774803,
0.02509039081633091,
-0.03501563146710396,
0.007137948647141457,
-0.04038941115140915,
-0.01967836357653141,
0.000042356172343716025,
-0.07404725253582001,
-0.052284397184848785,
0.017985910177230835,
-0.0066072638146579266,
-0.04283725470304489,
0.03633517026901245,
0.030272934585809708,
0.0002726631937548518,
0.001969748642295599,
-0.05637688562273979,
0.012277462519705296,
0.004190497100353241,
-0.005794503726065159,
-0.07071971893310547,
0.016599435359239578,
-0.08292068541049957,
-0.005966617725789547,
-0.0041092210449278355,
0.0230250246822834,
0.004262211266905069,
-0.050027791410684586,
0.06460011005401611,
0.025033019483089447,
0.05293460562825203,
0.022891158238053322,
0.04230178892612457,
0.0236943569034338,
0.029125507920980453,
0.024401934817433357,
0.010240781120955944,
0.06261123716831207,
-0.02147599868476391,
-0.0015801017871126533,
0.0071283867582678795,
-0.006851091980934143,
0.0424165315926075,
0.028723908588290215,
0.004967400338500738,
-0.03371521458029747,
-0.0014462354592978954,
0.0291063841432333,
-0.0008091746713034809,
-0.02405770868062973,
0.006808063481003046,
-0.04589705914258957,
-0.0026749379467219114,
-0.06394989788532257,
-0.04207230359315872,
-0.03541722893714905,
-0.003361003240570426,
0.005077362060546875,
0.03908899426460266,
-0.010737999342381954,
0.04589705914258957,
0.04570582136511803,
0.02992870658636093,
-0.010298152454197407,
-0.05836575850844383,
-0.04735046625137329,
0.028991641476750374,
0.06394989788532257,
0.010212095454335213,
0.05519121140241623,
-0.01665680669248104,
0.04543808847665787,
0.045285098254680634,
0.006191321648657322,
-0.03453753516077995,
0.0068271872587502,
0.0428755022585392,
0.005354656837880611,
-0.006000084336847067,
-0.011359522119164467,
0.01796678639948368,
0.05293460562825203,
-0.032376550137996674,
0.028131071478128433,
0.008428803645074368,
-0.07156116515398026,
-0.033829957246780396,
-0.010929237119853497,
-0.010508514009416103,
0.017354825511574745,
0.006659854203462601,
-0.0541585274040699,
-0.026868902146816254,
-0.016188275068998337,
-0.012784242630004883,
-0.10502776503562927,
0.03285464271903038,
0.034365423023700714,
-0.007439148146659136,
0.00916028767824173,
0.0001969151053344831,
0.0536995567381382,
-0.007477395702153444,
-0.057524312287569046,
0.026008332148194313,
-0.008118041791021824,
0.017546063289046288,
0.02027120068669319,
-0.045285098254680634,
-0.02197321690618992,
0.018559623509645462,
-0.05335532873868942,
-0.04941583052277565,
0.03451841324567795,
-0.06372041255235672,
0.026601169258356094,
-0.05825101584196091,
-0.028188442811369896,
0.019888725131750107,
-0.009695753455162048,
-0.018884727731347084,
0.029660973697900772,
-0.0011761120986193419,
0.019573181867599487,
-0.05718008428812027,
0.017565187066793442,
0.007137948647141457,
-0.03444191813468933,
-0.02992870658636093,
-0.005947493948042393,
0.005043895449489355,
0.014333268627524376,
-0.049760058522224426,
-0.07125518471002579,
0.05163418874144554,
-0.055038221180438995,
-0.01944887824356556,
-0.005311628337949514,
-0.006898901425302029,
0.028647413477301598,
-0.028896022588014603,
-0.03602918982505798,
-0.04666201025247574,
-0.0016135683981701732,
-0.0022637767251580954,
0.008792155422270298,
-0.025721475481987,
-0.03371521458029747,
-0.017842480912804604,
-0.03153510391712189,
0.03899337351322174,
0.035589344799518585,
0.026639416813850403,
-0.014859172515571117,
0.004015992395579815,
0.0191811453551054,
0.002756214002147317,
-0.047235723584890366,
0.006549892481416464,
0.012602566741406918,
0.062075771391391754,
0.07339704781770706,
0.013530069962143898,
-0.0017785109812393785,
0.004070973489433527,
-0.02937411703169346,
-0.061043087393045425,
-0.05140470340847969,
-0.021380379796028137,
-0.0279780812561512,
-0.048306655138731,
-0.01045114267617464,
-0.01491654384881258,
0.02698364481329918,
-0.043984681367874146,
0.05362306162714958,
0.025262504816055298,
0.04260776937007904,
-0.010977046564221382,
-0.037004504352808,
-0.058021530508995056,
-0.009351525455713272,
0.043755196034908295,
0.0013709355844184756,
-0.013348394073545933,
-0.04666201025247574,
0.013434451073408127,
0.03398294746875763,
0.0374443493783474,
-0.031037885695695877,
0.012353957630693913,
0.010250343009829521,
-0.012478262186050415,
-0.0061196074821054935,
0.03884038329124451,
-0.005149076227098703,
-0.03469052538275719,
-0.006918025203049183,
0.048000674694776535,
-0.04910985007882118,
-0.023981213569641113,
0.04264601692557335,
-0.011990606784820557,
0.003729135962203145,
0.0207684189081192,
-0.021227389574050903,
-0.010594571009278297,
-0.0015478304121643305,
0.0022398720029741526,
-0.03361959382891655,
0.04409942403435707,
0.006095702759921551,
0.017450444400310516,
-0.040465906262397766,
-0.011340398341417313,
-0.0631849467754364,
0.009332401677966118,
0.03059803880751133,
0.0049100290052592754,
-0.017488691955804825,
0.005947493948042393,
0.024440182372927666,
0.014658372849225998,
-0.06280247122049332,
-0.014237649738788605,
-0.001645839773118496,
-0.02120826579630375,
-0.012812928296625614,
0.0061196074821054935,
0.007788157090544701,
-0.010202533565461636,
-0.018397070467472076,
-0.007587357424199581,
-0.07955490052700043,
0.04937758296728134,
-0.010183409787714481,
0.01657075062394142,
-0.015585876069962978,
0.0028111948631703854,
-0.05194016918540001,
-0.020634552463889122,
0.028685661032795906,
-0.04945407807826996,
-0.03361959382891655,
-0.030884895473718643,
0.0027370902244001627,
-0.03931847959756851,
0.01687673106789589,
-0.05121346563100815,
-0.006339530926197767,
-0.010661504231393337,
-0.019104650244116783,
0.00012415512173902243,
-0.0038940785452723503,
0.034958258271217346,
0.006114826537668705,
-0.04589705914258957,
0.01990784890949726,
-0.017450444400310516,
-0.01065194234251976,
-0.08460357785224915,
-0.055573686957359314,
-0.0005811834707856178,
0.008763469755649567,
-0.018167585134506226,
-0.0187221746891737,
0.0351877436041832,
0.0031004417687654495,
-0.013071099296212196,
-0.0072479103691875935,
-0.046738505363464355,
0.014591439627110958,
0.04314323514699936,
-0.007372214924544096,
0.013979478739202023,
-0.05718008428812027,
0.029278498142957687,
-0.015719741582870483,
0.030904019251465797,
-0.021954093128442764,
-0.028647413477301598,
0.05090748518705368,
-0.0004464205994736403,
0.020596304908394814,
0.0320323221385479,
0.02499477192759514,
0.008672631345689297,
0.03448016569018364,
0.011493388563394547,
-0.06085184961557388,
0.020462438464164734,
-0.0030837084632366896,
0.02518600970506668,
0.00742480531334877,
-0.0009872647933661938,
0.03568496182560921,
-0.013874297961592674,
0.03719574213027954,
-0.006320407148450613,
0.0023354908917099237,
0.08567450940608978,
0.029316745698451996,
-0.013769117183983326,
-0.017804233357310295,
-0.02857091836631298,
-0.034059442579746246,
-0.0008976221433840692,
-0.07049023360013962,
0.004943495616316795,
-0.023273633792996407,
-0.05125171318650246,
0.00862004142254591,
-0.013960354961454868,
-0.03750172257423401,
-0.025033019483089447,
-0.004647077061235905,
-0.08123779296875,
0.0388212613761425,
0.014820924960076809,
-0.03740610182285309,
-0.015365952625870705,
0.051060475409030914,
-0.04065714403986931,
0.07615087181329727,
0.021380379796028137,
-0.03687063604593277,
-0.017708614468574524,
0.012449576519429684,
0.03553197160363197,
0.03363871946930885,
0.007190539035946131,
0.01941063068807125,
0.05362306162714958,
-0.0401599258184433,
-0.09875516593456268,
-0.0302346870303154,
-0.000514250248670578,
0.04616479203104973,
-0.07829272747039795,
-0.01899947039783001,
-0.0007374605629593134,
-0.00702798692509532,
0.0014366735704243183,
-0.012822490185499191,
-0.0075730145908892155,
0.05090748518705368,
-0.020500686019659042,
0.01841619424521923,
0.008945145644247532,
-0.032338302582502365,
-0.023503119125962257,
0.02549199014902115,
-0.01349182240664959,
-0.026371683925390244,
0.020500686019659042,
0.03388732671737671,
0.04214879870414734,
-0.03411681205034256,
0.04119260981678963,
-0.07863695919513702,
-0.04658551514148712,
0.028322309255599976,
-0.029986077919602394,
0.007960271090269089,
-0.05442626029253006,
-0.02824581414461136,
-0.03817105293273926,
0.028628289699554443,
0.03371521458029747,
0.05496172606945038,
-0.002509995363652706,
0.000007554264357167995,
-0.019018594175577164,
0.000590745359659195
] |
20,880 | precession.precession | inspiral |
Generic wrapper for binary inspirals. The keyword which selects between the different approximation:
- If which=precession use precession-averaged inspiral (i.e. run `inspiral_precav`)
- If which=orbit use orbit-averaged inspiral (i.e. run `inspiral_orbav`)
- If which=hybrid use hybrid inspiral (i.e. run `inspiral_hybrid`)
All other aguments and keyword arguments are passed on to the relevant inspiral function; see their docs for details.
Parameters
----------
**args: unpacked dictionary, optional
Additional arguments.
which: string, optional (default: None)
Select function behavior.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary, optional
Set of outputs.
Examples
--------
``outputs = precession.inspiral(*args,which='precession',**kwargs)``
``outputs = precession.inspiral(*args,which='orbit',**kwargs)``
``outputs = precession.inspiral(*args,which='hybrid',**kwargs)``
| def inspiral(*args, which=None, **kwargs):
"""
Generic wrapper for binary inspirals. The keyword which selects between the different approximation:
- If which=precession use precession-averaged inspiral (i.e. run `inspiral_precav`)
- If which=orbit use orbit-averaged inspiral (i.e. run `inspiral_orbav`)
- If which=hybrid use hybrid inspiral (i.e. run `inspiral_hybrid`)
All other aguments and keyword arguments are passed on to the relevant inspiral function; see their docs for details.
Parameters
----------
**args: unpacked dictionary, optional
Additional arguments.
which: string, optional (default: None)
Select function behavior.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary, optional
Set of outputs.
Examples
--------
``outputs = precession.inspiral(*args,which='precession',**kwargs)``
``outputs = precession.inspiral(*args,which='orbit',**kwargs)``
``outputs = precession.inspiral(*args,which='hybrid',**kwargs)``
"""
# Precession-averaged integrations
if which in ['precession', 'precav', 'precessionaveraged', 'precessionaverage', 'precession-averaged', 'precession-average', 'precessionav']:
return inspiral_precav(*args, **kwargs)
elif which in ['orbit', 'orbav', 'orbitaveraged', 'orbitaverage', 'orbit-averaged', 'orbit-average', 'orbitav']:
return inspiral_orbav(*args, **kwargs)
elif which in ['hybrid']:
return inspiral_hybrid(*args, **kwargs)
else:
raise ValueError("`which` needs to be `precav`, `orbav` or `hybrid`.")
| (*args, which=None, **kwargs) | [
0.002140105701982975,
-0.10038743913173676,
0.011772334575653076,
-0.015652811154723167,
-0.023918692022562027,
-0.05060514435172081,
-0.04996930807828903,
-0.03210976719856262,
-0.03766399249434471,
0.05273706838488579,
0.020066266879439354,
0.03809411823749542,
0.016269946470856667,
0.022852730005979538,
-0.06784754991531372,
0.019729647785425186,
0.06620185077190399,
0.030838094651699066,
-0.05737493932247162,
-0.03448480740189552,
0.0348588265478611,
0.03016485460102558,
-0.01574631594121456,
0.05617807060480118,
0.0024475050158798695,
0.09111170470714569,
0.016391504555940628,
-0.03093159943819046,
-0.03210976719856262,
-0.04189043864607811,
0.03169834613800049,
-0.0027210083790123463,
-0.03598089516162872,
-0.02100132219493389,
0.019336925819516182,
-0.019280821084976196,
-0.013904258608818054,
0.08595020323991776,
-0.06556601822376251,
0.0766744613647461,
-0.017148897051811218,
-0.03470921888947487,
0.09021405130624771,
-0.01230531558394432,
-0.06694989651441574,
0.03667283430695534,
-0.03136172518134117,
-0.01830836571753025,
0.03979591652750969,
-0.020496392622590065,
0.06171359121799469,
-0.08550137281417847,
0.04892204701900482,
-0.017363959923386574,
0.0012424535816535354,
0.08856835216283798,
0.013249721378087997,
0.02356337197124958,
0.03809411823749542,
-0.06960544735193253,
-0.03405468165874481,
-0.008504319936037064,
0.07169996947050095,
0.030407968908548355,
0.011772334575653076,
0.029996545985341072,
-0.05468198284506798,
0.002562049077823758,
-0.03472791984677315,
0.043349120765924454,
-0.0009163533104583621,
-0.007443033158779144,
-0.054120950400829315,
-0.036691535264253616,
-0.018794594332575798,
-0.015306840650737286,
-0.020496392622590065,
-0.019841855391860008,
0.04035694897174835,
-0.009280415251851082,
-0.014474642463028431,
-0.014268930070102215,
-0.06687509268522263,
0.014240878634154797,
-0.027995528653264046,
0.013707897625863552,
0.019467832520604134,
-0.0709519311785698,
0.04750076308846474,
-0.010771826840937138,
-0.045555852353572845,
-0.0247789416462183,
0.005236304830759764,
0.07274723052978516,
0.005325134843587875,
0.026031915098428726,
-0.002303740242496133,
-0.06623925268650055,
0.026013214141130447,
-0.04140421003103256,
-0.06036711111664772,
-0.010893383994698524,
0.007073686458170414,
-0.005736558698117733,
0.041666023433208466,
-0.029659925028681755,
-0.009200935252010822,
0.028444355353713036,
0.04069356620311737,
-0.036560628563165665,
-0.038056712597608566,
0.0034877529833465815,
-0.09111170470714569,
-0.03734607249498367,
-0.03276430815458298,
0.005876816809177399,
-0.034316495060920715,
0.017317207530140877,
-0.053372904658317566,
-0.0055261715315282345,
-0.05475678667426109,
-0.0021436121314764023,
0.010407155379652977,
-0.016326049342751503,
0.0694558396935463,
-0.020664703100919724,
0.009430023841559887,
0.018392520025372505,
-0.016765525564551353,
-0.005437341518700123,
-0.002470881212502718,
0.0020828337874263525,
-0.018869398161768913,
0.033418845385313034,
-0.04218965396285057,
0.05857180804014206,
0.01969224587082863,
-0.0261441208422184,
-0.03773879632353783,
0.04563065618276596,
-0.015568655915558338,
-0.012997256591916084,
-0.015503201633691788,
0.04869763180613518,
-0.03272690251469612,
0.06066633015871048,
0.06807196140289307,
-0.037589188665151596,
0.03601829707622528,
0.04297510161995888,
0.033568453043699265,
-0.011127147823572159,
-0.02971602976322174,
0.032652098685503006,
0.024666735902428627,
-0.0837060734629631,
0.026031915098428726,
0.04372314363718033,
-0.04372314363718033,
0.00431527616456151,
-0.011267405934631824,
0.0047828033566474915,
0.050829555839300156,
-0.012959853745996952,
-0.030538877472281456,
0.01036040298640728,
-0.006942778825759888,
0.011183250695466995,
0.07536538690328598,
0.0030552903190255165,
0.012183759361505508,
-0.041666023433208466,
-0.0366167314350605,
-0.012052851729094982,
-0.030688485130667686,
0.025433480739593506,
-0.02747189812362194,
-0.015587356872856617,
0.027827220037579536,
-0.015493851155042648,
0.014932818710803986,
-0.00938794668763876,
-0.09425348788499832,
-0.01635410077869892,
0.018962902948260307,
0.04974489286541939,
0.04080577567219734,
-0.028444355353713036,
0.028724871575832367,
-0.01605488359928131,
-0.0045794290490448475,
0.03001524694263935,
0.027565404772758484,
0.025022055953741074,
0.00789653416723013,
-0.05868401378393173,
0.0013792052632197738,
-0.004446183796972036,
0.0010314818937331438,
0.0043409899808466434,
0.02300233766436577,
0.03998292610049248,
0.013193617574870586,
0.03570037707686424,
0.004955788142979145,
0.07704848051071167,
-0.01517593301832676,
-0.014081919565796852,
0.0028308772016316652,
0.02835085056722164,
0.02044028975069523,
-0.07428072392940521,
-0.0022745197638869286,
0.00249425764195621,
0.015110479667782784,
0.11863970011472702,
0.009261714294552803,
0.03513934463262558,
0.007531863171607256,
0.018373819068074226,
0.01275414228439331,
0.01891615055501461,
0.004362029023468494,
0.007503811735659838,
0.05557963252067566,
-0.010182742960751057,
0.000007382729563687462,
0.0038547618314623833,
0.001984653063118458,
-0.030220959335565567,
-0.003401260357350111,
-0.023769082501530647,
-0.029940441250801086,
-0.024423621594905853,
-0.049034252762794495,
0.03317572921514511,
-0.022179489955306053,
-0.03904787078499794,
0.006737066898494959,
0.013614391908049583,
0.032352883368730545,
0.06620185077190399,
0.013689196668565273,
-0.011211302131414413,
-0.057449743151664734,
-0.021711964160203934,
-0.017812786623835564,
0.022310398519039154,
-0.027883322909474373,
-0.024274012073874474,
0.0025176340714097023,
-0.03439130261540413,
-0.021842870861291885,
-0.012800894677639008,
0.02599451318383217,
0.038673851639032364,
-0.015942677855491638,
-0.00019563091336749494,
0.03323183208703995,
-0.03214716911315918,
0.02461063116788864,
-0.057898569852113724,
0.013988413847982883,
-0.0034900906030088663,
-0.012941152788698673,
-0.005890842992812395,
0.010416505858302116,
-0.020814310759305954,
0.03035186603665352,
-0.022011181339621544,
-0.058646611869335175,
0.05838479846715927,
-0.041366808116436005,
0.005586950108408928,
0.022740522399544716,
0.06829637289047241,
0.003520479891449213,
0.013698547147214413,
-0.04222705587744713,
-0.018205508589744568,
0.03584998473525047,
0.017176950350403786,
0.0024358166847378016,
-0.00379398325458169,
-0.010706372559070587,
-0.018990954384207726,
0.009542230516672134,
0.0012237525079399347,
0.10480089485645294,
-0.003964630886912346,
0.07140075415372849,
0.08654863387346268,
-0.021898973733186722,
-0.013642444275319576,
0.07476694881916046,
0.07110153883695602,
-0.030594980344176292,
-0.0699794739484787,
0.024872446432709694,
-0.042414069175720215,
0.04028214514255524,
-0.037233866751194,
0.029977845028042793,
-0.05206383019685745,
-0.02044028975069523,
0.02085171267390251,
0.05120357871055603,
-0.027658909559249878,
-0.004401768557727337,
-0.0016036182641983032,
-0.02057119645178318,
0.04028214514255524,
-0.035363756120204926,
-0.0011629739310592413,
-0.03018355555832386,
-0.10726944357156754,
0.025339974090456963,
0.01788759045302868,
0.01891615055501461,
0.043311718851327896,
-0.012333367951214314,
0.04910905659198761,
-0.019841855391860008,
-0.017672527581453323,
0.013184267096221447,
-0.009041976183652878,
-0.009168208576738834,
-0.009514178149402142,
0.020197175443172455,
-0.006582783069461584,
-0.06590263545513153,
0.03166094049811363,
-0.00249425764195621,
0.043461330235004425,
-0.026013214141130447,
0.0054887691512703896,
0.010257546789944172,
0.015858523547649384,
0.022422604262828827,
0.003225937718525529,
0.04069356620311737,
-0.04308730736374855,
-0.024105703458189964,
0.034597013145685196,
0.004245147109031677,
-0.025788800790905952,
0.07188698649406433,
0.005694481544196606,
0.03448480740189552,
0.06597743928432465,
-0.02296493574976921,
-0.009930278174579144,
0.03500843793153763,
0.015662161633372307,
0.03691594675183296,
0.05026852339506149,
-0.0450696237385273,
-0.03381156921386719,
0.007924586534500122,
-0.05584144964814186,
0.05737493932247162,
-0.011192601174116135,
-0.024666735902428627,
0.022179489955306053,
-0.05240044742822647,
-0.030277062207460403,
-0.041666023433208466,
-0.0006802520947530866,
0.024143105372786522,
-0.02116963267326355,
-0.008714706636965275,
-0.03953409940004349,
-0.03975851461291313,
0.018953552469611168,
0.028911883011460304,
0.05198902636766434,
0.03874865546822548,
0.0011132991639897227,
-0.0184860248118639,
0.016615916043519974,
0.0027724362444132566,
0.021824169903993607,
0.01141701452434063,
0.03379286453127861,
-0.00393657898530364,
0.019935360178351402,
0.0240308977663517,
0.01727045513689518,
0.010949486866593361,
-0.02085171267390251,
-0.03093159943819046,
-0.013951011933386326,
0.05045553669333458,
-0.04394755885004997,
-0.02584490366280079,
-0.01313751470297575,
0.021917674690485,
0.05326069891452789,
-0.05090436339378357,
-0.018140055239200592,
0.03755178675055504,
-0.061189960688352585,
0.03577518090605736,
-0.004584104288369417,
0.01713019609451294,
-0.046752721071243286,
0.012165057472884655,
-0.004838906694203615,
0.05026852339506149,
-0.038973066955804825,
0.008971846662461758,
-0.02704177424311638,
-0.04215225204825401,
0.013118813745677471,
-0.027397094294428825,
0.019617442041635513,
0.010397804901003838,
0.025564387440681458,
-0.037308670580387115,
0.0522882416844368,
0.09073767811059952,
0.0007918741903267801,
-0.01450269389897585,
0.08931639790534973,
0.031305622309446335,
0.03253989294171333,
-0.014960870146751404,
-0.006970830727368593,
-0.00796198844909668,
0.027097877115011215,
-0.035943493247032166,
-0.013764000497758389,
-0.04899685084819794,
-0.030856795608997345,
-0.015232035890221596,
0.0018116679275408387,
-0.005596300587058067,
0.02990303933620453,
0.05389653518795967,
-0.005773961078375578,
0.030407968908548355,
-0.005792662035673857,
-0.03513934463262558,
-0.014764509163796902,
-0.041815634816884995,
-0.04652830585837364,
0.000027229807528783567,
0.03201626241207123,
0.018439272418618202,
-0.05161500349640846,
0.08303283154964447,
0.01036040298640728,
-0.019467832520604134,
0.022927533835172653,
0.04189043864607811,
-0.04548104479908943,
0.03650452569127083,
0.04518182948231697,
-0.007026934064924717,
0.021132228896021843,
0.016475658863782883,
0.014680353924632072,
0.015624758787453175,
-0.033250533044338226,
0.04462079703807831,
0.04895944893360138,
0.006330318283289671,
-0.005259681027382612,
-0.04417197033762932,
-0.01164142694324255,
0.050380732864141464,
-0.004672934301197529,
0.000607785361353308,
0.01969224587082863,
0.10255676507949829,
0.004343327600508928,
0.009462750516831875,
0.003962293267250061,
-0.02027197927236557,
-0.03678504005074501,
0.000011085508049291093,
-0.023357659578323364,
-0.014081919565796852,
0.007798353675752878,
0.006849273573607206,
-0.052624862641096115,
-0.022179489955306053,
-0.01352088712155819,
-0.007812379393726587,
0.003314767964184284,
-0.0010875851148739457,
0.041815634816884995,
0.031754449009895325,
0.0017240066081285477,
0.02375038154423237,
0.0227966271340847,
0.04005772992968559,
-0.02433011494576931,
0.026817360892891884,
-0.04353613406419754,
0.03270820155739784,
-0.02565789222717285,
-0.03156743571162224,
-0.020664703100919724,
-0.0038290477823466063,
0.02971602976322174,
-0.020833011716604233,
-0.01449334342032671,
-0.06810936331748962,
0.04970749095082283,
-0.021281838417053223,
-0.011248704977333546,
0.05737493932247162,
-0.0198044516146183,
0.010416505858302116,
0.009504827670753002,
0.0021027035545557737,
0.024872446432709694,
0.0013581665698438883,
-0.046303894370794296,
0.03779489919543266,
-0.023395061492919922,
0.010865332558751106,
0.036242708563804626,
-0.00013609424058813602,
0.018074601888656616,
-0.012295965105295181,
-0.04252627491950989,
0.018878748640418053,
-0.004743063356727362,
-0.04959528520703316,
0.024872446432709694,
-0.03427909314632416,
0.11153329163789749,
-0.0008690161630511284,
0.007218619808554649,
-0.03783230111002922,
-0.005329810082912445,
0.08243439346551895,
-0.012520378455519676,
0.0047828033566474915,
0.04117979481816292,
-0.06934363394975662,
0.017017990350723267,
0.06384551525115967,
-0.05629027634859085,
-0.01829901523888111,
0.022011181339621544,
0.008462242782115936,
-0.028032930567860603,
-0.05902063474059105,
-0.05210123211145401,
0.07207399606704712,
0.0565146878361702,
0.03452220931649208,
0.036878544837236404,
0.024722838774323463,
-0.008013416081666946,
-0.05692611262202263,
0.03153003379702568,
-0.054569777101278305,
0.016176441684365273,
-0.039272285997867584,
-0.11340340226888657,
-0.020328082144260406,
0.010379103943705559,
0.04970749095082283,
0.03829982876777649,
0.019767049700021744,
-0.0420774482190609,
0.004843581933528185,
0.0498197004199028,
0.002655554562807083,
-0.009780668653547764,
-0.07375708967447281,
0.04248887300491333,
0.021375343203544617,
-0.03768269345164299,
-0.013670495711266994,
-0.025433480739593506,
-0.03231548145413399,
-0.030407968908548355,
-0.015147881582379341,
-0.08744628727436066,
0.02595711126923561,
-0.0006399278645403683,
-0.010266897268593311,
0.01904705911874771,
-0.02597581222653389,
0.0393470898270607,
-0.028612663969397545,
-0.05198902636766434,
-0.03317572921514511,
0.005465392954647541,
0.014988922514021397,
0.03171704709529877,
0.0016269946936517954,
-0.038823459297418594,
0.032521191984415054,
-0.053372904658317566,
-0.08969041705131531,
-0.013633092865347862,
-0.03543856367468834,
-0.03261469677090645,
0.023189349099993706,
0.05109137296676636,
-0.03330663964152336,
-0.04398496076464653,
-0.011304807849228382,
-0.05198902636766434,
0.014315683394670486,
0.021955076605081558,
0.04248887300491333,
0.04050655663013458,
0.043610937893390656,
0.0468275249004364,
-0.027284888550639153,
0.012707388959825039,
0.059394657611846924,
0.024835044518113136,
-0.04050655663013458,
-0.013296473771333694,
-0.04940827563405037,
-0.025265170261263847,
-0.05995569005608559,
-0.0012541416799649596,
0.05135318636894226,
-0.07551499456167221,
0.02911759354174137,
0.013315174728631973,
0.05161500349640846,
0.03016485460102558,
0.04035694897174835,
-0.02958512119948864,
-0.0016328387428075075,
-0.01172558218240738,
0.023245451971888542,
0.04454599320888519,
-0.041815634816884995,
0.0357377789914608,
-0.05385913327336311,
0.009640410542488098,
-0.01667202077805996,
-0.034148186445236206,
0.05935725197196007,
-0.03998292610049248,
-0.05075475201010704,
-0.026518143713474274,
0.03859904780983925,
-0.012408171780407429,
-0.008883017115294933,
0.02345116436481476,
-0.07379449158906937,
0.03773879632353783,
-0.030258361250162125,
-0.01440918818116188,
0.03257729485630989,
-0.014829962514340878,
0.02479764260351658,
0.027733713388442993,
-0.017840838059782982,
0.02462933398783207,
-0.007466409355401993,
0.0062181116081774235,
0.0030202257912606,
0.020496392622590065,
-0.027976827695965767,
-0.03513934463262558,
0.026237627491354942,
-0.023245451971888542,
0.01969224587082863,
-0.008724058046936989,
0.010631568729877472,
-0.018401870504021645,
0.0010344039183109999,
0.020945219323039055,
-0.0213005393743515,
0.0026695802807807922,
0.0016024494543671608,
-0.01773798279464245,
-0.010837280191481113,
0.00938794668763876,
0.027097877115011215,
-0.006475251633673906,
0.009490801952779293,
-0.04757556691765785,
0.057748958468437195,
-0.037327371537685394,
-0.04338652268052101,
-0.06313487142324448,
-0.0025994512252509594,
-0.0468275249004364,
0.02780851721763611,
-0.03480272367596626,
0.058908428996801376,
-0.05943205952644348,
-0.06500498205423355,
-0.018373819068074226,
-0.01239882130175829,
-0.0234137624502182,
0.06403252482414246,
0.012539079412817955,
0.01667202077805996,
0.01695253700017929,
-0.06115255877375603,
0.016335399821400642,
0.004289561882615089,
-0.04454599320888519,
0.06635145843029022,
-0.04495741426944733,
-0.03467181697487831,
0.03313832730054855,
0.020646002143621445,
-0.0019460819894447923,
0.06171359121799469,
-0.005685130599886179,
-0.008284581825137138,
0.04761296883225441,
-0.0028495783917605877,
-0.01935562677681446,
0.03167964518070221,
-0.016475658863782883,
0.01830836571753025,
-0.04727635160088539,
-0.05299888551235199,
-0.035831283777952194,
0.04319951310753822,
-0.004083849955350161,
0.023245451971888542,
-0.005839414894580841,
-0.04757556691765785,
-0.03018355555832386,
-0.055355221033096313,
0.014932818710803986,
-0.011585324071347713,
-0.05101656913757324,
-0.009649761952459812,
-0.02223559468984604,
0.01246427558362484,
-0.04368574172258377,
-0.03620530664920807,
0.014315683394670486,
-0.021412745118141174,
-0.0066762883216142654,
0.054569777101278305,
0.009705864824354649,
0.036859843879938126,
-0.0065921335481107235,
0.030875496566295624,
0.008971846662461758,
0.03240898624062538,
0.017663177102804184,
0.044508591294288635,
0.007980689406394958,
0.03998292610049248,
0.001402581576257944,
0.002699969569221139,
0.042301859706640244,
0.020159773528575897,
-0.009257039055228233,
-0.06889481097459793,
0.02131924033164978,
0.05475678667426109,
-0.0022184166591614485,
0.06926883012056351,
-0.0022301047574728727,
-0.029360707849264145,
0.007279398385435343
] |
20,881 | precession.precession | inspiral_hybrid |
Perform hybrid inspirals, i.e. evolve the binary at large separation with a pression-averaged evolution and at small separation with an orbit-averaged evolution, matching the two. The variables q, chi1, and chi2 must always be provided. The integration range must be specified using either r or u (and not both); provide also uswitch and rswitch consistently.
Either r of u needs to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned. For past time infinity use either u=0 or r=np.inf.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- theta1,theta2, and deltaphi (but note that deltaphi is not necessary if integrating from infinite separation).
- kappa, chieff.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
rswitch: float, optional (default: None)
Matching separation between the precession- and orbit-averaged chunks.
u: float, optional (default: None)
Compactified separation 1/(2L).
uswitch: float, optional (default: None)
Matching compactified separation between the precession- and orbit-averaged chunks.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
requested_outputs: list, optional (default: None)
Set of outputs.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_hybrid(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(kappa,u=u,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
| def inspiral_hybrid(theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, r=None, rswitch=None, u=None, uswitch=None, chieff=None, q=None, chi1=None, chi2=None, requested_outputs=None,**odeint_kwargs):
"""
Perform hybrid inspirals, i.e. evolve the binary at large separation with a pression-averaged evolution and at small separation with an orbit-averaged evolution, matching the two. The variables q, chi1, and chi2 must always be provided. The integration range must be specified using either r or u (and not both); provide also uswitch and rswitch consistently.
Either r of u needs to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned. For past time infinity use either u=0 or r=np.inf.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- theta1,theta2, and deltaphi (but note that deltaphi is not necessary if integrating from infinite separation).
- kappa, chieff.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
rswitch: float, optional (default: None)
Matching separation between the precession- and orbit-averaged chunks.
u: float, optional (default: None)
Compactified separation 1/(2L).
uswitch: float, optional (default: None)
Matching compactified separation between the precession- and orbit-averaged chunks.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
requested_outputs: list, optional (default: None)
Set of outputs.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_hybrid(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_hybrid(kappa,u=u,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
"""
# Outputs available in both orbit-averaged and precession-averaged evolutions
alloutputs = np.array(['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'chieff', 'q', 'chi1', 'chi2'])
if requested_outputs is None:
requested_outputs = alloutputs
# Return only those requested (in1d return boolean array)
wantoutputs = np.intersect1d(alloutputs, requested_outputs)
# Substitute None inputs with arrays of Nones
inputs = [theta1, theta2, deltaphi, deltachi, kappa, r, rswitch, u, uswitch, chieff, q, chi1, chi2]
for k, v in enumerate(inputs):
if v is None:
inputs[k] = np.atleast_1d(np.squeeze(tiler(None, np.atleast_1d(q))))
else:
if k == 5 or k == 7: # Either u or r
inputs[k] = np.atleast_2d(inputs[k])
else: # Any of the others
inputs[k] = np.atleast_1d(inputs[k])
theta1, theta2, deltaphi, deltachi, kappa, r, rswitch, u, uswitch, chieff, q, chi1, chi2 = inputs
def _compute(theta1, theta2, deltaphi, deltachi, kappa, r, rswitch, u, uswitch, chieff, q, chi1, chi2):
if r is None and rswitch is None and u is not None and uswitch is not None:
r = eval_r(u=u, q=tiler(q, u))
rswitch = eval_r(u=uswitch, q=tiler(q, uswitch))
forward = ismonotonic(r, ">=")
backward = ismonotonic(r, "<=")
assert np.logical_or(forward, backward), "r must be monotonic"
assert rswitch > np.min(r) and rswitch < np.max(r), "The switching condition must to be within the range spanned by r or u."
rlarge = r[r >= rswitch]
rsmall = r[r < rswitch]
# Integrating forward: precession-averaged first, then orbit-averaged
if forward:
inspiral_first = inspiral_precav
rfirst = np.append(rlarge, rswitch)
inspiral_second = inspiral_orbav
rsecond = np.append(rswitch, rsmall)
# Integrating backward: orbit-averaged first, then precession-averaged
elif backward:
inspiral_first = inspiral_orbav
rfirst = np.append(rsmall, rswitch)
inspiral_second = inspiral_precav
rsecond = np.append(rswitch, rlarge)
# First chunk of the evolution
evolution_first = inspiral_first(theta1=theta1, theta2=theta2, deltaphi=deltaphi, deltachi=deltachi, kappa=kappa, r=rfirst, chieff=chieff, q=q, chi1=chi1, chi2=chi2, requested_outputs=alloutputs,**odeint_kwargs)
# Second chunk of the evolution
evolution_second = inspiral_second(theta1=np.squeeze(evolution_first['theta1'])[-1], theta2=np.squeeze(evolution_first['theta2'])[-1], deltaphi=np.squeeze(evolution_first['deltaphi'])[-1], r=rsecond, q=q, chi1=chi1, chi2=chi2, requested_outputs=alloutputs,**odeint_kwargs)
# Store outputs
evolution_full = {}
for k in wantoutputs:
# Quantities that vary in both the precession-averaged and the orbit-averaged evolution
if k in ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u']:
evolution_full[k] = np.atleast_2d(np.append(evolution_first[k][:, :-1], evolution_second[k][:, 1:]))
# Quantities that vary only on the orbit-averaged evolution
if k in ['chieff']:
if forward:
evolution_full[k] = np.atleast_2d(np.append(tiler(evolution_first[k][:], rfirst[:-1]), evolution_second[k][:, 1:]))
elif backward:
evolution_full[k] = np.atleast_2d(np.append(evolution_first[k][:, :-1], tiler(evolution_second[k][:], rsecond[1:])))
# Quanties that do not vary
if k in ['q', 'chi1', 'chi2']:
evolution_full[k] = evolution_second[k]
return evolution_full
allresults = list(map(_compute, theta1, theta2, deltaphi, deltachi, kappa, r, rswitch, u, uswitch, chieff, q, chi1, chi2))
evolution_full = {}
for k in allresults[0].keys():
evolution_full[k] = np.concatenate(list(evolution_full[k] for evolution_full in allresults))
return evolution_full
| (theta1=None, theta2=None, deltaphi=None, deltachi=None, kappa=None, r=None, rswitch=None, u=None, uswitch=None, chieff=None, q=None, chi1=None, chi2=None, requested_outputs=None, **odeint_kwargs) | [
-0.019896235316991806,
-0.07002274692058563,
-0.027807561680674553,
0.014086020179092884,
0.0002626389032229781,
-0.02138631045818329,
-0.07160929590463638,
-0.03655504435300827,
-0.062347255647182465,
0.028965316712856293,
0.028858117759227753,
0.04283693805336952,
-0.010671715252101421,
0.061489660292863846,
-0.046181563287973404,
0.026435408741235733,
0.017505686730146408,
0.00018424922018311918,
-0.007981006056070328,
-0.049097392708063126,
-0.03666224330663681,
-0.06084646284580231,
-0.01517945621162653,
0.08211485296487808,
-0.03243858367204666,
0.003430385608226061,
0.0013232444180175662,
-0.039856791496276855,
-0.052570655941963196,
-0.013474983163177967,
0.003237426280975342,
-0.027121486142277718,
-0.009513960219919682,
-0.03790576010942459,
0.02551349252462387,
-0.03631920740008354,
0.051412902772426605,
0.06736419349908829,
-0.04789675772190094,
0.05891687050461769,
-0.019756875932216644,
-0.07053729891777039,
0.03861327841877937,
-0.05544360727071762,
-0.04127182438969612,
0.04433773085474968,
-0.05707303807139397,
0.04695340245962143,
0.025170452892780304,
0.015297375619411469,
0.05514344573020935,
-0.11637582629919052,
0.019328078255057335,
0.012574506923556328,
-0.0008354864548891783,
0.08018526434898376,
0.026542607694864273,
-0.022640544921159744,
0.032717302441596985,
-0.11037265509366989,
-0.025685010477900505,
-0.024977494031190872,
0.03327473998069763,
0.08537372201681137,
0.005140218418091536,
0.02973715402185917,
-0.02542773261666298,
0.0033821456599980593,
0.024934614077210426,
0.025277653709053993,
-0.005255457945168018,
0.007412848528474569,
0.013485702686011791,
-0.054242972284555435,
-0.020196394994854927,
0.011363151483237743,
-0.01891000010073185,
-0.03246002271771431,
-0.011534671299159527,
-0.04242958128452301,
-0.019896235316991806,
0.023369500413537025,
-0.04918315261602402,
-0.03119506873190403,
0.01412890013307333,
0.03741264343261719,
-0.009851638227701187,
-0.011320272460579872,
-0.040714386850595474,
-0.07002274692058563,
-0.03861327841877937,
-0.025663571432232857,
0.028429320082068443,
0.07075170427560806,
0.053942810744047165,
0.04272973909974098,
-0.037455521523952484,
-0.08674587309360504,
0.021000390872359276,
-0.0598602257668972,
-0.0004971378948539495,
0.013206983916461468,
0.00897260196506977,
0.03687664493918419,
0.01860984042286873,
-0.03584752976894379,
-0.051927462220191956,
0.05788775533437729,
0.04296557977795601,
-0.10059605538845062,
-0.0472964383661747,
0.027250124141573906,
-0.04382317513227463,
-0.055615123361349106,
-0.03175250440835953,
0.0022042905911803246,
-0.04686764255166054,
0.06792163103818893,
-0.005794135387986898,
0.03867759555578232,
0.0015865532914176583,
-0.001063285511918366,
-0.014193220064043999,
0.0046819401904940605,
0.04579564556479454,
-0.030316032469272614,
0.012092108838260174,
0.07100898027420044,
-0.03589040786027908,
-0.028600839897990227,
-0.002524549374356866,
0.0039020634721964598,
-0.0025084693916141987,
0.039856791496276855,
-0.046696122735738754,
0.02204022742807865,
-0.02866515889763832,
-0.031988345086574554,
0.0020877111237496138,
-0.009422840550541878,
0.03306033834815025,
-0.04489516839385033,
-0.021782947704195976,
0.005842375103384256,
-0.010623475536704063,
0.055829524993896484,
0.07696927338838577,
-0.030830590054392815,
0.009910598397254944,
-0.010939713567495346,
0.002456209622323513,
-0.004850779660046101,
-0.02480597421526909,
-0.024934614077210426,
0.002722868463024497,
-0.05711591988801956,
0.03475409373641014,
0.026306768879294395,
-0.04399469494819641,
-0.031580984592437744,
-0.029179716482758522,
-0.05312809348106384,
0.05059818550944328,
0.0351828895509243,
-0.016476569697260857,
0.0009822158608585596,
0.0147077776491642,
0.022876383736729622,
0.02658548764884472,
-0.0016280930722132325,
0.03563312813639641,
-0.02825780026614666,
-0.041014548391103745,
-0.015393855050206184,
-0.02168646827340126,
0.05012650787830353,
-0.010403716005384922,
-0.05548648536205292,
-0.03301746025681496,
-0.022426145151257515,
-0.008163245394825935,
-0.03644784539937973,
-0.04208654165267944,
-0.019027920439839363,
0.005041058640927076,
0.04999786987900734,
0.09733718633651733,
-0.04905451089143753,
0.06586340069770813,
0.013196264393627644,
0.003012307221069932,
-0.02774324268102646,
-0.0035027451813220978,
0.03799152001738548,
0.05514344573020935,
-0.007209169678390026,
0.0483255572617054,
0.012113548815250397,
-0.008206125348806381,
0.015779772773385048,
-0.006260453723371029,
0.0003946283250115812,
0.003591184737160802,
-0.012574506923556328,
0.013968100771307945,
-0.025599252432584763,
-0.04819691553711891,
-0.010119637474417686,
0.060546305030584335,
0.024184217676520348,
0.018727760761976242,
-0.037862878292798996,
0.01955319754779339,
-0.00567621598020196,
0.015822652727365494,
0.08545947819948196,
0.05274217575788498,
0.023755419999361038,
0.011309552006423473,
-0.0044407411478459835,
0.011899149976670742,
-0.013206983916461468,
0.004818619694560766,
0.019681837409734726,
0.0064962925389409065,
0.00212791096419096,
0.004955299198627472,
0.029479876160621643,
0.012467307038605213,
-0.039663832634687424,
0.01460057869553566,
-0.010693155229091644,
-0.023026462644338608,
-0.04009263217449188,
0.02190086804330349,
0.02279062382876873,
-0.041743502020835876,
-0.022104546427726746,
-0.023476701229810715,
0.011931309476494789,
-0.02521333284676075,
-0.009245960973203182,
-0.015511774457991123,
-0.014343298971652985,
-0.07684063166379929,
-0.0052634975872933865,
0.03203122317790985,
0.00927812047302723,
-0.01880280114710331,
0.01031795609742403,
0.022833503782749176,
-0.058145035058259964,
-0.016122812405228615,
-0.00256608915515244,
-0.007632607594132423,
-0.008500924333930016,
0.05707303807139397,
0.016208572313189507,
0.04978346824645996,
-0.04105742648243904,
0.05943142995238304,
-0.06363365054130554,
-0.024977494031190872,
0.0251918938010931,
-0.038163039833307266,
-0.009674758650362492,
0.023283742368221283,
-0.006072854157537222,
0.010784273967146873,
-0.021514948457479477,
-0.04298701882362366,
0.08691739290952682,
-0.08370140939950943,
0.0015342935221269727,
0.011995629407465458,
0.06577764451503754,
0.05385705083608627,
0.0010271056089550257,
-0.0331246592104435,
0.03717680275440216,
0.010757474228739738,
-0.008490203879773617,
-0.02009991556406021,
0.006115734111517668,
-0.04223662242293358,
0.0002674963616300374,
-0.050469547510147095,
-0.03447537496685982,
0.09304920583963394,
-0.01966039650142193,
0.06217573583126068,
0.03983535245060921,
0.009015481919050217,
0.0036233447026461363,
0.11045841127634048,
0.046781882643699646,
-0.04146478325128555,
-0.026757007464766502,
0.034604012966156006,
-0.04570988565683365,
0.02866515889763832,
0.006147894077003002,
0.07619743794202805,
-0.07821279019117355,
-0.020185675472021103,
-0.018899280577898026,
0.07902750372886658,
-0.02095751091837883,
0.012735306285321712,
-0.010291156359016895,
-0.008468763902783394,
0.01259594690054655,
-0.017870163545012474,
0.03016595169901848,
0.005820935592055321,
-0.0966511145234108,
0.04024270921945572,
0.005595816299319267,
0.041207507252693176,
0.0440804548561573,
-0.013453543186187744,
0.00478109996765852,
0.01737704686820507,
-0.019199438393115997,
0.016176411882042885,
-0.06835043430328369,
0.02238326519727707,
-0.005231338087469339,
-0.007171649485826492,
-0.04390893504023552,
-0.012317228130996227,
-0.003478625323623419,
-0.012981865555047989,
0.05398569256067276,
-0.0073217288590967655,
-0.05338537320494652,
0.0089190024882555,
-0.03595472872257233,
0.010221476666629314,
0.006823251023888588,
0.06466276943683624,
0.02001415565609932,
-0.005922774784266949,
0.06380517035722733,
-0.011963468976318836,
-0.05325673520565033,
0.0661635622382164,
-0.01233866810798645,
-0.04013551026582718,
0.03342481702566147,
-0.006190774030983448,
0.08241501450538635,
0.0008234265260398388,
0.06101798266172409,
0.031216507777571678,
0.04176494479179382,
-0.056987278163433075,
-0.01818104274570942,
0.012059949338436127,
-0.028922438621520996,
0.0017795125022530556,
0.013260584324598312,
-0.004140582401305437,
0.06757859140634537,
-0.0036421045660972595,
-0.03173106536269188,
-0.03642640635371208,
0.018813520669937134,
0.01233866810798645,
-0.056644242256879807,
0.005158978048712015,
-0.038398876786231995,
0.025020373985171318,
0.036705125123262405,
0.0024722896050661802,
0.03822735697031021,
-0.02300502359867096,
0.010623475536704063,
-0.026542607694864273,
-0.004480941221117973,
0.009851638227701187,
0.026714127510786057,
-0.031773947179317474,
0.015726173296570778,
-0.03475409373641014,
0.001818372285924852,
0.05016938969492912,
-0.03087347000837326,
0.030230272561311722,
-0.03809871897101402,
-0.02190086804330349,
-0.0081364456564188,
0.03479697182774544,
0.0049204593524336815,
-0.011481071822345257,
0.04703916236758232,
0.030508991330862045,
0.051198504865169525,
-0.05733031779527664,
-0.022554785013198853,
0.007552207913249731,
-0.07834143191576004,
0.04802539572119713,
0.009267400950193405,
-0.002899747807532549,
-0.11268816143274307,
0.049740590155124664,
0.012746025808155537,
0.0021332709584385157,
0.0014083340065553784,
-0.06740707159042358,
0.025277653709053993,
-0.019488876685500145,
0.02480597421526909,
-0.06637796014547348,
0.031066428869962692,
-0.006957250647246838,
0.0056708562187850475,
0.006474852561950684,
0.06457700580358505,
0.04032846912741661,
-0.022104546427726746,
0.006817891262471676,
0.06809315085411072,
0.011877709999680519,
0.017988083884119987,
0.016723129898309708,
0.016122812405228615,
-0.027678923681378365,
-0.006635651923716068,
0.005207217764109373,
0.0005232677794992924,
-0.018030963838100433,
-0.04317997768521309,
-0.03623344749212265,
0.024741655215620995,
0.035654570907354355,
0.016723129898309708,
0.08245789259672165,
0.0014646138297393918,
0.028279241174459457,
0.016037052497267723,
0.006121094338595867,
-0.05201321840286255,
-0.0016053131548687816,
0.019992714747786522,
-0.03269586339592934,
0.019360238686203957,
-0.04811115562915802,
-0.0011805350659415126,
0.0503837876021862,
0.008543804287910461,
-0.016744568943977356,
0.006844691000878811,
0.05064106732606888,
-0.00086295633809641,
0.017816564068198204,
0.028429320082068443,
-0.05784487724304199,
-0.017666485160589218,
-0.008275805041193962,
0.040478549897670746,
0.04277262091636658,
0.007600447628647089,
0.06783587485551834,
0.016841048374772072,
0.021246951073408127,
-0.03704816475510597,
-0.04961194843053818,
0.010441236197948456,
0.029051076620817184,
-0.016626650467514992,
0.0173234473913908,
0.011695470660924911,
0.0692937895655632,
-0.018331121653318405,
-0.012317228130996227,
0.005193817894905806,
-0.0015785133000463247,
-0.045109570026397705,
-0.05124138295650482,
-0.024077018722891808,
-0.017119767144322395,
0.006233653519302607,
0.021933026611804962,
-0.024720216169953346,
0.018738480284810066,
-0.029051076620817184,
0.027957642450928688,
-0.03970671072602272,
-0.03057331033051014,
-0.00046832801308482885,
0.030830590054392815,
0.003947623074054718,
-0.015243775211274624,
0.03936367481946945,
0.039642393589019775,
-0.0482826754450798,
0.07967070490121841,
-0.020464394241571426,
0.06016038730740547,
0.031130747869610786,
-0.0599031075835228,
-0.03599760681390762,
0.0024508496280759573,
-0.009814118035137653,
-0.02170790731906891,
-0.023605341091752052,
-0.0797993391752243,
0.041014548391103745,
-0.022511905059218407,
-0.04588140547275543,
0.07684063166379929,
-0.05402857065200806,
-0.010403716005384922,
0.029458435252308846,
0.03327473998069763,
0.03383217751979828,
-0.008785002864897251,
-0.03483985364437103,
-0.008940442465245724,
0.0010619454551488161,
-0.0002683338534552604,
0.0440804548561573,
0.03138802573084831,
0.04092878848314285,
-0.005633336026221514,
-0.061489660292863846,
0.010928994044661522,
-0.0037546642124652863,
-0.08125725388526917,
-0.010441236197948456,
-0.04390893504023552,
0.07851294428110123,
-0.018985040485858917,
-0.006201493553817272,
-0.004767699632793665,
-0.03809871897101402,
0.018717041239142418,
-0.04013551026582718,
-0.015372415073215961,
0.03211698308587074,
0.020807432010769844,
-0.04135758429765701,
0.02952275425195694,
0.01611209101974964,
0.0017835324397310615,
0.034196656197309494,
-0.0069786906242370605,
0.02332662045955658,
-0.02973715402185917,
-0.01000707782804966,
0.056258320808410645,
0.08683162927627563,
0.020539432764053345,
-0.02960851415991783,
0.022854942828416824,
-0.03803439810872078,
-0.02131127007305622,
0.0640195682644844,
-0.0020046315621584654,
-0.018063124269247055,
-0.04283693805336952,
-0.08661723136901855,
0.022833503782749176,
0.04579564556479454,
0.044166214764118195,
0.020185675472021103,
0.008865402080118656,
0.02174006775021553,
-0.001350714243017137,
0.024441497400403023,
-0.013485702686011791,
-0.05269929766654968,
-0.08468764275312424,
0.008436604402959347,
0.003786823945119977,
-0.028515079990029335,
-0.04326573759317398,
-0.04708204045891762,
-0.004807899706065655,
-0.010853953659534454,
0.03068051114678383,
-0.05745895579457283,
0.08095709979534149,
0.010928994044661522,
-0.027164364233613014,
0.06684963405132294,
0.025706451386213303,
0.005622616037726402,
-0.04506668820977211,
-0.010891473852097988,
-0.03138802573084831,
-0.01860984042286873,
-0.0013748342171311378,
0.04665324091911316,
-0.013592902570962906,
-0.0048963394947350025,
0.049526192247867584,
-0.03466833382844925,
-0.049954988062381744,
-0.03904207423329353,
-0.0026089688763022423,
-0.013357063755393028,
-0.02195446752011776,
0.02063591219484806,
0.00037687341682612896,
-0.010805713944137096,
0.011041553691029549,
-0.03473265469074249,
0.062132857739925385,
0.010955793783068657,
0.025363413617014885,
-0.02227606624364853,
0.0024026099126785994,
0.0028354281093925238,
-0.004328181501477957,
0.04433773085474968,
0.06487716734409332,
0.01937095820903778,
0.011127312667667866,
0.04298701882362366,
-0.025020373985171318,
-0.02165430784225464,
-0.06792163103818893,
-0.01716264709830284,
0.04215086251497269,
-0.06106086075305939,
0.04004975035786629,
0.006989410612732172,
0.02088247239589691,
-0.029072517529129982,
0.02782900258898735,
-0.010693155229091644,
0.018952880054712296,
0.004153982270509005,
0.05201321840286255,
-0.004692660178989172,
0.00011356452159816399,
0.015222335234284401,
-0.00677501130849123,
0.01915655843913555,
0.028536519035696983,
-0.0028005882631987333,
0.0483255572617054,
-0.04562412574887276,
0.000321263651130721,
0.02690708637237549,
0.03715536370873451,
0.03348913788795471,
-0.02529909275472164,
0.02658548764884472,
-0.05514344573020935,
-0.01508297584950924,
-0.039663832634687424,
-0.03370353579521179,
-0.005660136230289936,
0.028493639081716537,
0.010902194306254387,
0.01207066886126995,
0.030080193653702736,
0.03402513638138771,
-0.030423231422901154,
-0.003076626919209957,
-0.011341712437570095,
-0.02710004523396492,
0.036705125123262405,
-0.03509713336825371,
0.03822735697031021,
0.02553493157029152,
0.00031707616290077567,
-0.058573830872774124,
0.028086280450224876,
0.008431244641542435,
0.03582608699798584,
-0.0019537117332220078,
-0.009390680119395256,
0.021129030734300613,
-0.014750657603144646,
-0.03374641761183739,
0.032395701855421066,
0.05956006795167923,
0.02095751091837883,
-0.036705125123262405,
0.03423953428864479,
-0.04781099781394005,
0.03404657542705536,
-0.02750740386545658,
0.01439689937978983,
-0.028322121128439903,
-0.02168646827340126,
0.0004271231882739812,
0.01874919980764389,
-0.02920115739107132,
0.06744995713233948,
-0.0294155552983284,
-0.03526864945888519,
0.00992667768150568,
-0.020185675472021103,
-0.02658548764884472,
0.08743195235729218,
-0.009712278842926025,
-0.04170062392950058,
-0.0020220514852553606,
-0.023669660091400146,
0.05810215324163437,
0.008093565702438354,
-0.04802539572119713,
0.030959229916334152,
-0.059088390320539474,
-0.027957642450928688,
0.040478549897670746,
0.033360499888658524,
-0.024441497400403023,
-0.001106835319660604,
0.007466448470950127,
-0.02170790731906891,
0.06316196918487549,
0.022940702736377716,
-0.010071397759020329,
-0.006356933154165745,
-0.03160242736339569,
0.04127182438969612,
0.015886973589658737,
-0.05861671268939972,
-0.017730804160237312,
0.04307277873158455,
-0.037562720477581024,
0.018792079761624336,
0.0330817811191082,
-0.0441233329474926,
0.0030257070902734995,
-0.0014270939864218235,
0.021514948457479477,
-0.002816668013110757,
-0.06346213072538376,
0.007348529063165188,
-0.045109570026397705,
-0.021911587566137314,
0.011523950845003128,
-0.010902194306254387,
-0.036919523030519485,
-0.020560873672366142,
-0.03642640635371208,
0.04566700756549835,
0.013378503732383251,
-0.0029560273978859186,
-0.020089194178581238,
0.022104546427726746,
0.019510317593812943,
0.025363413617014885,
-0.007466448470950127,
-0.0015825333539396524,
0.0001115545310312882,
0.01775224506855011,
0.04403757303953171,
0.0036019047256559134,
0.02446293644607067,
-0.03794863820075989,
-0.032931700348854065,
-0.03989966958761215,
0.02004631608724594,
0.029908673837780952,
0.03265298157930374,
0.026606926694512367,
0.022318946197628975,
-0.010301876813173294,
-0.021397029981017113
] |
20,882 | precession.precession | inspiral_orbav |
Perform precession-averaged inspirals. The variables q, chi1, and chi2 must always be provided.
The integration range must be specified using either r or u (and not both). These need to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- Lh, S1h, and S2h
- theta1,theta2, and deltaphi.
- deltachi, kappa, chieff, cyclesign.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
Lh: array, optional (default: None)
Direction of the orbital angular momentum, unit vector.
S1h: array, optional (default: None)
Direction of the primary spin, unit vector.
S2h: array, optional (default: None)
Direction of the secondary spin, unit vector.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
u: float, optional (default: None)
Compactified separation 1/(2L).
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: +1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
requested_outputs: list, optional (default: None)
Set of outputs.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_orbav(Lh=Lh,S1h=S1h,S2h=S2h,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(Lh=Lh,S1h=S1h,S2h=S2h,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
| def inspiral_orbav(theta1=None, theta2=None, deltaphi=None, Lh=None, S1h=None, S2h=None, deltachi=None, kappa=None, r=None, u=None, chieff=None, q=None, chi1=None, chi2=None, cyclesign=+1, PNorderpre=[0,0.5], PNorderrad=[0,1,1.5,2,2.5,3,3.5], requested_outputs=None, **odeint_kwargs):
"""
Perform precession-averaged inspirals. The variables q, chi1, and chi2 must always be provided.
The integration range must be specified using either r or u (and not both). These need to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- Lh, S1h, and S2h
- theta1,theta2, and deltaphi.
- deltachi, kappa, chieff, cyclesign.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
Lh: array, optional (default: None)
Direction of the orbital angular momentum, unit vector.
S1h: array, optional (default: None)
Direction of the primary spin, unit vector.
S2h: array, optional (default: None)
Direction of the secondary spin, unit vector.
deltachi: float, optional (default: None)
Weighted spin difference.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
u: float, optional (default: None)
Compactified separation 1/(2L).
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: +1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
requested_outputs: list, optional (default: None)
Set of outputs.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_orbav(Lh=Lh,S1h=S1h,S2h=S2h,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(Lh=Lh,S1h=S1h,S2h=S2h,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_orbav(deltachi=deltachi,kappa=kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
"""
# Substitute None inputs with arrays of Nones
inputs = [theta1, theta2, deltaphi, Lh, S1h, S2h, deltachi, kappa, r, u, chieff, q, chi1, chi2]
for k, v in enumerate(inputs):
if v is None:
inputs[k] = np.atleast_1d(np.squeeze(tiler(None, np.atleast_1d(q))))
else:
if k == 3 or k == 4 or k == 5 or k == 8 or k == 9: # Lh, S1h, S2h, u, or r
inputs[k] = np.atleast_2d(inputs[k])
else: # Any of the others
inputs[k] = np.atleast_1d(inputs[k])
theta1, theta2, deltaphi, Lh, S1h, S2h, deltachi, kappa, r, u, chieff, q, chi1, chi2 = inputs
def _compute(theta1, theta2, deltaphi, Lh, S1h, S2h, deltachi, kappa, r, u, chieff, q, chi1, chi2,cyclesign):
if q is None or chi1 is None or chi2 is None:
raise TypeError("Please provide q, chi1, and chi2.")
if r is not None and u is None:
assert np.logical_or(ismonotonic(r, '<='), ismonotonic(r, '>=')), 'r must be monotonic'
u = eval_u(r, tiler(q, r))
elif r is None and u is not None:
assert np.logical_or(ismonotonic(u, '<='), ismonotonic(u, '>=')), 'u must be monotonic'
r = eval_r(u=u, q=tiler(q, u))
else:
raise TypeError("Please provide either r or u.")
# User provides Lh, S1h, and S2h
if Lh is not None and S1h is not None and S2h is not None and theta1 is None and theta2 is None and deltaphi is None and deltachi is None and kappa is None and chieff is None:
pass
# User provides theta1, theta2, and deltaphi.
elif Lh is None and S1h is None and S2h is None and theta1 is not None and theta2 is not None and deltaphi is not None and deltachi is None and kappa is None and chieff is None:
Lh, S1h, S2h = angles_to_Jframe(theta1, theta2, deltaphi, r[0], q, chi1, chi2)
# User provides deltachi, kappa, and chieff.
elif Lh is None and S1h is None and S2h is None and theta1 is None and theta2 is None and deltaphi is None and deltachi is not None and kappa is not None and chieff is not None:
# cyclesign=+1 by default
Lh, S1h, S2h = conserved_to_Jframe(deltachi, kappa, r[0], chieff, q, chi1, chi2, cyclesign=cyclesign)
else:
raise TypeError("Please provide one and not more of the following: (Lh,S1h,S2h), (theta1,theta2,deltaphi), (deltachi,kappa,chieff).")
# Make sure vectors are normalized
Lh = Lh/np.linalg.norm(Lh)
S1h = S1h/np.linalg.norm(S1h)
S2h = S2h/np.linalg.norm(S2h)
v = eval_v(r)
# Integration
evaluations = integrator_orbav(Lh, S1h, S2h, v, q, chi1, chi2, PNorderpre=PNorderpre, PNorderrad=PNorderrad,**odeint_kwargs)[0].T
# For solve_ivp implementation
#evaluations = np.squeeze(ODEsolution.item().sol(v))
# Returned output is
# Lx, Ly, Lz, S1x, S1y, S1z, S2x, S2y, S2z, (t)
Lh = evaluations[0:3, :].T
S1h = evaluations[3:6, :].T
S2h = evaluations[6:9, :].T
t = evaluations[9, :]
# Renormalize. The normalization is not enforced by the integrator, it is only maintaied within numerical accuracy.
#Lh = Lh/np.linalg.norm(Lh)
#S1h = S1h/np.linalg.norm(S1h)
#S2h = S2h/np.linalg.norm(S2h)
S1 = eval_S1(q, chi1)
S2 = eval_S2(q, chi2)
L = eval_L(r, tiler(q, r))
Lvec = (L*Lh.T).T
S1vec = S1*S1h
S2vec = S2*S2h
theta1, theta2, deltaphi = vectors_to_angles(Lvec, S1vec, S2vec)
deltachi, kappa, chieff, cyclesign = vectors_to_conserved(Lvec, S1vec, S2vec, tiler(q,r), full_output=True)
return t, theta1, theta2, deltaphi, Lh, S1h, S2h, deltachi, kappa, r, u, chieff, q, chi1, chi2, cyclesign
# This array has to match the outputs of _compute (in the right order!)
alloutputs = np.array(['t', 'theta1', 'theta2', 'deltaphi', 'Lh', 'S1h', 'S2h', 'deltachi', 'kappa', 'r', 'u', 'chieff', 'q', 'chi1', 'chi2', 'cyclesign'])
if cyclesign ==+1 or cyclesign==-1:
cyclesign=np.atleast_1d(tiler(cyclesign,q))
# Here I force dtype=obj | (theta1=None, theta2=None, deltaphi=None, Lh=None, S1h=None, S2h=None, deltachi=None, kappa=None, r=None, u=None, chieff=None, q=None, chi1=None, chi2=None, cyclesign=1, PNorderpre=[0, 0.5], PNorderrad=[0, 1, 1.5, 2, 2.5, 3, 3.5], requested_outputs=None, **odeint_kwargs) | [
-0.024043824523687363,
-0.05580434203147888,
-0.026855839416384697,
0.008784824050962925,
-0.010539609007537365,
-0.02426180988550186,
-0.07302521169185638,
-0.03293764218688011,
-0.05837657302618027,
0.0264198686927557,
0.020076483488082886,
0.030583394691348076,
0.012882955372333527,
0.04364074021577835,
-0.07455111294984818,
0.07420233637094498,
0.027270011603832245,
-0.0051771607249975204,
-0.02779317833483219,
-0.013656805269420147,
-0.04568980634212494,
-0.04555901512503624,
-0.006299787200987339,
0.07930320501327515,
-0.03330821543931961,
-0.008136317133903503,
0.03162972629070282,
-0.03810390084981918,
-0.058943334966897964,
-0.010016443207859993,
0.01496471930295229,
0.0037875017151236534,
-0.0357060581445694,
-0.017024684697389603,
0.0350521020591259,
-0.032523468136787415,
0.0527961403131485,
0.05044189468026161,
-0.06343384087085724,
0.04891599342226982,
-0.025656918063759804,
-0.06147196888923645,
0.051924195140600204,
-0.044599875807762146,
-0.05671988055109978,
0.022365333512425423,
-0.041395485401153564,
0.0347469225525856,
0.04052354395389557,
-0.018550584092736244,
0.06504693627357483,
-0.1045459508895874,
0.02447979524731636,
-0.01612004265189171,
-0.001659416244365275,
0.08165744692087173,
0.020577851682901382,
0.02299749292433262,
0.0346815250813961,
-0.09024608135223389,
-0.01421266794204712,
-0.003438724670559168,
0.041286494582891464,
0.08379370719194412,
0.0013215383514761925,
0.03154253214597702,
0.005149912554770708,
0.007645848672837019,
0.032370876520872116,
0.02428360842168331,
-0.02118821069598198,
0.004528653342276812,
0.01912824623286724,
-0.027531595900654793,
0.011487847194075584,
0.008201712742447853,
-0.03969519957900047,
-0.0344853401184082,
-0.027335409075021744,
-0.05423484370112419,
-0.021395297721028328,
0.01592385582625866,
-0.02999483421444893,
-0.03208749741315842,
0.004446908365935087,
0.04564620926976204,
0.01722087152302265,
0.00789653230458498,
-0.029079293832182884,
-0.03670879453420639,
-0.044861458241939545,
-0.029471667483448982,
0.006010956130921841,
0.05558635666966438,
0.020294468849897385,
0.03374418988823891,
-0.026746846735477448,
-0.10376119613647461,
0.006708510220050812,
-0.04930836707353592,
-0.005880164448171854,
-0.02112281508743763,
-0.011880220845341682,
0.06090520694851875,
-0.00609815027564764,
-0.017122777178883553,
-0.05445282906293869,
0.0357060581445694,
0.07498708367347717,
-0.07991356402635574,
-0.04438189044594765,
0.06622406095266342,
-0.025722313672304153,
-0.03686138242483139,
-0.06696520745754242,
-0.023433463647961617,
-0.04268160089850426,
0.05065988004207611,
-0.03740634769201279,
0.03339540958404541,
0.003866521641612053,
-0.005168986041098833,
-0.015433388762176037,
0.021885765716433525,
0.054932400584220886,
-0.046430956572294235,
-0.005087241530418396,
0.060251250863075256,
-0.027335409075021744,
-0.03810390084981918,
0.0040572588331997395,
-0.013547811657190323,
0.018016519024968147,
0.06740118563175201,
-0.03925922513008118,
0.019662311300635338,
-0.02079583704471588,
-0.035967640578746796,
-0.011302558705210686,
-0.015422489494085312,
0.03309023007750511,
-0.04377153143286705,
-0.023629650473594666,
-0.02613648772239685,
0.006250740494579077,
0.07407154142856598,
0.07738492637872696,
-0.04091591760516167,
-0.01735166274011135,
0.008959212340414524,
-0.008212612010538578,
-0.004209849052131176,
0.011400653049349785,
-0.01602195017039776,
0.023804040625691414,
-0.07960838079452515,
0.0346379280090332,
-0.015193603932857513,
-0.03812570124864578,
-0.004779336508363485,
-0.023978428915143013,
-0.05589153617620468,
0.027466200292110443,
0.020675944164395332,
-0.0019332608208060265,
0.012501480989158154,
0.01756964810192585,
0.04329196363687515,
0.011133620515465736,
0.03285044804215431,
0.013340725563466549,
-0.039390016347169876,
-0.0705401748418808,
-0.01068129949271679,
-0.037602536380290985,
0.023106485605239868,
-0.009891102090477943,
-0.041526276618242264,
-0.023978428915143013,
-0.037667930126190186,
-0.0173189640045166,
-0.032654259353876114,
-0.03867066651582718,
-0.020043786615133286,
0.0011396565241739154,
0.0706273689866066,
0.07825686782598495,
-0.04948275536298752,
0.041024912148714066,
-0.0001832442358136177,
-0.0131009416654706,
-0.010245328769087791,
0.011825724504888058,
0.030234618112444878,
0.05750463157892227,
-0.010278026573359966,
0.039499010890722275,
0.013863891363143921,
0.0077057951129972935,
0.0011042339028790593,
0.02611468732357025,
0.007422413676977158,
-0.006926496047526598,
-0.017111878842115402,
-0.008692179806530476,
-0.00491285277530551,
-0.04388052225112915,
0.0023297222796827555,
0.057025063782930374,
0.029471667483448982,
0.014234467409551144,
-0.01933533325791359,
-0.018637778237462044,
-0.021722275763750076,
0.0023937555961310863,
0.08266018331050873,
0.03969519957900047,
0.020675944164395332,
0.01408187672495842,
0.022365333512425423,
0.05144462734460831,
-0.005310676991939545,
-0.0346815250813961,
-0.025329940021038055,
0.008081819862127304,
0.000737745373044163,
0.012076408602297306,
0.058681752532720566,
0.011651336215436459,
-0.04926477000117302,
0.01503011491149664,
-0.01487752515822649,
-0.020490657538175583,
-0.01592385582625866,
-0.005956459790468216,
0.02469778060913086,
-0.03867066651582718,
0.004468706902116537,
-0.0524037666618824,
0.003727555740624666,
-0.034289151430130005,
-0.017275366932153702,
-0.004040909931063652,
-0.0056240311823785305,
-0.05981528013944626,
0.01492112223058939,
0.03982599079608917,
0.009547773748636246,
-0.025504328310489655,
0.00141826958861202,
-0.002543620765209198,
-0.06439297646284103,
-0.02087213099002838,
-0.00047377831651829183,
0.0038011258002370596,
-0.02801116369664669,
0.07686176151037216,
0.004256171174347401,
0.06535211950540543,
-0.06125398352742195,
0.03906304016709328,
-0.06761916726827621,
-0.004136278759688139,
0.03677418828010559,
-0.04071973264217377,
0.011771228164434433,
0.01595655456185341,
-0.03343900665640831,
-0.006795704364776611,
-0.031062964349985123,
-0.006005506496876478,
0.05637110397219658,
-0.09469299018383026,
0.009079105220735073,
0.030735984444618225,
0.05820218473672867,
0.050136715173721313,
0.0010184020502492785,
-0.01906285062432289,
0.06539571285247803,
0.025111954659223557,
-0.0016893892316147685,
0.0008467382285743952,
0.006479625124484301,
-0.04191865399479866,
0.010179933160543442,
-0.05449642613530159,
-0.03965160250663757,
0.08383730798959732,
-0.034289151430130005,
0.06404419988393784,
0.04180965945124626,
0.012588675133883953,
0.004030010662972927,
0.12547257542610168,
0.05667628347873688,
-0.060556430369615555,
-0.026921235024929047,
0.04608217999339104,
-0.030692387372255325,
-0.01143335085362196,
0.009444231167435646,
0.09478018432855606,
-0.08889457583427429,
-0.019945692270994186,
-0.021460693329572678,
0.07960838079452515,
-0.015095510520040989,
0.008991910144686699,
-0.01770043931901455,
0.009476928971707821,
0.026834040880203247,
-0.004286143928766251,
0.01576036773622036,
0.008850219659507275,
-0.06439297646284103,
0.01730806566774845,
-0.016795799136161804,
0.04612577706575394,
0.03363519534468651,
-0.026964832097291946,
-0.002761606592684984,
0.013743999414145947,
-0.04861081391572952,
0.020741339772939682,
-0.05432203784584999,
0.009972846135497093,
0.0002070864284178242,
0.01226169615983963,
-0.01605464704334736,
-0.005831117741763592,
-0.005566810257732868,
-0.008250758983194828,
0.048305634409189224,
0.0017493353225290775,
-0.05070347711443901,
-0.0033351813908666372,
-0.013373423367738724,
0.01965141110122204,
-0.0011805288959294558,
0.05148822441697121,
0.020130980759859085,
-0.020065585151314735,
0.058943334966897964,
-0.0005786839174106717,
-0.05584793910384178,
0.07612060755491257,
-0.0354008786380291,
-0.004062708467245102,
0.048218440264463425,
-0.025983896106481552,
0.10358680784702301,
0.01581486314535141,
0.0710633397102356,
0.018855763599276543,
0.05846376717090607,
-0.030757782980799675,
-0.037471745163202286,
0.016305331140756607,
-0.04058893769979477,
-0.008545040152966976,
0.012011012993752956,
-0.027161018922924995,
0.03315562754869461,
0.011902020312845707,
-0.04521023482084274,
-0.026812242344021797,
0.001151918200775981,
0.004406036343425512,
-0.03324282169342041,
-0.0034577983897179365,
-0.03993498161435127,
0.015258999541401863,
0.01944432593882084,
-0.011738530360162258,
0.0694066509604454,
0.00004542788155958988,
0.00873577781021595,
-0.02977684885263443,
-0.03849627822637558,
0.024152817204594612,
0.016795799136161804,
-0.03875786066055298,
0.02489396743476391,
-0.010288925841450691,
-0.0012942901812493801,
0.015476985834538937,
0.011357055976986885,
0.039629802107810974,
-0.012109106406569481,
-0.013602307997643948,
-0.009286191314458847,
0.07712334394454956,
-0.026616055518388748,
0.018703173846006393,
0.039455413818359375,
0.036163829267024994,
0.06116678938269615,
-0.04913397878408432,
-0.02968965470790863,
-0.0031008466612547636,
-0.07446391880512238,
0.02626727893948555,
0.008828421123325825,
-0.023433463647961617,
-0.08279097080230713,
0.07546665519475937,
-0.010190832428634167,
0.00004883391011389904,
0.012512380257248878,
-0.03664339706301689,
0.014354359358549118,
-0.007035488728433847,
-0.005245281383395195,
-0.07189168781042099,
0.035815052688121796,
-0.011956516653299332,
0.007395165041089058,
0.007318870164453983,
0.06395700573921204,
0.028839509934186935,
0.0026553384959697723,
0.01136795524507761,
0.0881534218788147,
0.039716996252536774,
0.0174606554210186,
0.006463276222348213,
0.01920454204082489,
-0.0012527366634458303,
-0.005430568940937519,
0.0012622735230252147,
0.03136814385652542,
-0.022125549614429474,
-0.04065433517098427,
-0.02997303567826748,
0.02489396743476391,
0.012970149517059326,
0.006986442022025585,
0.07638218998908997,
0.039237428456544876,
0.025744112208485603,
0.023804040625691414,
0.005858365911990404,
-0.028817711398005486,
-0.008098169229924679,
-0.0009523250628262758,
-0.033918578177690506,
0.011945617385208607,
-0.0522293746471405,
-0.01564047485589981,
0.057025063782930374,
0.02293209731578827,
-0.010321623645722866,
-0.007863834500312805,
0.01920454204082489,
-0.011400653049349785,
0.020294468849897385,
0.02807655930519104,
-0.05824578180909157,
-0.06709600239992142,
0.0011805288959294558,
0.030517999082803726,
0.04909038171172142,
0.01388568989932537,
0.04418570548295975,
0.016904791817069054,
0.031171957030892372,
-0.03206569701433182,
-0.032414473593235016,
-0.0048202089965343475,
0.014049178920686245,
-0.02833814173936844,
0.0040163868106901646,
0.01392928697168827,
0.0688834860920906,
-0.027161018922924995,
-0.01141155231744051,
-0.007994625717401505,
-0.044578079134225845,
-0.059074126183986664,
-0.046212971210479736,
-0.037537138909101486,
-0.0050082216039299965,
0.030452603474259377,
0.03003843128681183,
-0.008457846008241177,
0.008986460976302624,
-0.018005620688199997,
0.025395335629582405,
-0.052098583430051804,
-0.04348814859986305,
0.00355316698551178,
0.006376082077622414,
0.007891083136200905,
-0.007613150868564844,
0.039629802107810974,
0.034376345574855804,
-0.04071973264217377,
0.027662387117743492,
-0.020414361730217934,
0.05767901986837387,
0.025002961978316307,
-0.04063253477215767,
-0.03285044804215431,
0.007030039094388485,
-0.023564254865050316,
-0.007357017602771521,
-0.051531821489334106,
-0.0707581639289856,
0.030997568741440773,
-0.03989138454198837,
-0.0354008786380291,
0.07219687104225159,
-0.04407671093940735,
-0.01062135398387909,
0.05929211527109146,
-0.01230529323220253,
0.02968965470790863,
-0.028752315789461136,
-0.022496124729514122,
-0.0050082216039299965,
-0.004596773535013199,
0.006021855399012566,
0.021624183282256126,
0.024218212813138962,
0.03740634769201279,
-0.02613648772239685,
-0.039433613419532776,
0.046561747789382935,
-0.005367897916585207,
-0.0867583155632019,
-0.046648941934108734,
-0.05667628347873688,
0.06870909780263901,
-0.02982044592499733,
0.02476317621767521,
0.01605464704334736,
-0.062213122844696045,
-0.0004877430328633636,
-0.04337915778160095,
-0.010223530232906342,
0.051619015634059906,
-0.009231694974005222,
-0.04861081391572952,
0.018190907314419746,
0.012926552444696426,
0.003177141770720482,
0.034376345574855804,
0.0015599601902067661,
0.020098282024264336,
-0.01590205729007721,
-0.02840353734791279,
0.07494349032640457,
0.06735758483409882,
0.014452452771365643,
-0.005049094092100859,
0.025504328310489655,
-0.02288850024342537,
0.0020994748920202255,
0.037907715886831284,
-0.005907412618398666,
-0.026855839416384697,
-0.04582059755921364,
-0.10672580450773239,
-0.01154234353452921,
0.04433829337358475,
0.06330305337905884,
-0.007351567968726158,
0.025853104889392853,
0.034223757684230804,
-0.003997312858700752,
-0.007575003430247307,
-0.011967415921390057,
-0.046518150717020035,
-0.0710633397102356,
-0.008692179806530476,
0.001034750952385366,
-0.022169146686792374,
-0.03901944309473038,
-0.039193831384181976,
0.03134634718298912,
-0.006452376954257488,
0.00967311579734087,
-0.07721053808927536,
0.07167369872331619,
0.014539646916091442,
-0.016338029876351357,
0.053493693470954895,
0.01940072886645794,
0.035008504986763,
-0.04961354658007622,
-0.011738530360162258,
-0.044861458241939545,
-0.02104652114212513,
-0.020457958802580833,
0.04394591972231865,
0.001271810382604599,
-0.005411495454609394,
0.04586419463157654,
-0.014910222962498665,
-0.052098583430051804,
-0.023433463647961617,
-0.013493315316736698,
-0.004125379491597414,
-0.04311757534742355,
0.00892651453614235,
0.0077984388917684555,
-0.014027380384504795,
0.029057495296001434,
-0.0355098731815815,
0.08436047285795212,
0.006724859122186899,
0.0357060581445694,
-0.004198949784040451,
-0.02297569438815117,
0.004896503873169422,
0.0014932021731510758,
0.046779733151197433,
0.06591887772083282,
0.029406271874904633,
-0.0174061581492424,
0.016218136996030807,
-0.029471667483448982,
-0.018158210441470146,
-0.07542305439710617,
-0.018681375309824944,
0.04861081391572952,
-0.06334664672613144,
0.04891599342226982,
-0.013515113852918148,
0.02783677540719509,
-0.034114763140678406,
0.01937893033027649,
0.006441477686166763,
0.009117252193391323,
0.0003746629517991096,
0.04904678463935852,
0.007613150868564844,
-0.0007820237660780549,
0.05109585076570511,
-0.023913033306598663,
0.018833965063095093,
0.022234542295336723,
0.027727782726287842,
0.034114763140678406,
-0.02443619817495346,
-0.016239935532212257,
0.01738435961306095,
0.05419124662876129,
0.05467081815004349,
-0.018419792875647545,
0.044992249459028244,
-0.06003326550126076,
-0.03134634718298912,
-0.05432203784584999,
-0.023891234770417213,
0.012610473670065403,
0.016468821093440056,
0.004686692729592323,
0.0174715556204319,
0.0086867306381464,
0.027487998828291893,
-0.02986404299736023,
0.0012799848336726427,
-0.009547773748636246,
-0.012403386645019054,
0.03330821543931961,
0.002468688180670142,
0.01933533325791359,
0.02960245870053768,
-0.007580453064292669,
-0.05737384036183357,
0.04431649670004845,
0.03282864764332771,
0.025155551731586456,
-0.0063052368350327015,
0.01956421695649624,
0.0019509721314534545,
0.018768569454550743,
-0.024981163442134857,
0.010970130562782288,
0.06256189942359924,
0.008833871223032475,
-0.05650189518928528,
0.022125549614429474,
-0.02995123714208603,
0.023128284141421318,
-0.005555910989642143,
0.02467598207294941,
-0.06452377140522003,
-0.018234504386782646,
0.01930263452231884,
0.029101092368364334,
-0.009149949997663498,
0.06312866508960724,
-0.025373537093400955,
-0.05018031224608421,
0.024218212813138962,
0.0036567102652043104,
-0.012872056104242802,
0.06391341239213943,
-0.02798936516046524,
-0.027117421850562096,
0.013624106533825397,
-0.01936803013086319,
0.05833297595381737,
-0.013722200877964497,
-0.039499010890722275,
0.014681337401270866,
-0.05964089184999466,
-0.020545152947306633,
0.04045814648270607,
0.021787671372294426,
-0.031237352639436722,
0.01487752515822649,
0.022496124729514122,
-0.016468821093440056,
0.05475801229476929,
-0.004828383680433035,
0.0017820332432165742,
-0.014408855699002743,
-0.02456698939204216,
0.025853104889392853,
0.004899228923022747,
-0.04331376031041145,
-0.007907431572675705,
0.024959363043308258,
-0.016937490552663803,
0.022496124729514122,
0.03149893507361412,
-0.02796756662428379,
0.027400804683566093,
0.008021874353289604,
-0.0023433463647961617,
-0.03160792961716652,
-0.08305255323648453,
0.003449623938649893,
-0.04414210841059685,
-0.02644166722893715,
0.03631642088294029,
-0.0028992099687457085,
-0.01775493659079075,
-0.018703173846006393,
-0.02611468732357025,
0.02445799671113491,
0.009754860773682594,
-0.01049056276679039,
-0.01909554749727249,
0.011487847194075584,
-0.0172426700592041,
0.03677418828010559,
-0.008463295176625252,
0.01909554749727249,
0.010381569154560566,
0.02284490317106247,
0.0065014236606657505,
0.008065471425652504,
0.025722313672304153,
-0.0265942569822073,
-0.027030227705836296,
-0.04948275536298752,
-0.007803888525813818,
0.029493466019630432,
0.06600607186555862,
0.0049046785570681095,
0.023411665111780167,
-0.031215554103255272,
-0.01604374870657921
] |
20,883 | precession.precession | inspiral_precav |
Perform precession-averaged inspirals. The variables q, chi1, and chi2 must always be provided.
The integration range must be specified using either r or u (and not both). These need to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned. For past time infinity use either u=0 or r=np.inf.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- theta1,theta2, and deltaphi (but note that deltaphi is not necessary if integrating from infinite separation).
- kappa, chieff.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
u: float, optional (default: None)
Compactified separation 1/(2L).
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
requested_outputs: list, optional (default: None)
Set of outputs.
enforce: boolean, optional (default: False)
If True raise errors, if False raise warnings.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_precav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(kappa,u=u,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
| def inspiral_precav(theta1=None, theta2=None, deltaphi=None, kappa=None, r=None, u=None, chieff=None, q=None, chi1=None, chi2=None, requested_outputs=None, enforce=False, **odeint_kwargs):
"""
Perform precession-averaged inspirals. The variables q, chi1, and chi2 must always be provided.
The integration range must be specified using either r or u (and not both). These need to be arrays with lenght >=1, where e.g. r[0] corresponds to the initial condition and r[1:] corresponds to the location where outputs are returned. For past time infinity use either u=0 or r=np.inf.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
The initial conditions must be specified in terms of one an only one of the following:
- theta1,theta2, and deltaphi (but note that deltaphi is not necessary if integrating from infinite separation).
- kappa, chieff.
The desired outputs can be specified with a list e.g. requested_outputs=['theta1','theta2','deltaphi']. All the available variables are returned by default. These are: ['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'].
The flag enforce allows checking the consistency of the input variables.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
theta1: float, optional (default: None)
Angle between orbital angular momentum and primary spin.
theta2: float, optional (default: None)
Angle between orbital angular momentum and secondary spin.
deltaphi: float, optional (default: None)
Angle between the projections of the two spins onto the orbital plane.
kappa: float, optional (default: None)
Asymptotic angular momentum.
r: float, optional (default: None)
Binary separation.
u: float, optional (default: None)
Compactified separation 1/(2L).
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
requested_outputs: list, optional (default: None)
Set of outputs.
enforce: boolean, optional (default: False)
If True raise errors, if False raise warnings.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
outputs: dictionary
Set of outputs.
Examples
--------
``outputs = precession.inspiral_precav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,r=r,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(theta1=theta1,theta2=theta2,deltaphi=deltaphi,u=u,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(kappa,r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``outputs = precession.inspiral_precav(kappa,u=u,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
"""
# Substitute None inputs with arrays of Nones
inputs = [theta1, theta2, deltaphi, kappa, r, u, chieff, q, chi1, chi2]
for k, v in enumerate(inputs):
if v is None:
inputs[k] = np.atleast_1d(np.squeeze(tiler(None, np.atleast_1d(q))))
else:
if k == 4 or k == 5: # Either u or r
inputs[k] = np.atleast_2d(inputs[k])
else: # Any of the others
inputs[k] = np.atleast_1d(inputs[k])
theta1, theta2, deltaphi, kappa, r, u, chieff, q, chi1, chi2 = inputs
# This array has to match the outputs of _compute (in the right order!)
alloutputs = np.array(['theta1', 'theta2', 'deltaphi', 'deltachi', 'kappa', 'r', 'u', 'deltachiminus', 'deltachiplus', 'deltachi3', 'chieff', 'q', 'chi1', 'chi2'])
# If in doubt, return everything
if requested_outputs is None:
requested_outputs = alloutputs
def _compute(theta1, theta2, deltaphi, kappa, r, u, chieff, q, chi1, chi2):
# Make sure you have q, chi1, and chi2.
if q is None or chi1 is None or chi2 is None:
raise TypeError("Please provide q, chi1, and chi2.")
# Make sure you have either r or u.
if r is not None and u is None:
assert np.logical_or(ismonotonic(r, '<='), ismonotonic(r, '>=')), 'r must be monotonic'
u = eval_u(r, tiler(q, r))
elif r is None and u is not None:
assert np.logical_or(ismonotonic(u, '<='), ismonotonic(u, '>=')), 'u must be monotonic'
r = eval_r(u=u, q=tiler(q, u))
else:
raise TypeError("Please provide either r or u. Use np.inf for infinity.")
assert np.sum(u == 0) <= 1 and np.sum(u[1:-1] == 0) == 0, "There can only be one r=np.inf location, either at the beginning or at the end."
# User provided theta1,theta2, and deltaphi. Get chieff and kappa.
if theta1 is not None and theta2 is not None and deltaphi is not None and kappa is None and chieff is None:
deltachi, kappa, chieff = angles_to_conserved(theta1, theta2, deltaphi, r[0], q, chi1, chi2)
# User provides kappa, chieff
elif theta1 is None and theta2 is None and deltaphi is None and kappa is not None and chieff is not None:
pass
else:
raise TypeError("Please provide one and not more of the following: (theta1,theta2,deltaphi), (kappa,chieff).")
# Enforce limits. Uncomment if you want to be more restrictive (though some integrations are going to fail for roundoff errors in the resonant finder)
if enforce:
chieffmin, chieffmax = chiefflimits(q, chi1, chi2)
assert chieff >= chieffmin and chieff <= chieffmax, "Unphysical initial conditions [inspiral_precav]."+str(theta1)+" "+str(theta2)+" "+str(deltaphi)+" "+str(kappa)+" "+str(r)+" "+str(u)+" "+str(chieff)+" "+str(q)+" "+str(chi1)+" "+str(chi2)
kappamin,kappamax = kappalimits(r=r[0], chieff=chieff, q=q, chi1=chi1, chi2=chi2)
assert kappa >= kappamin and kappa <= kappamax, "Unphysical initial conditions [inspiral_precav]."+str(theta1)+" "+str(theta2)+" "+str(deltaphi)+" "+str(kappa)+" "+str(r)+" "+str(u)+" "+str(chieff)+" "+str(q)+" "+str(chi1)+" "+str(chi2)
# Actual integration.
kappa = np.squeeze(integrator_precav(kappa, u, chieff, q, chi1, chi2,**odeint_kwargs))
deltachiminus = None
deltachiplus = None
deltachi3 = None
deltachi=None
theta1=None
theta2=None
deltaphi=None
# Roots along the evolution
if any(x in requested_outputs for x in ['theta1', 'theta2', 'deltaphi', 'deltachi', 'deltachiminus', 'deltachiplus', 'deltachi3']):
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, tiler(chieff,r), tiler(q,r),tiler(chi1,r),tiler(chi2,r))
# Resample deltachi
if any(x in requested_outputs for x in ['theta1', 'theta2', 'deltaphi', 'deltachi']):
deltachi = deltachisampling(kappa, r, tiler(chieff,r), tiler(q,r),tiler(chi1,r),tiler(chi2,r), precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
# Compute the angles. Assign random cyclesign
if any(x in requested_outputs for x in ['theta1', 'theta2', 'deltaphi']):
theta1,theta2,deltaphi = conserved_to_angles(deltachi, kappa, r, tiler(chieff,r), tiler(q,r),tiler(chi1,r),tiler(chi2,r), cyclesign = np.random.choice([-1, 1], r.shape))
return theta1, theta2, deltaphi, deltachi, kappa, r, u, deltachiminus, deltachiplus, deltachi3, chieff, q, chi1, chi2
# Here I force dtype=object because the outputs have different shapes
allresults = np.array(list(map(_compute, theta1, theta2, deltaphi, kappa, r, u, chieff, q, chi1, chi2)), dtype=object).T
# Return only requested outputs (in1d return boolean array)
wa | (theta1=None, theta2=None, deltaphi=None, kappa=None, r=None, u=None, chieff=None, q=None, chi1=None, chi2=None, requested_outputs=None, enforce=False, **odeint_kwargs) | [
-0.033101096749305725,
-0.05061771348118782,
-0.03261275589466095,
0.013662961311638355,
-0.0033387732692062855,
-0.010568358935415745,
-0.05707232281565666,
-0.05074510723352432,
-0.04065978154540062,
0.042294666171073914,
0.035627737641334534,
0.031211426481604576,
0.018015574663877487,
0.03647702559828758,
-0.05749696493148804,
0.06089412793517113,
0.016773486509919167,
0.016550548374652863,
0.001177727011963725,
-0.017187517136335373,
-0.0395132414996624,
-0.04136044904589653,
-0.018726855516433716,
0.08208392560482025,
-0.03577636182308197,
-0.010276415385305882,
0.02032989077270031,
-0.04917392134666443,
-0.03702906519174576,
-0.009841153398156166,
-0.0008705227519385517,
0.016646094620227814,
0.0012586750090122223,
-0.00893347430974245,
0.029258057475090027,
-0.036031149327754974,
0.04223097115755081,
0.03995911777019501,
-0.06552276015281677,
0.04768766090273857,
-0.03324972465634346,
-0.05125468224287033,
0.027877960354089737,
-0.06195574253797531,
-0.03985295817255974,
0.039194755256175995,
-0.021094253286719322,
0.055416204035282135,
0.014395473524928093,
-0.006077735219150782,
0.05201904475688934,
-0.09044943749904633,
0.03719892352819443,
0.009676603600382805,
0.014597180299460888,
0.07078836113214493,
0.015032441355288029,
-0.013079073280096054,
0.01978846825659275,
-0.12416627258062363,
-0.009501437656581402,
-0.003649295074865222,
0.05278340354561806,
0.07405813038349152,
0.018058039247989655,
0.03186962753534317,
-0.0076383063569664955,
-0.0061945123597979546,
0.006183896213769913,
0.03800575062632561,
-0.022676056250929832,
-0.013811586424708366,
-0.004559628199785948,
-0.0374961756169796,
0.03445996344089508,
0.011391108855605125,
-0.0093740439042449,
-0.04781505465507507,
-0.02634923718869686,
-0.040808409452438354,
-0.04142414405941963,
0.021847998723387718,
-0.05032046139240265,
-0.04284670576453209,
0.02059529535472393,
0.05567099153995514,
-0.000039333594031631947,
-0.01556324865669012,
-0.01881178468465805,
-0.024480799213051796,
-0.0434199757874012,
-0.019002875313162804,
0.03647702559828758,
0.07448277622461319,
0.045352112501859665,
0.04671097919344902,
-0.03193332254886627,
-0.08357018232345581,
0.024990372359752655,
-0.05681753531098366,
0.016306377947330475,
0.013355093076825142,
0.02910943143069744,
0.035521574318408966,
0.027708102017641068,
-0.054439522325992584,
-0.05044785514473915,
0.0453096479177475,
0.07125547528266907,
-0.06272010505199432,
-0.06212560087442398,
0.037581104785203934,
-0.037135228514671326,
-0.03647702559828758,
-0.05877090245485306,
-0.026880044490098953,
-0.06501318514347076,
0.04976842179894447,
-0.014968745410442352,
0.036901671439409256,
-0.0013721350114792585,
-0.00009645750833442435,
-0.0005994796520099044,
0.015425238758325577,
0.018599461764097214,
-0.049216385930776596,
0.00363867892883718,
0.07393074035644531,
-0.03405654802918434,
-0.017240596935153008,
-0.018355291336774826,
0.0003271095338277519,
0.014745806343853474,
0.05010813847184181,
-0.04607401043176651,
0.018620694056153297,
0.0038058829959481955,
-0.020011408254504204,
0.0037766885943710804,
-0.028217677026987076,
0.03855779021978378,
-0.016401922330260277,
-0.026030754670500755,
-0.011465421877801418,
0.011348644271492958,
0.04267684742808342,
0.06824049353599548,
-0.019469983875751495,
-0.031784698367118835,
-0.00041104332194663584,
-0.008402667939662933,
-0.0007311860099434853,
-0.008673379197716713,
-0.0337805300951004,
0.02881217934191227,
-0.07223215699195862,
0.04412063956260681,
-0.0031662611290812492,
-0.04547950625419617,
-0.05431212857365608,
-0.04257068783044815,
-0.05813393369317055,
0.053165584802627563,
0.043165188282728195,
0.0061998204328119755,
0.014522867277264595,
0.018079271540045738,
0.03496953472495079,
0.02564857341349125,
0.04310149326920509,
0.022336339578032494,
-0.04344120994210243,
-0.055755920708179474,
-0.026646489277482033,
-0.04734794422984123,
0.02103055641055107,
0.00910333264619112,
-0.07860183715820312,
-0.02203908935189247,
-0.015478319488465786,
-0.00573801901191473,
-0.05422719940543175,
-0.043568603694438934,
-0.025988290086388588,
0.01867377571761608,
0.055883314460515976,
0.06849528104066849,
-0.020850080996751785,
0.015372158028185368,
0.0009216128964908421,
-0.00019175387569703162,
-0.01357803214341402,
0.014522867277264595,
0.04819723591208458,
0.05354776605963707,
-0.022930843755602837,
0.041848789900541306,
0.015573864802718163,
0.021826766431331635,
-0.004288916941732168,
0.0017436995403841138,
-0.0042119501158595085,
0.00021962121536489576,
-0.01864192634820938,
0.002589009003713727,
-0.008859161287546158,
-0.06875006854534149,
0.005982189904898405,
0.02265482395887375,
0.03664688393473625,
0.01749538443982601,
-0.016922112554311752,
0.011136321350932121,
-0.032994937151670456,
-0.019077187404036522,
0.08909057080745697,
0.0773278996348381,
0.016805335879325867,
0.0035272096283733845,
0.029895026236772537,
0.03904613107442856,
-0.010722292587161064,
0.005042662378400564,
-0.007346362806856632,
0.024799281731247902,
0.0026779191102832556,
0.007749775890260935,
0.0691322460770607,
0.009416508488357067,
-0.06620219349861145,
0.023504113778471947,
-0.017484767362475395,
-0.030808012932538986,
-0.03864271938800812,
0.02399245649576187,
-0.0033228490501642227,
-0.03106280043721199,
0.0019945057574659586,
-0.020605910569429398,
0.025499947369098663,
-0.02305823750793934,
-0.007319822441786528,
-0.008705227635800838,
-0.0047109080478549,
-0.07456770539283752,
0.011921915225684643,
0.028706019744277,
-0.0038748879451304674,
0.021094253286719322,
0.008721151389181614,
0.03794205188751221,
-0.07847443968057632,
-0.03450242802500725,
-0.004567590542137623,
0.0066403900273144245,
-0.01504305750131607,
0.06637205183506012,
0.012389024719595909,
0.07435538619756699,
-0.0296827033162117,
0.04942870885133743,
-0.02120041474699974,
-0.016433771699666977,
0.04981088638305664,
-0.06038455292582512,
-0.00529214134439826,
0.004729486536234617,
-0.03348327800631523,
-0.0026367816608399153,
-0.02600952237844467,
-0.031253889203071594,
0.09885741770267487,
-0.067178875207901,
-0.002257254905998707,
0.00283981510438025,
0.055076487362384796,
0.036901671439409256,
0.022569894790649414,
-0.03193332254886627,
0.053123120218515396,
0.022973308339715004,
-0.015531400218605995,
0.002401899779215455,
0.009947314858436584,
-0.03745371103286743,
-0.0076436144299805164,
-0.053632695227861404,
0.0016163060208782554,
0.09044943749904633,
-0.025436250492930412,
0.0494711697101593,
0.022463733330368996,
0.00480379955843091,
-0.0337805300951004,
0.11397478729486465,
0.05643535405397415,
-0.07448277622461319,
-0.05125468224287033,
0.03881257399916649,
-0.03318602591753006,
0.005860104225575924,
0.0035325177013874054,
0.08611805737018585,
-0.06875006854534149,
0.0008287217351607978,
0.028514929115772247,
0.10021627694368362,
-0.012473953887820244,
0.008126648142933846,
-0.019438136368989944,
0.0013515661703422666,
0.0023740322794765234,
-0.011741440743207932,
0.019300127401947975,
-0.006714703049510717,
-0.09766840934753418,
0.04773012548685074,
-0.008397359400987625,
0.04870681092143059,
0.020106952637434006,
-0.03184839338064194,
0.0305319931358099,
0.01949121616780758,
-0.025584876537322998,
0.026837579905986786,
-0.04407817870378494,
0.005976881831884384,
-0.015414622612297535,
0.0006588636315427721,
-0.038111910223960876,
0.0020144109148532152,
0.011454805731773376,
-0.04314395785331726,
0.05724218115210533,
-0.010371959768235683,
-0.03745371103286743,
-0.01196437980979681,
-0.04027760028839111,
0.03881257399916649,
0.005722094792872667,
0.044375427067279816,
0.019671691581606865,
-0.010180870071053505,
0.04904652759432793,
-0.00932096317410469,
-0.03526678681373596,
0.06212560087442398,
-0.021784301847219467,
-0.015605713240802288,
0.0353517159819603,
-0.019703539088368416,
0.08815635740756989,
0.015425238758325577,
0.08522630482912064,
0.047645196318626404,
0.04709315672516823,
-0.03341957926750183,
-0.0266889538615942,
0.0187480878084898,
-0.02399245649576187,
0.0015035095857456326,
0.023419184610247612,
-0.007553377188742161,
0.053292978554964066,
0.020690839737653732,
-0.048919133841991425,
-0.02743208222091198,
0.0010417079320177436,
-0.019469983875751495,
-0.036965370178222656,
0.004663135856389999,
-0.04734794422984123,
0.004185409750789404,
0.011868834495544434,
0.010425040498375893,
0.05214643478393555,
-0.010042860172688961,
0.012898599728941917,
-0.035691432654857635,
0.012760589830577374,
-0.0031158344354480505,
0.021380888298153877,
-0.039194755256175995,
0.026561560109257698,
-0.011433573439717293,
-0.014076990075409412,
0.023886295035481453,
-0.02675265073776245,
0.049895815551280975,
-0.0042172581888735294,
-0.002208155347034335,
-0.00954390224069357,
0.06280503422021866,
-0.012558883056044579,
0.017697090283036232,
0.03318602591753006,
0.029703935608267784,
0.037411246448755264,
-0.06331460922956467,
-0.028599858283996582,
-0.0045888228341937065,
-0.07384581118822098,
0.019427519291639328,
-0.0006515650311484933,
-0.002869009505957365,
-0.08458933234214783,
0.059959910809993744,
-0.029895026236772537,
0.0010350728407502174,
0.05469430983066559,
-0.04509732499718666,
0.000847299990709871,
-0.00043692014878615737,
0.0006014701793901622,
-0.0693870335817337,
0.04250698909163475,
-0.027368387207388878,
0.009814613498747349,
0.013981444761157036,
0.051042359322309494,
0.044715143740177155,
-0.02113671787083149,
0.016869032755494118,
0.07804979383945465,
0.05567099153995514,
0.0005905223079025745,
0.0075746094807982445,
0.0014636990381404757,
0.004169485531747341,
-0.0061520482413470745,
0.01256949920207262,
-0.00003653442036011256,
-0.016603630036115646,
-0.0276656374335289,
-0.027814263477921486,
0.03242166340351105,
0.014512251131236553,
0.030956638976931572,
0.06942950189113617,
0.019576145336031914,
0.008774232119321823,
-0.00040407650521956384,
0.02433217316865921,
-0.047602731734514236,
-0.004541050177067518,
-0.0019825624767690897,
-0.038387931883335114,
0.008710535243153572,
-0.07286912202835083,
-0.01290921587496996,
0.06114891543984413,
0.008763615973293781,
-0.0058866445906460285,
-0.0037607643753290176,
0.05422719940543175,
0.006688162684440613,
-0.002520004054531455,
0.03184839338064194,
-0.06063934043049812,
-0.024374637752771378,
0.007181812543421984,
0.0493437796831131,
0.04930131509900093,
-0.008169112727046013,
0.05592577904462814,
0.021094253286719322,
0.010122480802237988,
-0.023780133575201035,
-0.029427915811538696,
-0.02702867053449154,
0.027113599702715874,
-0.02093501016497612,
-0.0005543610895983875,
0.012962296605110168,
0.04467267915606499,
-0.022867146879434586,
-0.02692250907421112,
0.005451383534818888,
-0.02577596716582775,
-0.043059028685092926,
-0.03254905715584755,
-0.020605910569429398,
0.007733851671218872,
0.030871709808707237,
0.011444189585745335,
-0.043568603694438934,
0.006603233516216278,
-0.025691037997603416,
0.0061945123597979546,
-0.04244329407811165,
-0.03227303922176361,
0.0030707160476595163,
0.03940707817673683,
0.008864469826221466,
-0.043865855783224106,
0.030149811878800392,
0.07295405119657516,
-0.02524515986442566,
0.05677507072687149,
-0.020276810973882675,
0.05766682326793671,
0.026497863233089447,
-0.050702642649412155,
-0.03201825171709061,
0.015998510643839836,
-0.013089689426124096,
-0.01196437980979681,
-0.022718520835042,
-0.055076487362384796,
0.03509692847728729,
-0.030234741047024727,
-0.052358757704496384,
0.07885662466287613,
-0.04773012548685074,
-0.0068845609202980995,
0.04254945367574692,
0.004663135856389999,
-0.0009780110558494925,
-0.03605238348245621,
-0.04051115736365318,
-0.0027734641917049885,
0.019714156165719032,
0.002969862660393119,
0.0333983488380909,
0.039024896919727325,
0.051976580172777176,
-0.01713443547487259,
-0.0455644354224205,
0.022824682295322418,
-0.001103414106182754,
-0.0812346339225769,
-0.034948304295539856,
-0.02732592262327671,
0.05015060305595398,
-0.03288877382874489,
0.004742756485939026,
-0.017845716327428818,
-0.06412143260240555,
0.010706367902457714,
-0.04823970049619675,
-0.01009594090282917,
0.05626549571752548,
-0.00893347430974245,
-0.07371841371059418,
0.04061731696128845,
-0.01696457713842392,
-0.017081355676054955,
0.03167853504419327,
-0.0034024701453745365,
0.01927889510989189,
-0.021497664973139763,
-0.03076554834842682,
0.06896238774061203,
0.08492904901504517,
0.02749577909708023,
0.025393785908818245,
0.04278300702571869,
-0.021550746634602547,
-0.006852712482213974,
0.04547950625419617,
-0.012994145043194294,
-0.05308065563440323,
-0.016497468575835228,
-0.10437779873609543,
-0.02016003243625164,
0.021847998723387718,
0.017251214012503624,
0.02403492107987404,
0.006582001224160194,
-0.0032883465755730867,
-0.0071924286894500256,
-0.006799632217735052,
-0.02076515182852745,
-0.04320765286684036,
-0.09996148943901062,
-0.004981619771569967,
0.0047772591933608055,
-0.03397161886096001,
-0.03930091857910156,
-0.030298437923192978,
0.021497664973139763,
0.0036015224177390337,
0.03622223809361458,
-0.08229625225067139,
0.05418473482131958,
0.010902767069637775,
-0.0055734687484800816,
0.04981088638305664,
0.019565530121326447,
0.026434166356921196,
-0.053123120218515396,
-0.009798688814043999,
-0.04573429375886917,
-0.017410455271601677,
-0.024544496089220047,
0.023801365867257118,
0.005061240401118994,
0.009581058286130428,
0.05057524889707565,
-0.04484253749251366,
-0.05010813847184181,
-0.024523263797163963,
-0.01107262447476387,
-0.026136914268136024,
-0.02577596716582775,
0.018047422170639038,
-0.0038111910689622164,
-0.013079073280096054,
0.030574457719922066,
-0.02675265073776245,
0.05830379202961922,
0.005690246354788542,
0.03248536214232445,
0.0019414250273257494,
0.00760645791888237,
0.011826369911432266,
-0.018864864483475685,
0.03904613107442856,
0.05388748273253441,
0.02358904294669628,
-0.022994540631771088,
0.01888609677553177,
-0.01716628484427929,
-0.014660877175629139,
-0.05567099153995514,
-0.011210634373128414,
0.0434199757874012,
-0.09384659677743912,
0.02403492107987404,
0.001219528028741479,
0.031614840030670166,
-0.026646489277482033,
-0.0005530340713448822,
0.014979361556470394,
-0.006544844713062048,
0.006985414307564497,
0.05877090245485306,
-0.0008313757716678083,
-0.011539734899997711,
0.00673062726855278,
-0.015287228859961033,
0.04089333862066269,
0.006274133455008268,
0.015085522085428238,
0.05061771348118782,
-0.044545285403728485,
-0.026646489277482033,
0.009177645668387413,
0.06403650343418121,
0.042995329946279526,
-0.029024502262473106,
0.028026586398482323,
-0.04756026715040207,
-0.03093540668487549,
-0.06526797264814377,
-0.037581104785203934,
0.010451581329107285,
0.03991665318608284,
-0.017728939652442932,
0.015064289793372154,
0.012070541270077229,
0.043165188282728195,
-0.04441789165139198,
-0.01894979365170002,
0.0005649772356264293,
-0.009947314858436584,
0.030574457719922066,
-0.03337711840867996,
-0.014851967804133892,
0.039895422756671906,
0.0013840780593454838,
-0.022569894790649414,
0.04641372710466385,
0.020818233489990234,
0.037878356873989105,
0.0026779191102832556,
-0.0021696719340980053,
0.008853853680193424,
-0.017718322575092316,
-0.028769714757800102,
0.03564896807074547,
0.06628712266683578,
0.009225417859852314,
-0.02065899223089218,
0.01854638196527958,
-0.048282165080308914,
0.03524555638432503,
-0.00959167443215847,
0.007914326153695583,
-0.03581882640719414,
-0.0029380142223089933,
0.010722292587161064,
0.029258057475090027,
-0.01736799068748951,
0.050532784312963486,
-0.02032989077270031,
-0.06645698100328445,
0.022676056250929832,
-0.008981247432529926,
-0.01992647908627987,
0.05894076079130173,
0.004315457306802273,
-0.029194360598921776,
0.0006183896330185235,
-0.02915189601480961,
0.06148863211274147,
-0.01625329628586769,
-0.03985295817255974,
0.010748832486569881,
-0.06620219349861145,
-0.012537650763988495,
0.044035714119672775,
0.028026586398482323,
-0.047772590070962906,
-0.011826369911432266,
0.02639170177280903,
-0.005615933332592249,
0.04743287339806557,
0.02130657620728016,
0.0024762125685811043,
-0.008944090455770493,
-0.02208155207335949,
0.009782765060663223,
0.0016813297988846898,
-0.06998153775930405,
0.0003130100085400045,
0.026073217391967773,
-0.05537373945116997,
0.030149811878800392,
0.02248496562242508,
-0.025521179661154747,
0.01827036216855049,
0.00876892451196909,
-0.003519247518852353,
-0.028769714757800102,
-0.0848865881562233,
0.00202369992621243,
-0.05664767697453499,
-0.003466166788712144,
0.020818233489990234,
-0.022718520835042,
-0.006242285016924143,
-0.012665044516324997,
-0.04458774998784065,
0.015255380421876907,
0.00441631069406867,
-0.0187480878084898,
-0.007256125565618277,
0.019024107605218887,
0.007797548547387123,
0.03934338316321373,
0.004185409750789404,
0.0067040869034826756,
0.005406264681369066,
0.02588212862610817,
0.041785091161727905,
0.020690839737653732,
0.011401725001633167,
-0.019427519291639328,
-0.01305784098803997,
-0.04781505465507507,
-0.002720383694395423,
0.00876892451196909,
0.06891992688179016,
0.031572375446558,
0.015478319488465786,
-0.010711676441133022,
0.0019891976844519377
] |
20,884 | precession.precession | integrator_orbav |
Integration of the systems of ODEs describing orbit-averaged inspirals.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
Lhinitial: array
Initial direction of the orbital angular momentum, unit vector.
S1hinitial: array
Initial direction of the primary spin, unit vector.
S2hinitial: array
Initial direction of the secondary spin, unit vector.
v: float
Newtonian orbital velocity.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
ODEsolution: array
Solution of the ODE.
Examples
--------
``ODEsolution = precession.integrator_orbavintegrator_orbav(Lhinitial,S1hinitial,S2hinitial,v,q,chi1,chi2)``
| def integrator_orbav(Lhinitial, S1hinitial, S2hinitial, v, q, chi1, chi2, PNorderpre=[0,0.5], PNorderrad=[0,1,1.5,2,2.5,3,3.5], **odeint_kwargs):
"""
Integration of the systems of ODEs describing orbit-averaged inspirals.
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
Lhinitial: array
Initial direction of the orbital angular momentum, unit vector.
S1hinitial: array
Initial direction of the primary spin, unit vector.
S2hinitial: array
Initial direction of the secondary spin, unit vector.
v: float
Newtonian orbital velocity.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
ODEsolution: array
Solution of the ODE.
Examples
--------
``ODEsolution = precession.integrator_orbavintegrator_orbav(Lhinitial,S1hinitial,S2hinitial,v,q,chi1,chi2)``
"""
Lhinitial = np.atleast_2d(Lhinitial).astype(float)
S1hinitial = np.atleast_2d(S1hinitial).astype(float)
S2hinitial = np.atleast_2d(S2hinitial).astype(float)
v = np.atleast_2d(v).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
# Defaults for the integrators, can be changed by the user
if 'mxstep' not in odeint_kwargs: odeint_kwargs['mxstep']=5000000
if 'rol' not in odeint_kwargs: odeint_kwargs['rtol']=1e-10
if 'aol' not in odeint_kwargs: odeint_kwargs['atol']=1e-10
odeint_kwargs['full_output']=0 # This needs to be forced for compatibility with the rest of the code
def _compute(Lhinitial, S1hinitial, S2hinitial, v, q, chi1, chi2):
# I need unit vectors
assert np.isclose(np.linalg.norm(Lhinitial), 1)
assert np.isclose(np.linalg.norm(S1hinitial), 1)
assert np.isclose(np.linalg.norm(S2hinitial), 1)
# Pack inputs
ic = np.concatenate([Lhinitial, S1hinitial, S2hinitial, [0]])
# Compute these quantities here instead of inside the RHS for speed
m1 = eval_m1(q).item()
m2 = eval_m2(q).item()
S1 = eval_S1(q, chi1).item()
S2 = eval_S2(q, chi2).item()
eta = eval_eta(q).item()
# solve_ivp implementation. Didn't really work.
#ODEsolution = scipy.integrate.solve_ivp(rhs_orbav, (vinitial, vfinal), ic, method='LSODA', t_eval=(vinitial, vfinal), dense_output=True, args=(q, m1, m2, eta, chi1, chi2, S1, S2, quadrupole_formula),rtol=1e-12,atol=1e-12)
#ODEsolution = scipy.integrate.solve_ivp(rhs_orbav, (vinitial, vfinal), ic, t_eval=(vinitial, vfinal), dense_output=True, args=(q, m1, m2, eta, chi1, chi2, S1, S2, quadrupole_formula))
# Make sure the first step is large enough. This is to avoid LSODA to propose a tiny step which causes the integration to stall
if 'h0' not in odeint_kwargs: odeint_kwargs['h0']= np.sign(v[-1]-v[0]) * v[0]/1e6
ODEsolution = scipy.integrate.odeint(rhs_orbav, ic, v, args=(q, m1, m2, eta, chi1, chi2, S1, S2, PNorderpre, PNorderrad), **odeint_kwargs)#, printmessg=0,rtol=1e-10,atol=1e-10)#,tcrit=sing)
return ODEsolution
ODEsolution = np.array(list(map(_compute, Lhinitial, S1hinitial, S2hinitial, v, q, chi1, chi2)))
return ODEsolution
| (Lhinitial, S1hinitial, S2hinitial, v, q, chi1, chi2, PNorderpre=[0, 0.5], PNorderrad=[0, 1, 1.5, 2, 2.5, 3, 3.5], **odeint_kwargs) | [
-0.006105136126279831,
-0.03279271721839905,
-0.015628740191459656,
-0.011268658563494682,
0.01290624774992466,
-0.017143508419394493,
-0.05412231385707855,
-0.06136864423751831,
-0.04572967067360878,
0.04855451360344887,
-0.0029860411304980516,
-0.014011620543897152,
-0.016959279775619507,
0.018238646909594536,
-0.0816338062286377,
0.0815519317984581,
-0.008116300217807293,
-0.021043017506599426,
-0.024666182696819305,
0.010378220118582249,
-0.05002834275364876,
-0.057151854038238525,
-0.034164197742938995,
0.04744913801550865,
-0.0015045348554849625,
0.0005859498050995171,
0.027040686458349228,
-0.03850381076335907,
-0.041123952716588974,
-0.03127794712781906,
0.029783649370074272,
0.03262896090745926,
-0.03594507649540901,
0.002937425160780549,
0.047776658087968826,
-0.05109277367591858,
0.0788908451795578,
0.032014865428209305,
-0.022946715354919434,
0.07143981754779816,
-0.008541049435734749,
-0.04609812796115875,
0.08187944442033768,
-0.033488694578409195,
-0.0548592284321785,
0.0038943912368267775,
-0.06255589425563812,
0.030786672607064247,
0.057847827672958374,
0.023478930816054344,
0.048595450818538666,
-0.09866473078727722,
0.009380314499139786,
-0.0694747120141983,
-0.03672293201088905,
0.08720161020755768,
0.0628834143280983,
0.05571896210312843,
0.023233292624354362,
-0.07324116677045822,
-0.012353561818599701,
-0.0187299232929945,
0.04128771275281906,
0.03330446407198906,
-0.006386596709489822,
0.027245385572314262,
0.01030657533556223,
0.02032657340168953,
0.040980663150548935,
0.07512439042329788,
-0.028842035681009293,
-0.010398689657449722,
0.00725656608119607,
-0.0280846506357193,
0.042863890528678894,
0.03866756707429886,
-0.059157900512218475,
-0.03166687488555908,
-0.0387699194252491,
-0.04757195711135864,
-0.01672387681901455,
-0.048882029950618744,
-0.020510802045464516,
0.010593153536319733,
0.004267966374754906,
0.014154909178614616,
-0.015812968835234642,
-0.011995338834822178,
0.04212697595357895,
-0.03545380011200905,
-0.008960681967437267,
-0.018944857642054558,
-0.011862284503877163,
0.008341468870639801,
-0.0143698425963521,
0.009892060421407223,
-0.016304245218634605,
-0.11078289151191711,
0.0014469634043052793,
-0.012066983617842197,
0.009794828481972218,
-0.00018358907254878432,
0.0116882910951972,
0.04265919327735901,
0.008397760801017284,
-0.005311929155141115,
-0.04507463425397873,
0.0032188857439905405,
0.05412231385707855,
-0.08310763537883759,
-0.03668199107050896,
0.07238142937421799,
-0.02027539722621441,
0.002073852811008692,
-0.09743653982877731,
0.0019126527477055788,
-0.004564779344946146,
0.06308811157941818,
-0.020439157262444496,
0.0240725576877594,
0.004564779344946146,
-0.009472428821027279,
-0.0314212366938591,
0.009615717455744743,
0.06235119700431824,
-0.045811548829078674,
-0.009211437776684761,
0.013121181167662144,
-0.05571896210312843,
-0.05268942564725876,
0.04663034528493881,
0.01834099553525448,
0.005291459150612354,
0.011258424259722233,
-0.001276807626709342,
-0.0013996268389746547,
-0.018944857642054558,
-0.03318164497613907,
-0.012742488645017147,
0.006601530592888594,
0.019415663555264473,
-0.01839216984808445,
-0.04200415685772896,
-0.005094436928629875,
-0.03668199107050896,
0.10464192926883698,
0.09203249961137772,
-0.02030610293149948,
-0.00016359897563233972,
0.01696951501071453,
-0.0058441455475986,
0.004618512466549873,
0.007205391302704811,
0.001693881000392139,
0.007230978459119797,
-0.08679221570491791,
0.035904135555028915,
-0.047244440764188766,
-0.019446369260549545,
-0.005859497934579849,
-0.027920890599489212,
-0.014328903518617153,
0.019681772217154503,
0.04536121338605881,
-0.0011955678928643465,
-0.007799017243087292,
0.01463595125824213,
0.0008251913241110742,
-0.0019958114717155695,
0.027716193348169327,
0.020019523799419403,
-0.03373433277010918,
-0.07872708886861801,
-0.017890658229589462,
-0.03594507649540901,
0.018893681466579437,
-0.018985796719789505,
-0.040980663150548935,
-0.006877873558551073,
-0.03768501430749893,
-0.030991369858384132,
0.008786688558757305,
-0.03140076622366905,
-0.015864143148064613,
-0.029640359804034233,
0.0788908451795578,
0.029742708429694176,
-0.04650752618908882,
0.013602223247289658,
-0.03889273852109909,
-0.03181016445159912,
-0.03956824168562889,
-0.011237953789532185,
0.020828085020184517,
0.005972082260996103,
0.033099766820669174,
0.043518926948308945,
0.009927882812917233,
0.0018307733116671443,
0.011043490841984749,
0.03490111231803894,
0.005578037351369858,
-0.034430306404829025,
-0.04638470709323883,
-0.0009160262998193502,
0.032158151268959045,
-0.026017194613814354,
-0.0068318163976073265,
0.07725325971841812,
0.027306795120239258,
0.008556402288377285,
0.012742488645017147,
-0.05653775855898857,
0.011074195615947247,
0.0006652704905718565,
0.03463500738143921,
0.03440983593463898,
-0.012353561818599701,
0.029497070237994194,
0.01416514441370964,
0.06333374977111816,
-0.02929237298667431,
-0.045115575194358826,
-0.016345184296369553,
-0.002279830863699317,
0.009538955986499786,
0.013858096674084663,
0.04061220586299896,
0.0037792481016367674,
-0.008397760801017284,
-0.007271918468177319,
0.007604553829878569,
-0.03786924481391907,
-0.017819015309214592,
-0.015229577198624611,
0.05772500857710838,
-0.013274705037474632,
-0.009492898359894753,
-0.05805252864956856,
0.010352632962167263,
-0.027224916964769363,
-0.03318164497613907,
0.010603388771414757,
0.014021854847669601,
-0.044460538774728775,
-0.009395666420459747,
-0.003334028646349907,
0.04261825233697891,
-0.018003243952989578,
-0.01330540981143713,
-0.008709926158189774,
-0.05297600105404854,
-0.006212602835148573,
0.06059079244732857,
-0.015321691520512104,
-0.0013433346757665277,
0.10333186388015747,
0.034307487308979034,
0.025177929550409317,
-0.08134722709655762,
0.02620142325758934,
-0.07778547704219818,
-0.009405901655554771,
0.03266989812254906,
-0.04020280763506889,
0.016130251809954643,
0.03836052119731903,
-0.04654846712946892,
0.040305156260728836,
0.027306795120239258,
0.018207941204309464,
0.0381353534758091,
-0.10488757491111755,
-0.0068369340151548386,
0.0320967435836792,
0.0842539519071579,
0.0143698425963521,
-0.01773713529109955,
-0.04515651613473892,
0.047408200800418854,
0.006325187161564827,
0.0031088602263480425,
-0.004590366501361132,
0.002538262866437435,
-0.03500346466898918,
0.012077218852937222,
-0.02968129888176918,
-0.0494551844894886,
0.06591295450925827,
-0.020695030689239502,
0.047244440764188766,
0.051665931940078735,
0.04871826991438866,
0.038708508014678955,
0.09710902720689774,
0.06325187534093857,
-0.02939472161233425,
0.01491229422390461,
0.02781854197382927,
-0.02966083027422428,
-0.03494205325841904,
0.011422182433307171,
0.05334445834159851,
-0.0788089707493782,
-0.01128912903368473,
-0.042986709624528885,
0.0654216781258583,
-0.021452415734529495,
0.044583357870578766,
-0.023335643112659454,
-0.008152122609317303,
0.027224916964769363,
0.0013804363552480936,
0.007138864137232304,
0.015270517207682133,
-0.014687125571072102,
0.007758077699691057,
-0.032424259930849075,
0.036825280636548996,
0.011626881547272205,
-0.004467547405511141,
0.028453107923269272,
0.021206777542829514,
-0.05174781009554863,
0.025444038212299347,
-0.022680606693029404,
-0.016222365200519562,
0.028268879279494286,
0.03088902123272419,
0.009446840733289719,
-0.02511652000248432,
0.00020821687940042466,
0.00858198944479227,
0.03524910286068916,
0.030254455283284187,
-0.07451029866933823,
0.03887226805090904,
-0.015321691520512104,
0.026672229170799255,
0.008305646479129791,
0.05530956760048866,
0.030008817091584206,
-0.04556591063737869,
0.021616173908114433,
-0.03621118515729904,
-0.0340823195874691,
0.08802040666341782,
-0.026795048266649246,
-0.028575927019119263,
0.040857844054698944,
-0.04130817949771881,
0.04495181515812874,
0.021698053926229477,
0.0481041744351387,
0.004196321591734886,
0.03252660855650902,
-0.02726585604250431,
-0.028125589713454247,
0.02966083027422428,
-0.03725514933466911,
-0.03557661920785904,
0.01342822890728712,
-0.032178621739149094,
0.014779239892959595,
0.03506487235426903,
-0.057847827672958374,
-0.007752960082143545,
-0.0354742705821991,
0.0034363779705017805,
-0.046302828937768936,
0.005260754376649857,
-0.053016941994428635,
0.013520343229174614,
-0.008029303513467312,
0.001771922456100583,
0.043518926948308945,
0.00394044816493988,
-0.0010292502120137215,
-0.034696415066719055,
-0.0628834143280983,
0.04141053184866905,
-0.010541979223489761,
0.002485808916389942,
-0.01592555269598961,
-0.004992087371647358,
-0.010050701908767223,
0.021861812099814415,
0.05432701110839844,
0.0374189056456089,
0.0032035333570092916,
-0.0029962758999317884,
-0.0027941360604017973,
0.03756219521164894,
-0.017808780074119568,
0.03287459909915924,
0.05330352112650871,
0.027347736060619354,
0.028453107923269272,
-0.035371921956539154,
-0.03526957333087921,
-0.013909270986914635,
-0.010071172378957272,
0.010296340100467205,
0.021575234830379486,
0.006171663291752338,
-0.09850097447633743,
0.04867733269929886,
-0.0011347979307174683,
0.0066117653623223305,
0.04212697595357895,
-0.02311047352850437,
0.04134912043809891,
0.008203296922147274,
-0.01055221352726221,
-0.06034515053033829,
0.028166528791189194,
-0.020889494568109512,
0.009861355647444725,
0.0113710081204772,
0.03050009347498417,
0.02833028882741928,
0.0012153980787843466,
0.0394044853746891,
0.05825722590088844,
0.010071172378957272,
0.034839704632759094,
-0.012077218852937222,
0.006734584458172321,
-0.027839012444019318,
-0.03934307396411896,
0.028023241087794304,
0.07577943056821823,
-0.04663034528493881,
-0.017552906647324562,
-0.035617560148239136,
0.026037663221359253,
0.00968224462121725,
-0.0067192320711910725,
0.0721767321228981,
0.03553567826747894,
0.022025570273399353,
0.021575234830379486,
-0.001751452567987144,
-0.005659916903823614,
-0.011780405417084694,
-0.014277728274464607,
0.0036717813927680254,
-0.02378597855567932,
-0.035781316459178925,
-0.016283774748444557,
0.014318668283522129,
0.020173048600554466,
-0.00718492129817605,
0.0039250957779586315,
-0.003172828583046794,
-0.024420544505119324,
-0.006135840900242329,
-0.0009211438009515405,
-0.06120488792657852,
-0.07405996322631836,
0.013540813699364662,
-0.025628266856074333,
0.03299741819500923,
0.00881227571517229,
0.02110442705452442,
0.05428607389330864,
0.040182337164878845,
-0.03919978439807892,
-0.017993008717894554,
0.00412723608314991,
0.0002464379358571023,
-0.015024878084659576,
0.007364032790064812,
0.007000692654401064,
0.023335643112659454,
-0.01456430647522211,
0.002265757881104946,
-0.0013548489660024643,
-0.019077911972999573,
-0.05518674850463867,
-0.04145146906375885,
-0.011944164521992207,
0.00048743857769295573,
0.049414247274398804,
0.03571990877389908,
0.013530578464269638,
0.02286483533680439,
0.009943235665559769,
0.02300812490284443,
-0.0394044853746891,
-0.02245543897151947,
-0.0023386816028505564,
-0.013479404151439667,
0.011156074702739716,
0.008111182600259781,
-0.019446369260549545,
0.0068369340151548386,
-0.041512880474328995,
0.03721420839428902,
-0.01050103921443224,
0.04667128622531891,
-0.0012384266592562199,
-0.03846286982297897,
0.007271918468177319,
0.02511652000248432,
-0.041656170040369034,
-0.012414971366524696,
-0.04134912043809891,
-0.08621905744075775,
0.004372874274849892,
-0.07180827111005783,
-0.04728538170456886,
0.07827675342559814,
-0.02054150588810444,
0.03997763991355896,
0.07430560141801834,
-0.008418230339884758,
0.0734458640217781,
-0.019026735797524452,
0.007169568911194801,
-0.02685645781457424,
-0.05510486662387848,
-0.029497070237994194,
-0.0019254463259130716,
0.010572683997452259,
0.023765509948134422,
-0.060631729662418365,
-0.0240930262953043,
0.041512880474328995,
-0.0157310888171196,
-0.08101971447467804,
-0.07168545573949814,
-0.039670590311288834,
0.06140958517789841,
-0.05256660655140877,
0.03973200172185898,
0.003446612972766161,
-0.07573848962783813,
-0.03705044835805893,
-0.0065042986534535885,
-0.04720349982380867,
0.04130817949771881,
0.0026841105427592993,
-0.04046891629695892,
-0.005485923029482365,
0.004426607396453619,
-0.00039884247235022485,
0.03981387987732887,
-0.0025612914469093084,
0.0038201878778636456,
0.00995858758687973,
-0.02593531459569931,
0.09014926850795746,
0.06402973085641861,
-0.017317503690719604,
-0.011125369928777218,
-0.006401949096471071,
-0.024174906313419342,
-0.007133746985346079,
0.0006256101187318563,
0.01082855649292469,
0.008694573305547237,
-0.05600554123520851,
-0.055800843983888626,
-0.004081178456544876,
0.05895320326089859,
0.0962083488702774,
-0.03504440188407898,
0.029640359804034233,
0.055268626660108566,
-0.013878566212952137,
-0.037889715284109116,
-0.03113465942442417,
-0.03498299419879913,
-0.03786924481391907,
0.027081627398729324,
0.010362867265939713,
-0.0601813942193985,
-0.03199439495801926,
-0.035638030618429184,
0.04181992635130882,
-0.032567549496889114,
0.003211209550499916,
-0.056373998522758484,
0.05510486662387848,
0.020889494568109512,
-0.011534767225384712,
0.03917931392788887,
0.05027398094534874,
0.026713170111179352,
-0.04703974351286888,
0.016253070905804634,
-0.07692573964595795,
-0.04038703814148903,
-0.025853434577584267,
0.03553567826747894,
-0.010531743988394737,
-0.002096881391480565,
0.051010895520448685,
-0.02257825806736946,
-0.03359104320406914,
-0.039936698973178864,
-0.02298765443265438,
0.005680386442691088,
-0.04081690311431885,
-0.009625952690839767,
0.010086524300277233,
0.0034722003620117903,
0.03960918262600899,
-0.010035349987447262,
0.06243307888507843,
-0.038728978484869,
0.042045094072818756,
-0.014615480788052082,
-0.016805756837129593,
0.029476601630449295,
0.01250708568841219,
0.030541034415364265,
0.07909554243087769,
0.05657869949936867,
-0.023601749911904335,
0.006494063418358564,
-0.025341689586639404,
-0.020009290426969528,
-0.056742455810308456,
-0.026385651901364326,
0.05711091309785843,
-0.06042703241109848,
0.04822699353098869,
0.01977388560771942,
0.04601624980568886,
0.012292152270674706,
0.03694809973239899,
0.028555456548929214,
0.01658058725297451,
0.007353798020631075,
0.02968129888176918,
0.02206651121377945,
0.004401020240038633,
0.037766896188259125,
-0.011575707234442234,
-0.0033417048398405313,
0.011237953789532185,
0.02622189372777939,
0.032280970364809036,
0.01745055615901947,
-0.024277256801724434,
0.027572903782129288,
0.04867733269929886,
0.043518926948308945,
0.0053938087075948715,
0.014175379648804665,
-0.05821628496050835,
-0.014748535118997097,
-0.10415065288543701,
-0.024174906313419342,
0.05465453118085861,
-0.0020150020718574524,
0.04010045900940895,
0.03698904067277908,
0.00601813942193985,
0.026651760563254356,
-0.020428922027349472,
-0.02259872667491436,
-0.012650374323129654,
-0.023315172642469406,
0.0535082183778286,
0.03359104320406914,
0.015495684929192066,
0.03772595524787903,
0.020889494568109512,
-0.0762707069516182,
0.024400075897574425,
0.04929142817854881,
0.032178621739149094,
-0.02659035101532936,
0.04020280763506889,
0.026549410074949265,
0.01633494906127453,
-0.005296576768159866,
0.005025350954383612,
0.059812936931848526,
0.001660617534071207,
-0.06922907382249832,
0.007860426791012287,
-0.055432386696338654,
-0.004024886526167393,
0.022127920761704445,
0.03772595524787903,
-0.04171757772564888,
-0.009810181334614754,
-0.01010187715291977,
0.01116630993783474,
-0.026549410074949265,
0.04855451360344887,
-0.03702998161315918,
-0.018044183030724525,
-0.0314621776342392,
-0.016140485182404518,
-0.00558315496891737,
0.05858474597334862,
-0.04761289805173874,
-0.011504062451422215,
0.03158499673008919,
-0.024502424523234367,
0.046875983476638794,
-0.008674103766679764,
-0.033775269985198975,
-0.006227955222129822,
-0.04237261414527893,
-0.001131599536165595,
0.019784120842814445,
0.020879259333014488,
-0.04462429881095886,
0.06529885530471802,
0.020756440237164497,
0.0014495220966637135,
0.031892046332359314,
0.011125369928777218,
-0.000748429330997169,
-0.02110442705452442,
-0.06759148091077805,
0.02968129888176918,
-0.010219578631222248,
0.02769572287797928,
-0.022557787597179413,
0.03264942765235901,
0.024686653167009354,
0.021698053926229477,
0.053671978414058685,
0.0014111411292105913,
0.019732946529984474,
0.024011148139834404,
-0.045688729733228683,
-0.02833028882741928,
-0.058625683188438416,
0.005081643350422382,
-0.00025731255300343037,
-0.03219909220933914,
0.03799206390976906,
0.029763178899884224,
-0.02137053571641445,
-0.0023668278008699417,
-0.019487308338284492,
0.05363103747367859,
0.01750173233449459,
-0.009144910611212254,
-0.0160483717918396,
-0.0009339374373666942,
-0.024277256801724434,
0.002571526449173689,
-0.013008597306907177,
0.031339358538389206,
0.00995858758687973,
0.01612001657485962,
-0.011145839467644691,
0.008919741958379745,
0.001751452567987144,
-0.04871826991438866,
-0.04892297089099884,
-0.002426957944408059,
-0.026037663221359253,
0.03381621092557907,
0.054367952048778534,
0.0039532422088086605,
0.025321219116449356,
-0.04077596589922905,
-0.02593531459569931
] |
20,885 | precession.precession | integrator_precav |
Integration of ODE dkappa/du describing precession-averaged inspirals. Here u needs to be an array with lenght >=1, where u[0] corresponds to the initial condition and u[1:] corresponds to the location where outputs are returned. For past time infinity use u=0.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
kappainitial: float
Initial value of the regularized momentum kappa.
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.integrator_precav(kappainitial,u,chieff,q,chi1,chi2)``
| def integrator_precav(kappainitial, u, chieff, q, chi1, chi2, **odeint_kwargs):
"""
Integration of ODE dkappa/du describing precession-averaged inspirals. Here u needs to be an array with lenght >=1, where u[0] corresponds to the initial condition and u[1:] corresponds to the location where outputs are returned. For past time infinity use u=0.
The function is vectorized: evolving N multiple binaries with M outputs requires kappainitial, chieff, q, chi1, chi2 to be of shape (N,) and u of shape (M,N).
Additional keywords arguments are passed to `scipy.integrate.odeint` after some custom-made default settings.
Parameters
----------
kappainitial: float
Initial value of the regularized momentum kappa.
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
**odeint_kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.integrator_precav(kappainitial,u,chieff,q,chi1,chi2)``
"""
kappainitial = np.atleast_1d(kappainitial).astype(float)
u = np.atleast_2d(u).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
# Defaults for the integrators, can be changed by the user
if 'mxstep' not in odeint_kwargs: odeint_kwargs['mxstep']=5000000
if 'rol' not in odeint_kwargs: odeint_kwargs['rtol']=1e-10
if 'aol' not in odeint_kwargs: odeint_kwargs['atol']=1e-10
# I'm sorry but this needs to be forced for compatibility with the rest of the code
odeint_kwargs['full_output'] = 0
def _compute(kappainitial, u, chieff, q, chi1, chi2, odeint_kwargs):
# h0 controls the first stepsize attempted. If integrating from finite separation, let the solver decide (h0=0). If integrating from infinity, prevent it from being too small.
# h0= 1e-3 if u[0]==0 else 0
# Make sure the first step is large enough. This is to avoid LSODA to propose a tiny step which causes the integration to stall
# if 'h0' not in odeint_kwargs: odeint_kwargs['h0']=min(u[0])/1e6
# Update: This does not seem to be necessary after all.
ODEsolution = scipy.integrate.odeint(rhs_precav, kappainitial, u, args=(chieff, q, chi1, chi2), **odeint_kwargs)#, printmessg=0,rtol=1e-10,atol=1e-10)#,tcrit=sing)
return np.squeeze(ODEsolution)
# solve_ivp implementation. Didn't really work.
#ODEsolution = scipy.integrate.solve_ivp(rhs_precav, (uinitial, ufinal), np.atleast_1d(kappainitial), method='RK45', t_eval=(uinitial, ufinal), dense_output=True, args=(chieff, q, chi1, chi2), atol=1e-8, rtol=1e-8) # ,events=event)
# Return ODE object. The key methods is .sol --callable, sol(t).
#return ODEsolution
ODEsolution = np.array(list(map(_compute, kappainitial, u, chieff, q, chi1, chi2, repeat(odeint_kwargs))))
return ODEsolution
| (kappainitial, u, chieff, q, chi1, chi2, **odeint_kwargs) | [
0.0016620112583041191,
-0.02395341917872429,
-0.026530813425779343,
0.03201289474964142,
0.022071510553359985,
0.01705990731716156,
-0.045329440385103226,
-0.07989927381277084,
-0.036329008638858795,
0.02828998863697052,
0.020762355998158455,
-0.03757679834961891,
-0.022357886657118797,
0.00931237731128931,
-0.06893511861562729,
0.06091655045747757,
0.013255178928375244,
0.008887925185263157,
-0.0059218741953372955,
0.023237474262714386,
-0.020680533722043037,
-0.0890224426984787,
-0.014687065966427326,
0.05858461931347847,
-0.04213837906718254,
0.007578771561384201,
0.03436528146266937,
-0.04786592721939087,
-0.005799140781164169,
-0.06586678326129913,
-0.00011506232112878934,
0.047702282667160034,
-0.025610316544771194,
-0.006586678791791201,
0.05302071571350098,
-0.03434482589364052,
0.05793004482984543,
0.03988827019929886,
-0.056375421583652496,
0.04757954925298691,
-0.0358789898455143,
-0.04328388720750809,
0.046352215111255646,
-0.05285707488656044,
-0.0335470587015152,
0.039458706974983215,
-0.050075121223926544,
0.09114981442689896,
0.06328938901424408,
0.034324370324611664,
0.03540851175785065,
-0.11553280055522919,
0.022869275882840157,
-0.032237906008958817,
-0.04479759559035301,
0.11766017228364944,
0.05158882960677147,
-0.012089214287698269,
0.020312335342168808,
-0.08828604221343994,
-0.04897052422165871,
-0.009286807850003242,
0.09802287071943283,
0.030069619417190552,
-0.004321229178458452,
0.02698083594441414,
-0.0013641277328133583,
-0.0021721208468079567,
0.014922305010259151,
0.06500765681266785,
-0.014441600069403648,
-0.03182879462838173,
-0.000060287860833341256,
-0.0017233778489753604,
0.07208526879549026,
0.024403439834713936,
-0.031521961092948914,
-0.051384273916482925,
-0.015065493062138557,
-0.031931072473526,
-0.019780490547418594,
-0.03747452050447464,
-0.022951098158955574,
0.02675582468509674,
0.036697208881378174,
0.050361499190330505,
0.008790761232376099,
-0.012477869167923927,
0.01987254060804844,
-0.004525784403085709,
0.005400258116424084,
-0.01062664482742548,
-0.000815024774055928,
0.03645174205303192,
0.011189171113073826,
0.03058100864291191,
-0.0340379923582077,
-0.07977654039859772,
-0.0009128277306444943,
-0.015740524977445602,
0.04819321259856224,
0.04042011499404907,
0.036942675709724426,
0.005926988087594509,
0.02102827839553356,
-0.04361117631196976,
-0.03420163691043854,
0.03890640661120415,
0.0531434491276741,
-0.07445810735225677,
-0.05420713871717453,
0.05167065188288689,
-0.054411694407463074,
-0.020905544981360435,
-0.08419493585824966,
0.011035755276679993,
-0.02511938288807869,
0.04823412373661995,
0.0317060612142086,
0.035960812121629715,
-0.02497619390487671,
-0.007077611051499844,
-0.027860423550009727,
0.0053440057672560215,
0.02894456684589386,
-0.05277525261044502,
-0.007957198657095432,
0.057111822068691254,
-0.025037560611963272,
0.0018358832458034158,
0.016323508694767952,
0.0024546629283577204,
0.021641943603754044,
-0.0093839718028903,
-0.013418823480606079,
-0.001219021389260888,
-0.011107349768280983,
-0.015075720846652985,
-0.0053900303319096565,
0.012999485246837139,
0.01211989764124155,
-0.005865621380507946,
-0.05289798602461815,
0.031194673851132393,
0.014349550008773804,
0.06836236268281937,
0.07249437272548676,
0.022337431088089943,
-0.019565708935260773,
0.019770262762904167,
-0.03000825271010399,
0.041974734514951706,
-0.013715428300201893,
-0.002211753511801362,
0.0605892613530159,
-0.06623498350381851,
0.04271113499999046,
-0.025569405406713486,
-0.03389480337500572,
-0.039724625647068024,
-0.06365758925676346,
-0.025344394147396088,
0.0333220474421978,
0.07077611237764359,
0.00567640783265233,
-0.002342157531529665,
-0.00008254123531514779,
0.02129420079290867,
0.016425784677267075,
0.06316665560007095,
0.030355997383594513,
-0.029537776485085487,
-0.05248887464404106,
-0.016088269650936127,
-0.019095230847597122,
0.0370449535548687,
-0.0038430814165621996,
-0.055679935961961746,
0.002889342838898301,
-0.0080952737480402,
-0.0277376901358366,
0.01153691578656435,
-0.05482080206274986,
-0.013500645756721497,
-0.0076605938374996185,
0.07122613489627838,
0.04307933151721954,
-0.04324297606945038,
0.022869275882840157,
-0.0410337820649147,
-0.008059476502239704,
-0.018287237733602524,
0.013050624169409275,
0.04181108996272087,
0.009920928627252579,
0.03528577834367752,
0.03407890349626541,
0.022214699536561966,
-0.0012209390988573432,
-0.0013833048287779093,
0.02358521893620491,
-0.018021317198872566,
-0.000571156560909003,
-0.02595805935561657,
-0.019146369770169258,
0.019197508692741394,
-0.030601464211940765,
0.010851655155420303,
0.053061626851558685,
0.032319728285074234,
0.014410916715860367,
-0.024198884144425392,
-0.01090279407799244,
-0.01379725057631731,
-0.0024163087364286184,
0.01954525336623192,
0.055066268891096115,
-0.011946026235818863,
0.019933907315135002,
0.01644624024629593,
0.03276975080370903,
0.002167006954550743,
0.0016773529350757599,
-0.031849250197410583,
0.029333220794796944,
-0.025323938578367233,
0.0017105931183323264,
0.03956098109483719,
-0.015157543122768402,
-0.031624238938093185,
-0.006827031262218952,
-0.005937215872108936,
-0.0596483089029789,
-0.016538290306925774,
0.03708586469292641,
0.01837928779423237,
-0.02992643043398857,
-0.0356539785861969,
-0.02558986097574234,
0.020608941093087196,
-0.009747057221829891,
-0.025017105042934418,
0.016088269650936127,
0.014533649198710918,
-0.05518900230526924,
0.0043672542087733746,
0.017816761508584023,
0.03729042038321495,
0.008192437700927258,
0.007890718057751656,
0.037351787090301514,
-0.10636872053146362,
-0.042015645653009415,
0.05216158553957939,
-0.023380663245916367,
0.02456708438694477,
0.08918607980012894,
0.06766687333583832,
0.04217929020524025,
-0.04843867942690849,
0.010110142640769482,
-0.03663584217429161,
-0.02567168138921261,
0.047374993562698364,
-0.059034641832113266,
-0.011148259975016117,
0.025978514924645424,
-0.04819321259856224,
0.019330469891428947,
0.023176107555627823,
-0.01844065450131893,
0.07658547908067703,
-0.05514809116721153,
-0.03178788349032402,
-0.013684744946658611,
0.05960739776492119,
0.015177998691797256,
0.012743791565299034,
-0.052734341472387314,
0.04496124014258385,
0.0012484261533245444,
-0.0391518734395504,
0.008688483387231827,
0.02833089977502823,
-0.07110340148210526,
-0.00286633032374084,
-0.018144048750400543,
-0.002679673722013831,
0.08169936388731003,
-0.016436012461781502,
0.004853073041886091,
0.04152471199631691,
0.038333650678396225,
0.010585733689367771,
0.08975883573293686,
0.08104478567838669,
-0.039970092475414276,
-0.01578143611550331,
0.023237474262714386,
-0.021335111930966377,
0.022766998037695885,
-0.013592695817351341,
-0.01044254470616579,
-0.05748002231121063,
0.010718694888055325,
-0.009000430814921856,
0.07376261800527573,
-0.005891190841794014,
0.010749377310276031,
-0.044347576797008514,
-0.03174697235226631,
-0.01976003684103489,
-0.01512685976922512,
0.028044523671269417,
-0.04217929020524025,
-0.0657031387090683,
0.05195702984929085,
-0.01414499431848526,
0.05416622757911682,
0.04422484338283539,
0.00977262668311596,
0.053102537989616394,
0.028924111276865005,
-0.021314656361937523,
0.016834896057844162,
-0.015873486176133156,
0.015085948631167412,
0.00958852656185627,
0.02628534846007824,
-0.011659648269414902,
-0.02260335348546505,
0.0032779977191239595,
-0.04074740409851074,
0.03281065821647644,
-0.010964160785079002,
-0.05985286086797714,
0.02563077211380005,
-0.07208526879549026,
0.020987367257475853,
-0.0026489903684705496,
0.02381023019552231,
0.04344753175973892,
-0.07077611237764359,
-0.005967899225652218,
-0.027676323428750038,
-0.04978874325752258,
0.059034641832113266,
-0.00916918832808733,
-0.00328566855750978,
0.05985286086797714,
-0.013694972731173038,
0.043324798345565796,
0.02916957624256611,
0.06762596219778061,
0.0377608984708786,
0.03336295858025551,
-0.016343964263796806,
-0.02833089977502823,
0.04017464816570282,
-0.027942245826125145,
-0.010232876054942608,
-0.014758660458028316,
0.010585733689367771,
0.03675857558846474,
0.04749772697687149,
-0.06926240026950836,
-0.030376452952623367,
-0.017704255878925323,
0.022848820313811302,
-0.03765862062573433,
0.0016850237734615803,
-0.046720415353775024,
0.0024802321568131447,
-0.008499270305037498,
0.008223120123147964,
0.04064512625336647,
-0.03150150552392006,
0.019729353487491608,
-0.061489302664995193,
-0.014809799380600452,
0.03385389223694801,
-0.010872110724449158,
-0.014431372284889221,
0.010606189258396626,
0.02311474271118641,
-0.023830685764551163,
0.018246326595544815,
0.011424410156905651,
0.053429827094078064,
-0.021376023069024086,
0.006561109330505133,
-0.007952084764838219,
0.021662399172782898,
0.03352660313248634,
0.016016675159335136,
0.0158530306071043,
0.03653356432914734,
0.009910700842738152,
-0.05531173571944237,
-0.014421144500374794,
-0.00644348980858922,
-0.048929613083601,
-0.006873055826872587,
0.030417364090681076,
0.028044523671269417,
-0.07200344651937485,
0.036656297743320465,
-0.026633091270923615,
0.01432909443974495,
0.10497774928808212,
-0.016855351626873016,
0.03452892228960991,
0.020905544981360435,
0.0017770736012607813,
-0.08313124626874924,
0.02270563133060932,
-0.0773627907037735,
-0.027655867859721184,
-0.004341684747487307,
0.012181264348328114,
0.051302455365657806,
-0.02325792983174324,
0.012559691444039345,
0.06283936649560928,
0.03285156935453415,
-0.01651783473789692,
-0.01764288917183876,
-0.005425827577710152,
-0.01069823931902647,
-0.011178943328559399,
0.00005601297743851319,
0.04295659810304642,
-0.029210487380623817,
-0.03444710373878479,
-0.026019426062703133,
0.019013408571481705,
0.012027847580611706,
-0.005758230108767748,
0.07265801727771759,
0.02190786600112915,
0.013408595696091652,
0.02489437162876129,
0.03266747295856476,
-0.039172329008579254,
0.00995161198079586,
0.0012426730245351791,
-0.026489904150366783,
-0.0002836605708580464,
-0.06958968937397003,
-0.005044843535870314,
0.055393557995557785,
0.006371895782649517,
0.010140825994312763,
0.0009415933163836598,
0.011107349768280983,
-0.012385820038616657,
-0.014860938303172588,
0.006663386709988117,
-0.05580266937613487,
-0.010360722430050373,
0.03823137283325195,
0.0008904545102268457,
0.009394199587404728,
-0.0028203052934259176,
0.039642803370952606,
0.08362217992544174,
0.02777860127389431,
-0.018399743363261223,
-0.021191922947764397,
-0.01717241294682026,
0.027717234566807747,
0.005200816784054041,
-0.005753116216510534,
-0.027389945462346077,
-0.0072412556037306786,
-0.010503911413252354,
-0.02471027337014675,
0.02147829905152321,
0.013255178928375244,
-0.03943825140595436,
-0.018890677019953728,
-0.04573855176568031,
0.01582234725356102,
0.05932101979851723,
-0.015423464588820934,
-0.024526173248887062,
0.026960380375385284,
-0.017141729593276978,
-0.02051689103245735,
-0.03487666696310043,
-0.022848820313811302,
-0.0138688450679183,
0.010452772490680218,
0.02792179025709629,
0.007317963521927595,
-0.01815427653491497,
0.03589944541454315,
-0.021314656361937523,
0.055679935961961746,
-0.022214699536561966,
0.025344394147396088,
0.04925690218806267,
-0.04631130397319794,
-0.024260250851511955,
0.02381023019552231,
-0.029680965468287468,
-0.009598754346370697,
-0.0057633440010249615,
-0.07883559167385101,
-0.008852127939462662,
-0.05326618254184723,
-0.05191611871123314,
0.06161203607916832,
-0.026183070614933968,
0.02246016450226307,
0.024812551215291023,
0.028514999896287918,
0.028228621929883957,
-0.01833837665617466,
-0.04222020134329796,
0.009920928627252579,
-0.02606033720076084,
0.0024981307797133923,
0.031194673851132393,
0.041974734514951706,
0.07445810735225677,
-0.05195702984929085,
-0.03375161439180374,
0.022398797795176506,
0.024444350972771645,
-0.07384444028139114,
-0.04860232397913933,
0.0004813440318685025,
0.06885329633951187,
-0.03751543164253235,
-0.001798807643353939,
-0.020189601927995682,
-0.07077611237764359,
-0.021887410432100296,
-0.0006005613831803203,
-0.05077061057090759,
0.04246566817164421,
0.025998970493674278,
-0.06864874064922333,
0.021151011809706688,
0.002198968781158328,
-0.005246841814368963,
0.05862553045153618,
-0.01216080877929926,
-0.015300732105970383,
-0.032974302768707275,
-0.005159905645996332,
0.07826283574104309,
0.08591319620609283,
0.024689817801117897,
0.025139838457107544,
0.00833051186054945,
-0.01880885474383831,
-0.0067094117403030396,
-0.010391405783593655,
-0.01691671833395958,
-0.01035560853779316,
-0.03207426145672798,
-0.08329489082098007,
-0.014441600069403648,
0.03156287223100662,
0.04622948542237282,
-0.00935328844934702,
-0.0027998497243970633,
0.030090074986219406,
-0.018502021208405495,
-0.04618857428431511,
-0.04316115379333496,
-0.034242548048496246,
-0.07928560674190521,
0.003272883826866746,
0.023851141333580017,
-0.056334514170885086,
-0.02749222330749035,
-0.038333650678396225,
0.0021248175762593746,
-0.030703742057085037,
0.036104001104831696,
-0.043652087450027466,
0.038660939782857895,
0.022296519950032234,
0.0034774390514940023,
0.034283459186553955,
0.029537776485085487,
0.01447228342294693,
-0.03546987846493721,
-0.017959950491786003,
-0.08681324124336243,
-0.032278817147016525,
-0.04999329894781113,
0.012999485246837139,
-0.022807909175753593,
0.015177998691797256,
0.08934972435235977,
-0.03160378336906433,
-0.06909875571727753,
-0.04991147667169571,
-0.016753073781728745,
-0.02814680151641369,
-0.006924194749444723,
0.006566223222762346,
-0.0006648045382462442,
0.02121237851679325,
0.06050743907690048,
-0.02749222330749035,
0.02661263570189476,
-0.01859407126903534,
0.02315565198659897,
0.0029251398518681526,
-0.030519641935825348,
0.047374993562698364,
-0.0018640096532180905,
-0.004768693819642067,
0.0824766680598259,
0.03319931402802467,
-0.04373390972614288,
0.028821833431720734,
-0.011986937373876572,
-0.041176971048116684,
-0.0342630036175251,
-0.037863172590732574,
0.030703742057085037,
-0.08746781945228577,
0.036144912242889404,
0.02489437162876129,
0.04811139032244682,
0.028596822172403336,
0.02722630277276039,
0.020107779651880264,
0.009015772491693497,
0.00929703563451767,
0.004088548012077808,
0.005538333207368851,
-0.032278817147016525,
0.017745167016983032,
0.004387709777802229,
0.026367170736193657,
-0.005952557548880577,
-0.016855351626873016,
0.03700404241681099,
-0.012529008090496063,
-0.003947915975004435,
0.027471767738461494,
0.0582573302090168,
0.05915737524628639,
-0.011680103838443756,
0.015423464588820934,
-0.03657447546720505,
-0.051425185054540634,
-0.09344083070755005,
-0.01523936539888382,
0.03141968324780464,
0.028453633189201355,
-0.002398410113528371,
0.025794414803385735,
-0.005333777982741594,
0.04377482086420059,
-0.04035874828696251,
-0.039683714509010315,
0.014625699259340763,
-0.031337860971689224,
0.06054835021495819,
-0.02483300492167473,
-0.01519845426082611,
0.05420713871717453,
0.014247272163629532,
-0.02959914319217205,
0.018000861629843712,
0.009839107282459736,
0.05596631392836571,
-0.005085754673928022,
0.032094717025756836,
0.03182879462838173,
-0.01797017827630043,
-0.013285862281918526,
0.014543876983225346,
0.06263481080532074,
0.006821917369961739,
-0.018430426716804504,
-0.01579166390001774,
-0.06087563931941986,
0.009251010604202747,
-0.007292394060641527,
-0.00539514422416687,
-0.03706540912389755,
0.022480620071291924,
0.00286633032374084,
-0.007916287519037724,
-0.03272883966565132,
0.05396167188882828,
-0.06611225008964539,
-0.037781354039907455,
0.01859407126903534,
-0.0407678596675396,
-0.021560121327638626,
0.06169385835528374,
0.0016377203864976764,
0.011905115097761154,
0.008085045963525772,
-0.019637303426861763,
0.07220800220966339,
-0.026817191392183304,
-0.042302023619413376,
-0.036369919776916504,
-0.04254749044775963,
0.019044091925024986,
0.042629312723875046,
0.019422519952058792,
-0.04156562313437462,
0.016354192048311234,
0.048356857150793076,
-0.024035239592194557,
0.04226111248135567,
0.010473228059709072,
0.021130556240677834,
-0.017295144498348236,
-0.03109239600598812,
0.01819518767297268,
-0.01237559225410223,
-0.037024497985839844,
-0.025998970493674278,
0.024260250851511955,
-0.014758660458028316,
0.025201205164194107,
0.04422484338283539,
-0.008857241831719875,
0.018491793423891068,
0.01097438856959343,
-0.04205655679106712,
-0.01288697961717844,
-0.07282166182994843,
0.003132252022624016,
-0.013019940815865993,
-0.014727977104485035,
0.006622476037591696,
-0.001858895760960877,
-0.001734884106554091,
-0.017632661387324333,
-0.016425784677267075,
0.04406119883060455,
0.026858102530241013,
-0.014155222102999687,
-0.008780533447861671,
0.009128277190029621,
-0.002243715338408947,
0.006602020468562841,
-0.0051854751072824,
-0.0056252689100801945,
-0.0030529869254678488,
0.01636441983282566,
-0.019637303426861763,
0.022214699536561966,
-0.012559691444039345,
-0.050361499190330505,
-0.032790206372737885,
-0.04177017882466316,
-0.01896226964890957,
0.006816803477704525,
0.06533494591712952,
0.036329008638858795,
0.033956170082092285,
-0.017479244619607925,
-0.006816803477704525
] |
20,886 | precession.precession | intertial_ingredients |
Numerical prefactors entering the precession frequency.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
bigC0: float
Prefactor in the OmegaL equation.
bigCminus: float
Prefactor in the OmegaL equation.
bigCplus: float
Prefactor in the OmegaL equation.
bigRminus: float
Prefactor in the PhiL equation.
bigRplus: float
Prefactor in the PhiL equation.
Examples
--------
``bigC0,bigCplus,bigCminus,bigRplus,bigRminus = precession.intertial_ingredients(kappa,r,chieff,q,chi1,chi2)``
| def intertial_ingredients(kappa, r, chieff, q, chi1, chi2):
"""
Numerical prefactors entering the precession frequency.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
bigC0: float
Prefactor in the OmegaL equation.
bigCminus: float
Prefactor in the OmegaL equation.
bigCplus: float
Prefactor in the OmegaL equation.
bigRminus: float
Prefactor in the PhiL equation.
bigRplus: float
Prefactor in the PhiL equation.
Examples
--------
``bigC0,bigCplus,bigCminus,bigRplus,bigRminus = precession.intertial_ingredients(kappa,r,chieff,q,chi1,chi2)``
"""
kappa = np.atleast_1d(kappa).astype(float)
r = np.atleast_1d(r).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
# Machine generated with eq_generator.nb
bigC0 = 1/2 * q * ((1 + q))**(-2) * (r)**(-5/2) * ((1 + 2 * q**(-1) * \
((1 + q))**2 * (r)**(-1/2) * kappa))**(1/2)
# Machine generated with eq_generator.nb
bigCplus = 3 * ((1 + 2 * q**(-1) * ((1 + q))**2 * (r)**(-1/2) * \
kappa))**(-1/2) * (1 + -1 * (r)**(-1/2) * chieff) * (q**(-1) * ((1 + \
q))**3 * (r)**(-1/2) * kappa + (-1/2 * (1 + -1 * q) * q**(-2) * \
(r)**(-1) * (chi1**2 + -1 * q**4 * chi2**2) + (1 + q) * (1 + ((1 + 2 \
* q**(-1) * ((1 + q))**2 * (r)**(-1/2) * kappa))**(1/2)) * (1 + \
(r)**(-1/2) * chieff)))
# Machine generated with eq_generator.nb
bigCminus = -3 * ((1 + 2 * q**(-1) * ((1 + q))**2 * (r)**(-1/2) * \
kappa))**(-1/2) * (1 + -1 * (r)**(-1/2) * chieff) * (q**(-1) * ((1 + \
q))**3 * (r)**(-1/2) * kappa + (-1/2 * (1 + -1 * q) * q**(-2) * \
(r)**(-1) * (chi1**2 + -1 * q**4 * chi2**2) + (1 + q) * (1 + -1 * ((1 \
+ 2 * q**(-1) * ((1 + q))**2 * (r)**(-1/2) * kappa))**(1/2)) * (1 + \
(r)**(-1/2) * chieff)))
# Machine generated with eq_generator.nb
bigRplus = (-2 * q * ((1 + q))**(-1) * (1 + ((1 + 2 * q**(-1) * ((1 + \
q))**2 * (r)**(-1/2) * kappa))**(1/2)) + -1 * (1 + q) * (r)**(-1/2) * \
chieff)
# Machine generated with eq_generator.nb
bigRminus = (-2 * q * ((1 + q))**(-1) * (1 + -1 * ((1 + 2 * q**(-1) * \
((1 + q))**2 * (r)**(-1/2) * kappa))**(1/2)) + -1 * (1 + q) * \
(r)**(-1/2) * chieff)
return np.stack([bigC0, bigCplus, bigCminus,bigRplus,bigRminus])
| (kappa, r, chieff, q, chi1, chi2) | [
-0.006233795080333948,
-0.05431888997554779,
-0.0226718932390213,
-0.01049696933478117,
0.005214340519160032,
-0.0035851639695465565,
-0.046085208654403687,
-0.07527381181716919,
-0.021735360845923424,
-0.0008267827215604484,
0.023862071335315704,
0.041246458888053894,
-0.010038458742201328,
0.06797666102647781,
-0.08311726897954941,
-0.0023852314334362745,
0.042924411594867706,
-0.033149354159832,
0.004563157446682453,
-0.02840815670788288,
-0.043509744107723236,
-0.014886965975165367,
-0.004175374750047922,
0.09661895036697388,
-0.01978425122797489,
0.03535410761833191,
0.01286756806075573,
-0.03439806401729584,
-0.031178731471300125,
-0.0039534359239041805,
-0.009770181030035019,
-0.03295424208045006,
-0.008301971480250359,
-0.016233231872320175,
0.02384256012737751,
-0.07859069854021072,
0.05061178281903267,
0.0477631650865078,
-0.06571336835622787,
0.02384256012737751,
0.03742228075861931,
-0.03769543766975403,
0.025774158537387848,
-0.08545859903097153,
-0.04304147884249687,
0.008550737984478474,
-0.000811539648566395,
0.03558823838829994,
0.0238815825432539,
-0.004880212713032961,
0.03857343643903732,
-0.13696789741516113,
0.009292159229516983,
-0.00324615859426558,
-0.026749713346362114,
0.06345008313655853,
0.006287450902163982,
-0.017267320305109024,
0.006248428486287594,
-0.052211694419384,
-0.01420407835394144,
-0.014682100154459476,
0.04276832193136215,
0.021462205797433853,
0.016457609832286835,
0.03617357090115547,
0.009740915149450302,
0.018389208242297173,
0.0254229586571455,
0.017813630402088165,
0.01410652231425047,
-0.012896834872663021,
-0.004792413208633661,
-0.013852878473699093,
-0.0047655850648880005,
-0.0073264166712760925,
-0.05720653384923935,
-0.04760707542300224,
0.025774158537387848,
-0.03995872661471367,
-0.012409057468175888,
-0.0061996509321033955,
0.0018998929299414158,
-0.07094234228134155,
0.017540475353598595,
0.012760256417095661,
0.07258127629756927,
0.0006149043911136687,
0.009511658921837807,
-0.0202720295637846,
-0.06036733090877533,
-0.027959400787949562,
0.018994051963090897,
0.023081626743078232,
0.05342138186097145,
0.024037670344114304,
-0.008726337924599648,
-0.07449336349964142,
0.06489390879869461,
-0.05572368949651718,
0.022945048287510872,
0.03137384355068207,
0.005063129588961601,
0.023315759375691414,
-0.004531451966613531,
-0.014896721579134464,
-0.048738718032836914,
0.039217304438352585,
0.03394930809736252,
-0.07956624776124954,
-0.08288313448429108,
0.09123388677835464,
-0.03006660006940365,
-0.011852990835905075,
-0.058767423033714294,
0.001725512556731701,
-0.016506386920809746,
0.05459204688668251,
0.04737294092774391,
0.0549822673201561,
0.0015243043890222907,
-0.057284578680992126,
-0.03164699673652649,
0.014165055938065052,
0.025676602497696877,
0.028017934411764145,
0.010740858502686024,
0.05150929465889931,
-0.02253531664609909,
-0.012828545644879341,
0.026242423802614212,
0.00541920680552721,
0.03006660006940365,
0.042417123913764954,
-0.02659362368285656,
0.04503161087632179,
-0.04300245642662048,
-0.019198918715119362,
0.04073916748166084,
0.04058308154344559,
0.03603699430823326,
-0.02524735778570175,
-0.007589816581457853,
0.007136183325201273,
-0.012789523229002953,
0.018086785450577736,
0.06926438957452774,
-0.005906984210014343,
-0.02356940321624279,
-0.010692080482840538,
-0.01406749989837408,
0.09115584194660187,
0.04647543281316757,
-0.005360673647373915,
0.05548955872654915,
-0.01214565709233284,
0.060835596174001694,
-0.0076288385316729546,
-0.02875935658812523,
-0.049597207456827164,
-0.0001262123987544328,
-0.028505710884928703,
0.03730521723628044,
0.04444627836346626,
-0.006404517218470573,
0.011189613491296768,
-0.009053148329257965,
-0.004468041006475687,
0.014350411482155323,
0.029227621853351593,
-0.021364649757742882,
-0.06216235086321831,
-0.04795827344059944,
-0.03826126083731651,
-0.015462543815374374,
0.06149897351861,
-0.035237040370702744,
-0.03826126083731651,
0.014643077738583088,
-0.004672907292842865,
-0.030749486759305,
-0.04830947518348694,
-0.0401928573846817,
-0.02663264609873295,
0.001957206754013896,
0.059899065643548965,
0.09334108233451843,
-0.04167570173740387,
0.05252387002110481,
-0.007560549769550562,
-0.007789805065840483,
-0.009379959665238857,
0.0026266812346875668,
0.07187888026237488,
0.014438210986554623,
0.01049696933478117,
0.05314822494983673,
-0.005194829311221838,
0.013813856057822704,
0.0008523910073563457,
-0.032485976815223694,
0.011228635907173157,
-0.002276700921356678,
0.0016133238095790148,
0.03508095070719719,
-0.019803762435913086,
-0.023725492879748344,
-0.007248372305184603,
0.03878805786371231,
0.03629063814878464,
-0.017911186441779137,
-0.023920603096485138,
0.03549068421125412,
-0.013101700693368912,
0.01941354013979435,
0.06559630483388901,
0.04257321357727051,
-0.013813856057822704,
-0.030827531591057777,
-0.012077368795871735,
0.05545053631067276,
-0.001195664401166141,
0.008623904548585415,
-0.007423972245305777,
-0.01410652231425047,
0.039353881031274796,
-0.00857512652873993,
0.0725032314658165,
-0.03174455463886261,
-0.032759130001068115,
-0.010662813670933247,
0.029539799317717552,
0.022203627973794937,
-0.04674858599901199,
-0.01370654534548521,
0.03147139772772789,
-0.030651932582259178,
0.049011874943971634,
-0.03476877510547638,
0.04592911899089813,
-0.05435791239142418,
0.004972890485078096,
0.01621372066438198,
0.006945950444787741,
-0.014994277618825436,
-0.008477571420371532,
0.05541151389479637,
0.007926383055746555,
-0.04448530077934265,
0.012848056852817535,
-0.007970282807946205,
-0.09349717199802399,
-0.020428117364645004,
-0.010389658622443676,
0.019676940515637398,
-0.006863028276711702,
0.009921392425894737,
0.000259741471381858,
0.042339079082012177,
-0.02538393624126911,
0.0123700350522995,
0.011531057767570019,
-0.02497420273721218,
0.030690954998135567,
-0.06454270333051682,
0.030827531591057777,
-0.02862277813255787,
0.025813180953264236,
0.0034412695094943047,
-0.028388645499944687,
0.057596754282712936,
0.08397575467824936,
-0.061616040766239166,
0.022476783022284508,
-0.009521414525806904,
0.02985197678208351,
0.023354781791567802,
0.0632159486413002,
-0.08920472860336304,
-0.017764853313565254,
-0.03129579871892929,
-0.0025852201506495476,
0.022730426862835884,
0.005619195755571127,
-0.05865035578608513,
0.023198693990707397,
-0.05431888997554779,
-0.006160628516227007,
0.09256064146757126,
-0.05537249147891998,
0.010028703138232231,
0.024993713945150375,
0.036954015493392944,
0.015745455399155617,
0.14586494863033295,
0.02641802467405796,
-0.04772414267063141,
0.000823124370072037,
0.008497082628309727,
0.013784589245915413,
0.04187081381678581,
-0.02068176120519638,
0.03498339653015137,
-0.03886610269546509,
-0.010887191630899906,
-0.004682662896811962,
0.08257095515727997,
0.017540475353598595,
-0.011423747055232525,
-0.003314447356387973,
-0.006404517218470573,
0.008380015380680561,
0.006994727998971939,
0.019472073763608932,
0.006409395020455122,
-0.07484456151723862,
0.01774534210562706,
0.033754196017980576,
0.04827045276761055,
0.025442469865083694,
0.0016182014951482415,
0.015033300034701824,
0.004563157446682453,
0.022652382031083107,
-0.006326472852379084,
-0.06809372454881668,
-0.01729658618569374,
0.0037436916027218103,
-0.014584544114768505,
-0.04507063329219818,
-0.016057632863521576,
0.011667635291814804,
-0.03968556970357895,
0.02150122821331024,
-0.011209124699234962,
-0.020076917484402657,
0.03699303790926933,
-0.011326191015541553,
-0.004568035248667002,
-0.05900155380368233,
0.051587339490652084,
-0.005282629281282425,
-0.041246458888053894,
0.04514867812395096,
0.010701836086809635,
-0.04171472415328026,
0.07546892017126083,
-0.05193853750824928,
-0.023315759375691414,
0.017413653433322906,
-0.01927696354687214,
-0.0066532837226986885,
0.09060952812433243,
0.03978312388062477,
0.05459204688668251,
0.07398607581853867,
-0.06860101222991943,
-0.03414441645145416,
0.019715962931513786,
-0.0064679281786084175,
0.004150985740125179,
-0.007599571719765663,
-0.012038346379995346,
0.057869911193847656,
-0.022632870823144913,
-0.05162636190652847,
-0.042729299515485764,
0.0388270802795887,
-0.014116277918219566,
-0.02050616219639778,
0.023237716406583786,
-0.02754966728389263,
-0.02710091322660446,
0.009336059913039207,
0.006389883812516928,
0.0039217304438352585,
-0.08397575467824936,
0.021071983501315117,
-0.05810404568910599,
-0.010467703454196453,
0.055879779160022736,
0.018272140994668007,
-0.05201658234000206,
0.016399076208472252,
-0.043236587196588516,
-0.02036958374083042,
0.027217978611588478,
0.03166650980710983,
0.027393579483032227,
-0.016174698248505592,
-0.013287056237459183,
-0.01882820762693882,
0.05662120133638382,
0.02514980360865593,
-0.006043562199920416,
-0.019023317843675613,
0.044953566044569016,
0.004624129738658667,
-0.07265932112932205,
0.009267770685255527,
0.031178731471300125,
-0.010506724938750267,
0.018886741250753403,
-0.015199143439531326,
0.016633208841085434,
-0.05884546414017677,
0.039392903447151184,
0.01873065158724785,
-0.003302253084257245,
0.040661122649908066,
-0.0766005665063858,
0.03449561819434166,
0.03861245885491371,
0.01470161136239767,
-0.11730071157217026,
-0.01770631968975067,
-0.05724555626511574,
-0.055294446647167206,
-0.0004109524597879499,
0.06661088019609451,
0.04690467566251755,
-0.027374068275094032,
0.05435791239142418,
0.06852296739816666,
0.008858037181198597,
0.03964654728770256,
-0.0002227008662885055,
-0.004907040856778622,
0.0037949082907289267,
-0.019842784851789474,
-0.04518769681453705,
-0.02023300714790821,
0.0014950376935303211,
-0.02483762614428997,
-0.0027925255708396435,
-0.03301277384161949,
-0.02171584963798523,
-0.021150028333067894,
0.03459317237138748,
-0.012252968735992908,
0.03638819605112076,
-0.016535654664039612,
0.03580285981297493,
-0.05022156238555908,
-0.006145995110273361,
0.006745961494743824,
0.013687034137547016,
0.010672569274902344,
-0.013082190416753292,
0.009540925733745098,
0.06317692995071411,
-0.0025779036805033684,
-0.006126484367996454,
0.013833367265760899,
0.0693814605474472,
0.02257433906197548,
0.016457609832286835,
0.012779767625033855,
-0.058221109211444855,
-0.0355687290430069,
0.015394254587590694,
0.049285028129816055,
0.03154944255948067,
0.024174248799681664,
0.04175374656915665,
0.050689827650785446,
0.016272254288196564,
-0.005194829311221838,
-0.049870360642671585,
-0.004968012683093548,
-0.009779936634004116,
0.006828883662819862,
0.00148772110696882,
-0.03826126083731651,
0.0017559987027198076,
-0.015960076823830605,
-0.03720765933394432,
0.028544733300805092,
0.018906252458691597,
-0.05868937820196152,
0.011911524459719658,
-0.05892350897192955,
0.009511658921837807,
0.004836312960833311,
0.00898486003279686,
-0.02528638020157814,
0.009355570189654827,
-0.015111343935132027,
0.012652945704758167,
-0.04760707542300224,
-0.04421214386820793,
0.012750501744449139,
0.01329681184142828,
0.028681311756372452,
-0.0023120648693293333,
0.02099393866956234,
0.05123613774776459,
-0.011521302163600922,
0.020896384492516518,
-0.0026486313436180353,
0.00964335910975933,
0.046982720494270325,
-0.05225071683526039,
0.014047989621758461,
0.024096203967928886,
-0.045538898557424545,
-0.02940322272479534,
-0.04795827344059944,
-0.058182090520858765,
0.005414329003542662,
-0.00564358476549387,
-0.08881451189517975,
0.08061984926462173,
-0.07051309943199158,
-0.011843235231935978,
0.0070435055531561375,
-0.0016877098241820931,
-0.002787647768855095,
-0.019257452338933945,
-0.0013243156718090177,
0.04347072169184685,
-0.031412865966558456,
-0.01535523310303688,
0.03617357090115547,
0.027198467403650284,
0.024037670344114304,
0.042339079082012177,
-0.06153799593448639,
0.02261335961520672,
0.019569629803299904,
-0.06782057136297226,
-0.03412490710616112,
0.0072922720573842525,
0.09638481587171555,
-0.05658217892050743,
0.008287338539958,
0.00864341575652361,
-0.057674799114465714,
0.058182090520858765,
-0.01882820762693882,
-0.033383484929800034,
0.023823048919439316,
0.05740164592862129,
-0.030456820502877235,
0.004080257844179869,
0.03572481870651245,
0.008555615320801735,
0.026164380833506584,
-0.023237716406583786,
-0.002119392855092883,
-0.01869162917137146,
-0.036505259573459625,
0.03716863691806793,
0.014584544114768505,
0.04577303305268288,
0.026652157306671143,
0.031412865966558456,
-0.03603699430823326,
0.02230118215084076,
0.023940114304423332,
-0.013501678593456745,
-0.00864341575652361,
0.00484119076281786,
-0.07258127629756927,
0.04764609783887863,
0.03995872661471367,
-0.00499971816316247,
0.010389658622443676,
-0.01510158833116293,
-0.0146040553227067,
-0.018028253689408302,
0.023276736959815025,
0.04206592217087746,
-0.00795077160000801,
-0.08990713208913803,
-0.05541151389479637,
0.0047997296787798405,
-0.048426542431116104,
-0.016321031376719475,
-0.05236778035759926,
0.005175318103283644,
0.014126033522188663,
0.011511546559631824,
-0.05065080523490906,
0.05915764346718788,
0.012535879388451576,
-0.035783350467681885,
0.0422610342502594,
-0.004002213478088379,
0.011852990835905075,
-0.0038973414339125156,
0.012926100753247738,
-0.03685646131634712,
-0.0714496374130249,
-0.018847718834877014,
0.021754872053861618,
-0.002080370672047138,
-0.013491922989487648,
0.008901937864720821,
-0.01603812165558338,
-0.0219890046864748,
-0.015228410251438618,
-0.024544958025217056,
-0.018125807866454124,
-0.007526405155658722,
0.003982702270150185,
0.00911655928939581,
-0.010057969950139523,
0.03947094827890396,
-0.023549893870949745,
0.04487552121281624,
-0.012672456912696362,
-0.0037046694196760654,
-0.019130630418658257,
-0.06005515530705452,
-0.006809372454881668,
0.0005033253110013902,
-0.014330900274217129,
0.04358778893947601,
-0.002853497862815857,
-0.06914732605218887,
0.0011328629916533828,
-0.014233344234526157,
0.01205785758793354,
-0.01923794113099575,
-0.021481717005372047,
0.02727651223540306,
-0.055294446647167206,
0.012418813072144985,
0.008619026280939579,
0.05228973925113678,
0.0007658105459995568,
0.05264093726873398,
-0.005663095507770777,
0.018672119826078415,
0.024544958025217056,
0.01611616462469101,
0.04085623472929001,
-0.07859069854021072,
0.04452432319521904,
-0.029364200308918953,
0.020623229444026947,
-0.05783088877797127,
0.005502128973603249,
-0.02690580114722252,
-0.024135226383805275,
-0.011638368479907513,
-0.032934729009866714,
0.04834849759936333,
0.03326641768217087,
-0.04015383496880531,
0.049011874943971634,
-0.02985197678208351,
-0.03182259947061539,
-0.08850233256816864,
-0.06099168583750725,
0.0014096767408773303,
0.02604731358587742,
-0.01779411919414997,
-0.006824005860835314,
0.024310825392603874,
0.033890772610902786,
0.0040412358939647675,
-0.03441757336258888,
-0.02669117972254753,
-0.009848225861787796,
0.07476651668548584,
-0.0498313382267952,
-0.0044631632044911385,
0.06169408559799194,
0.002012081677094102,
-0.04222201183438301,
-0.004804607480764389,
-0.05369453504681587,
-0.02487664669752121,
0.04850458353757858,
-0.013316323049366474,
0.03119824267923832,
0.012926100753247738,
-0.018359942361712456,
0.046358365565538406,
0.0007420313777402043,
-0.002536442596465349,
-0.012818790040910244,
0.0474119633436203,
-0.03291521966457367,
0.018320919945836067,
0.02591073513031006,
-0.031081175431609154,
-0.03699303790926933,
-0.02614486962556839,
0.042729299515485764,
0.0074142166413366795,
-0.03586139529943466,
0.04370485618710518,
0.0218134056776762,
-0.055606622248888016,
-0.018994051963090897,
0.003933924715965986,
-0.04717782884836197,
0.0549822673201561,
0.0015535710845142603,
0.005482618231326342,
0.01144325826317072,
-0.0336761511862278,
0.07203496992588043,
-0.014350411482155323,
-0.019042829051613808,
-0.05267995968461037,
-0.0039534359239041805,
0.018974540755152702,
0.08296117931604385,
-0.009672625921666622,
-0.024271802976727486,
-0.020252518355846405,
0.029013000428676605,
0.01551132183521986,
0.06785959005355835,
0.01702343113720417,
0.020798828452825546,
-0.01478941086679697,
0.00012522160250227898,
0.02979344315826893,
-0.00006352538184728473,
-0.03498339653015137,
0.007794682867825031,
-0.010018947534263134,
-0.042104944586753845,
-0.013169989921152592,
0.007623960729688406,
-0.0065362174063920975,
0.009814081713557243,
-0.0020901262760162354,
-0.002997392090037465,
-0.007882483303546906,
-0.09224846214056015,
0.014418699778616428,
-0.04347072169184685,
0.012691968120634556,
-0.00986773706972599,
-0.016896609216928482,
-0.007931260392069817,
0.0043119522742927074,
0.014165055938065052,
0.01620396599173546,
0.02261335961520672,
0.01078963652253151,
0.0004725343605969101,
0.016721010208129883,
0.012252968735992908,
0.030749486759305,
0.015677165240049362,
0.022476783022284508,
-0.003975385800004005,
0.009336059913039207,
-0.019930584356188774,
0.03947094827890396,
-0.02538393624126911,
-0.05342138186097145,
-0.02144269458949566,
-0.025364425033330917,
-0.030671443790197372,
0.04518769681453705,
0.0611477755010128,
0.00932630430907011,
0.01063354779034853,
0.033520061522722244,
-0.01018479187041521
] |
20,887 | precession.precession | inverseaffine |
Perform an inferse affine trasformation to scale a vector from some upper and lower limits: vec = low + rescaled*(up-low). If rescaled is defined in [0,1], the result will be defined in [low,up].
Parameters
----------
rescaled: float
Rescaled vector.
low: float
Lower limit.
up: float
Upper limit.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = precession.inverseaffine(rescaled,low,up)``
| def inverseaffine(rescaled, low, up):
"""
Perform an inferse affine trasformation to scale a vector from some upper and lower limits: vec = low + rescaled*(up-low). If rescaled is defined in [0,1], the result will be defined in [low,up].
Parameters
----------
rescaled: float
Rescaled vector.
low: float
Lower limit.
up: float
Upper limit.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = precession.inverseaffine(rescaled,low,up)``
"""
rescaled = np.atleast_1d(rescaled).astype(float)
up = np.atleast_1d(up).astype(float)
low = np.atleast_1d(low).astype(float)
vec = low + rescaled*(up-low)
return vec
| (rescaled, low, up) | [
0.0023849152494221926,
0.001050472492352128,
0.04630565643310547,
0.04644492268562317,
0.005492268595844507,
-0.028392678126692772,
0.000349794834619388,
-0.08181826770305634,
0.033876243978738785,
0.03490332141518593,
0.018591895699501038,
-0.01806965097784996,
0.009356875903904438,
0.061659637838602066,
-0.05452229827642441,
0.04139655828475952,
-0.009217610582709312,
-0.04578341171145439,
-0.007367995567619801,
-0.0061450740322470665,
0.031177980825304985,
-0.021673135459423065,
0.05950102582573891,
0.05984919145703316,
-0.049926549196243286,
0.014030962251126766,
-0.01361316628754139,
-0.012829800136387348,
0.01395262498408556,
-0.0961625725030899,
0.001140233245678246,
0.06837917864322662,
0.0013447789242491126,
-0.012995177879929543,
0.06273894011974335,
0.030029043555259705,
0.029176045209169388,
0.009322059340775013,
-0.01704256981611252,
0.010340436361730099,
-0.018957465887069702,
-0.027052251622080803,
0.07255713641643524,
0.001592844957485795,
0.036174118518829346,
0.048777610063552856,
0.01725146733224392,
-0.06851844489574432,
0.029071595519781113,
0.023622848093509674,
0.02008899487555027,
-0.044251494109630585,
0.06858807802200317,
0.016581254079937935,
-0.04595749452710152,
0.057412050664424896,
0.011811424046754837,
0.047698307782411575,
0.030725369229912758,
-0.04334627091884613,
-0.016015490517020226,
-0.0635048970580101,
0.00021365773864090443,
-0.03267508000135422,
0.059222497045993805,
0.034415896981954575,
-0.006580277346074581,
-0.005609773565083742,
0.0015612926799803972,
0.002254354301840067,
-0.06552424281835556,
0.009826895780861378,
-0.03565187379717827,
-0.02985496260225773,
0.05521862581372261,
0.043172191828489304,
-0.008738886564970016,
0.015797888860106468,
-0.015240827575325966,
-0.018853016197681427,
0.04811610281467438,
-0.030029043555259705,
0.04449521005153656,
0.0639226958155632,
0.04982209950685501,
-0.06162482127547264,
0.03868088871240616,
-0.08216642588376999,
-0.03951648250222206,
0.031195389106869698,
0.00498743262141943,
-0.013543534092605114,
-0.011663454584777355,
0.045400433242321014,
0.045748595148324966,
0.053825974464416504,
0.0054269880056381226,
-0.023379134014248848,
0.01701645739376545,
-0.05487046018242836,
0.04996136575937271,
0.07812773436307907,
-0.022804664447903633,
-0.0524333231151104,
0.034816283732652664,
0.03774084895849228,
0.012951657176017761,
-0.012890728190541267,
0.014588022604584694,
-0.017817232757806778,
0.004865575581789017,
0.04665381833910942,
-0.07172153890132904,
-0.022839481011033058,
-0.055984582751989365,
-0.04139655828475952,
-0.03648746386170387,
-0.006497588939964771,
-0.010706006549298763,
0.022125747054815292,
-0.0323791429400444,
-0.02609480358660221,
-0.027522271499037743,
-0.007729214616119862,
0.00841248407959938,
-0.10006199777126312,
-0.01020987518131733,
0.04714124649763107,
0.010410068556666374,
-0.07151264697313309,
-0.01780852861702442,
-0.06827472895383835,
-0.053164463490247726,
0.04515671730041504,
-0.007359291892498732,
-0.02236946113407612,
0.06444493681192398,
0.03384142741560936,
0.013177962973713875,
0.09539661556482315,
-0.0008889032178558409,
0.0633656308054924,
0.018417812883853912,
0.09887824207544327,
0.03725342079997063,
-0.015545469708740711,
0.09066160023212433,
0.05601939931511879,
0.034816283732652664,
0.004134433344006538,
-0.015615102834999561,
0.0006054769037291408,
0.024789193645119667,
-0.027609312906861305,
0.036661546677351,
-0.05873506888747215,
0.009557069279253483,
-0.035895586013793945,
-0.02454547956585884,
0.032466184347867966,
-0.04083950072526932,
0.048499081283807755,
-0.06702134758234024,
-0.009748559445142746,
-0.00192577566485852,
-0.03213542699813843,
0.07151264697313309,
0.01173308677971363,
0.004639269784092903,
0.022891705855727196,
-0.014535797759890556,
-0.07833663374185562,
-0.06507163494825363,
-0.00608414551243186,
0.04895169287919998,
-0.018765976652503014,
-0.0011086809681728482,
0.03203098103404045,
-0.0006843575392849743,
0.049717649817466736,
0.02048938162624836,
-0.00018849753541871905,
0.012029025703668594,
-0.05121475085616112,
0.004604453220963478,
0.01493618544191122,
0.009487437084317207,
0.010592853650450706,
0.016502918675541878,
-0.08091303706169128,
0.0035273246467113495,
0.0008383108070120215,
0.009922640398144722,
0.002263058442622423,
-0.004328099079430103,
-0.013404268771409988,
-0.052955564111471176,
0.05208515748381615,
-0.03714897483587265,
-0.026477782055735588,
-0.0376364029943943,
-0.024232132360339165,
0.07158228009939194,
-0.02236946113407612,
-0.0016178691294044256,
0.031856898218393326,
-0.005809966940432787,
-0.04083950072526932,
0.052154790610075,
0.021011626347899437,
0.01267312653362751,
0.024110276252031326,
-0.03330177441239357,
-0.04557451233267784,
0.010357843711972237,
0.060092903673648834,
-0.02001936174929142,
0.0021020330023020506,
0.013421677052974701,
0.06757840514183044,
-0.03208320587873459,
0.006245170719921589,
0.0009199114865623415,
-0.01786075346171856,
0.04947393760085106,
-0.03128242865204811,
0.007054649293422699,
0.020611239597201347,
0.03270989656448364,
-0.0158414077013731,
-0.015893632546067238,
-0.04400778189301491,
-0.0527118518948555,
-0.028688617050647736,
0.013769839890301228,
-0.0012174819130450487,
-0.03142169490456581,
0.01954934187233448,
0.021081259474158287,
0.041083212941884995,
-0.027052251622080803,
0.020994218066334724,
-0.03561705723404884,
0.023431358858942986,
-0.016389764845371246,
0.02703484334051609,
-0.030098676681518555,
0.05542752146720886,
-0.04644492268562317,
0.014231155626475811,
-0.0011609054636210203,
-0.02858416736125946,
-0.04024762287735939,
0.028601575642824173,
0.02945457585155964,
0.03370216116309166,
-0.03951648250222206,
-0.010470996610820293,
0.011341404169797897,
0.008973896503448486,
0.036765992641448975,
-0.03478146716952324,
-0.016607366502285004,
-0.006449716165661812,
0.001048296457156539,
-0.04306774213910103,
-0.030220532789826393,
0.02520698867738247,
0.02576404996216297,
0.03648746386170387,
-0.005683758296072483,
0.002234770217910409,
0.008886856026947498,
0.004069153219461441,
0.042023252695798874,
0.06047588214278221,
0.005670702084898949,
-0.007781438995152712,
-0.045261166989803314,
0.02797488309442997,
-0.009426508098840714,
-0.026390742510557175,
-0.04379888251423836,
-0.01094972062855959,
0.014883960597217083,
-0.05292075127363205,
0.021690543740987778,
-0.02076791226863861,
0.024789193645119667,
-0.0018267668783664703,
0.05232887342572212,
0.057551316916942596,
0.009626702405512333,
-0.035425566136837006,
-0.0038798395544290543,
-0.012916840612888336,
-0.0021596974693238735,
-0.03916831687092781,
0.002216273918747902,
0.033806610852479935,
0.0474545918405056,
-0.020506789907813072,
-0.05097103863954544,
-0.06204261630773544,
0.02595553919672966,
0.00627128267660737,
-0.045330800116062164,
-0.0029310958925634623,
-0.019845280796289444,
-0.013665391132235527,
-0.06312192231416702,
-0.03544297441840172,
-0.10354362428188324,
0.0118636479601264,
-0.05330372974276543,
-0.0002428979641990736,
0.03850680962204933,
0.019392669200897217,
0.05117993429303169,
0.005914416164159775,
0.036974892020225525,
0.07492464035749435,
0.005309483036398888,
0.02830563858151436,
-0.015876224264502525,
-0.008299331180751324,
-0.014770807698369026,
0.055775683373212814,
0.04867316409945488,
-0.010070609860122204,
-0.01934044435620308,
0.017817232757806778,
-0.035965219140052795,
0.003823263105005026,
-0.062321145087480545,
-0.02501549944281578,
0.03600003570318222,
0.053025197237730026,
0.013630574569106102,
0.005322539247572422,
-0.00869536679238081,
0.017382029443979263,
-0.038123831152915955,
-0.03996909409761429,
-0.03121279738843441,
0.0005559725104831159,
-0.012516453862190247,
-0.017277579754590988,
0.013752431608736515,
0.0018387349555268884,
-0.021324973553419113,
-0.01989750564098358,
0.038402359932661057,
-0.009461324661970139,
-0.033876243978738785,
0.013839472085237503,
-0.006175538059324026,
-0.07067705690860748,
0.041361745446920395,
-0.03746232017874718,
0.05546233803033829,
-0.060510698705911636,
-0.04393814876675606,
-0.0642012283205986,
-0.03868088871240616,
0.003982112277299166,
-0.028392678126692772,
-0.040143173187971115,
0.03781048208475113,
0.05003099888563156,
0.031160572543740273,
-0.06064996495842934,
0.00812089815735817,
-0.003744926303625107,
-0.037183791399002075,
0.009174090810120106,
-0.026860762387514114,
0.0215164627879858,
-0.028462311252951622,
0.03996909409761429,
0.05626311153173447,
-0.0008714950527064502,
-0.022090930491685867,
-0.03781048208475113,
0.006053681019693613,
0.031386878341436386,
0.06082404404878616,
0.03857644274830818,
-0.002817942760884762,
-0.01382206380367279,
-0.049996182322502136,
-0.0042149461805820465,
0.04045651853084564,
-0.0642012283205986,
0.024893641471862793,
-0.0338936522603035,
0.0050657689571380615,
0.04376406595110893,
0.0013752431841567159,
-0.030446838587522507,
-0.05111030116677284,
0.10723415017127991,
0.01125436369329691,
-0.015780480578541756,
-0.020854953676462173,
-0.016128642484545708,
0.036034852266311646,
0.03728823736310005,
0.07952038943767548,
0.03175244852900505,
0.012237923219799995,
0.05041397735476494,
-0.011367516592144966,
-0.048707980662584305,
-0.038994237780570984,
-0.009574477560818195,
-0.02818378061056137,
-0.0650368183851242,
-0.0650368183851242,
-0.007163450121879578,
0.013360748067498207,
0.009348171763122082,
-0.023483581840991974,
0.020854953676462173,
-0.003864607308059931,
-0.05344299226999283,
0.019653791561722755,
-0.06562869250774384,
0.01996713876724243,
0.03882015496492386,
-0.06033661589026451,
-0.06413159519433975,
0.03725342079997063,
-0.03955129534006119,
0.0023152828216552734,
0.01540620531886816,
0.040143173187971115,
0.030029043555259705,
-0.04630565643310547,
0.027591904625296593,
0.009339467622339725,
-0.002495892345905304,
-0.01975824125111103,
-0.015362684614956379,
0.005196330137550831,
-0.01115861814469099,
-0.058003928512334824,
0.023083195090293884,
0.007463740650564432,
-0.01425726804882288,
0.005483564455062151,
-0.010610261932015419,
-0.030499063432216644,
-0.054243769496679306,
0.04160545766353607,
-0.023744704201817513,
-0.03662673011422157,
0.006776119116693735,
-0.006027569063007832,
0.01647680625319481,
-0.0011913697235286236,
-0.018504854291677475,
0.028810473158955574,
-0.0016657415544614196,
0.06134628877043724,
0.021394604817032814,
0.011376220732927322,
0.012081249617040157,
-0.024319173768162727,
-0.020106403157114983,
0.031230205669999123,
-0.029837554320693016,
0.008751942776143551,
-0.02466733567416668,
0.0628085732460022,
0.020646056160330772,
-0.02569441683590412,
0.035303711891174316,
0.029559023678302765,
0.0013088745763525367,
-0.008808519691228867,
-0.0032357382588088512,
0.007333179470151663,
0.031456511467695236,
0.02973310463130474,
-0.01820891536772251,
-0.028967147693037987,
-0.00431286683306098,
-0.0341721810400486,
0.015728255733847618,
0.016537733376026154,
0.02837526984512806,
0.012681830674409866,
0.11670418083667755,
-0.020332708954811096,
-0.05588013306260109,
-0.018783384934067726,
-0.035355936735868454,
0.019427485764026642,
-0.0021956018172204494,
0.05539270490407944,
-0.028288230299949646,
-0.003753630444407463,
0.003079064888879657,
0.011480669490993023,
0.03645264729857445,
-0.0019507998367771506,
0.033806610852479935,
0.010775639675557613,
-0.0041279057040810585,
0.03161318600177765,
0.020332708954811096,
0.03579114004969597,
0.0002049536706181243,
0.02379692904651165,
0.07179117202758789,
-0.014561910182237625,
0.03962092846632004,
0.029750512912869453,
-0.02076791226863861,
0.023152828216552734,
-0.029071595519781113,
-0.020071586593985558,
0.04421667754650116,
0.02090717852115631,
0.04651455208659172,
-0.04571377858519554,
-0.03088204190135002,
0.012838504277169704,
0.053895603865385056,
-0.031125755980610847,
-0.024353990331292152,
0.022265013307332993,
0.022090930491685867,
-0.015458429232239723,
0.05514899268746376,
0.014222451485693455,
-0.0841161385178566,
0.038054198026657104,
0.003956000320613384,
0.005762094631791115,
0.05769057944417,
0.009530957788228989,
0.03526889532804489,
-0.0017506062285974622,
-0.012647015042603016,
-0.028967147693037987,
0.029071595519781113,
-0.014353012666106224,
-0.02297874726355076,
-0.11036761850118637,
-0.008068673312664032,
0.021690543740987778,
0.018557079136371613,
-0.007250491064041853,
0.024911049753427505,
-0.0004531556915026158,
0.01284720841795206,
-0.0831412822008133,
0.028497127816081047,
-0.042162518948316574,
-0.025398477911949158,
0.07165191322565079,
0.027417821809649467,
-0.02028048411011696,
0.03986464440822601,
-0.0002699621836654842,
0.02022825926542282,
0.08571768552064896,
-0.011959393508732319,
0.029959410429000854,
-0.035895586013793945,
0.0007692222716286778,
0.017843345180153847,
-0.10180281102657318,
-0.0023457470815628767,
0.02811414748430252,
-0.0939343273639679,
0.04498263821005821,
-0.04975246638059616,
-0.004386851564049721,
-0.09073123335838318,
-0.0292630847543478,
-0.010131537914276123,
-0.042023252695798874,
-0.028462311252951622,
-0.008064321242272854,
0.09769448637962341,
-0.02778339385986328,
-0.002273938385769725,
-0.010766935534775257,
-0.02614702843129635,
-0.009853008203208447,
0.03822827711701393,
-0.006541109178215265,
-0.054104503244161606,
0.031299836933612823,
0.04282402619719505,
0.003853727364912629,
-0.02419731579720974,
-0.0066803740337491035,
0.019462302327156067,
0.030255349352955818,
0.012725351378321648,
-0.04895169287919998,
-0.06531534343957901,
0.007311419118195772,
-0.0726267620921135,
-0.00035632288199849427,
-0.008847687393426895,
-0.004419492091983557,
0.0341721810400486,
-0.05306001380085945,
-0.0028114148881286383,
-0.021725360304117203,
0.029228270053863525,
-0.05636756122112274,
0.02029789239168167,
0.0016243972349911928,
0.04212770238518715,
-0.027156701311469078,
-0.022195380181074142,
-0.03032498247921467,
-0.0009721358655951917,
-0.00310952914878726,
0.021272748708724976,
0.06012772023677826,
0.00503965700045228,
-0.00023460190277546644,
-0.006863159593194723,
0.02041975036263466,
0.007964224554598331,
0.020541606470942497,
0.053094830363988876,
-0.0069937207736074924,
0.009452620521187782,
-0.017843345180153847,
0.050588060170412064,
-0.036835625767707825,
0.03687044233083725,
0.012368484400212765,
-0.008638789877295494,
0.007320123258978128,
-0.01020987518131733,
0.029541615396738052,
0.013595758005976677,
-0.008059969171881676,
-0.024249540641903877,
-0.02205611579120159,
0.0006604213849641383,
0.04470410570502281,
0.0470367968082428,
0.06179890036582947,
0.01405707374215126,
-0.009661518037319183,
-0.0005809967406094074,
-0.004175778012722731,
0.0262862928211689,
0.011402332223951817,
-0.00417795404791832,
-0.017895570024847984,
0.01968860812485218,
0.014239859767258167,
-0.010723414830863476,
0.06541979312896729,
0.04529598355293274,
0.04268476366996765,
-0.01173308677971363,
-0.0683443620800972,
-0.006706486456096172,
0.05149328336119652,
0.017912978306412697,
0.023344317451119423,
-0.03822827711701393,
0.05379115790128708,
-0.018974874168634415,
0.019131546840071678,
-0.0687621608376503,
0.008242755196988583,
0.035564832389354706,
-0.04585304483771324,
-0.016433285549283028,
-0.011976800858974457,
0.009113161824643612,
0.010688599199056625,
-0.05688980594277382,
-0.028897514566779137,
-0.02447584643959999,
-0.04623602330684662,
-0.022265013307332993,
0.043589986860752106,
-0.028706025332212448,
-0.02419731579720974,
-0.040352072566747665,
0.03843717649579048,
-0.011097690090537071,
-0.04111802950501442,
0.018765976652503014,
0.030516471713781357,
0.029280493035912514,
0.04592267796397209,
0.0009405836462974548,
-0.006071089301258326,
0.021690543740987778,
-0.04724569618701935,
0.029576431959867477,
-0.010627670213580132,
-0.033058058470487595,
0.011611230671405792,
0.009583181701600552,
0.04947393760085106,
0.010470996610820293,
0.010470996610820293,
-0.04104839637875557,
0.0650368183851242,
0.005239850375801325,
-0.025450702756643295,
0.041152846068143845,
-0.03725342079997063,
0.017773712053894997,
-0.00587959960103035,
-0.03631338104605675,
-0.00253506051376462,
-0.05535788834095001,
-0.033736977726221085,
-0.014474869705736637,
-0.030011635273694992,
-0.042371414601802826,
-0.012046433985233307,
0.021150890737771988,
-0.03497295454144478,
0.017303692176938057,
0.015449725091457367,
0.01921858824789524,
-0.024441029876470566,
-0.024214724078774452,
-0.061590004712343216,
-0.05542752146720886,
-0.07269639521837234,
-0.054174136370420456,
0.03634819760918617,
-0.019723424687981606,
0.04414704814553261,
0.018487446010112762,
-0.05730760097503662,
0.03410254791378975,
-0.026477782055735588,
-0.03854162618517876,
0.03965574502944946,
-0.0011467613512650132,
-0.007868479937314987,
0.052885934710502625,
-0.042197335511446,
-0.044530026614665985,
0.021220523864030838,
-0.04571377858519554,
0.012829800136387348,
0.05333854630589485,
-0.03659191355109215,
-0.05393042042851448,
-0.036661546677351,
-0.009687630459666252,
-0.034276630729436874,
-0.0016994697507470846,
-0.0028788712806999683,
0.017147019505500793,
0.06399232894182205,
0.021133484318852425
] |
20,888 | precession.precession | ismonotonic |
Check if an array is monotonic. The parameter `which` can takes the following values:
- `<` check array is strictly increasing.
- `<=` check array is increasing.
- `>` check array is strictly decreasing.
- `>=` check array is decreasing.
Parameters
----------
vec: array
Input array.
which: string
Select function behavior.
Returns
-------
check: boolean
Result
Examples
--------
``check = ismonotonic(vec, which)``
| def ismonotonic(vec, which):
"""
Check if an array is monotonic. The parameter `which` can takes the following values:
- `<` check array is strictly increasing.
- `<=` check array is increasing.
- `>` check array is strictly decreasing.
- `>=` check array is decreasing.
Parameters
----------
vec: array
Input array.
which: string
Select function behavior.
Returns
-------
check: boolean
Result
Examples
--------
``check = ismonotonic(vec, which)``
"""
if which == '<':
return np.all(vec[:-1] < vec[1:])
elif which == '<=':
return np.all(vec[:-1] <= vec[1:])
elif which == '>':
return np.all(vec[:-1] > vec[1:])
elif which == '>=':
return np.all(vec[:-1] >= vec[1:])
else:
raise ValueError("`which` needs to be one of the following: `>`, `>=`, `<`, `<=`.")
| (vec, which) | [
0.004639027640223503,
0.06569792330265045,
-0.02683667279779911,
0.0031427876092493534,
0.056734148412942886,
-0.025324491783976555,
-0.01230697426944971,
0.04984734579920769,
-0.05432923138141632,
-0.004691407550126314,
-0.020423565059900284,
0.00830333586782217,
0.08249589800834656,
-0.05152349919080734,
-0.04113863408565521,
0.023702995851635933,
-0.006394889671355486,
0.022464098408818245,
-0.03782276436686516,
0.015577294863760471,
0.0436893031001091,
0.024686824530363083,
0.0032862627413123846,
0.00033135912963189185,
0.04081068933010101,
0.051924318075180054,
0.008831688202917576,
-0.007506252266466618,
-0.039316728711128235,
0.0015019336715340614,
-0.004493275191634893,
0.007014337461441755,
-0.02224547043442726,
-0.020897259935736656,
0.039644669741392136,
0.011222939938306808,
0.032448142766952515,
0.010776572860777378,
-0.08920051157474518,
-0.021899309009313583,
0.004429508466273546,
-0.044053684920072556,
0.013983127661049366,
0.019275764003396034,
-0.022391222417354584,
0.006955125834792852,
0.026071472093462944,
0.07316774129867554,
0.005406505428254604,
0.00034758547553792596,
0.028786111623048782,
-0.02137095481157303,
0.03764057531952858,
-0.0026599825359880924,
-0.07174665480852127,
0.05524018406867981,
0.028603922575712204,
0.005971296224743128,
-0.018146181479096413,
0.045547645539045334,
-0.022281909361481667,
0.02625366300344467,
0.04933721199631691,
-0.03807783126831055,
0.043652866035699844,
-0.030207199975848198,
-0.013901141472160816,
-0.010649039410054684,
-0.05662483349442482,
0.0080938171595335,
-0.09488485753536224,
-0.03128212317824364,
-0.021389175206422806,
-0.030717331916093826,
-0.059211939573287964,
0.027620092034339905,
-0.029478436335921288,
-0.014183537103235722,
0.028858989477157593,
0.004431786015629768,
0.008941003121435642,
-0.03623770922422409,
0.05786373093724251,
0.01700749062001705,
-0.004522881470620632,
-0.003015254158526659,
-0.042341090738773346,
0.0351627841591835,
0.05279882997274399,
0.03625592589378357,
-0.015613732859492302,
0.08074686676263809,
0.009965824894607067,
0.020314250141382217,
-0.06150754168629646,
0.013946689665317535,
-0.003388744778931141,
-0.0034502341877669096,
-0.03618305176496506,
0.04117507115006447,
-0.015076271258294582,
0.06070590391755104,
0.028622141107916832,
-0.027765845879912376,
-0.00010148584988201037,
0.002418579999357462,
-0.01889316365122795,
-0.020879041403532028,
-0.0443451888859272,
-0.03623770922422409,
-0.028986522927880287,
-0.03128212317824364,
-0.023192862048745155,
-0.03128212317824364,
0.02381230890750885,
0.05360047146677971,
-0.010822121053934097,
0.003999083302915096,
-0.04886351525783539,
-0.05053966864943504,
-0.035636477172374725,
-0.0104304114356637,
0.05341827869415283,
-0.061653293669223785,
0.040373433381319046,
-0.0725482925772667,
0.029751721769571304,
0.0023525359574705362,
-0.05053966864943504,
0.06515135616064072,
-0.005160548258572817,
-0.01784556731581688,
0.018209949135780334,
0.03946248069405556,
-0.00986562017351389,
-0.0006991563714109361,
0.0024071931838989258,
-0.001908446429297328,
-0.028421731665730476,
-0.00009614823648007587,
-0.014137989841401577,
0.006741051562130451,
-0.01604188047349453,
0.028822550550103188,
0.03135500103235245,
0.014948737807571888,
-0.021972185000777245,
0.013063064776360989,
0.01096787303686142,
0.05465717613697052,
-0.020405344665050507,
-0.023047108203172684,
0.006558861117810011,
0.013564089313149452,
0.02700064517557621,
-0.04838981851935387,
-0.030298294499516487,
-0.024686824530363083,
-0.06810284405946732,
0.03703934699296951,
0.011514444835484028,
0.0023866966366767883,
0.001180822728201747,
0.030061446130275726,
0.01596900448203087,
0.03623770922422409,
-0.034233611077070236,
0.00036637388984672725,
-0.03224773332476616,
0.05655195936560631,
0.024850795045495033,
0.04777036979794502,
0.023794090375304222,
-0.03572757542133331,
0.032448142766952515,
0.005962186958640814,
-0.06096097081899643,
0.06883160024881363,
0.021753555163741112,
-0.00005287797102937475,
0.003065356519073248,
-0.0007697552209720016,
-0.06088809296488762,
-0.012170331552624702,
-0.03410607576370239,
0.043324921280145645,
-0.0054702721536159515,
-0.008235014043748379,
-0.00957411527633667,
0.04842625930905342,
-0.09466622769832611,
0.01218855008482933,
0.0265998262912035,
-0.04879063740372658,
0.043252043426036835,
0.0061124940402805805,
-0.05881112068891525,
-0.008121144957840443,
0.046859417110681534,
-0.004365741740912199,
0.04547477141022682,
-0.015659280121326447,
0.0056706820614635944,
-0.012398069724440575,
0.019494391977787018,
0.05309033766388893,
0.005237979348748922,
0.011250268667936325,
0.052252259105443954,
-0.03386922925710678,
-0.0369664691388607,
-0.03427004814147949,
-0.054183479398489,
0.08030960708856583,
-0.0043862382881343365,
0.021953966468572617,
-0.009847400709986687,
0.018674535676836967,
-0.006763825658708811,
-0.011077187955379486,
0.04412655904889107,
-0.0032999268732964993,
0.018064197152853012,
-0.0030585245694965124,
0.0548393651843071,
-0.007847859524190426,
-0.010239111259579659,
0.022937795147299767,
-0.023010671138763428,
0.01686173863708973,
0.06179904565215111,
-0.01891138218343258,
0.058628931641578674,
0.004352077841758728,
-0.01850145310163498,
-0.04263259842991829,
-0.029405560344457626,
0.029350902885198593,
0.02995213307440281,
0.05305389687418938,
0.01940329745411873,
0.08898188173770905,
-0.0015167365781962872,
0.04310629144310951,
0.042013149708509445,
-0.02683667279779911,
-0.03124568611383438,
0.03946248069405556,
0.009637882001698017,
0.05618757754564285,
-0.0525437630712986,
-0.016643110662698746,
-0.04248684272170067,
-0.06755626946687698,
0.04576627537608147,
0.03789564222097397,
-0.024759700521826744,
0.013309022411704063,
0.011951702646911144,
-0.019603706896305084,
0.015030723065137863,
0.01954904943704605,
-0.019512612372636795,
0.00090013537555933,
-0.009483019821345806,
-0.0423775315284729,
0.07703018188476562,
-0.007747654803097248,
0.036529213190078735,
0.03365059942007065,
-0.08956488966941833,
-0.05972207337617874,
-0.021298078820109367,
-0.031719379127025604,
0.030881304293870926,
0.019530830904841423,
0.03722153604030609,
-0.03246636316180229,
0.020332468673586845,
0.03381457179784775,
-0.0031314007937908173,
-0.011942592449486256,
-0.04977446794509888,
0.046021342277526855,
-0.06639024615287781,
0.020806165412068367,
0.0013675680384039879,
-0.07243897765874863,
0.037677012383937836,
0.013427446596324444,
0.032539237290620804,
0.015003394335508347,
-0.03299471363425255,
-0.05589606985449791,
-0.01996808871626854,
0.027856940403580666,
0.08431780338287354,
-0.053964853286743164,
-0.002908217255026102,
-0.0011199027067050338,
0.03545428812503815,
-0.024595728144049644,
-0.08256877213716507,
-0.057717978954315186,
0.017718033865094185,
0.06289219111204147,
-0.054766491055488586,
-0.03641989827156067,
0.007488033268600702,
-0.04077425226569176,
-0.02404915727674961,
-0.002050782786682248,
-0.018802069127559662,
0.008194021880626678,
0.06096097081899643,
0.09619662910699844,
-0.017699815332889557,
-0.0036096510011702776,
0.014210865832865238,
0.046604350209236145,
-0.02062397450208664,
0.09145967662334442,
0.011423349380493164,
-0.009391924366354942,
-0.04860844835639,
-0.027601873502135277,
0.02896830253303051,
-0.013445665128529072,
0.0006029369542375207,
0.06679106503725052,
-0.006007734686136246,
-0.035636477172374725,
0.07579128444194794,
0.013810046017169952,
0.04248684272170067,
0.07907071709632874,
0.022281909361481667,
0.024085596203804016,
0.037932079285383224,
0.012024578638374805,
0.03437936305999756,
0.03742194548249245,
0.0363105833530426,
0.0007162367110140622,
0.003748571267351508,
0.01627872884273529,
0.028622141107916832,
0.0495922788977623,
0.030972398817539215,
0.019020697101950645,
-0.029824599623680115,
0.05145062133669853,
0.007123651914298534,
-0.006631737109273672,
0.044381625950336456,
-0.015067161060869694,
0.03184691444039345,
-0.06347519904375076,
-0.01366429403424263,
-0.015896128490567207,
0.0128079978749156,
-0.015805033966898918,
0.037185098975896835,
-0.03297649696469307,
-0.08526519685983658,
-0.029314465820789337,
0.017326325178146362,
-0.026563387364149094,
-0.007547244895249605,
0.010330205783247948,
-0.015987223014235497,
-0.04551120847463608,
0.0686858519911766,
-0.011150063946843147,
-0.007119097281247377,
0.03782276436686516,
-0.003520833095535636,
-0.028039131313562393,
-0.018146181479096413,
-0.020095622166991234,
0.048244066536426544,
-0.017053037881851196,
0.007957173511385918,
0.030170761048793793,
0.0037827319465577602,
0.042669035494327545,
0.025980377569794655,
-0.009646991267800331,
-0.03541785106062889,
-0.009829182177782059,
0.0059530772268772125,
-0.008868127129971981,
-0.06201767548918724,
0.003805505810305476,
-0.0128079978749156,
0.0369664691388607,
0.024340663105249405,
0.019913431257009506,
-0.003939871210604906,
-0.07593703269958496,
0.08825311809778214,
0.00032538099912926555,
-0.04656791314482689,
-0.020915478467941284,
-0.03181047737598419,
0.007310397457331419,
-0.006372115574777126,
-0.02118876576423645,
0.01435661781579256,
0.04015480354428291,
0.002634931355714798,
-0.0013186043361201882,
-0.02324751950800419,
-0.04507395252585411,
0.0136278560385108,
0.020514659583568573,
-0.01635160483419895,
0.008754258044064045,
0.03660208731889725,
-0.03804139420390129,
0.054110605269670486,
-0.02871323563158512,
0.052580203860998154,
-0.0200409647077322,
0.06715545058250427,
-0.06183548644185066,
0.023338614031672478,
-0.024304224178195,
-0.009738086722791195,
0.042341090738773346,
-0.002605325309559703,
0.021644242107868195,
-0.0469687320291996,
-0.009856510907411575,
0.031191028654575348,
0.023848747834563255,
-0.012379850260913372,
-0.0022967399563640356,
-0.022555194795131683,
0.011887935921549797,
0.0009212011354975402,
0.026381196454167366,
-0.021498488262295723,
0.04726023972034454,
-0.013846484944224358,
0.029642408713698387,
0.0074698138050735,
-0.05913906544446945,
-0.03131856024265289,
-0.05432923138141632,
-0.03135500103235245,
0.02388518489897251,
-0.03698468953371048,
-0.0049829124473035336,
0.01971302181482315,
-0.07848770171403885,
-0.044636692851781845,
-0.014229084365069866,
-0.0074014924466609955,
-0.019257545471191406,
-0.0004033813311252743,
0.005912084598094225,
-0.05097692459821701,
-0.05400129035115242,
-0.09816429018974304,
0.0346708670258522,
-0.0366385281085968,
0.03649277612566948,
0.0004617392551153898,
0.045620523393154144,
0.057062093168497086,
-0.02332039549946785,
-0.03764057531952858,
-0.000834660604596138,
-0.015859689563512802,
0.0509040504693985,
-0.04791612550616264,
0.008890900760889053,
0.019621925428509712,
0.013163269497454166,
-0.05236157402396202,
0.02095191739499569,
-0.012243207544088364,
-0.003340919967740774,
0.03536319360136986,
-0.04066493734717369,
-0.12061017006635666,
-0.008362547494471073,
0.014456822536885738,
-0.06241849437355995,
0.008781585842370987,
0.020678631961345673,
0.0287314560264349,
0.0205328781157732,
0.05079473555088043,
-0.020733289420604706,
0.0019687970634549856,
0.04132082313299179,
0.07283979654312134,
0.0010208366438746452,
0.03862440586090088,
0.10188097506761551,
-0.031063495203852654,
0.021243421360850334,
0.0038601630367338657,
0.016078319400548935,
0.00949212908744812,
-0.04645859822630882,
-0.06872228533029556,
-0.001857205294072628,
0.060997407883405685,
-0.007574573624879122,
0.010366644710302353,
0.06602586805820465,
0.03181047737598419,
0.0007281929720193148,
0.006094275042414665,
-0.0366385281085968,
0.025962159037590027,
-0.018100634217262268,
0.035071685910224915,
-0.035217441618442535,
-0.06464122235774994,
0.00986562017351389,
-0.06883160024881363,
0.002294462639838457,
-0.06639024615287781,
-0.03592798486351967,
0.01034842524677515,
-0.019785897806286812,
0.018137073144316673,
0.02545202523469925,
0.04394437000155449,
0.05917550250887871,
-0.015750376507639885,
0.02798447385430336,
-0.035053469240665436,
0.004787057638168335,
-0.008080152794718742,
0.02676379680633545,
0.013564089313149452,
-0.06744695454835892,
0.020095622166991234,
0.020970135927200317,
0.040300559252500534,
0.013381898403167725,
-0.00476883864030242,
-0.021644242107868195,
0.0229924526065588,
0.025087643414735794,
-0.04383505508303642,
-0.014793875627219677,
-0.021553145721554756,
0.008362547494471073,
-0.021206984296441078,
-0.0019209720194339752,
-0.00986562017351389,
-0.007059885188937187,
-0.0025461134500801563,
0.0032019994687289,
-0.027310369536280632,
-0.007979948073625565,
0.05578675866127014,
-0.022045060992240906,
-0.06609874218702316,
0.030480485409498215,
0.017781801521778107,
-0.002919604070484638,
0.05538593977689743,
0.0387701578438282,
0.036711402237415314,
0.047661058604717255,
-0.05662483349442482,
-0.032521020621061325,
-0.0013277138350531459,
0.045037511736154556,
0.024267785251140594,
0.005716229788959026,
-0.03239348530769348,
-0.04838981851935387,
-0.03638346120715141,
-0.03749482333660126,
-0.02618078701198101,
-0.029842818155884743,
0.0048599340952932835,
-0.02233656495809555,
0.00007255598029587418,
0.02233656495809555,
0.0065998537465929985,
0.05250732600688934,
-0.06085165590047836,
-0.005051233805716038,
0.00009194931044476107,
0.0042746467515826225,
-0.0010601214598864317,
0.015240242704749107,
0.04179451987147331,
0.02104301191866398,
0.038442213088274,
0.005046679172664881,
-0.07404225319623947,
0.06332945078611374,
-0.045365456491708755,
-0.042996976524591446,
-0.01333635114133358,
0.022792043164372444,
-0.004741509910672903,
0.0028376183472573757,
0.011232049204409122,
-0.035071685910224915,
-0.012170331552624702,
0.004996576812118292,
-0.01824638806283474,
0.03600085899233818,
0.04973803088068962,
0.0564790815114975,
-0.04124794900417328,
-0.05327252671122551,
0.03815070912241936,
0.00539739616215229,
0.030462265014648438,
-0.03009788505733013,
0.0327032096683979,
-0.054766491055488586,
0.024978328496217728,
-0.040956445038318634,
0.055349498987197876,
-0.04583914950489998,
0.009774524718523026,
-0.0466407909989357,
-0.007961728610098362,
-0.010931435041129589,
0.03627414628863335,
-0.0200409647077322,
-0.04277835041284561,
-0.004149390384554863,
-0.0620541125535965,
-0.015440652146935463,
-0.0015099045122042298,
-0.00021250823920127004,
-0.06150754168629646,
0.02962418831884861,
0.05892043560743332,
-0.029278026893734932,
0.032776087522506714,
-0.003452511504292488,
-0.008886345662176609,
0.08402629941701889,
0.04507395252585411,
-0.017544953152537346,
0.020478222519159317,
0.06555217504501343,
-0.02953309379518032,
0.008758812211453915,
0.03332265838980675,
-0.009710757993161678,
-0.004488720558583736,
-0.07411512732505798,
0.008722374215722084,
-0.008116590790450573,
0.033104028552770615,
0.009082200936973095,
0.003388744778931141,
-0.0306991133838892,
0.02013205923140049,
0.030881304293870926,
-0.01766337640583515,
0.040446311235427856,
-0.017882006242871284,
-0.012753341346979141,
0.0364745557308197,
0.022482318803668022,
0.036547429859638214,
-0.0631108209490776,
0.04186739772558212,
-0.02789337933063507,
0.09102241694927216,
0.017535842955112457,
0.0038191701751202345,
0.0061033847741782665,
0.02406737580895424,
0.03403320163488388,
0.0076747783459723,
-0.028931865468621254,
-0.01284443587064743,
-0.03490771725773811,
0.009237063117325306,
0.028749674558639526,
-0.014210865832865238,
-0.06489628553390503,
-0.015896128490567207,
-0.016060100868344307,
-0.0009308800217695534,
-0.017636049538850784,
0.012097454629838467,
-0.0581187978386879,
-0.044891759753227234,
0.08759723603725433,
0.009765415452420712,
-0.008116590790450573,
0.0397539846599102,
-0.05181500315666199,
-0.016406262293457985,
0.02503298595547676,
-0.03468908742070198,
-0.027273930609226227,
-0.04084713011980057,
-0.0004531990853138268,
0.0787792056798935,
-0.03233882784843445,
-0.001317465677857399,
0.07593703269958496,
-0.01517647597938776,
-0.025233395397663116,
0.04773393273353577,
-0.059685636311769485,
-0.023101765662431717,
0.011997249908745289,
0.052653077989816666,
-0.021571366116404533,
-0.014757437631487846,
-0.0024436311796307564,
-0.0121521120890975,
-0.062309179455041885,
-0.012981079518795013,
-0.0499202199280262,
0.017198791727423668,
-0.015395104885101318,
-0.054292794317007065,
-0.022518755868077278,
-0.0200409647077322,
-0.008121144957840443,
-0.011514444835484028,
-0.0450010746717453,
0.03264855220913887,
0.034233611077070236,
-0.04179451987147331,
-0.01971302181482315,
-0.03184691444039345,
0.03543606773018837,
-0.05859249085187912,
-0.027711188420653343,
0.07141871005296707,
-0.020569317042827606,
0.010129796341061592,
-0.054620739072561264,
-0.007437930442392826,
0.02528805285692215,
-0.002123659010976553,
-0.026782015338540077,
-0.029605969786643982,
-0.06168973073363304,
-0.019184669479727745,
-0.041758082807064056,
0.02240944281220436,
0.0400819294154644,
-0.06562504917383194,
0.015604623593389988,
0.03363238275051117,
-0.0038419440388679504,
-0.050867609679698944,
-0.00013977433263789862,
0.0021669291891157627,
0.05039391666650772,
-0.028421731665730476,
0.007023447193205357,
-0.024650385603308678,
0.06362095475196838
] |
20,889 | precession.precession | isotropic_angles |
Sample the angles theta1, theta2, and deltaphi from an isotropic distribution.
Parameters
----------
N: integer, optional (default: 1)
Number of samples.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = precession.isotropic_angles(N=1)``
| def isotropic_angles(N=1):
"""
Sample the angles theta1, theta2, and deltaphi from an isotropic distribution.
Parameters
----------
N: integer, optional (default: 1)
Number of samples.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = precession.isotropic_angles(N=1)``
"""
theta1=np.arccos(np.random.uniform(-1,1,N))
theta2=np.arccos(np.random.uniform(-1,1,N))
deltaphi=np.random.uniform(-np.pi,np.pi,N)
return np.stack([theta1,theta2,deltaphi])
| (N=1) | [
-0.059357158839702606,
-0.051637906581163406,
0.00003996347732027061,
-0.043707169592380524,
0.05382326617836952,
0.007067167665809393,
-0.012944724410772324,
-0.022135566920042038,
0.051426421850919724,
0.051073942333459854,
0.04064061865210533,
0.07162336260080338,
-0.01689246855676174,
0.04723194241523743,
-0.07225782424211502,
-0.016020087525248528,
0.01979159377515316,
-0.0070539494045078754,
-0.03743307664990425,
-0.07056593149900436,
0.03827902302145958,
0.06651244312524796,
-0.017597423866391182,
-0.06245895475149155,
-0.0228933934122324,
0.03838476538658142,
0.019016144797205925,
-0.003701010486111045,
-0.03933645412325859,
-0.0018923619063571095,
0.0034939299803227186,
0.03218116611242294,
0.03085937723517418,
-0.0008701780461706221,
-0.009763617999851704,
-0.01742999628186226,
0.031740568578243256,
0.013482252135872841,
-0.03711584582924843,
0.056149616837501526,
-0.03230453282594681,
-0.037609316408634186,
0.061295781284570694,
-0.030630266293883324,
-0.07564160227775574,
-0.005454584490507841,
-0.032251663506031036,
0.036410894244909286,
-0.04028814285993576,
0.02569558657705784,
0.03757406771183014,
0.008129005320370197,
-0.006785185541957617,
-0.027387477457523346,
-0.005075671244412661,
0.030330661684274673,
-0.007869052700698376,
0.0072125643491744995,
0.026576779782772064,
-0.007208158262073994,
-0.01864604279398918,
-0.007349149323999882,
0.0359702967107296,
-0.025078751146793365,
0.030577395111322403,
-0.04959353804588318,
0.027898568660020828,
0.02410943992435932,
0.061754003167152405,
0.018804658204317093,
-0.0014209236251190305,
0.04885333776473999,
0.014689486473798752,
-0.011164714582264423,
-0.011552440002560616,
0.03581168130040169,
0.02500825561583042,
0.0249553844332695,
0.04966403543949127,
-0.007111227139830589,
-0.07817944139242172,
0.009358269162476063,
0.039512693881988525,
0.03997091203927994,
0.0012127418303862214,
0.037503570318222046,
-0.011658182367682457,
-0.044165391474962234,
-0.00593924056738615,
-0.009931044653058052,
-0.03300948813557625,
0.015385628677904606,
-0.010354016907513142,
-0.04307271167635918,
-0.00492146285250783,
0.05921616777777672,
-0.006842463277280331,
-0.022611411288380623,
0.0320754237473011,
-0.03683386370539665,
-0.024779146537184715,
-0.03376731276512146,
-0.0033771719317883253,
0.027369853109121323,
0.01864604279398918,
0.05851121246814728,
-0.015218202024698257,
0.02640054002404213,
0.03235740587115288,
-0.002788975602015853,
-0.011614123359322548,
0.04494084045290947,
0.0856519564986229,
-0.06312866508960724,
-0.007763309869915247,
-0.017808910459280014,
-0.02370409108698368,
0.021025264635682106,
-0.03195205703377724,
-0.042720235884189606,
-0.007864647544920444,
-0.013006407767534256,
0.015041964128613472,
0.0553036704659462,
0.00496111623942852,
0.029995808377861977,
0.005199038423597813,
-0.017015835270285606,
-0.047126200050115585,
0.034895241260528564,
0.0012391775380820036,
0.0022338242270052433,
0.09136208891868591,
0.02310488000512123,
-0.03265701234340668,
-0.020478924736380577,
0.0016313084634020925,
-0.05089770630002022,
0.05061572417616844,
-0.0015277683269232512,
0.006890928838402033,
-0.03307998180389404,
0.022417549043893814,
0.059498149901628494,
-0.01107659563422203,
0.08889474719762802,
0.03126472607254982,
-0.040111903101205826,
0.010768177919089794,
-0.0724693089723587,
-0.0005892977933399379,
0.03581168130040169,
0.060097359120845795,
-0.03406691923737526,
0.02335161343216896,
-0.0676756203174591,
0.008358115330338478,
-0.0570308081805706,
-0.056290604174137115,
-0.03526534140110016,
-0.042367756366729736,
0.023316364735364914,
-0.04645649343729019,
0.03521247208118439,
0.00503601785749197,
0.039653681218624115,
0.03538870811462402,
-0.006838057190179825,
0.02699975296854973,
-0.03979467228055,
0.026876384392380714,
-0.0014055027859285474,
0.05600862577557564,
-0.048677098006010056,
0.02569558657705784,
-0.015843849629163742,
-0.049029577523469925,
0.027792826294898987,
-0.016205137595534325,
-0.016117019578814507,
-0.0009918927680701017,
-0.08529947698116302,
0.012354325503110886,
-0.04349568486213684,
-0.020408429205417633,
0.052730586379766464,
0.0700724646449089,
-0.02990768849849701,
0.055691394954919815,
-0.029872441664338112,
-0.027228862047195435,
0.0719405934214592,
-0.017923464998602867,
0.04162755608558655,
0.037609316408634186,
-0.023210622370243073,
-0.03630514815449715,
-0.0008762362413108349,
-0.07895489037036896,
0.0026700147427618504,
-0.009710745885968208,
0.06446807831525803,
-0.03528296574950218,
-0.046879466623067856,
0.01112065464258194,
-0.024461915716528893,
-0.09220802783966064,
-0.03877248987555504,
0.0493115559220314,
0.006992266047745943,
0.09051614254713058,
-0.015526619739830494,
0.03272750601172447,
-0.018610795959830284,
-0.022417549043893814,
0.0892472192645073,
0.03612891212105751,
-0.01445156428962946,
-0.041310325264930725,
-0.031881559640169144,
0.07232831418514252,
-0.015323945321142673,
-0.03908972069621086,
-0.0003689995501190424,
-0.008728216402232647,
0.04994601756334305,
0.0004279293352738023,
0.0073359315283596516,
-0.055797137320041656,
-0.01608177088201046,
-0.002943184459581971,
-0.0007760005537420511,
0.03993566334247589,
0.03129997476935387,
-0.024832017719745636,
-0.037045352160930634,
-0.014539684168994427,
-0.004104156047105789,
-0.020884273573756218,
0.01668979413807392,
-0.10158392041921616,
-0.006071419455111027,
-0.017306629568338394,
0.0624237097799778,
-0.03085937723517418,
0.03672812134027481,
-0.05505693703889847,
0.012786109931766987,
0.0048201256431639194,
0.015491371974349022,
-0.029378972947597504,
-0.027528468519449234,
-0.03382018581032753,
-0.013385321013629436,
0.0040490818209946156,
-0.028480155393481255,
-0.02299913577735424,
-0.009957480244338512,
0.035899799317121506,
-0.017949899658560753,
0.040358636528253555,
-0.055938128381967545,
-0.043812911957502365,
0.04194478318095207,
0.006534045562148094,
-0.030736010521650314,
0.0088427709415555,
0.015341569669544697,
-0.04342518746852875,
-0.022488044574856758,
0.023809833452105522,
0.02951996400952339,
-0.06577224284410477,
-0.020126447081565857,
0.06697066128253937,
0.06753462553024292,
0.06432708352804184,
0.042262014001607895,
-0.04462360963225365,
0.017015835270285606,
-0.0026656086556613445,
0.008278807625174522,
0.012759674340486526,
0.04469410702586174,
-0.061401523649692535,
0.024814393371343613,
0.0013460222398862243,
0.0012634104350581765,
0.05234286189079285,
0.01242482103407383,
0.07923687249422073,
0.06531402468681335,
-0.05156741291284561,
-0.029819568619132042,
0.053541284054517746,
0.0368691124022007,
-0.059251412749290466,
-0.02239992469549179,
-0.004828937351703644,
-0.025378357619047165,
0.04430638253688812,
0.038208525627851486,
0.01480404194444418,
-0.0487123467028141,
0.02895599976181984,
0.004141606856137514,
0.003348533296957612,
-0.04680896922945976,
-0.026964504271745682,
0.013332449831068516,
-0.018064456060528755,
0.00914678256958723,
-0.006353401113301516,
0.026647275313735008,
0.03831426799297333,
-0.03278037905693054,
-0.018046831712126732,
-0.03175819292664528,
0.07409070432186127,
-0.012116403318941593,
-0.0007578259683214128,
0.004811313468962908,
-0.004789283499121666,
0.010433324612677097,
0.00474522402510047,
-0.0030158828012645245,
-0.04885333776473999,
0.023880328983068466,
-0.022664282470941544,
0.02555459551513195,
-0.050333742052316666,
0.014539684168994427,
-0.053682275116443634,
0.043460436165332794,
-0.02275240235030651,
0.020267438143491745,
0.018628418445587158,
0.028568275272846222,
0.02058466710150242,
0.00906747579574585,
-0.0023461761884391308,
-0.0005727754323743284,
0.010794613510370255,
0.03933645412325859,
-0.014759982004761696,
-0.027123119682073593,
0.044517867267131805,
-0.02079615369439125,
-0.011023723520338535,
-0.0030335066840052605,
0.013746609911322594,
0.05054522678256035,
0.04314320534467697,
0.05671357735991478,
0.018857529386878014,
0.0737382248044014,
-0.03877248987555504,
0.04501133784651756,
-0.017659107223153114,
-0.019809218123555183,
0.016760289669036865,
-0.013508687727153301,
0.07380872219800949,
-0.04377766698598862,
-0.01668979413807392,
0.0050492356531322,
0.029643330723047256,
-0.03767981007695198,
-0.07208158075809479,
0.042367756366729736,
-0.04388340935111046,
0.019174758344888687,
-0.015949591994285583,
-0.0038133624475449324,
0.0493115559220314,
-0.0022117942571640015,
0.0035225688479840755,
-0.019051391631364822,
-0.04282597824931145,
-0.013711362145841122,
-0.028198175132274628,
-0.012283829972147942,
0.04430638253688812,
0.06672392785549164,
-0.009631439112126827,
0.015015527606010437,
-0.025431228801608086,
0.01938624493777752,
-0.03598792105913162,
-0.006190380547195673,
-0.0695437490940094,
-0.025325484573841095,
0.02174784243106842,
-0.026823513209819794,
0.005309187341481447,
-0.03128235042095184,
-0.01364967878907919,
0.03376731276512146,
-0.047161445021629333,
0.003844204358756542,
-0.029079368337988853,
-0.023228246718645096,
0.022770026698708534,
-0.027792826294898987,
-0.054633963853120804,
-0.05184939503669739,
0.0025378356222063303,
-0.051778897643089294,
0.006534045562148094,
-0.09347695112228394,
-0.04846561327576637,
0.04307271167635918,
0.05269533768296242,
-0.009278961457312107,
0.07867290824651718,
-0.006384242791682482,
-0.03990041837096214,
0.005974488332867622,
-0.03471900150179863,
0.06436233222484589,
0.004551361780613661,
-0.06471481174230576,
-0.041909538209438324,
0.06704115867614746,
0.011402636766433716,
0.02069041132926941,
0.05068621784448624,
0.045927777886390686,
0.008032074198126793,
0.027440348640084267,
0.007120038848370314,
0.051637906581163406,
-0.04948779568076134,
-0.0007864647195674479,
-0.0026656086556613445,
-0.033203352242708206,
0.004298018757253885,
-0.04264973849058151,
-0.026541531085968018,
0.04976977780461311,
-0.006208004429936409,
0.06866255402565002,
0.016557615250349045,
0.06831007450819016,
-0.005895180627703667,
-0.004718788433820009,
-0.01167580671608448,
0.0100984713062644,
0.04310796037316322,
-0.039865169674158096,
0.04268498718738556,
0.014601367525756359,
0.02865639515221119,
-0.06217697635293007,
0.047831155359745026,
0.02395082451403141,
-0.006111073307693005,
0.025924697518348694,
-0.11822084337472916,
-0.02675301767885685,
0.04360142722725868,
0.04057012498378754,
-0.018020395189523697,
-0.031088488176465034,
0.028092430904507637,
-0.06094330549240112,
0.007468110416084528,
0.01602889969944954,
-0.01854030042886734,
0.024038944393396378,
0.056889817118644714,
0.005666070617735386,
-0.005181414540857077,
0.010926792398095131,
0.03411979228258133,
-0.023157751187682152,
-0.012971160002052784,
0.05001651123166084,
-0.050227999687194824,
-0.04705570265650749,
-0.04564579576253891,
-0.012556999921798706,
-0.04014715179800987,
-0.00474522402510047,
-0.05244860425591469,
0.02955521084368229,
-0.040111903101205826,
0.02215319126844406,
0.01919238269329071,
-0.07098890095949173,
0.01748286746442318,
0.014671863056719303,
-0.0059700822457671165,
-0.009331833571195602,
0.02514924667775631,
0.023369237780570984,
0.014751169830560684,
-0.055338919162750244,
0.007331525441259146,
0.004626262933015823,
0.010362829081714153,
0.02449716441333294,
0.05382326617836952,
-0.0034520733170211315,
0.012354325503110886,
0.002200779505074024,
0.013332449831068516,
-0.056396350264549255,
-0.028127679601311684,
-0.022135566920042038,
0.026065686717629433,
-0.012521752156317234,
0.06961424648761749,
-0.06259994953870773,
0.055338919162750244,
0.00015613637515343726,
0.005476613994687796,
0.020655162632465363,
-0.017209697514772415,
0.008371332660317421,
0.001202828367240727,
-0.037151094526052475,
-0.058088239282369614,
0.04455311596393585,
-0.023386860266327858,
-0.01049500796943903,
-0.0035710344091057777,
-0.017923464998602867,
0.020760906860232353,
-0.051884640008211136,
-0.020020704716444016,
0.017244946211576462,
-0.042367756366729736,
0.008433016948401928,
-0.008384550921618938,
0.01854030042886734,
-0.003967571072280407,
-0.053435541689395905,
0.12329652160406113,
0.009331833571195602,
-0.0008817436755634844,
-0.0011686821235343814,
0.009816489182412624,
0.019897336140275,
-0.009966292418539524,
-0.010785801336169243,
-0.002960808342322707,
-0.06626570969820023,
0.016504744067788124,
0.03767981007695198,
0.024268053472042084,
-0.01943911612033844,
-0.041557058691978455,
0.006071419455111027,
0.046773720532655716,
0.024285677820444107,
-0.0011830015573650599,
-0.053188808262348175,
-0.06996671855449677,
0.04328419640660286,
-0.0007804065244272351,
-0.06256470084190369,
-0.031934432685375214,
-0.037397827953100204,
-0.018663667142391205,
0.03711584582924843,
0.010865109041333199,
0.0114466967061162,
0.0022580570075660944,
-0.012178086675703526,
0.035247717052698135,
0.020567042753100395,
0.005644040647894144,
-0.056396350264549255,
-0.04663272947072983,
-0.02950233966112137,
-0.005591169465333223,
-0.04240300506353378,
0.0021842571441084146,
-0.012063531205058098,
0.02033793367445469,
0.003912496846169233,
-0.022382300347089767,
-0.04899432882666588,
0.051778897643089294,
0.04032338783144951,
-0.01683959737420082,
0.059639137238264084,
0.0903751477599144,
-0.020302684977650642,
-0.003712025238201022,
-0.047126200050115585,
0.041063591837882996,
-0.033996425569057465,
-0.011834421195089817,
-0.011975412257015705,
0.013764234259724617,
-0.055092182010412216,
-0.070142962038517,
-0.056184861809015274,
0.03408454358577728,
0.04740818217396736,
-0.001198422396555543,
0.01262749545276165,
-0.005820279475301504,
-0.0023021164815872908,
-0.009208465926349163,
-0.03817327693104744,
0.008996980264782906,
0.010248273611068726,
0.03367919474840164,
0.028127679601311684,
-0.02705262415111065,
-0.028127679601311684,
0.03151145949959755,
0.048324622213840485,
-0.04194478318095207,
0.04730243608355522,
0.013711362145841122,
0.005820279475301504,
-0.037856049835681915,
-0.018928024917840958,
-0.04183904081583023,
-0.050580475479364395,
-0.03290374577045441,
-0.06813383847475052,
-0.007045137695968151,
-0.010688870213925838,
-0.03526534140110016,
-0.02439142018556595,
0.03408454358577728,
-0.0347718745470047,
0.020108822733163834,
-0.03255126625299454,
-0.03990041837096214,
0.005705724470317364,
-0.03242789953947067,
0.019315749406814575,
0.0030621455516666174,
0.056290604174137115,
0.03343246132135391,
-0.0035930643789470196,
-0.01733306609094143,
0.03082413040101528,
0.03165245056152344,
-0.044024400413036346,
-0.04769016429781914,
0.02835678867995739,
0.021853584796190262,
-0.02093714475631714,
0.021730218082666397,
0.041557058691978455,
0.005785031709820032,
-0.00030291007715277374,
-0.04469410702586174,
-0.03082413040101528,
-0.03718634322285652,
0.002469543367624283,
0.01425770204514265,
-0.01624038629233837,
0.04835987091064453,
0.04042913392186165,
-0.04004140943288803,
0.09016366302967072,
-0.02340448461472988,
-0.012742049992084503,
0.002951996400952339,
-0.025924697518348694,
-0.0028043966740369797,
0.026717770844697952,
0.050087008625268936,
0.011825609020888805,
0.08579294383525848,
0.025660337880253792,
0.04194478318095207,
0.03128235042095184,
0.037362582981586456,
0.015130083076655865,
0.017570987343788147,
0.05040423572063446,
-0.04814838245511055,
-0.039054471999406815,
0.03771505877375603,
-0.05072146654129028,
-0.017059896141290665,
0.02729935757815838,
0.06348113715648651,
0.0006608947296626866,
-0.02661202661693096,
-0.007609101012349129,
-0.019157133996486664,
0.018505051732063293,
0.04324895143508911,
0.028444908559322357,
0.07239881157875061,
-0.0403938852250576,
0.0038287832867354155,
0.05220187082886696,
-0.006212410517036915,
-0.0056220111437141895,
0.04663272947072983,
-0.06682967394590378,
-0.016716230660676956,
0.014328197576105595,
-0.03803228959441185,
-0.012283829972147942,
0.01653118059039116,
-0.02490251325070858,
0.03336196392774582,
0.03908972069621086,
-0.03838476538658142,
0.018505051732063293,
0.01854030042886734,
-0.010865109041333199,
-0.028444908559322357,
0.029643330723047256,
0.0320754237473011,
0.05269533768296242,
-0.023439733311533928,
-0.05745378136634827,
0.012565811164677143,
-0.039301205426454544,
0.006106667220592499,
-0.014689486473798752,
-0.052977319806814194,
0.026171430945396423,
0.07338575273752213,
0.014724734239280224,
-0.039160214364528656,
-0.01963297836482525,
-0.03316810354590416,
0.0013217894593253732,
0.036410894244909286,
-0.009913420304656029,
-0.024867264553904533,
0.005309187341481447,
-0.021465860307216644,
-0.05636110156774521,
-0.037397827953100204,
-0.026418164372444153,
0.005177008453756571,
0.031687699258327484,
0.03265701234340668,
-0.023016760125756264,
0.0010794614208862185,
-0.013059279881417751,
-0.015315133146941662,
-0.0403938852250576,
0.022875769063830376,
0.004635075107216835,
0.024867264553904533,
0.04479984939098358,
-0.02340448461472988,
-0.01769435405731201,
0.025113999843597412,
0.041310325264930725,
-0.0038420013152062893,
0.015614738687872887,
-0.025818953290581703,
-0.0379970408976078,
-0.07112989574670792,
-0.01287422887980938,
-0.011614123359322548,
0.029431844130158424,
-0.000019930106645915657,
0.025043504312634468,
-0.010398076847195625,
-0.01480404194444418
] |
20,890 | precession.precession | kappadiscriminant_coefficients |
Coefficients of the quintic equation in kappa that defines the spin-orbit resonances.
Parameters
----------
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
coeff0: float
Coefficient to the x^0 term in polynomial.
coeff1: float
Coefficient to the x^1 term in polynomial.
coeff2: float
Coefficient to the x^2 term in polynomial.
coeff3: float
Coefficient to the x^3 term in polynomial.
coeff4: float
Coefficient to the x^4 term in polynomial.
coeff5: float
Coefficient to the x^5 term in polynomial.
Examples
--------
``coeff5,coeff4,coeff3,coeff2,coeff1,coeff0 = precession.kappadiscriminant_coefficients(u,chieff,q,chi1,chi2)``
| def kappadiscriminant_coefficients(u, chieff, q, chi1, chi2):
"""
Coefficients of the quintic equation in kappa that defines the spin-orbit resonances.
Parameters
----------
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
coeff0: float
Coefficient to the x^0 term in polynomial.
coeff1: float
Coefficient to the x^1 term in polynomial.
coeff2: float
Coefficient to the x^2 term in polynomial.
coeff3: float
Coefficient to the x^3 term in polynomial.
coeff4: float
Coefficient to the x^4 term in polynomial.
coeff5: float
Coefficient to the x^5 term in polynomial.
Examples
--------
``coeff5,coeff4,coeff3,coeff2,coeff1,coeff0 = precession.kappadiscriminant_coefficients(u,chieff,q,chi1,chi2)``
"""
u = np.atleast_1d(u).astype(float)
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
coeff5 = -u
# Machine generated with eq_generator.nb
coeff4 = 1/16 * q**(-1) * ((1 + q))**(-4) * (1 + (q**6 + (q * (2 + \
(80 * u**2 * chi1**2 + 40 * u * chieff)) + (q**5 * (2 + (80 * u**2 * \
chi2**2 + 40 * u * chieff)) + (4 * q**3 * (-1 + (60 * u * chieff + 8 \
* u**2 * chieff**2)) + (q**2 * (-1 + (160 * u * chieff + 16 * u**2 * \
(-3 * chi1**2 + chieff**2))) + q**4 * (-1 + (160 * u * chieff + 16 * \
u**2 * (-3 * chi2**2 + chieff**2)))))))))
# Machine generated with eq_generator.nb
coeff3 = -1/8 * q**(-1) * ((1 + q))**(-8) * (((-1 + q))**2 * ((1 + \
q))**8 * chieff + (8 * q * u**3 * ((10 + (-12 * q + 3 * q**2)) * \
chi1**4 + (-2 * q * chi1**2 * (6 * q**2 * chi2**2 + (6 * q**4 * \
chi2**2 + (-2 * chieff**2 + (-3 * q * chieff**2 + q**3 * (-11 * \
chi2**2 + chieff**2))))) + q**4 * chi2**2 * (10 * q**4 * chi2**2 + \
(-2 * chieff**2 + (4 * q**3 * (-3 * chi2**2 + chieff**2) + 3 * q**2 * \
(chi2**2 + 2 * chieff**2)))))) + (4 * q * ((1 + q))**3 * u**2 * \
chieff * (-1 * (-20 + (3 * q + q**2)) * chi1**2 + q * (20 * q**4 * \
chi2**2 + (4 * chieff**2 + (12 * q * chieff**2 + (-1 * q**2 * \
(chi2**2 + -12 * chieff**2) + q**3 * (-3 * chi2**2 + 4 * \
chieff**2)))))) + 2 * ((1 + q))**4 * u * (-1 * ((-1 + q))**2 * (-1 + \
5 * q) * chi1**2 + q * (q**5 * chi2**2 + (8 * chieff**2 + (40 * q * \
chieff**2 + (q**4 * (-7 * chi2**2 + 8 * chieff**2) + (q**3 * (11 * \
chi2**2 + 40 * chieff**2) + q**2 * (-5 * chi2**2 + 64 * \
chieff**2))))))))))
# Machine generated with eq_generator.nb
coeff2 = 1/16 * q**(-1) * ((1 + q))**(-12) * (-16 * q * (-10 + (18 * \
q + (-9 * q**2 + q**3))) * u**4 * chi1**6 + (chieff**2 + (4 * q * \
chieff**2 * (3 + 2 * u * chieff) + (q**(14) * (6 * u**2 * chi2**4 + \
(chieff**2 + chi2**2 * (-1 + 6 * u * chieff))) + (q**2 * (-1 * \
chi2**2 + chieff**2 * (59 + (144 * u * chieff + 16 * u**2 * \
chieff**2))) + (4 * q**(13) * (40 * u**4 * chi2**6 + (chieff**2 * (3 \
+ 2 * u * chieff) + (12 * u**2 * chi2**4 * (-1 + 5 * u * chieff) + \
chi2**2 * (-1 + (-4 * u * chieff + 24 * u**2 * chieff**2))))) + (-4 * \
q**3 * (chi2**2 * (1 + 2 * u * chieff) + -2 * chieff**2 * (19 + (126 \
* u * chieff + 24 * u**2 * chieff**2))) + (q**4 * (-2 * chi2**2 * (1 \
+ (43 * u * chieff + 4 * u**2 * chieff**2)) + chieff**2 * (201 + \
(3920 * u * chieff + 976 * u**2 * chieff**2))) + (4 * q**5 * \
(chieff**2 * (13 + (2430 * u * chieff + 704 * u**2 * chieff**2)) + \
chi2**2 * (3 + (-72 * u * chieff + (10 * u**2 * chieff**2 + 8 * u**3 \
* chieff**3)))) + (-4 * q**7 * (u**2 * chi2**4 * (19 + 8 * u * \
chieff) + (-4 * chieff**2 * (-27 + (1218 * u * chieff + 392 * u**2 * \
chieff**2)) + -2 * chi2**2 * (-1 + (20 * u * chieff + (169 * u**2 * \
chieff**2 + 32 * u**3 * chieff**3))))) + (q**(12) * (-288 * u**4 * \
chi2**6 + (chieff**2 * (59 + (144 * u * chieff + 16 * u**2 * \
chieff**2)) + (2 * u**2 * chi2**4 * (-67 + (204 * u * chieff + 48 * \
u**2 * chieff**2)) + 2 * chi2**2 * (-1 + (-95 * u * chieff + (296 * \
u**2 * chieff**2 + 48 * u**3 * chieff**3)))))) + (4 * q**9 * (2 * \
u**2 * chi2**4 * (13 + (6 * u * chieff + -8 * u**2 * chieff**2)) + \
(chieff**2 * (13 + (2430 * u * chieff + 704 * u**2 * chieff**2)) + 2 \
* chi2**2 * (-1 + (70 * u * chieff + (379 * u**2 * chieff**2 + 100 * \
u**3 * chieff**3))))) + (4 * q**(11) * (36 * u**4 * chi2**6 + (u**2 * \
chi2**4 * (5 + (-16 * u * chieff + 24 * u**2 * chieff**2)) + (2 * \
chieff**2 * (19 + (126 * u * chieff + 24 * u**2 * chieff**2)) + \
chi2**2 * (3 + (-102 * u * chieff + (406 * u**2 * chieff**2 + 112 * \
u**3 * chieff**3)))))) + (q**8 * (2 * u**2 * chi2**4 * (-53 + (28 * u \
* chieff + 8 * u**2 * chieff**2)) + (chieff**2 * (-261 + (16416 * u * \
chieff + 5152 * u**2 * chieff**2)) + 4 * chi2**2 * (-7 + (189 * u * \
chieff + (614 * u**2 * chieff**2 + 120 * u**3 * chieff**3))))) + \
(q**6 * (-8 * u**2 * chi2**4 + (chieff**2 * (-261 + (16416 * u * \
chieff + 5152 * u**2 * chieff**2)) + chi2**2 * (17 + (-338 * u * \
chieff + (424 * u**2 * chieff**2 + 128 * u**3 * chieff**3))))) + \
(q**10 * (-16 * u**4 * chi2**6 + (-2 * u**2 * chi2**4 * (-121 + (136 \
* u * chieff + 40 * u**2 * chieff**2)) + (chieff**2 * (201 + (3920 * \
u * chieff + 976 * u**2 * chieff**2)) + chi2**2 * (17 + (-148 * u * \
chieff + (2680 * u**2 * chieff**2 + 832 * u**3 * chieff**3)))))) + (2 \
* u**2 * chi1**4 * (3 + (-4 * q**8 + (2 * q**7 * (-19 + (36 * u**2 * \
chi2**2 + -8 * u * chieff)) + (24 * q * (-1 + 5 * u * chieff) + (2 * \
q**3 * (5 + (-16 * u * chieff + 24 * u**2 * chieff**2)) + (q**2 * \
(-67 + (204 * u * chieff + 48 * u**2 * chieff**2)) + (4 * q**5 * (13 \
+ (6 * u * chieff + 8 * u**2 * (9 * chi2**2 + -1 * chieff**2))) + \
(q**6 * (-53 + (28 * u * chieff + 8 * u**2 * (-27 * chi2**2 + \
chieff**2))) + -1 * q**4 * (-121 + (136 * u * chieff + 8 * u**2 * (18 \
* chi2**2 + 5 * chieff**2))))))))))) + -1 * chi1**2 * (1 + (q**(12) + \
(-6 * u * chieff + (q**(11) * (4 + (60 * u**2 * chi2**2 + 8 * u * \
chieff)) + (q * (4 + (16 * u * chieff + -96 * u**2 * chieff**2)) + \
(q**2 * (2 + (190 * u * chieff + (-592 * u**2 * chieff**2 + -96 * \
u**3 * chieff**3))) + (q**10 * (2 + (288 * u**4 * chi2**4 + (86 * u * \
chieff + (24 * u**3 * chi2**2 * chieff + 4 * u**2 * (chi2**2 + 2 * \
chieff**2))))) + (-4 * q**3 * (3 + (-102 * u * chieff + (112 * u**3 * \
chieff**3 + u**2 * (-15 * chi2**2 + 406 * chieff**2)))) + (-4 * q**9 \
* (3 + (-72 * u * chieff + (8 * u**3 * chieff * (-3 * chi2**2 + \
chieff**2) + (2 * u**2 * (29 * chi2**2 + 5 * chieff**2) + 24 * u**4 * \
(6 * chi2**4 + -1 * chi2**2 * chieff**2))))) + (q**4 * (-17 + (148 * \
u * chieff + (4 * u**2 * (chi2**2 + -670 * chieff**2) + 8 * u**3 * (3 \
* chi2**2 * chieff + -104 * chieff**3)))) + (8 * q**5 * (1 + (-70 * u \
* chieff + (12 * u**4 * chi2**2 * chieff**2 + (-1 * u**2 * (29 * \
chi2**2 + 379 * chieff**2) + 4 * u**3 * (3 * chi2**2 * chieff + -25 * \
chieff**3))))) + (4 * q**6 * (7 + (-189 * u * chieff + (8 * u**4 * \
chi2**2 * chieff**2 + (-1 * u**2 * (chi2**2 + 614 * chieff**2) + 6 * \
u**3 * (7 * chi2**2 * chieff + -20 * chieff**3))))) + (q**8 * (-17 + \
(338 * u * chieff + (-4 * u**2 * (chi2**2 + 106 * chieff**2) + (16 * \
u**4 * (27 * chi2**4 + 2 * chi2**2 * chieff**2) + 8 * u**3 * (21 * \
chi2**2 * chieff + -16 * chieff**3))))) + -8 * q**7 * (-1 + (20 * u * \
chieff + (u**2 * (-43 * chi2**2 + 169 * chieff**2) + (2 * u**4 * (9 * \
chi2**4 + 8 * chi2**2 * chieff**2) + -8 * u**3 * (3 * chi2**2 * \
chieff + -4 * chieff**3)))))))))))))))))))))))))))))))))))
# Machine generated with eq_generator.nb
coeff1 = -1/8 * q* | (u, chieff, q, chi1, chi2) | [
-0.03548770025372505,
0.007766586262732744,
0.010225599631667137,
-0.021210813894867897,
-0.015640297904610634,
0.002192417159676552,
-0.04062971472740173,
-0.04226581007242203,
-0.03235184773802757,
0.010293769650161266,
0.03953898325562477,
0.05500398576259613,
-0.008832969702780247,
0.07148180902004242,
-0.03572142496705055,
0.04417458921670914,
0.04982301592826843,
-0.04955033212900162,
0.01103390846401453,
0.01524101197719574,
-0.06380774080753326,
-0.010469065979123116,
0.009451375342905521,
0.11125452071428299,
-0.04152567312121391,
0.012816084548830986,
0.001525318599306047,
-0.03509815037250519,
-0.02980031818151474,
-0.01120920479297638,
-0.06287282705307007,
-0.0005980149726383388,
0.011754569597542286,
-0.03381264954805374,
0.01671154983341694,
-0.06933930516242981,
0.050796881318092346,
-0.007571812719106674,
-0.06567756086587906,
0.006490821018815041,
-0.0054731303825974464,
-0.002675698371604085,
-0.030326206237077713,
-0.05032942444086075,
-0.042850129306316376,
0.010770964436233044,
-0.045109499245882034,
0.08507698774337769,
-0.04292804002761841,
-0.008930356241762638,
0.014607998542487621,
-0.10502177476882935,
0.01170587632805109,
0.01735430210828781,
-0.006632031407207251,
-0.020645972341299057,
-0.02822265401482582,
-0.011520842090249062,
0.048109009861946106,
-0.0248725526034832,
0.025242622941732407,
0.032196030020713806,
0.04020121321082115,
0.018289214000105858,
0.005736074410378933,
0.018113918602466583,
0.0412529893219471,
0.007153050042688847,
-0.003084722440689802,
0.0179191455245018,
-0.022379454225301743,
0.014345054514706135,
0.012523924000561237,
-0.01215385552495718,
0.040746577084064484,
-0.019740276038646698,
-0.026060670614242554,
-0.051381200551986694,
-0.034669652581214905,
-0.01209542341530323,
-0.00828760489821434,
-0.00835090596228838,
0.0010870785918086767,
-0.09021899849176407,
-0.018863795325160027,
0.055393531918525696,
0.11024169623851776,
-0.004026938229799271,
0.008443423546850681,
0.037708114832639694,
-0.07350745052099228,
-0.04557695612311363,
0.03196230158209801,
0.010137951001524925,
0.028397949412465096,
-0.009519546292722225,
-0.012845300137996674,
-0.04413563385605812,
0.03324780613183975,
-0.05691276490688324,
-0.0031869783997535706,
0.019681842997670174,
-0.03239080309867859,
0.016740767285227776,
-0.009144607000052929,
-0.020879698917269707,
-0.07350745052099228,
0.029663976281881332,
0.061898961663246155,
-0.09871111810207367,
-0.09637384116649628,
0.052394021302461624,
0.010897567495703697,
-0.009339381009340286,
-0.02105499617755413,
-0.010556713677942753,
-0.04448622465133667,
0.016847891733050346,
0.025495827198028564,
0.05691276490688324,
0.006466474384069443,
-0.029547112062573433,
-0.010654100216925144,
-0.006310655735433102,
-0.010196383111178875,
0.0047622076235711575,
-0.01405289489775896,
0.042187899351119995,
0.020918654277920723,
0.004022068809717894,
0.043434448540210724,
-0.002541791880503297,
0.037474386394023895,
0.03766915947198868,
-0.038720935583114624,
0.005171231459826231,
-0.02956658974289894,
-0.008696628734469414,
0.05364057049155235,
0.02027590200304985,
0.03392951190471649,
-0.001550882589071989,
0.004844986367970705,
-0.034767039120197296,
0.004701341036707163,
0.042071036994457245,
0.017081620171666145,
0.0012167246313765645,
-0.059678543359041214,
-0.05691276490688324,
0.003362274495884776,
0.049472421407699585,
0.006875498220324516,
-0.05648426339030266,
0.02520366758108139,
-0.011257898062467575,
0.04394086077809334,
-0.021249769255518913,
-0.0018296518828719854,
-0.02989770472049713,
0.053289979696273804,
-0.05029046908020973,
0.03527344763278961,
0.044758908450603485,
-0.006101274397224188,
0.029157565906643867,
-0.0149683291092515,
-0.01848398707807064,
0.018727455288171768,
0.06372983008623123,
-0.025710077956318855,
-0.024677779525518417,
-0.04152567312121391,
0.00840446911752224,
-0.016672596335411072,
-0.0017906972207129002,
-0.03124164044857025,
-0.01972079835832119,
-0.010322986170649529,
-0.03492285683751106,
-0.04635604843497276,
-0.06244432553648949,
-0.010595668107271194,
-0.025164712220430374,
0.004516306333243847,
0.013507530093193054,
0.11024169623851776,
0.0058042448945343494,
0.03293616697192192,
-0.010654100216925144,
-0.030754707753658295,
-0.0454990491271019,
0.022788478061556816,
0.04226581007242203,
0.03248818963766098,
-0.010858612135052681,
0.06591129302978516,
0.009159215725958347,
-0.0061499676667153835,
-0.027930494397878647,
-0.06852125376462936,
-0.013634132221341133,
0.006408042274415493,
-0.0624832808971405,
-0.0042411889880895615,
-0.01782175898551941,
-0.027385128661990166,
0.0124362763017416,
0.03293616697192192,
0.01925334334373474,
0.03293616697192192,
-0.0025150105357170105,
0.031222162768244743,
0.012562879361212254,
-0.02508680336177349,
0.03685111179947853,
0.026294397190213203,
-0.021249769255518913,
-0.04405772313475609,
0.0038589462637901306,
0.05247193202376366,
-0.0066709863021969795,
-0.0013682825956493616,
-0.0021790266036987305,
-0.023801298812031746,
0.027833107858896255,
0.026274921372532845,
0.07938960194587708,
0.009991871193051338,
-0.05161492899060249,
0.027988925576210022,
0.04234372079372406,
0.051926568150520325,
-0.009383204393088818,
-0.043395496904850006,
0.04518740996718407,
-0.01882484182715416,
0.05757499486207962,
-0.004791423678398132,
0.024716734886169434,
-0.06267805397510529,
-0.030871570110321045,
0.0405518040060997,
0.011637705378234386,
-0.0125531405210495,
0.03819504752755165,
0.057536039501428604,
0.000032582684070803225,
-0.016643380746245384,
0.00890114065259695,
0.017987316474318504,
-0.06968989223241806,
-0.03911048173904419,
-0.04717409610748291,
-0.011102079413831234,
-0.04047389701008797,
0.02216520346701145,
-0.00896444171667099,
0.03498128801584244,
-0.026528125628829002,
-0.012475230731070042,
0.019409161061048508,
-0.05009569600224495,
0.03373473882675171,
-0.0737801343202591,
-0.012932948768138885,
-0.0345333106815815,
0.020314857363700867,
-0.040162257850170135,
-0.015990888699889183,
0.1374320536851883,
0.05254984274506569,
-0.061236731708049774,
0.02633335255086422,
-0.055627260357141495,
0.0033890558406710625,
0.02902122400701046,
0.04943346977233887,
-0.050134651362895966,
0.005648426245898008,
-0.02050963044166565,
0.023801298812031746,
0.05286147817969322,
0.024560915306210518,
-0.027540946379303932,
0.04460309073328972,
-0.01624409481883049,
0.02017851546406746,
0.06805379688739777,
-0.015523433685302734,
-0.024580392986536026,
-0.013059550896286964,
0.027482515200972557,
0.005366005003452301,
0.1320563107728958,
0.037026409059762955,
0.0028582983650267124,
0.008496985770761967,
0.01589350216090679,
0.04024016857147217,
-0.015727944672107697,
0.004720818251371384,
0.032994601875543594,
-0.039714280515909195,
0.009061828255653381,
0.004947242327034473,
0.06326237320899963,
-0.02944972552359104,
0.0058091143146157265,
-0.01681867614388466,
-0.008083092980086803,
-0.04136985167860985,
0.009451375342905521,
0.018659284338355064,
-0.007381908595561981,
-0.028748542070388794,
0.03048202395439148,
0.005740943364799023,
0.07533831894397736,
0.011511103250086308,
-0.0023214544635266066,
-0.0029946397989988327,
0.06871602684259415,
-0.015153364278376102,
-0.018756670877337456,
-0.06669038534164429,
-0.022145725786685944,
-0.04246058315038681,
-0.008058746345341206,
-0.06470369547605515,
-0.0016713985241949558,
0.034338537603616714,
-0.015055977739393711,
-0.006773242261260748,
-0.022204158827662468,
0.001319589209742844,
0.02062649466097355,
-0.004046415910124779,
-0.03819504752755165,
-0.03486442565917969,
0.032877735793590546,
0.004185191821306944,
0.0011254246346652508,
0.03022881969809532,
0.013517268002033234,
-0.05247193202376366,
0.0022301545832306147,
-0.0075182500295341015,
-0.02532053180038929,
0.031864915043115616,
-0.0040658931247889996,
-0.043979816138744354,
0.10151585191488266,
0.04222685471177101,
0.04191521927714348,
0.06571651995182037,
-0.024366142228245735,
-0.06408042460680008,
0.006904714275151491,
0.005083583761006594,
0.025729555636644363,
-0.006773242261260748,
-0.0181528739631176,
0.05200447514653206,
-0.007917535491287708,
-0.04320072382688522,
0.022204158827662468,
0.011141033843159676,
-0.016409652307629585,
-0.0036033063661307096,
0.013410142622888088,
0.0019172998145222664,
-0.020373288542032242,
0.02621648833155632,
-0.016429129987955093,
0.012144116684794426,
-0.03213759884238243,
0.04394086077809334,
-0.08577816933393478,
-0.04627814143896103,
0.05601680651307106,
-0.004058589227497578,
-0.10447640717029572,
-0.0006604032823815942,
-0.03776654601097107,
-0.019311774522066116,
-0.024483006447553635,
0.04849855601787567,
0.018415817990899086,
-0.00924199353903532,
0.0027657810132950544,
-0.010488543659448624,
0.06544383615255356,
0.013575700111687183,
0.002082857070490718,
0.031124776229262352,
0.056756943464279175,
0.00006390999624272808,
-0.056523218750953674,
-0.030111955478787422,
0.026703422889113426,
-0.04168149083852768,
0.0098117059096694,
-0.009056959301233292,
-0.006841412745416164,
-0.03708484023809433,
0.043317586183547974,
0.023470185697078705,
-0.013361449353396893,
0.0318259596824646,
-0.06544383615255356,
0.005317311733961105,
-0.015036500059068203,
0.016049321740865707,
-0.14927427470684052,
-0.006320394109934568,
-0.05991227179765701,
-0.025184189900755882,
0.015036500059068203,
0.07701337337493896,
0.048342738300561905,
-0.058548860251903534,
0.011082601733505726,
0.04748573526740074,
0.03955846279859543,
0.040162257850170135,
-0.018425555899739265,
-0.003927117213606834,
0.030891047790646553,
-0.012689481489360332,
-0.01170587632805109,
-0.0018893012311309576,
0.037123795598745346,
-0.0652880147099495,
-0.022106772288680077,
-0.004547956865280867,
-0.044875770807266235,
-0.005064106080681086,
-0.00034967897227033973,
0.003138285130262375,
-0.00037828629137948155,
-0.004764642100781202,
0.01983766257762909,
-0.03521501645445824,
0.056523218750953674,
0.027755197137594223,
0.009787359274923801,
0.0012781999539583921,
-0.04651186987757683,
0.004075631499290466,
0.04133090004324913,
0.0052880956791341305,
-0.037708114832639694,
0.03741595521569252,
0.04686246067285538,
0.055860988795757294,
0.004389703739434481,
0.03102738969027996,
-0.015309182927012444,
-0.025398440659046173,
0.014822249300777912,
0.049238696694374084,
0.053056251257658005,
0.03272191807627678,
-0.012338889762759209,
0.08507698774337769,
0.025106281042099,
-0.009860399179160595,
-0.009509807452559471,
-0.03114425390958786,
-0.002668394474312663,
0.049004968255758286,
-0.01215385552495718,
-0.016283050179481506,
0.040162257850170135,
-0.01802626997232437,
-0.06867707520723343,
0.010576191358268261,
0.05621157959103584,
-0.030988434329628944,
0.00031954998848959804,
-0.06571651995182037,
0.034552786499261856,
-0.04425249621272087,
0.008496985770761967,
-0.0577697679400444,
-0.03733804449439049,
-0.08071406185626984,
-0.010800180956721306,
-0.03414376452565193,
-0.017860712483525276,
0.03301407769322395,
0.0068073272705078125,
-0.03414376452565193,
-0.016312265768647194,
0.044875770807266235,
0.03969480097293854,
0.01657520979642868,
-0.03517606109380722,
0.03128059580922127,
0.013867860659956932,
0.06287282705307007,
-0.08967363834381104,
0.022574227303266525,
-0.015094932168722153,
-0.022476840764284134,
0.033091988414525986,
-0.022788478061556816,
-0.04514845460653305,
-0.014802772551774979,
-0.009836052544414997,
-0.09341328591108322,
0.062015824019908905,
-0.045771729201078415,
0.009553630836308002,
0.01603958196938038,
0.004170583561062813,
0.008759929798543453,
-0.013643871061503887,
0.0024212757125496864,
0.02765781059861183,
0.009115391410887241,
0.003537570359185338,
0.006987493019551039,
0.047096189111471176,
0.002512575825676322,
-0.0022459798492491245,
-0.025515304878354073,
0.02395711839199066,
-0.012747913599014282,
-0.006408042274415493,
-0.038720935583114624,
-0.022457363083958626,
0.05219924822449684,
-0.010556713677942753,
0.022379454225301743,
-0.017422473058104515,
-0.02160036191344261,
0.05636739730834961,
-0.015523433685302734,
-0.04203208163380623,
-0.0032454105094075203,
0.011929865926504135,
-0.056523218750953674,
0.0007930925930850208,
-0.01926308125257492,
0.0063301329500973225,
0.035779859870672226,
-0.02093813195824623,
-0.010663839057087898,
-0.02720983326435089,
-0.008331428281962872,
0.03207916393876076,
-0.006339871324598789,
0.08811544626951218,
0.031222162768244743,
0.050680018961429596,
0.009446506388485432,
-0.010332725010812283,
0.02027590200304985,
-0.011851956136524677,
-0.025924328714609146,
-0.003537570359185338,
-0.07787037640810013,
0.024366142228245735,
0.008613849990069866,
-0.014637215062975883,
0.036461565643548965,
-0.039733756333589554,
-0.030423592776060104,
-0.027540946379303932,
0.06415832787752151,
0.03977271169424057,
0.033228326588869095,
-0.09917857497930527,
-0.07748082280158997,
-0.015445523895323277,
-0.03696797415614128,
0.02197043038904667,
-0.0019976438488811255,
0.022106772288680077,
0.06049659103155136,
-0.009952916763722897,
-0.007971097715198994,
0.060769274830818176,
0.033676307648420334,
0.04288908466696739,
0.06326237320899963,
0.003985548857599497,
0.010313247330486774,
0.009251732379198074,
-0.02968345396220684,
-0.0454990491271019,
-0.04366817697882652,
-0.007932143285870552,
0.026820285245776176,
-0.025690600275993347,
0.0009470852673985064,
-0.008730714209377766,
0.010410633869469166,
-0.021425064653158188,
0.02720983326435089,
0.001222811290062964,
-0.04086344316601753,
0.009675364941358566,
0.04253849387168884,
0.02130820043385029,
-0.00554617028683424,
0.0076691992580890656,
-0.036461565643548965,
0.05671799182891846,
0.004136498551815748,
0.008720975369215012,
-0.032877735793590546,
-0.08071406185626984,
-0.012747913599014282,
0.0022545012179762125,
-0.02576851099729538,
-0.004669690504670143,
0.0011290765833109617,
-0.0546923466026783,
0.012056468054652214,
-0.018678762018680573,
0.043395496904850006,
-0.02440509758889675,
-0.029956135898828506,
0.004438397008925676,
-0.01103390846401453,
-0.007489033974707127,
0.011384500190615654,
0.02421032264828682,
0.023587048053741455,
0.031884390860795975,
0.018425555899739265,
-0.03722118213772774,
0.045421138405799866,
-0.013332233764231205,
-0.0035765250213444233,
-0.042304765433073044,
0.04783632606267929,
-0.042304765433073044,
0.10657995939254761,
-0.009027743712067604,
-0.008974180556833744,
-0.03239080309867859,
0.01603958196938038,
-0.018289214000105858,
-0.019117001444101334,
0.01915595680475235,
0.002894818549975753,
-0.015133886598050594,
0.04362922161817551,
0.005648426245898008,
-0.023022206500172615,
-0.03505919873714447,
-0.06302864849567413,
-0.027268264442682266,
0.035351358354091644,
-0.01679919846355915,
0.005935716908425093,
0.026469694450497627,
0.017393257468938828,
0.05613366886973381,
-0.031202685087919235,
-0.03550717607140541,
0.042187899351119995,
0.09216673672199249,
-0.027424084022641182,
-0.027638334780931473,
0.03408532962203026,
-0.0180360097438097,
-0.002047554589807987,
0.01737377978861332,
-0.052160296589136124,
-0.0356045626103878,
0.060886140912771225,
-0.005721466150134802,
0.007639983203262091,
-0.0019489505793899298,
-0.02331436611711979,
0.06104195863008499,
0.031222162768244743,
-0.011861694976687431,
-0.0380781851708889,
0.03416324034333229,
0.006047711707651615,
-0.0022423279006034136,
0.0322934165596962,
-0.06684619933366776,
-0.07081957906484604,
-0.037474386394023895,
0.03172857314348221,
-0.019389683380723,
-0.00997239351272583,
0.06291177868843079,
0.004611258395016193,
-0.05173179507255554,
0.011335806921124458,
0.0062181381508708,
-0.03911048173904419,
0.0335983969271183,
-0.002958119846880436,
0.02833951823413372,
-0.004896114114671946,
-0.008974180556833744,
0.0450315922498703,
-0.0032210638746619225,
-0.04530427232384682,
-0.014831988140940666,
-0.0022800650913268328,
0.006033103447407484,
0.05948377028107643,
-0.042071036994457245,
-0.02586589753627777,
-0.05500398576259613,
0.019009875133633614,
-0.03753281757235527,
0.0671967938542366,
0.05223820358514786,
-0.0038126877043396235,
0.02105499617755413,
-0.010186644271016121,
-0.00031711530755274,
0.017948361113667488,
-0.021366633474826813,
0.04304490238428116,
0.012007774785161018,
-0.03638365492224693,
-0.009587716311216354,
-0.030092477798461914,
0.010011348873376846,
0.016390174627304077,
-0.03562403842806816,
-0.004995935596525669,
-0.02757990173995495,
-0.06758634001016617,
0.01904883049428463,
-0.03671476989984512,
0.0030944610480219126,
-0.016526516526937485,
-0.022944297641515732,
0.016107752919197083,
0.03324780613183975,
0.02074335888028145,
-0.026469694450497627,
-0.016283050179481506,
0.01781201921403408,
0.011111818253993988,
0.02251579612493515,
0.0005593646201305091,
0.0196234118193388,
0.015270228497684002,
0.010488543659448624,
-0.014481396414339542,
0.006826804950833321,
0.01814313419163227,
-0.01825026050209999,
0.01237784419208765,
-0.03161171078681946,
-0.003958767745643854,
-0.039052050560712814,
0.014919635839760303,
0.023509139195084572,
0.03823400288820267,
-0.011316330172121525,
-0.03081313893198967,
0.017958100885152817,
-0.0011960299452766776
] |
20,891 | precession.precession | kappalimits |
Limits on the asymptotic angular momentum. The contraints considered depend on the inputs provided.
- If r, q, chi1, chi2 are provided, returns the geometrical limits.
- If r, chieff, q, chi1, and chi2 are provided, returns the spin-orbit resonances.
The boolean flag enforce raises an error in case the inputs are not compatible. Additional kwargs are passed to kapparesonances.
Parameters
----------
r: float, optional (default: None)
Binary separation.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
enforce: boolean, optional (default: False)
Perform additional checks.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kappalimits(r=r,q=q,chi1=chi1,chi2=chi2)``
``kappamin,kappamax = precession.kappalimits(r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``kappamin,kappamax = precession.kappalimits(r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,enforce=True)``
| def kappalimits(r=None, chieff=None, q=None, chi1=None, chi2=None, enforce=False, **kwargs):
"""
Limits on the asymptotic angular momentum. The contraints considered depend on the inputs provided.
- If r, q, chi1, chi2 are provided, returns the geometrical limits.
- If r, chieff, q, chi1, and chi2 are provided, returns the spin-orbit resonances.
The boolean flag enforce raises an error in case the inputs are not compatible. Additional kwargs are passed to kapparesonances.
Parameters
----------
r: float, optional (default: None)
Binary separation.
chieff: float, optional (default: None)
Effective spin.
q: float, optional (default: None)
Mass ratio: 0<=q<=1.
chi1: float, optional (default: None)
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float, optional (default: None)
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
enforce: boolean, optional (default: False)
Perform additional checks.
**kwargs: unpacked dictionary, optional
Additional keyword arguments.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kappalimits(r=r,q=q,chi1=chi1,chi2=chi2)``
``kappamin,kappamax = precession.kappalimits(r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2)``
``kappamin,kappamax = precession.kappalimits(r=r,chieff=chieff,q=q,chi1=chi1,chi2=chi2,enforce=True)``
"""
if r is not None and chieff is None and q is not None and chi1 is not None and chi2 is not None:
kappamin, kappamax = kappalimits_geometrical(r, q, chi1, chi2)
elif r is not None and chieff is not None and q is not None and chi1 is not None and chi2 is not None:
kappamin, kappamax = kapparesonances(r, chieff, q, chi1, chi2, **kwargs)
# Check precondition
kappamin_cond, kappamax_cond = kappalimits_geometrical(r , q, chi1, chi2)
if (kappamin >= kappamin_cond).all() and (kappamax <= kappamax_cond).all():
pass
else:
if enforce:
raise ValueError("Input values are not compatible [kappalimits].")
else:
warnings.warn("Input values are not compatible [kappalimits].", Warning)
else:
raise TypeError("Provide either (r,q,chi1,chi2) or (r,chieff,q,chi1,chi2).")
return np.stack([kappamin, kappamax])
| (r=None, chieff=None, q=None, chi1=None, chi2=None, enforce=False, **kwargs) | [
0.010537122376263142,
-0.01807529665529728,
-0.017320459708571434,
-0.0010825287317857146,
0.012791434302926064,
-0.004460171330720186,
-0.04067961871623993,
-0.05606198310852051,
-0.01143476739525795,
0.05736764520406723,
0.03937395289540291,
0.04724874347448349,
0.0287858285009861,
0.020992642268538475,
-0.021869884803891182,
0.0027515864931046963,
0.05728604272007942,
-0.037619467824697495,
0.01393389143049717,
0.01727965660393238,
0.022624721750617027,
-0.01495394203811884,
-0.045494258403778076,
0.0785030946135521,
-0.026990538462996483,
0.05132894590497017,
0.02609289437532425,
0.02923464961349964,
-0.015545571222901344,
-0.013454467989504337,
-0.023032743483781815,
0.036436207592487335,
0.031845979392528534,
-0.0006783336284570396,
0.0033610668033361435,
-0.048595212399959564,
0.06112143397331238,
0.024603620171546936,
-0.08731633424758911,
0.015790384262800217,
0.00329221342690289,
-0.015290558338165283,
0.047738369554281235,
-0.02233910746872425,
-0.022563518956303596,
0.026174498721957207,
0.007640179246664047,
0.08862199634313583,
0.03370247036218643,
-0.01609639823436737,
0.004312263801693916,
-0.09457909315824509,
0.05932614207267761,
-0.00574798509478569,
-0.036170993000268936,
0.08992765843868256,
0.009619077667593956,
0.0019317208789288998,
0.029581468552350998,
-0.10184185206890106,
-0.017463266849517822,
-0.011648978106677532,
0.10486119985580444,
-0.03804788738489151,
-0.033212848007678986,
0.03345765918493271,
-0.04092442989349365,
0.004472922068089247,
-0.00455197598785162,
0.049329645931720734,
-0.02713334560394287,
-0.019095348194241524,
-0.0360281877219677,
0.0043403152376413345,
0.01067992951720953,
-0.015953591093420982,
-0.003371267346665263,
-0.023216351866722107,
-0.0395575612783432,
-0.02017660066485405,
0.05540914833545685,
0.01931975781917572,
-0.016586022451519966,
-0.04777916893362999,
-0.00676803570240736,
0.02898983843624592,
-0.0006725958664901555,
-0.015504769049584866,
0.08870360255241394,
-0.0004389405366964638,
-0.050961729139089584,
0.001140544074587524,
0.07976795732975006,
0.0677313581109047,
0.03258041664958,
0.05251220613718033,
-0.06352875381708145,
-0.04937044903635979,
0.002137006027624011,
-0.0287858285009861,
-0.010822736658155918,
0.027500564232468605,
0.025970488786697388,
0.013240257278084755,
0.021604672074317932,
-0.022033093497157097,
-0.06748654693365097,
0.003873642301186919,
0.057530853897333145,
-0.024991240352392197,
-0.09074370563030243,
0.02484843321144581,
0.008089001290500164,
0.02727615274488926,
-0.06924103200435638,
0.04039400443434715,
-0.04047560691833496,
-0.0020974790677428246,
0.02535845898091793,
0.05777566507458687,
-0.04700393229722977,
-0.024399610236287117,
0.0720563754439354,
-0.039720769971609116,
0.054307494312524796,
0.035130541771650314,
0.016810433939099312,
0.050635311752557755,
-0.00730866240337491,
0.017993692308664322,
0.04402538388967514,
-0.010669729672372341,
0.014086899347603321,
-0.02990788407623768,
-0.039333149790763855,
-0.008160404860973358,
0.051655363291502,
0.02372637763619423,
0.01655542105436325,
0.02444041334092617,
0.043413352221250534,
0.041026435792446136,
-0.009221257641911507,
0.006467120721936226,
0.005941794719547033,
-0.02760257013142109,
0.07356604933738708,
-0.026970138773322105,
0.030581116676330566,
0.03645660728216171,
-0.012108000926673412,
0.011118551716208458,
0.04172006994485855,
0.0019992992747575045,
0.018809733912348747,
-0.013240257278084755,
0.047411952167749405,
-0.013250457122921944,
-0.02293073758482933,
-0.04920724034309387,
-0.051165737211704254,
-0.012669028714299202,
0.03294763341546059,
0.03627299889922142,
0.006395717151463032,
-0.018044695258140564,
-0.03209079056978226,
0.043535761535167694,
0.045371852815151215,
0.026398910209536552,
0.020778430625796318,
-0.006671131122857332,
-0.03402888774871826,
-0.07711582630872726,
-0.016086198389530182,
-0.027622969821095467,
-0.02845941111445427,
-0.07181156426668167,
0.03017309680581093,
0.02668452449142933,
-0.01899334229528904,
-0.03162156790494919,
-0.056551605463027954,
-0.046228691935539246,
0.009083550423383713,
0.04937044903635979,
0.026378508657217026,
0.03541615605354309,
-0.00962417759001255,
-0.018758730962872505,
-0.0009843488223850727,
-0.04949285462498665,
0.021849483251571655,
0.05124734342098236,
-0.03319244831800461,
-0.004564726259559393,
0.05659240856766701,
0.03606899082660675,
-0.019615573808550835,
-0.029214249923825264,
0.0014535720692947507,
0.043331749737262726,
-0.03753786161541939,
0.032621219754219055,
0.0377010703086853,
0.014780533500015736,
-0.0403532013297081,
-0.0011112176580354571,
0.020849835127592087,
0.019941989332437515,
-0.011526571586728096,
-0.0044448706321418285,
-0.02081923373043537,
-0.05899972841143608,
0.00676803570240736,
0.04435180127620697,
0.07079151272773743,
0.021257854998111725,
-0.02372637763619423,
-0.008762234821915627,
0.004615729209035635,
-0.027704574167728424,
0.04749355465173721,
0.0467999204993248,
0.030927933752536774,
0.003934845328330994,
0.005584776867181063,
0.05014568939805031,
0.011822386644780636,
0.01825890503823757,
0.0016665076836943626,
0.02544006146490574,
0.0024404709693044424,
-0.05932614207267761,
-0.07438208907842636,
0.01097574457526207,
0.012026396580040455,
-0.0038710921071469784,
-0.05455230548977852,
0.013709479942917824,
0.04422939568758011,
-0.006747634615749121,
-0.02949986420571804,
0.0392923504114151,
-0.05014568939805031,
-0.01872812956571579,
0.023359159007668495,
-0.0032871130388230085,
0.00622740900143981,
0.010363713838160038,
-0.00417455704882741,
-0.058387696743011475,
-0.0014637726126238704,
0.020645825192332268,
0.013791084289550781,
0.013954292051494122,
-0.0029428459238260984,
0.034069690853357315,
0.044188592582941055,
0.009073350578546524,
0.06422238796949387,
0.04639190062880516,
-0.004529024474322796,
0.04016959294676781,
-0.055368345230817795,
0.016086198389530182,
-0.004891142714768648,
-0.0036313801538199186,
-0.00923145841807127,
-0.010526922531425953,
-0.08805076777935028,
0.07144434750080109,
0.01501514483243227,
-0.0382314957678318,
-0.01275063306093216,
0.05259380862116814,
0.026766128838062286,
-0.0026240802835673094,
-0.056225188076496124,
0.01270983088761568,
-0.022645123302936554,
-0.059448547661304474,
0.010103601031005383,
0.06475280970335007,
-0.06593607366085052,
-0.0019992992747575045,
-0.030336305499076843,
0.006349815055727959,
0.0839705690741539,
-0.012342612259089947,
0.02142106369137764,
0.0023155149538069963,
-0.02201269194483757,
0.026990538462996483,
0.0947422981262207,
-0.006043799687176943,
-0.0022364610340446234,
-0.06642569601535797,
0.040577612817287445,
-0.046963129192590714,
0.06826178729534149,
-0.024093596264719963,
0.07034268975257874,
-0.03211119398474693,
0.07519812881946564,
0.015280358493328094,
0.06858820468187332,
-0.005248160567134619,
0.019962390884757042,
0.04851360619068146,
-0.02739856019616127,
-0.04447420686483383,
0.03304963931441307,
-0.03517134487628937,
-0.04316854104399681,
-0.07842148840427399,
0.07111793011426926,
0.0019151449669152498,
0.02852061577141285,
0.01952376775443554,
0.022135097533464432,
-0.004554525949060917,
-0.019482966512441635,
-0.010210706852376461,
-0.0233999602496624,
-0.07307642698287964,
0.031070740893483162,
0.01159797515720129,
-0.01945236511528492,
-0.05585797131061554,
-0.043331749737262726,
0.07230118662118912,
-0.014219505712389946,
0.019207552075386047,
-0.05855090543627739,
0.029887482523918152,
0.007808487396687269,
0.004026649985462427,
0.010404516011476517,
-0.0098893903195858,
0.03068312257528305,
-0.028418609872460365,
-0.02641930989921093,
0.02668452449142933,
-0.045371852815151215,
0.0012495620176196098,
0.027378158643841743,
-0.012781234458088875,
-0.004536675289273262,
0.02095183916389942,
-0.004016449209302664,
0.029030639678239822,
0.033600468188524246,
0.03566097095608711,
0.03888433054089546,
0.013230056501924992,
-0.011312360875308514,
-0.038353901356458664,
0.02352236770093441,
-0.01377068366855383,
0.028439011424779892,
0.010409616865217686,
-0.05402188003063202,
0.030458711087703705,
-0.013454467989504337,
0.015321159735321999,
-0.035518161952495575,
0.025399260222911835,
0.023542767390608788,
-0.030968736857175827,
0.024481214582920074,
-0.042148489505052567,
-0.025746077299118042,
0.011710180900990963,
0.03704823926091194,
0.11253198236227036,
-0.008129803463816643,
0.02686813287436962,
-0.05251220613718033,
0.028112594038248062,
0.003228460205718875,
0.0013745181495323777,
-0.03474292531609535,
-0.031233949586749077,
-0.0004998248186893761,
-0.019880786538124084,
-0.04198528453707695,
-0.052267394959926605,
0.03323324769735336,
0.02943866141140461,
0.052716214209795,
-0.032294802367687225,
0.03158076852560043,
-0.01464792713522911,
-0.051084134727716446,
0.04337255284190178,
0.03302923962473869,
0.020390812307596207,
-0.024073194712400436,
-0.01820790395140648,
0.004062351770699024,
-0.02852061577141285,
0.006905742455273867,
-0.060101382434368134,
0.003695133375003934,
0.025338057428598404,
0.020676426589488983,
-0.016014793887734413,
-0.01919735223054886,
0.03029550239443779,
0.022196300327777863,
0.022135097533464432,
-0.01971757784485817,
0.026113295927643776,
-0.05455230548977852,
0.0002682414196897298,
-0.02943866141140461,
-0.038476310670375824,
0.004722834099084139,
0.013036246411502361,
0.04777916893362999,
-0.04614708945155144,
0.03415129333734512,
0.026908935979008675,
0.04582067206501961,
0.004064901731908321,
-0.0006435881950892508,
-0.01374008134007454,
-0.015790384262800217,
-0.03345765918493271,
-0.010231107473373413,
0.01511714980006218,
-0.052022580057382584,
-0.04855440929532051,
-0.07275000959634781,
0.023746777325868607,
-0.031437959522008896,
0.0013145902194082737,
0.03396768495440483,
-0.06736414134502411,
0.01675943098962307,
-0.024195600301027298,
0.033090442419052124,
-0.0032080591190606356,
0.0009562974446453154,
-0.0009314336930401623,
-0.033682070672512054,
0.02864302136003971,
-0.04647350683808327,
-0.024868834763765335,
0.0023078646045178175,
-0.006237609311938286,
-0.01215900294482708,
0.021461864933371544,
0.036170993000268936,
0.03056071698665619,
-0.05243059992790222,
-0.0009505596826784313,
-0.0029020439833402634,
0.0023563168942928314,
0.06230469048023224,
0.02103344351053238,
0.039985984563827515,
-0.014872337691485882,
0.018819933757185936,
0.05814288556575775,
-0.002185458317399025,
-0.003983297850936651,
-0.0034120692871510983,
-0.0495336577296257,
0.014168502762913704,
-0.012169203720986843,
0.02633770741522312,
0.01316885370761156,
0.03162156790494919,
0.0036109790671616793,
0.02680693008005619,
0.014066497795283794,
0.026643721386790276,
-0.02748016268014908,
0.03139715641736984,
0.041291650384664536,
-0.007711582817137241,
0.004608078394085169,
-0.009511971846222878,
-0.05304263159632683,
-0.06210068240761757,
-0.07772785425186157,
-0.04325014725327492,
-0.02425680309534073,
-0.045575860887765884,
-0.01316885370761156,
0.033274050801992416,
0.0791151225566864,
0.0075738755986094475,
-0.02260432206094265,
0.07083231210708618,
-0.010333112441003323,
0.01229161024093628,
0.01892193965613842,
-0.004755985923111439,
0.04337255284190178,
-0.06112143397331238,
-0.021727077662944794,
-0.01801409386098385,
-0.001457397360354662,
-0.018483316525816917,
-0.06487521529197693,
-0.04496382921934128,
-0.004449970554560423,
-0.020339809358119965,
-0.03980237618088722,
0.050757717341184616,
-0.009185555391013622,
0.0021484815515577793,
-0.02509324438869953,
0.00982818752527237,
-0.022033093497157097,
-0.004993147682398558,
-0.03160116821527481,
0.01589238829910755,
-0.013321860693395138,
0.04463741555809975,
0.03009149245917797,
0.021665874868631363,
-0.01313825137913227,
0.032294802367687225,
-0.04378057271242142,
-0.012760832905769348,
0.012179404497146606,
-0.04100603610277176,
-0.02180868200957775,
-0.029622269794344902,
0.09604796767234802,
-0.07201557606458664,
-0.024134397506713867,
-0.08172645419836044,
-0.0024328206200152636,
0.05177776888012886,
0.0070536499843001366,
-0.017198054119944572,
0.06589526683092117,
0.0467999204993248,
-0.02701094001531601,
0.027153747156262398,
0.010455518960952759,
-0.004253610968589783,
0.0075738755986094475,
0.0068343388848006725,
-0.012301810085773468,
-0.047942377626895905,
-0.02713334560394287,
0.05018648877739906,
0.041822075843811035,
0.029805878177285194,
-0.016647225245833397,
0.038211096078157425,
-0.04325014725327492,
0.016861436888575554,
-0.026439711451530457,
-0.056878022849559784,
-0.01149597018957138,
0.00691594323143363,
-0.07817667722702026,
-0.03386567905545235,
-0.015749581158161163,
-0.007578975986689329,
0.015933191403746605,
-0.02248191460967064,
0.025705276057124138,
0.0006343439454212785,
0.019095348194241524,
-0.02417519874870777,
-0.0228695347905159,
-0.06662970781326294,
0.0022721628192812204,
-0.013321860693395138,
-0.030071092769503593,
-0.07356604933738708,
-0.006885341834276915,
0.011047148145735264,
0.003927194979041815,
0.015066147781908512,
-0.0457390695810318,
0.03535495325922966,
0.037293050438165665,
-0.013699280098080635,
0.02358357049524784,
-0.07034268975257874,
0.08115522563457489,
-0.027092544361948967,
0.020727427676320076,
-0.03831310197710991,
-0.04981927201151848,
-0.023889584466814995,
0.009450769051909447,
-0.01047591958194971,
0.006864940747618675,
0.03627299889922142,
-0.017361260950565338,
-0.008803036995232105,
-0.04998248070478439,
-0.053450651466846466,
-0.04553505778312683,
-0.015402764081954956,
0.067282535135746,
-0.032437607645988464,
0.031825579702854156,
0.0088744405657053,
0.027969786897301674,
-0.043086938560009,
-0.001481623505242169,
0.009129452519118786,
0.036823827773332596,
-0.0004233210056554526,
0.061529453843832016,
0.009527272544801235,
-0.01557617262005806,
0.07760544866323471,
0.021931087598204613,
-0.041026435792446136,
0.006502822507172823,
0.011689780279994011,
0.007935993373394012,
-0.01807529665529728,
-0.021257854998111725,
-0.004248510580509901,
-0.049656063318252563,
-0.0019750730134546757,
0.029030639678239822,
0.07254599779844284,
0.015229355543851852,
0.027826979756355286,
-0.00046157289762049913,
0.01245481800287962,
0.06267190724611282,
0.0004459533665794879,
0.010042398236691952,
-0.0002771668659988791,
0.00933346338570118,
-0.027765776962041855,
0.0013005645014345646,
-0.0051946076564490795,
0.011393965221941471,
0.034212496131658554,
-0.008328713476657867,
-0.019666574895381927,
0.058387696743011475,
0.0694858506321907,
-0.0037180844228714705,
-0.05275701731443405,
-0.05940774828195572,
-0.05051290616393089,
-0.016126999631524086,
-0.04112844169139862,
-0.02272672764956951,
0.07511653006076813,
0.014474518597126007,
-0.055694762617349625,
-0.03974117338657379,
-0.052471403032541275,
0.014005295000970364,
-0.03280482813715935,
-0.020676426589488983,
-0.014729530550539494,
-0.024889234453439713,
0.02595008723437786,
-0.06201907619833946,
-0.04529024660587311,
0.05981576815247536,
0.03582417592406273,
-0.02384878322482109,
0.027847381308674812,
-0.012985244393348694,
0.004763636272400618,
0.05593957379460335,
-0.04357656091451645,
0.051940977573394775,
-0.021257854998111725,
-0.02444041334092617,
0.04659591242671013,
0.02346116490662098,
-0.01826910674571991,
0.027582168579101562,
0.05610278248786926,
-0.045167841017246246,
0.008145104162395,
0.028541015461087227,
-0.06830258667469025,
0.009124352596700191,
-0.0008581175934523344,
-0.027112945914268494,
0.02929585427045822,
-0.03572217375040054,
0.029785478487610817,
0.010195406153798103,
-0.09931212663650513,
0.06279431283473969,
0.012648627161979675,
-0.0035217248369008303,
0.04973766952753067,
0.015331360511481762,
-0.03100953809916973,
-0.009613976813852787,
-0.09645598381757736,
0.020268404856324196,
-0.012403815053403378,
-0.011740782298147678,
-0.037884678691625595,
-0.023807981982827187,
-0.009175355546176434,
0.0914781391620636,
0.022379910573363304,
-0.05879571661353111,
-0.032498814165592194,
0.01226100791245699,
0.010792135260999203,
0.026378508657217026,
0.008252209052443504,
0.009190656244754791,
-0.008915242739021778,
-0.021115047857165337,
0.017065446823835373,
-0.05973416194319725,
-0.02884703129529953,
-0.029540665447711945,
0.038659919053316116,
-0.03845590725541115,
0.015331360511481762,
-0.017249055206775665,
-0.0055031729862093925,
-0.020880436524748802,
-0.07291321456432343,
0.0015798034146428108,
0.017626473680138588,
-0.04639190062880516,
-0.03462051600217819,
-0.04243410378694534,
0.04651430621743202,
0.017565270885825157,
0.009348764084279537,
0.036823827773332596,
-0.006625228561460972,
-0.0452086441218853,
0.03829269856214523,
0.00046412303345277905,
-0.04127124696969986,
0.002496573841199279,
0.012505820021033287,
0.029030639678239822,
0.021584270521998405,
0.012046798132359982,
0.04961526021361351,
-0.004529024474322796,
0.01343406643718481,
0.05557235702872276,
-0.03810909017920494,
-0.024726027622818947,
-0.014637726359069347,
-0.004243410658091307,
-0.02056422084569931,
0.005549075081944466,
0.012097800150513649,
0.04125084728002548,
0.01992158778011799,
0.006054000463336706,
0.0118325874209404,
0.00022903323406353593
] |
20,892 | precession.precession | kappalimits_geometrical |
Limits in kappa conditioned on r, q, chi1, chi2.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kappalimits_geometrical(r,q,chi1,chi2)``
| def kappalimits_geometrical(r , q, chi1, chi2):
"""
Limits in kappa conditioned on r, q, chi1, chi2.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kappalimits_geometrical(r,q,chi1,chi2)``
"""
r = np.atleast_1d(r).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
k1 = -q*r**(1/2)/(2*(1+q)**2)
k2 = np.where(q*r**(1/2)>=chi1+chi2*q**2,
(chi1+chi2*q**2)/(1+q)**2 *(-1+ (chi1+chi2*q**2)/(2*q*r**(1/2))),
1/(1+q)**2 * (-q*r**(1/2) + (chi1+chi2*q**2) - (chi1+chi2*q**2)**2 /(2*q*r**(1/2)))
)
k3 = np.where(np.abs(chi1-chi2*q**2)>= q*r**(1/2),
np.abs(chi1-chi2*q**2)/(1+q)**2 *(-1+ np.abs(chi1-chi2*q**2)/(2*q*r**(1/2))),
1/(1+q)**2 * (-q*r**(1/2) + np.abs(chi1-chi2*q**2) - (chi1-chi2*q**2)**2 /(2*q*r**(1/2)))
)
kappamin = np.maximum.reduce([k1,k2,k3])
# An alternative implementation that breaks down for r=inf
# def squarewithsign(x):
# return x*np.abs(x)
# kappamin_old= q*r**(1/2)/(2*(1+q)**2)*(
# np.maximum.reduce([np.zeros(q.shape),
# squarewithsign( 1- (chi1+chi2*q**2) / (q*r**(1/2))),
# squarewithsign( np.abs(chi1-chi2*q**2) / (q*r**(1/2)) - 1 )] )
# -1)
kappamax = (chi1+chi2*q**2) / (1+q)**2 * ( (chi1+chi2*q**2) / (2*q*r**(1/2)) +1 )
return np.stack([kappamin,kappamax])
| (r, q, chi1, chi2) | [
0.005900758784264326,
-0.02735232375562191,
-0.004761888179928064,
0.041183896362781525,
0.02399156242609024,
-0.018756156787276268,
-0.01920296438038349,
-0.05967779830098152,
-0.010470811277627945,
0.045885078608989716,
0.03018857352435589,
0.0514410175383091,
0.012423161417245865,
0.023913856595754623,
-0.05808483809232712,
0.023311639204621315,
0.0099025908857584,
-0.026963796466588974,
0.030810218304395676,
-0.005007145926356316,
-0.0017265183851122856,
-0.0474003329873085,
-0.009300373494625092,
0.05893959477543831,
-0.03265572339296341,
0.059833209961652756,
-0.009596625342965126,
-0.008775861002504826,
-0.0552874393761158,
-0.055093176662921906,
-0.0519072525203228,
-0.002809538273140788,
0.03455950692296028,
-0.039765771478414536,
0.02678895927965641,
-0.06764260679483414,
0.0525677464902401,
0.02315622940659523,
-0.09091539680957794,
-0.010781633667647839,
-0.030460543930530548,
-0.005925041623413563,
-0.01213176641613245,
-0.05097478628158569,
0.003661870025098324,
0.01753229647874832,
-0.0004067395639140159,
0.07168329507112503,
0.011801517568528652,
0.011752951890230179,
0.02488517574965954,
-0.09060457348823547,
0.030305132269859314,
-0.00193535175640136,
-0.058473363518714905,
0.06247519701719284,
-0.0038027113769203424,
-0.01706606335937977,
-0.017775125801563263,
-0.10466926544904709,
-0.021077608689665794,
-0.01649298518896103,
0.0665547326207161,
0.017464304342865944,
-0.010985610075294971,
0.04685639590024948,
-0.011947215534746647,
0.0090818265452981,
0.01171409897506237,
0.06577767431735992,
-0.036696407943964005,
-0.024690911173820496,
-0.026924943551421165,
-0.045885078608989716,
0.0029260965529829264,
0.009344082325696945,
-0.03908585011959076,
-0.0276437196880579,
-0.005031428765505552,
-0.04405900090932846,
0.024690911173820496,
0.007901675067842007,
0.038930438458919525,
-0.054277267307043076,
-0.002410083543509245,
0.04293227195739746,
0.01953321136534214,
0.005857049487531185,
0.06290257722139359,
-0.026866665109992027,
-0.05505432188510895,
-0.005473379045724869,
0.047050658613443375,
0.06919671595096588,
0.039785198867321014,
0.047555744647979736,
-0.059561241418123245,
-0.0183967687189579,
0.02206835336983204,
-0.05023658275604248,
0.038114532828330994,
0.03069365955889225,
-0.0005278508178889751,
0.007527716923505068,
0.01901841349899769,
-0.026730680838227272,
-0.023603035137057304,
0.0259536262601614,
0.026050757616758347,
-0.028051674365997314,
-0.10210498422384262,
0.020786212757229805,
-0.03768715262413025,
0.005546227563172579,
-0.09177015721797943,
0.03741518408060074,
-0.02572050876915455,
0.038930438458919525,
0.06022173538804054,
0.041417013853788376,
-0.02540968731045723,
-0.018260784447193146,
0.05451038479804993,
-0.03300539776682854,
0.02430238388478756,
0.015725644305348396,
0.017911110073328018,
0.043165385723114014,
-0.03799797222018242,
0.03685181587934494,
0.0384836308658123,
0.006323282141238451,
0.02428295835852623,
0.024671485647559166,
-0.02593419887125492,
-0.015832489356398582,
-0.006609821226447821,
0.023039670661091805,
0.06325224786996841,
0.0363273061811924,
0.04907100275158882,
-0.0010204913560301065,
-0.015405109152197838,
-0.0022012502886354923,
-0.001835791626945138,
0.005536514334380627,
0.0787544921040535,
0.005036285612732172,
0.012316316366195679,
0.023505903780460358,
-0.032539162784814835,
0.0658942386507988,
0.08267861604690552,
-0.023933283984661102,
0.0735870748758316,
-0.04133930802345276,
0.07778317481279373,
-0.028634464368224144,
-0.019601203501224518,
-0.05839565768837929,
-0.019601203501224518,
-0.019708048552274704,
0.005667642690241337,
0.03205350413918495,
0.0032757711596786976,
0.0025861351750791073,
-0.018047094345092773,
0.019669195637106895,
0.02150498703122139,
0.025060012936592102,
-0.0014290520921349525,
-0.01143241673707962,
-0.046157047152519226,
-0.04246603697538376,
-0.018532752990722656,
0.013151650317013264,
-0.04973150044679642,
-0.04215521737933159,
0.02480746991932392,
-0.019931452348828316,
-0.0204171109944582,
-0.04607934132218361,
-0.0367935374379158,
-0.02424410544335842,
0.016531838104128838,
0.08112450689077377,
0.07012918591499329,
-0.01809566095471382,
-0.010150277055799961,
0.007357736583799124,
-0.04751689359545708,
-0.05419956147670746,
0.01646384596824646,
0.040601108223199844,
0.018260784447193146,
0.021097034215927124,
0.0568804033100605,
0.06336880475282669,
0.006366991903632879,
-0.00523054925724864,
0.002807110082358122,
0.05520973354578018,
-0.020319979637861252,
0.010733067989349365,
0.045651961117982864,
-0.028051674365997314,
-0.04102848470211029,
-0.003496746066957712,
0.028925860300660133,
0.05221807211637497,
-0.02702207677066326,
-0.009344082325696945,
-0.02954750321805477,
-0.031179318204522133,
0.013647022657096386,
0.07486921548843384,
0.06566111743450165,
0.007231465075165033,
-0.010674788616597652,
-0.005084851291030645,
0.04639016464352608,
-0.03908585011959076,
0.0401737280189991,
0.022670570760965347,
0.025526246055960655,
0.004778886213898659,
0.024962881579995155,
0.042038656771183014,
0.003674011677503586,
0.002697836607694626,
0.002220676513388753,
0.00010426495282445103,
0.007323740050196648,
-0.07972580939531326,
-0.048371654003858566,
0.027138633653521538,
0.017085488885641098,
0.0010295974789187312,
-0.04798312485218048,
0.032228343188762665,
-0.004074680618941784,
-0.008314484730362892,
-0.0384836308658123,
0.06985721737146378,
-0.0396103635430336,
-0.05967779830098152,
0.010237695649266243,
0.003678868291899562,
0.029916604980826378,
0.02340877242386341,
-0.03438466787338257,
-0.08648618310689926,
-0.02766314707696438,
-0.014773751609027386,
0.030635381117463112,
-0.03218948841094971,
0.01282140240073204,
0.00022143022215459496,
0.04891559109091759,
-0.012199758552014828,
0.06966295093297958,
0.025234850123524666,
-0.023933283984661102,
0.023603035137057304,
-0.0787544921040535,
0.01649298518896103,
0.010529090650379658,
-0.0026225594338029623,
0.005502518266439438,
0.0052354056388139725,
0.021038755774497986,
0.07747235149145126,
-0.05046970024704933,
-0.04328194633126259,
-0.015006868168711662,
0.060959938913583755,
0.037512313574552536,
-0.0016730958595871925,
-0.05330595001578331,
-0.02428295835852623,
-0.036735258996486664,
-0.050120025873184204,
-0.001835791626945138,
0.06002747267484665,
-0.07222723215818405,
0.018299637362360954,
-0.05524858832359314,
-0.05917271226644516,
0.09604395925998688,
-0.02428295835852623,
0.013171076774597168,
0.006901216693222523,
-0.03444294631481171,
0.019436080008745193,
0.15494470298290253,
0.0096451910212636,
-0.01704663597047329,
-0.028576185926795006,
0.05015888065099716,
-0.017522582784295082,
0.049848057329654694,
-0.004701180849224329,
0.06111535057425499,
-0.029217256233096123,
0.04887674003839493,
-0.001358631532639265,
0.05334480479359627,
-0.012491153553128242,
0.013064231723546982,
0.009378078393638134,
-0.046506721526384354,
-0.013909278437495232,
0.0003305517602711916,
-0.028265364468097687,
-0.03183981403708458,
-0.04079537093639374,
0.05587023124098778,
0.011344998143613338,
0.03968806564807892,
0.01407440286129713,
0.02624502219259739,
-0.010140563361346722,
-0.004907585680484772,
-0.013151650317013264,
-0.0067409491166472435,
-0.06904130429029465,
-0.01615302450954914,
-0.011743239127099514,
-0.000037486817745957524,
-0.03259744495153427,
-0.009528633207082748,
0.08019204437732697,
-0.01186950970441103,
0.04126160219311714,
0.0018697878113016486,
0.021116459742188454,
0.03459835797548294,
-0.001930495142005384,
-0.021621545776724815,
-0.04297112300992012,
0.0003839742857962847,
-0.00964033417403698,
-0.03823108971118927,
0.013744154013693333,
-0.023875005543231964,
-0.01874644309282303,
0.04036799073219299,
-0.04491376131772995,
-0.03434581682085991,
0.026691827923059464,
-0.018610458821058273,
-0.019105831161141396,
0.032811135053634644,
0.014297805726528168,
0.025215424597263336,
0.05478235334157944,
-0.0428934171795845,
-0.05268430709838867,
0.0401737280189991,
-0.009528633207082748,
0.04876017943024635,
0.028226511552929878,
-0.033063676208257675,
0.01677466742694378,
-0.009436357766389847,
0.011160447262227535,
-0.025798214599490166,
0.051751840859651566,
-0.03300539776682854,
-0.021271871402859688,
0.012073487043380737,
-0.04569081589579582,
-0.003326765261590481,
0.0075325737707316875,
0.018027668818831444,
0.08594224601984024,
-0.041145045310258865,
0.003618160728365183,
-0.06744834780693054,
0.011519835330545902,
0.031179318204522133,
0.013957844115793705,
-0.05101363733410835,
-0.01953321136534214,
-0.004684182815253735,
-0.02257343754172325,
-0.029683487489819527,
-0.040018316358327866,
0.02484632283449173,
-0.012044347822666168,
0.01325849536806345,
-0.04553540423512459,
0.03871674835681915,
0.013064231723546982,
-0.017988815903663635,
0.03760944679379463,
0.03935781866312027,
0.027449456974864006,
-0.029664061963558197,
0.011762664653360844,
-0.0339767150580883,
0.003287912579253316,
0.009752036072313786,
-0.05618105083703995,
0.0178334042429924,
-0.04639016464352608,
0.025176571682095528,
0.03760944679379463,
-0.03405442088842392,
0.04238833114504814,
-0.023836152628064156,
0.014171534217894077,
0.00850874837487936,
0.015133139677345753,
-0.06515603512525558,
-0.03149013966321945,
-0.01755172200500965,
-0.010801060125231743,
-0.007352879736572504,
0.06332995742559433,
0.032733429223299026,
-0.09371279180049896,
0.017376884818077087,
0.02960578352212906,
0.011451843194663525,
-0.019882885739207268,
-0.006464123725891113,
-0.018600746989250183,
-0.0022376745473593473,
-0.011966641992330551,
0.0033049106132239103,
0.027177486568689346,
-0.03937724605202675,
-0.04977035149931908,
-0.05936697497963905,
0.012316316366195679,
0.0016888797981664538,
0.013025378808379173,
0.05851221829652786,
-0.04009602218866348,
0.04681754484772682,
-0.01979546807706356,
0.024438370019197464,
-0.005541371181607246,
-0.0018552179681137204,
-0.02542911469936371,
-0.013637309893965721,
0.013462471775710583,
-0.041999805718660355,
-0.01730889268219471,
-0.008008520118892193,
-0.009159531444311142,
-0.004783742595463991,
0.019416652619838715,
0.05773516371846199,
0.0390469953417778,
-0.0368906706571579,
-0.014054976403713226,
-0.01521084550768137,
0.0022947394754737616,
0.046157047152519226,
0.07110050320625305,
0.0055510844103991985,
-0.014375511556863785,
0.0004908192786388099,
0.06352421641349792,
-0.00027864694129675627,
-0.023525329306721687,
-0.025060012936592102,
-0.07078967988491058,
0.03928011283278465,
-0.003776000114157796,
-0.015502240508794785,
-0.011383851058781147,
0.02006743662059307,
0.014822318218648434,
-0.012530006468296051,
0.031936947256326675,
0.04969264566898346,
-0.03896929323673248,
-0.0019742045551538467,
-0.009698613546788692,
0.009883164428174496,
-0.00794052705168724,
0.002610418014228344,
-0.028362495824694633,
-0.05443267896771431,
-0.0530339814722538,
-0.02117474004626274,
-0.03799797222018242,
-0.011228440329432487,
0.019708048552274704,
0.018338490277528763,
0.07397560775279999,
-0.04157242551445961,
-0.010975897312164307,
0.07529659569263458,
-0.023525329306721687,
0.03488975390791893,
-0.0007187755545601249,
0.0025837067514657974,
0.053150538355112076,
-0.10466926544904709,
0.0020470533054322004,
0.012141479179263115,
-0.0013355626724660397,
-0.022787127643823624,
-0.03044111654162407,
-0.03312195464968681,
0.0067700888030231,
-0.011344998143613338,
-0.055947937071323395,
0.0760347992181778,
-0.03854191303253174,
-0.02061137557029724,
-0.020863918587565422,
-0.00850874837487936,
-0.005968751385807991,
0.009684043936431408,
-0.006648674141615629,
-0.015395395457744598,
-0.021310724318027496,
0.009509206749498844,
0.03650214150547981,
0.008722438476979733,
-0.011364424601197243,
0.029664061963558197,
-0.04860476776957512,
0.011403277516365051,
0.02311737649142742,
-0.05334480479359627,
-0.0049974326975643635,
-0.0057890573516488075,
0.07980351150035858,
-0.0641070082783699,
0.03267514705657959,
-0.07817170023918152,
-0.021971220150589943,
-0.014880596660077572,
-0.0033704745583236217,
0.0054539525881409645,
0.01843562163412571,
0.07187755405902863,
0.006551542319357395,
-0.0001790868118405342,
0.014317232184112072,
-0.018484188243746758,
0.01838705688714981,
0.03465663641691208,
-0.0066001079976558685,
0.004278657492250204,
0.014968015253543854,
0.05097478628158569,
0.036948949098587036,
0.047011807560920715,
0.018775584176182747,
0.031431861221790314,
-0.0417666882276535,
0.010635935701429844,
-0.01678438112139702,
-0.048993296921253204,
0.0023396629840135574,
0.02572050876915455,
-0.07160558551549911,
-0.0575408972799778,
0.007595709525048733,
-0.01561879925429821,
0.050897080451250076,
-0.015521666966378689,
0.016551263630390167,
-0.021640973165631294,
0.018474474549293518,
0.0007157401996664703,
-0.0491875596344471,
-0.050935935229063034,
0.014268666505813599,
0.013345913961529732,
-0.04133930802345276,
-0.06527259200811386,
-0.01492916326969862,
0.016366714611649513,
0.016017040237784386,
0.05559826269745827,
-0.05921156704425812,
0.019096119329333305,
0.024496648460626602,
-0.03399614244699478,
0.043165385723114014,
-0.04300997406244278,
0.06911901384592056,
-0.023078523576259613,
0.006663243751972914,
-0.03609418869018555,
-0.06465094536542892,
-0.03492860868573189,
0.020222848281264305,
0.008149361237883568,
0.0027148346416652203,
0.020727932453155518,
0.003632730571553111,
-0.02317565493285656,
-0.05773516371846199,
-0.04510802403092384,
-0.03896929323673248,
-0.033296793699264526,
0.0384836308658123,
-0.008159074001014233,
-0.005143130663782358,
-0.01838705688714981,
-0.0019098547054454684,
0.005201409570872784,
-0.002382158301770687,
0.002508429577574134,
0.04689525067806244,
0.0034748914185911417,
0.06053255870938301,
-0.01842590793967247,
0.0006258932407945395,
0.05668613687157631,
0.014822318218648434,
-0.03215063735842705,
0.009946299716830254,
0.03176210820674896,
-0.022767702117562294,
-0.002470791107043624,
-0.02453550137579441,
0.032811135053634644,
-0.03213120996952057,
-0.020009158179163933,
0.05520973354578018,
0.05839565768837929,
0.0005448488518595695,
0.04409785196185112,
-0.03133472800254822,
-0.03374359756708145,
0.03990175575017929,
0.009436357766389847,
0.01566736400127411,
-0.03127644956111908,
0.045923929661512375,
-0.03760944679379463,
0.020183995366096497,
-0.014968015253543854,
-0.003960550297051668,
0.012034634128212929,
-0.010218269191682339,
-0.0023396629840135574,
0.04192209988832474,
0.04378703236579895,
-0.006541829090565443,
-0.04471949487924576,
-0.018260784447193146,
-0.011733525432646275,
-0.020494816824793816,
-0.047594599425792694,
-0.0625140517950058,
0.006949782837182283,
0.016852373257279396,
-0.038619618862867355,
-0.02851790562272072,
-0.006235863547772169,
0.0204171109944582,
-0.045923929661512375,
-0.023855578154325485,
-0.040873076766729355,
-0.01699807122349739,
0.07428642362356186,
-0.048721328377723694,
-0.019047552719712257,
0.028634464368224144,
0.07277116924524307,
-0.05831795185804367,
0.033024825155735016,
-0.003343763295561075,
-0.023525329306721687,
0.04328194633126259,
-0.013763580471277237,
0.035841647535562515,
-0.020727932453155518,
-0.034520652145147324,
0.04802197962999344,
0.04405900090932846,
-0.04098963364958763,
0.02816823124885559,
0.088040292263031,
-0.037570592015981674,
0.0368906706571579,
0.022204337641596794,
-0.02255401201546192,
0.02037825807929039,
-0.007027488201856613,
-0.03570566326379776,
0.003938695881515741,
-0.028673317283391953,
0.016862086951732635,
0.011636394076049328,
-0.08462125062942505,
0.05381103605031967,
0.0033631897531449795,
-0.004217949695885181,
0.04569081589579582,
-0.01227746345102787,
-0.028401348739862442,
0.004288370255380869,
-0.05004232004284859,
0.035297706723213196,
0.012306603603065014,
-0.018221931532025337,
-0.02401098981499672,
-0.03799797222018242,
-0.002338449005037546,
0.06301913410425186,
0.021330149844288826,
-0.07801628857851028,
-0.03562795743346214,
0.0397074930369854,
-0.012704843655228615,
0.0340738482773304,
0.038639042526483536,
0.015055433847010136,
0.0009980296017602086,
-0.02004801109433174,
0.010859338566660881,
-0.03455950692296028,
-0.036443863064050674,
0.042504891753196716,
0.040290284901857376,
-0.04864362254738808,
-0.030790790915489197,
-0.02983889915049076,
-0.05858992040157318,
0.01131585892289877,
-0.017474016174674034,
0.02816823124885559,
0.007857965305447578,
-0.02983889915049076,
-0.012510580010712147,
-0.07483036816120148,
0.023836152628064156,
0.03494803234934807,
0.0007697697728872299,
0.01761000230908394,
0.012267750687897205,
-0.03770657628774643,
0.00648354971781373,
-0.02066965401172638,
-0.04095078259706497,
0.01435608509927988,
0.009820028208196163,
0.042038656771183014,
0.04025143012404442,
0.013549890369176865,
0.05186839774250984,
-0.0176002886146307,
-0.018921280279755592,
0.04359276592731476,
-0.010393106378614902,
-0.023020245134830475,
-0.022942539304494858,
0.02257343754172325,
-0.025603951886296272,
0.03368531912565231,
0.0032660579308867455,
0.08811800181865692,
0.022107204422354698,
0.03652156889438629,
-0.008586454205214977,
0.01172381266951561
] |
20,893 | precession.precession | kapparescaling |
Compute kappa from the rescaled parameter 0<=kappatilde<=1.
Parameters
----------
kappatilde: float
Rescaled version of the asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.kapparescaling(kappatilde,r,chieff,q,chi1,chi2)``
| def kapparescaling(kappatilde, r, chieff, q, chi1, chi2):
"""
Compute kappa from the rescaled parameter 0<=kappatilde<=1.
Parameters
----------
kappatilde: float
Rescaled version of the asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
kappa: float
Asymptotic angular momentum.
Examples
--------
``kappa = precession.kapparescaling(kappatilde,r,chieff,q,chi1,chi2)``
"""
kappatilde = np.atleast_1d(kappatilde)
kappaminus, kappaplus = kapparesonances(r, chieff, q, chi1, chi2)
kappa = inverseaffine(kappatilde,kappaminus,kappaplus)
return kappa
| (kappatilde, r, chieff, q, chi1, chi2) | [
0.022740235552191734,
-0.05866478011012077,
0.030553823336958885,
0.027248766273260117,
0.023746123537421227,
-0.005204568151384592,
0.012807099148631096,
-0.05636560916900635,
0.035996392369270325,
0.04127730056643486,
0.032493747770786285,
0.015070346184074879,
0.057622965425252914,
0.07881844788789749,
-0.037325602024793625,
-0.019812384620308876,
0.04192394018173218,
-0.016336685046553612,
0.011908985674381256,
0.03574492037296295,
0.04217541217803955,
-0.04095397889614105,
-0.005253964569419622,
0.03728967532515526,
-0.04048696160316467,
0.032350052148103714,
0.017100082710385323,
0.025434575974941254,
-0.01126234419643879,
-0.01950702629983425,
0.01448657177388668,
0.026781747117638588,
0.016255855560302734,
0.0061745308339595795,
0.02669193595647812,
-0.053707193583250046,
0.023279104381799698,
-0.0006949153612367809,
-0.04964771866798401,
-0.052521683275699615,
-0.017665894702076912,
0.0008459107484668493,
0.009690645150840282,
-0.04860590770840645,
-0.005712002515792847,
0.04221133887767792,
0.006152078043669462,
0.0751541405916214,
0.02101585827767849,
-0.001924208365380764,
-0.004061718471348286,
-0.07630372792482376,
0.013175326399505138,
0.029835332185029984,
-0.03357148543000221,
0.09124834090471268,
-0.008841928094625473,
0.026907483115792274,
-0.018716687336564064,
-0.09239792823791504,
0.01325615681707859,
-0.03851110860705376,
0.035331789404153824,
-0.012277212925255299,
0.027392463758587837,
0.00868924893438816,
-0.016686949878931046,
0.03274521976709366,
0.002543906681239605,
-0.0007594673079438508,
-0.030140692368149757,
-0.04964771866798401,
-0.039445146918296814,
0.00022733499645255506,
0.007800116203725338,
-0.01950702629983425,
0.010570797137916088,
-0.00903951283544302,
-0.033589448779821396,
0.0071759275160729885,
0.025686047971248627,
-0.004084171261638403,
-0.003226472996175289,
-0.05615006014704704,
0.0038214733358472586,
0.03349963575601578,
-0.003154624020680785,
-0.031595636159181595,
-0.004474850837141275,
-0.05916772410273552,
-0.029386276379227638,
-0.017710799351334572,
0.05083322897553444,
0.045085299760103226,
0.02385389618575573,
0.046127114444971085,
-0.053743116557598114,
-0.058952175080776215,
0.02527291513979435,
-0.05007881298661232,
0.012501740828156471,
0.08212350308895111,
0.018914271146059036,
-0.025488464161753654,
0.05977844074368477,
-0.015824761241674423,
-0.05769481509923935,
0.03340982645750046,
0.020297367125749588,
-0.033248163759708405,
-0.053743116557598114,
0.07910584658384323,
0.015788836404681206,
-0.0022396708372980356,
-0.08011173456907272,
0.02484182082116604,
-0.05302462726831436,
-0.013013665564358234,
0.06725074350833893,
0.0675022155046463,
-0.0074678142555058,
-0.014585364609956741,
0.0390140525996685,
-0.04889330267906189,
0.01091208029538393,
0.06732259690761566,
0.01216045767068863,
0.040019940584897995,
-0.028236690908670425,
0.03991216793656349,
0.011109665036201477,
0.026206953451037407,
0.004546700045466423,
-0.027302652597427368,
-0.012034721672534943,
-0.028039105236530304,
0.03520605340600014,
0.03583473339676857,
0.013435779139399529,
0.09225422888994217,
0.03549344837665558,
0.029619785025715828,
0.04350462183356285,
0.04742039740085602,
-0.009021550416946411,
-0.05579081550240517,
0.07217240333557129,
0.021357141435146332,
0.06283202767372131,
0.03984031826257706,
0.005765889305621386,
0.10525891184806824,
0.10511521250009537,
-0.024356840178370476,
0.06369421631097794,
-0.020818272605538368,
0.05859293043613434,
-0.002829057862982154,
-0.03511624038219452,
-0.0701606348156929,
-0.021806197240948677,
-0.03384092077612877,
0.007575587835162878,
-0.0006881795125082135,
0.014262043870985508,
-0.05395866185426712,
0.056581154465675354,
0.07465120404958725,
0.036463409662246704,
0.04066658392548561,
0.00820875819772482,
-0.05855700373649597,
-0.029996993020176888,
-0.0401277132332325,
0.0026516802608966827,
0.04961179569363594,
-0.03567307069897652,
-0.047168925404548645,
0.06692742556333542,
0.02318929322063923,
-0.013911779038608074,
-0.02839835174381733,
-0.005842228885740042,
-0.03527790307998657,
-0.01251970324665308,
0.014091402292251587,
0.013812987133860588,
0.075369693338871,
0.020979933440685272,
-0.026673972606658936,
0.021033819764852524,
-0.0343618243932724,
-0.007472305092960596,
0.03969661891460419,
-0.04918069764971733,
-0.012968759983778,
0.008105475455522537,
-0.03215246647596359,
-0.0015155666042119265,
0.012905891984701157,
-0.038259636610746384,
0.02897314354777336,
-0.011010872200131416,
0.03621193766593933,
0.06940621882677078,
-0.006021851673722267,
-0.021518800407648087,
0.040738433599472046,
0.027482274919748306,
0.010148683562874794,
-0.007104078307747841,
-0.015438572503626347,
0.015205062925815582,
-0.04350462183356285,
0.02315336838364601,
0.020566800609230995,
0.027536163106560707,
-0.0025034917052835226,
-0.016794724389910698,
0.03908590227365494,
-0.03005087934434414,
-0.009268532507121563,
0.024177217856049538,
0.0556471161544323,
-0.0030199068132787943,
-0.012313136830925941,
-0.025811783969402313,
0.030068842694163322,
-0.017477290704846382,
-0.014100383035838604,
-0.023584462702274323,
-0.015627175569534302,
-0.0021947650238871574,
-0.06624485552310944,
0.004306454677134752,
-0.027464313432574272,
0.010409136302769184,
0.030068842694163322,
-0.03346371278166771,
0.017396459355950356,
0.012088608928024769,
-0.007616003043949604,
-0.027302652597427368,
0.04742039740085602,
-0.03204469382762909,
-0.01154974102973938,
0.02669193595647812,
-0.02078234776854515,
0.0029143786523491144,
0.006026342045515776,
0.013426798395812511,
-0.05385088920593262,
-0.026871558278799057,
0.03693043068051338,
0.018061064183712006,
0.030499937012791634,
-0.009030532091856003,
0.0427861325442791,
0.008114456199109554,
0.04066658392548561,
0.05755111947655678,
0.014531477354466915,
-0.00984332524240017,
-0.04720484837889671,
-0.04206763952970505,
0.03082325868308544,
-0.01965072564780712,
0.027805596590042114,
0.007404946256428957,
-0.008841928094625473,
-0.006848115939646959,
0.039552923291921616,
0.002148736733943224,
0.007458833046257496,
-0.05004289001226425,
0.05151579529047012,
-0.02622491680085659,
0.06153874099254608,
-0.033248163759708405,
-0.025003481656312943,
-0.012887929566204548,
-0.04670190438628197,
-0.03152378648519516,
0.05844923108816147,
-0.06523896753787994,
0.006875059567391872,
0.0107234762981534,
0.03441571071743965,
0.0998702272772789,
0.009124834090471268,
0.012358042411506176,
0.028560012578964233,
-0.004313190467655659,
0.002963774837553501,
0.03520605340600014,
0.056545231491327286,
0.0019657460507005453,
-0.06110764667391777,
0.012016759254038334,
-0.031218428164720535,
0.04828258603811264,
-0.018393365666270256,
0.014531477354466915,
-0.006839134730398655,
0.04684560373425484,
0.04900107532739639,
0.07131021469831467,
0.015483478084206581,
0.01580679975450039,
0.0519828125834465,
-0.07745331525802612,
-0.056545231491327286,
-0.009475097991526127,
0.02741042710840702,
-0.06667595356702805,
-0.030877145007252693,
0.10626479983329773,
0.0014381043147295713,
0.05219836160540581,
0.015645138919353485,
0.004876756574958563,
0.019560914486646652,
-0.006978342309594154,
0.029188690707087517,
0.006731361150741577,
-0.04429496079683304,
-0.011837136931717396,
0.014845817349851131,
0.02845223806798458,
-0.048210736364126205,
-0.026871558278799057,
0.08442267775535583,
-0.0403432622551918,
-0.015878647565841675,
-0.09167943149805069,
-0.0024585858918726444,
0.021644536405801773,
-0.008195286616683006,
-0.04680968075990677,
-0.006870568729937077,
0.022937821224331856,
-0.019614800810813904,
-0.04587564244866371,
0.0161840058863163,
-0.0013920760247856379,
0.0428939051926136,
0.004416473675519228,
-0.026620086282491684,
-0.01308551523834467,
-0.04098990187048912,
-0.0067807575687766075,
-0.023584462702274323,
0.021357141435146332,
0.014998496510088444,
0.03312242776155472,
0.004773473832756281,
-0.051336172968149185,
-0.01902204565703869,
-0.010948004201054573,
-0.02385389618575573,
0.054928626865148544,
-0.0453367717564106,
-0.043756093829870224,
-0.033248163759708405,
-0.005006983410567045,
0.018016157671809196,
-0.06631670892238617,
-0.006902002729475498,
-0.010939023457467556,
-0.016435477882623672,
0.05543157085776329,
-0.023871859535574913,
0.0018130667740479112,
-0.05629375949501991,
0.0024091897066682577,
0.06441270560026169,
-0.047779642045497894,
0.01693842187523842,
-0.053563494235277176,
0.06509527564048767,
0.021195480599999428,
0.009528985247015953,
-0.03565510734915733,
-0.005146190989762545,
0.0007931465515866876,
0.005932040046900511,
-0.02952997386455536,
-0.07443565130233765,
0.030697522684931755,
0.008437776938080788,
-0.016103176400065422,
-0.014082420617341995,
0.06150281801819801,
-0.015537364408373833,
-0.06940621882677078,
0.001280934433452785,
-0.022398952394723892,
0.028811482712626457,
-0.048390358686447144,
0.015249968506395817,
0.004427699837833643,
0.01010377798229456,
0.014657213352620602,
-0.04354054480791092,
0.010930041782557964,
0.00486328499391675,
-0.006888531148433685,
0.01869872398674488,
-0.01538468524813652,
0.057299647480249405,
-0.000489471887703985,
-0.0032938315998762846,
0.016157062724232674,
0.020135706290602684,
-0.043899793177843094,
-0.003832699730992317,
-0.01571698673069477,
-0.062400929629802704,
-0.024464614689350128,
0.021285291761159897,
-0.01088513620197773,
-0.05338387191295624,
0.029835332185029984,
-0.003736152546480298,
0.02651231363415718,
-0.008792531676590443,
0.032206352800130844,
-0.046881530433893204,
-0.0004490567953325808,
-0.001884915865957737,
-0.04292982816696167,
-0.03184710815548897,
-0.02778763324022293,
-0.01968665048480034,
-0.030805295333266258,
0.016013365238904953,
0.018429290503263474,
0.014082420617341995,
0.01474702451378107,
-0.06768184155225754,
0.028865370899438858,
-0.03786446899175644,
0.04742039740085602,
-0.019111856818199158,
-0.005186605732887983,
-0.022919857874512672,
-0.0401277132332325,
0.01632770523428917,
-0.04292982816696167,
-0.025955481454730034,
0.019614800810813904,
0.004227869678288698,
0.016399553045630455,
0.005298870149999857,
0.04856998100876808,
0.06114357337355614,
-0.06419716030359268,
-0.05025843530893326,
0.011531778611242771,
0.021985819563269615,
0.05945511907339096,
0.026907483115792274,
0.029098879545927048,
-0.009969060309231281,
0.028811482712626457,
0.07795625925064087,
0.04192394018173218,
0.008810494095087051,
-0.013992609456181526,
-0.05568304285407066,
0.0028335482347756624,
-0.025596236810088158,
0.037325602024793625,
-0.03536771237850189,
0.026099180802702904,
0.031685445457696915,
-0.029242578893899918,
0.026709897443652153,
0.03858295828104019,
-0.0023306047078222036,
-0.034577373415231705,
-0.0035969449672847986,
0.012034721672534943,
0.0428939051926136,
-0.003736152546480298,
-0.06128726899623871,
-0.05259352922439575,
-0.047168925404548645,
-0.038259636610746384,
0.015178119763731956,
-0.011253363452851772,
-0.018141893669962883,
0.016058269888162613,
0.09340380877256393,
-0.04691745340824127,
-0.0025192084722220898,
0.05266537889838219,
-0.0030266428366303444,
-0.020944008603692055,
-0.00531234173104167,
-0.02026144228875637,
0.0171809121966362,
-0.06092802435159683,
-0.0034263033885508776,
0.014809892512857914,
-0.00015941515448503196,
-0.07817180454730988,
-0.03475699573755264,
-0.022309141233563423,
-0.007845021784305573,
-0.010597740299999714,
-0.03421812877058983,
0.04770779237151146,
-0.01017562672495842,
0.0060937004163861275,
0.006973851937800646,
-0.002223953837528825,
0.012959779240190983,
0.01959683746099472,
-0.060281384736299515,
-0.005083322990685701,
-0.046127114444971085,
0.0246621984988451,
0.04415126517415047,
0.007328606676310301,
-0.005042907781898975,
0.0583055317401886,
-0.045516397804021835,
0.011397060938179493,
0.018285593017935753,
-0.0687236487865448,
0.027536163106560707,
0.010867174714803696,
0.06926251947879791,
-0.02489570900797844,
0.011576684191823006,
-0.06940621882677078,
-0.036373600363731384,
0.05079730227589607,
0.03554733470082283,
-0.04170839488506317,
0.03190099447965622,
0.013112458400428295,
-0.024787934496998787,
0.01036423072218895,
0.03340982645750046,
-0.02405148185789585,
-0.018680762499570847,
-0.008186304941773415,
-0.04727669805288315,
-0.026206953451037407,
0.015106270089745522,
0.05083322897553444,
0.0831293910741806,
0.024644237011671066,
0.012465815991163254,
0.03707413002848625,
-0.04188801720738411,
0.001414528931491077,
-0.054749004542827606,
-0.05898809805512428,
-0.05155171826481819,
0.09390675276517868,
-0.0831293910741806,
-0.009546947665512562,
0.005060870200395584,
-0.06412530690431595,
0.02868574671447277,
-0.02640453912317753,
-0.039588846266269684,
-0.000818967295344919,
0.01577087491750717,
0.07299867272377014,
-0.03146990016102791,
-0.07695037126541138,
-0.0110018914565444,
0.03132620081305504,
-0.05227021127939224,
-0.04684560373425484,
-0.0013426798395812511,
0.011926948092877865,
-0.0010244108270853758,
-0.002887435257434845,
0.01983034797012806,
0.009093400090932846,
0.044043488800525665,
0.014477591030299664,
0.05661708116531372,
-0.042426884174346924,
0.037325602024793625,
-0.022794121876358986,
0.022937821224331856,
-0.0038596431259065866,
-0.06168244034051895,
-0.03270929679274559,
-0.020009970292448997,
0.031200464814901352,
-0.007256757467985153,
0.0545334555208683,
0.00901706051081419,
-0.00489920936524868,
-0.07386086136102676,
0.02669193595647812,
-0.03933737426996231,
-0.01921963132917881,
0.04321722686290741,
-0.005752417258918285,
0.028092993423342705,
0.0466659814119339,
0.017333591356873512,
-0.025937519967556,
0.011819174513220787,
0.011208457872271538,
-0.020387178286910057,
-0.03155970945954323,
0.05112062394618988,
-0.011989816091954708,
-0.06365828961133957,
0.039588846266269684,
0.004652228206396103,
-0.06290387362241745,
0.0016906987875699997,
0.00842879619449377,
-0.011900004930794239,
-0.0023889821022748947,
0.0024204161018133163,
0.006726870778948069,
-0.0001822889898903668,
-0.050438057631254196,
-0.0019859536550939083,
0.054317910224199295,
-0.01968665048480034,
0.03711005300283432,
-0.04037918522953987,
0.01693842187523842,
0.07206463068723679,
-0.020045895129442215,
0.039121828973293304,
-0.04871368035674095,
0.041636545211076736,
0.028236690908670425,
-0.043289072811603546,
-0.033535562455654144,
0.00517313415184617,
0.0030401144176721573,
-0.0233868770301342,
0.0018826705636456609,
0.021411027759313583,
-0.018483176827430725,
0.01133419293910265,
-0.031128617003560066,
-0.026296764612197876,
-0.013714194297790527,
-0.012358042411506176,
-0.025955481454730034,
-0.015483478084206581,
0.04936032369732857,
-0.008810494095087051,
-0.07522599399089813,
-0.05227021127939224,
-0.012223325669765472,
0.01519608125090599,
-0.043576471507549286,
-0.01803412102162838,
0.000006713925358781125,
-0.008976644836366177,
0.03583473339676857,
-0.02735653892159462,
-0.03818779066205025,
0.06976546347141266,
0.03265541046857834,
0.005056379362940788,
-0.02944016270339489,
-0.03394869342446327,
0.006789738778024912,
0.07131021469831467,
-0.0008588210912421346,
0.009834343567490578,
-0.01074143871665001,
-0.015932535752654076,
0.0038147373124957085,
0.021123630926012993,
0.010148683562874794,
0.04752817004919052,
0.026260841637849808,
-0.04738447070121765,
0.0010738070122897625,
0.04307352751493454,
-0.03649933636188507,
0.0017928591696545482,
0.020890122279524803,
-0.006946908310055733,
-0.004530983045697212,
-0.0440075658261776,
0.01386687345802784,
0.030984917655587196,
-0.06890327483415604,
0.04526492580771446,
-0.017109064385294914,
-0.008554532192647457,
0.03473903238773346,
0.0390140525996685,
-0.008886833675205708,
-0.048929229378700256,
-0.07795625925064087,
0.022129518911242485,
-0.03829556331038475,
0.006937927566468716,
-0.0239437073469162,
0.009951098822057247,
0.01807902567088604,
0.08269830048084259,
0.040594734251499176,
-0.045552320778369904,
-0.04386386647820473,
0.0000863031018525362,
-0.061754290014505386,
0.007907889783382416,
0.031829144805669785,
0.03962476924061775,
-0.05266537889838219,
-0.043899793177843094,
0.0661730095744133,
-0.045408621430397034,
-0.036193978041410446,
-0.029242578893899918,
0.031595636159181595,
-0.015690043568611145,
-0.04663005843758583,
-0.010022947564721107,
-0.035331789404153824,
-0.004697133786976337,
-0.014253062196075916,
-0.008864381350576878,
0.03227820247411728,
-0.01835744082927704,
0.007476795464754105,
-0.05352756753563881,
0.06053285673260689,
0.004396265838295221,
0.04407941550016403,
0.015088307671248913,
-0.03437978774309158,
-0.025542350485920906,
0.04009179025888443,
0.0059095872566103935,
-0.08075837045907974,
0.010301362723112106,
0.025488464161753654,
0.024716084823012352,
0.00016713333025109023,
0.04235503450036049,
0.0033432277850806713,
-0.018285593017935753,
-0.008195286616683006,
-0.014028534293174744,
-0.008550041355192661,
0.008334494195878506,
-0.025883633643388748,
-0.0110018914565444,
-0.005438077729195356,
-0.011908985674381256,
-0.031649522483348846,
0.05295277759432793,
0.05259352922439575,
-0.011199476197361946,
0.0390140525996685,
-0.006843625567853451
] |
20,894 | precession.precession | kapparesonances |
asymptotic angular momentum of the two spin-orbit resonances. The resonances minimizes and maximizes kappa for given values of r, chieff, q, chi1, chi2. The minimum corresponds to deltaphi=pi and the maximum corresponds to deltaphi=0.
Parameters
----------
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
tol: float, optional (default: 1e-4)
Numerical tolerance, see source code for details.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kapparesonances(u,chieff,q,chi1,chi2,tol=1e-4)``
| def kapparesonances(r, chieff, q, chi1, chi2,tol=1e-4):
"""
asymptotic angular momentum of the two spin-orbit resonances. The resonances minimizes and maximizes kappa for given values of r, chieff, q, chi1, chi2. The minimum corresponds to deltaphi=pi and the maximum corresponds to deltaphi=0.
Parameters
----------
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
tol: float, optional (default: 1e-4)
Numerical tolerance, see source code for details.
Returns
-------
kappamax: float
Maximum value of the asymptotic angular momentum kappa.
kappamin: float
Minimum value of the asymptotic angular momentum kappa.
Examples
--------
``kappamin,kappamax = precession.kapparesonances(u,chieff,q,chi1,chi2,tol=1e-4)``
"""
chieff = np.atleast_1d(chieff).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
u = eval_u(r,q)
#kapparoots = wraproots(kappadiscriminant_coefficients, u, chieff, q, chi1, chi2)
coeffs = kappadiscriminant_coefficients(u, chieff, q, chi1, chi2)
kapparootscomplex = np.sort_complex(roots_vec(coeffs.T))
#sols = np.real(np.where(np.isreal(sols), sols, np.nan))
# There are in principle five solutions, but only two are physical.
def _compute(kapparootscomplex, u, chieff, q, chi1, chi2):
kappares=None
# At infinitely large separations the resonances are analytic...
if u==0:
kappaminus = np.maximum((q*(1+q)*chieff - (1-q)*chi1)/(1+q)**2 , ((1+q)*chieff - q*(1-q)*chi2)/(1+q)**2)
kappaplus = np.minimum((q*(1+q)*chieff + (1-q)*chi1)/(1+q)**2, ((1+q)*chieff + q*(1-q)*chi2)/(1+q)**2)
kappares = np.array([kappaminus,kappaplus])
return kappares
kapparoots = np.real(kapparootscomplex[np.isreal(kapparootscomplex)])
upup,updown,downup,downdown=eval_chieff([0,0,np.pi,np.pi], [0,np.pi,0,np.pi], np.repeat(q,4), np.repeat(chi1,4), np.repeat(chi2,4))
# If too close to perfect alignment, return the analytical result.
if np.isclose(np.repeat(chieff,2),np.squeeze([upup,downdown])).any():
warnings.warn("Close to either up-up or down-down configuration. Using analytical results.", Warning)
S1 = eval_S1(q, chi1)
S2 = eval_S2(q, chi2)
L=1/(2*u)
kappar = ((L+np.sign(chieff)*(S1+S2))**2 - L**2) / (2*L)
kappares=np.squeeze([kappar,kappar])
# In this case, the spurious solution is always the smaller one. Just leave it out.
elif len(kapparoots)==3:
kappares = kapparoots[1:]
# Here we have two candidate pairs of resonances...
elif len(kapparoots)==5:
# Edge case with two coincident roots that are exactly zeros. This happens for q=chi1=chi2=1
if np.count_nonzero(kapparoots)==3:
kappares = kapparoots[kapparoots != 0][1:]
elif np.count_nonzero(kapparoots)==1:
kappares = np.sort(np.concatenate([[0],kapparoots[kapparoots != 0]]))
else:
# Compute the corresponding values of deltachi at the resonances
deltachires = deltachiresonance(kappa=kapparoots, u=tiler(u,kapparoots), chieff=tiler(chieff,kapparoots), q=tiler(q,kapparoots), chi1=tiler(chi1,kapparoots), chi2=tiler(chi2,kapparoots))
# Check which of those values is within the allowed region
deltachimin,deltachimax = deltachilimits_rectangle(chieff, q, chi1, chi2)
check = np.squeeze(np.logical_and(deltachires>deltachimin,deltachires<deltachimax))
# The first root cannot possibly be right
if check[0] and not np.isclose(kapparoots[1],kapparoots[0]):
raise ValueError("Input values are not compatible [kapparesonances].")
elif check[1] and check[2] and not check[3] and not check[4]:
kappares = kapparoots[1:3]
elif not check[1] and not check[2] and check[3] and check[4]:
kappares = kapparoots[3:5]
elif check[1] and check[2] and check[3] and check[4]:
warnings.warn("Unphysical resonances detected and removed", Warning)
# Root 1 is a spurious copy of root 0
if np.isclose(kapparoots[1],kapparoots[0]):
kappares = np.array([np.mean(kapparoots[2:4]),kapparoots[4]])
#err = np.abs( (kapparoots[2]-kapparoots[3])/np.mean(kapparoots[2:4]))
#warnings.warn("Unphysical resonances detected and removed. Relative accuracy Delta_kappa/kappa="+str(err)+", [kapparesonances].", Warning)
else:
kappares=np.array([kapparoots[1],kapparoots[4]])
# # Root 1 is a spurious copy of root 0:
# if kapparoots[1]-kapparoots[0]<kapparoots[3]-kapparoots[2]:
# kappares = kapparoots[3:5]
# # Root 2 and 3 are actually complex but appear real because of numerical errors
# else:
# kappares=np.array([kapparoots[1],kapparoots[4]])
# This is an edge (and hopefully rare) case where the resonances are missed because of numerical errors
elif len(kapparoots)==1:
# 5 complex solutions correspond to 3 real parts (i.e. thare are two conjugate pairs)
kapparoots = np.unique(np.real(kapparootscomplex))
deltachires = deltachiresonance(kappa=kapparoots, u=tiler(u,kapparoots), chieff=tiler(chieff,kapparoots), q=tiler(q,kapparoots), chi1=tiler(chi1,kapparoots), chi2=tiler(chi2,kapparoots))
deltachimin,deltachimax = deltachilimits_rectangle(chieff, q, chi1, chi2)
check = np.squeeze(np.logical_and(deltachires>deltachimin,deltachires<deltachimax))
# Two of these are compatible
if np.sum(check)==2:
kappares=kapparoots[check]
warnings.warn("Resonances not detected, best guess returned (soft sanitizing)", Warning)
# In case that also fails, returns the closest two
else:
diffmin = np.abs(deltachires-deltachimin)
diffmax = np.abs(deltachires-deltachimax)
try:
kappares = np.sort(np.squeeze([kapparoots[diffmin==min(diffmin)], kapparoots[diffmax==min(diffmax)]]))
except:
# If that also fails and you're close to q=1, return the analytic result
if np.isclose(q,1):
r=float(eval_r(u=u,q=q))
kappamin = np.maximum((chi1-chi2)**2 / 8 , chieff**2 /2) /r**0.5 + chieff/2
kappamax = (chi1+chi2)**2 / 8 /r**0.5 + chieff/2
kappares=np.array([kappamin,kappamax])
warnings.warn("Resonances not detected, best guess returned (using analytic result for q=1)", Warning)
else:
warnings.warn("Resonances not detected, best guess returned (aggressive sanitizing)", Warning)
# Up-down and down-up are challenging.
# Evaluate the resonances outside of those points and interpolate linearly.
# Note usage of recursive functions.
elif np.isclose(np.repeat(chieff,2),np.squeeze([updown,downup])).any():
warnings.warn("Close to either up-down or down-up configuration. Using recursive approach (tol="+str(tol)+") and analytical results.", Warning)
chieff1 = max(min(chieff+tol/2,upup),downdown)
coeffs = kappadiscriminant_coefficients(u, chieff1, q, chi1, chi2)
| (r, chieff, q, chi1, chi2, tol=0.0001) | [
0.02169916033744812,
-0.027767570689320564,
-0.03426505997776985,
0.02568347007036209,
-0.008540724404156208,
-0.0018938238499686122,
-0.04127335548400879,
-0.04433821141719818,
0.012136818841099739,
0.024866176769137383,
0.006579218432307243,
0.030709829181432724,
0.025336120277643204,
-0.0015937236603349447,
-0.05140780657529831,
0.0192166306078434,
0.05994853004813194,
-0.007355647627264261,
-0.002539997221902013,
0.009128154255449772,
-0.0228433720767498,
-0.03688040003180504,
-0.04441994056105614,
0.07609008997678757,
-0.03079155832529068,
0.03373381868004799,
0.024518825113773346,
0.006385110784322023,
-0.01612112857401371,
-0.00955723412334919,
-0.03876017779111862,
0.037064291536808014,
0.03189490735530853,
-0.04384783282876015,
-0.002975461771711707,
-0.043275728821754456,
0.0702873021364212,
0.005685302894562483,
-0.060888417065143585,
0.014731727540493011,
0.010890445671975613,
-0.015518373809754848,
-0.010624825023114681,
-0.05978507176041603,
-0.011901847086846828,
0.04907851666212082,
-0.012024440802633762,
0.08794085681438446,
0.006788650061935186,
0.006155246868729591,
0.0025898010935634375,
-0.11319524794816971,
0.01335254404693842,
0.02267991378903389,
-0.019727438688278198,
0.07878716289997101,
-0.0076876734383404255,
0.037023428827524185,
0.016866909340023994,
-0.13035842776298523,
0.002903948538005352,
0.021065758541226387,
0.05643416568636894,
0.0456867441534996,
-0.03156798705458641,
0.013812271878123283,
-0.016713665798306465,
-0.03017858788371086,
-0.00927118118852377,
0.033161710947752,
-0.03289609029889107,
-0.0020726069342345,
-0.013454705476760864,
-0.03585878387093544,
0.051857318729162216,
-0.006717136595398188,
0.013148220255970955,
-0.05761924013495445,
-0.04965062439441681,
-0.03467370569705963,
0.0303829126060009,
0.027706272900104523,
0.016917990520596504,
-0.05430920049548149,
-0.01792939193546772,
0.04286707937717438,
0.029667779803276062,
0.0379224494099617,
0.055494274944067,
-0.022026078775525093,
-0.04417475312948227,
-0.023803694173693657,
0.06272733211517334,
0.05291980132460594,
0.018869278952479362,
0.0381472073495388,
-0.046013664454221725,
-0.0948878601193428,
-0.004735198337584734,
-0.051979910582304,
0.03600180894136429,
0.057333189994096756,
0.011687306687235832,
0.025070499628782272,
0.021413108333945274,
-0.0254791472107172,
-0.05855913087725639,
0.023374613374471664,
0.043643511831760406,
-0.015569454059004784,
-0.08548897504806519,
0.0346328429877758,
-0.029116105288267136,
0.012892816215753555,
-0.06873444467782974,
-0.018869278952479362,
-0.04960975795984268,
0.035838350653648376,
0.02464142069220543,
0.05099915713071823,
0.016754530370235443,
-0.04108946770429611,
0.020789921283721924,
-0.01710188202559948,
0.019880682229995728,
-0.007677457295358181,
0.02670508809387684,
0.07993137091398239,
-0.025540443137288094,
0.005373709369450808,
0.04646317660808563,
0.0019423507619649172,
0.00608373386785388,
-0.0030750695150345564,
-0.037472937256097794,
0.00468922546133399,
0.014077892526984215,
0.004157984163612127,
0.03326387330889702,
-0.017704635858535767,
0.05001840367913246,
0.004106903448700905,
-0.026071684435009956,
-0.01828695833683014,
0.009025992825627327,
-0.008418130688369274,
0.05075396969914436,
-0.011380821466445923,
-0.00769788958132267,
0.032364849001169205,
0.0018644523806869984,
0.014312864281237125,
0.04437907412648201,
-0.01891014538705349,
0.03105717897415161,
-0.05193904787302017,
0.04674922674894333,
-0.027726706117391586,
-0.03011729195713997,
-0.05255201831459999,
-0.01235135830938816,
-0.06685466319322586,
0.04589106887578964,
0.008009483106434345,
0.003662499599158764,
0.00769788958132267,
-0.04944629967212677,
0.028196649625897408,
0.010635040700435638,
0.04613625630736351,
-0.006880595348775387,
-0.015099510550498962,
-0.0778881385922432,
-0.02940215915441513,
-0.03771812841296196,
-0.017970256507396698,
-0.01936987228691578,
-0.06693639606237411,
0.018378904089331627,
0.0016601288225501776,
-0.02186262048780918,
-0.033815547823905945,
-0.00878591276705265,
-0.01508929394185543,
-0.013475137762725353,
0.06211435794830322,
0.08340487629175186,
-0.006686488166451454,
0.013158436864614487,
-0.00757018756121397,
-0.05242942273616791,
-0.03011729195713997,
0.006497488822788,
0.045278098434209824,
0.01673409901559353,
-0.003504148917272687,
0.05369623005390167,
0.04519636929035187,
0.003340689931064844,
-0.02703200653195381,
-0.0776020810008049,
0.009332478046417236,
-0.03630829602479935,
-0.02220997028052807,
0.06121533736586571,
-0.013199301436543465,
-0.04051735997200012,
0.0007387573132291436,
0.06906136125326157,
0.046013664454221725,
-0.02112705446779728,
-0.0016958854394033551,
-0.03585878387093544,
-0.015375346876680851,
-0.005210250616073608,
0.03551143407821655,
0.06558786332607269,
-0.010236609727144241,
-0.02568347007036209,
0.000509212608449161,
-0.028196649625897408,
-0.021045325323939323,
0.0047403061762452126,
0.0002879684907384217,
-0.042540162801742554,
0.02923870086669922,
0.031956203281879425,
0.09921951591968536,
0.045645881444215775,
-0.03524581342935562,
0.026112549006938934,
0.012106169946491718,
-0.00005750590571551584,
-0.060111988335847855,
-0.03606310486793518,
-0.01906338706612587,
-0.023333748802542686,
0.019042955711483955,
-0.000051320330385351554,
-0.004214173182845116,
0.009051533415913582,
-0.028646161779761314,
-0.01270892471075058,
0.004209065344184637,
-0.051979910582304,
-0.010211069136857986,
0.017009936273097992,
-0.017490096390247345,
0.032221823930740356,
0.018818199634552002,
-0.0020100330002605915,
-0.08074866980314255,
0.009950556792318821,
-0.027624543756246567,
-0.003907687962055206,
-0.07000125199556351,
-0.002514456631615758,
0.03876017779111862,
0.06260473281145096,
-0.008826777338981628,
0.06321770697832108,
0.037432074546813965,
-0.004824589937925339,
0.03925055265426636,
-0.0989743247628212,
0.030342048034071922,
-0.004165646154433489,
-0.007074702996760607,
-0.018511714413762093,
-0.01740836724638939,
0.04000655189156532,
0.050140999257564545,
-0.0702873021364212,
0.0031440285965800285,
-0.03540927171707153,
0.07392425835132599,
-0.0009373342618346214,
0.03332516923546791,
-0.032160528004169464,
0.007462917827069759,
-0.001997262705117464,
-0.02825794741511345,
0.04000655189156532,
0.04883332923054695,
-0.06693639606237411,
-0.023190723732113838,
-0.03657391667366028,
0.0006212713196873665,
0.08973890542984009,
-0.0067835417576134205,
-0.0032410824205726385,
-0.021310945972800255,
0.009179235436022282,
0.0035884324461221695,
0.12316623330116272,
0.03258960694074631,
-0.024212339892983437,
-0.050140999257564545,
0.013148220255970955,
0.004538537003099918,
0.027501950040459633,
-0.01428221631795168,
0.08025828748941422,
-0.022128241136670113,
0.04491031542420387,
0.039148394018411636,
0.07882802933454514,
-0.03524581342935562,
0.04478772357106209,
0.000510808895342052,
-0.03436722233891487,
-0.042499300092458725,
0.036921266466379166,
-0.007381188217550516,
-0.0005714674480259418,
-0.044951181858778,
0.06746763736009598,
-0.029177403077483177,
0.05712886527180672,
0.008673534728586674,
0.005700626876205206,
-0.0004744137404486537,
0.025949090719223022,
0.004924197681248188,
0.005159169435501099,
-0.05627070739865303,
0.011033471673727036,
-0.0015490278601646423,
0.005480979103595018,
-0.04752565920352936,
-0.02494790591299534,
0.015457076951861382,
-0.030811991542577744,
0.011922279372811317,
-0.010910877957940102,
0.018716037273406982,
0.028707459568977356,
-0.05218423530459404,
-0.006569002289324999,
-0.01891014538705349,
0.07331129163503647,
0.009787098504602909,
-0.044052157551050186,
0.008326184935867786,
0.016253938898444176,
0.013311679475009441,
0.04031303524971008,
-0.023517640307545662,
-0.024968337267637253,
0.02552001178264618,
-0.03115934133529663,
0.009930124506354332,
0.032323986291885376,
0.05823221057653427,
0.07179929316043854,
0.042335838079452515,
-0.025356553494930267,
-0.05394141748547554,
0.02220997028052807,
0.015283401124179363,
0.011288875713944435,
0.021413108333945274,
-0.05144866928458214,
0.05263374745845795,
-0.01943117007613182,
-0.02748151682317257,
-0.04519636929035187,
-0.03095501847565174,
0.0060479771345853806,
-0.02231213077902794,
0.007886889390647411,
-0.050140999257564545,
-0.009572558104991913,
-0.004438929259777069,
0.022700347006320953,
0.0825875774025917,
-0.008699075318872929,
0.031854040920734406,
-0.03561359643936157,
-0.017122313380241394,
0.02670508809387684,
0.020738840103149414,
-0.0547587126493454,
-0.0006780987605452538,
0.0012316879583522677,
-0.048955921083688736,
-0.03357036039233208,
-0.03651261702179909,
0.05283806845545769,
0.0067426771856844425,
0.03171101585030556,
-0.022925103083252907,
0.09586860984563828,
0.014241351746022701,
-0.02020759880542755,
0.05557600408792496,
0.04012914374470711,
0.016805611550807953,
-0.0726165920495987,
0.015416211448609829,
-0.0017099326942116022,
-0.037738557904958725,
-0.02015651762485504,
-0.02862572856247425,
0.01926770992577076,
-0.0303829126060009,
0.030260317027568817,
-0.00883699394762516,
-0.02288423851132393,
0.07919580489397049,
-0.062277816236019135,
0.0008734831935726106,
0.01268849242478609,
-0.003756999270990491,
-0.09382537752389908,
0.02376282960176468,
-0.04360264539718628,
0.023027263581752777,
0.0349188931286335,
0.02294553443789482,
0.024191908538341522,
-0.057006269693374634,
0.025765199214220047,
0.02176045812666416,
0.027358923107385635,
0.03606310486793518,
-0.007702997885644436,
-0.009240532293915749,
-0.04360264539718628,
-0.019798951223492622,
0.001621818169951439,
0.016621720045804977,
-0.017602473497390747,
-0.08589761704206467,
-0.05279720574617386,
0.03910752758383751,
-0.016243722289800644,
0.010425609536468983,
0.03483716398477554,
-0.062073495239019394,
0.011973359622061253,
0.012800870463252068,
0.017132529988884926,
-0.015589887276291847,
0.036859966814517975,
-0.007468025665730238,
-0.029933400452136993,
0.0007247101166285574,
-0.052511151880025864,
-0.019645709544420242,
0.0028630837332457304,
-0.008888074196875095,
0.010348987765610218,
0.03833109885454178,
0.011748604476451874,
0.017970256507396698,
-0.04221324622631073,
0.016866909340023994,
-0.05573946610093117,
-0.012433088384568691,
0.01844020001590252,
0.009751341305673122,
0.0314045287668705,
0.011952927336096764,
0.0148236732929945,
0.08892160654067993,
0.001300008618272841,
0.013781623914837837,
-0.014323080889880657,
-0.053655363619327545,
-0.006543461699038744,
-0.028809620067477226,
-0.004597279708832502,
-0.0018516822019591928,
0.02082056924700737,
-0.01240243948996067,
-0.012892816215753555,
0.026378169655799866,
0.018869278952479362,
-0.018583226948976517,
-0.03467370569705963,
-0.02200564555823803,
0.009950556792318821,
-0.004786279052495956,
0.0033023792784661055,
-0.05921296402812004,
-0.040844276547431946,
-0.07666219770908356,
-0.03399943932890892,
-0.04674922674894333,
-0.04343918710947037,
-0.00467390101402998,
0.04658576846122742,
0.05296066403388977,
-0.024580122902989388,
0.02697070874273777,
0.056352436542510986,
-0.0012872383231297135,
0.010333663783967495,
-0.01962527632713318,
0.00958788301795721,
0.020902298390865326,
-0.09308981150388718,
0.0009692598250694573,
0.01752074435353279,
-0.008019699715077877,
-0.013148220255970955,
-0.026419034227728844,
-0.019931761547923088,
0.016928205266594887,
-0.022332563996315002,
-0.0798087790608406,
0.11164239048957825,
-0.017326636239886284,
0.004201402887701988,
0.0004067315603606403,
-0.0033483521547168493,
-0.017336852848529816,
-0.04209065064787865,
-0.018256308510899544,
-0.013781623914837837,
0.002123687881976366,
0.013955298811197281,
0.04174330085515976,
0.024620987474918365,
0.04051735997200012,
0.0160700473934412,
-0.003407095093280077,
-0.001322994939982891,
-0.0031184882391244173,
-0.03845369070768356,
-0.01818479597568512,
0.002459544688463211,
0.06195089966058731,
-0.02392628788948059,
0.023272452875971794,
-0.03457154333591461,
-0.05884518101811409,
0.046994417905807495,
-0.001305755227804184,
-0.013607948087155819,
0.044869452714920044,
0.02997426502406597,
-0.08524378389120102,
0.00742716109380126,
0.03017858788371086,
-0.021923916414380074,
0.02645990066230297,
-0.011258227750658989,
-0.03426505997776985,
0.0356544591486454,
0.00041854401933960617,
0.10755591839551926,
0.02778800204396248,
0.04323486238718033,
0.00030201574554666877,
0.05353277176618576,
-0.03698256239295006,
0.034694138914346695,
-0.033304739743471146,
-0.009383559226989746,
-0.03297781944274902,
0.006941892672330141,
-0.09308981150388718,
-0.028482703492045403,
-0.013628380373120308,
-0.02149483747780323,
0.042131517082452774,
-0.01688734069466591,
-0.007723430171608925,
-0.017347069457173347,
-0.006829514633864164,
0.013710110448300838,
-0.024191908538341522,
-0.07890975475311279,
-0.020687758922576904,
0.01237179059535265,
-0.03201749920845032,
-0.05786442756652832,
-0.02139267511665821,
0.04417475312948227,
-0.013985946774482727,
0.019860249012708664,
-0.018481064587831497,
0.042335838079452515,
0.055249087512493134,
0.022434726357460022,
0.0512443445622921,
-0.03808591142296791,
0.037064291536808014,
-0.04137551784515381,
0.04552328586578369,
-0.04552328586578369,
-0.05001840367913246,
-0.018051985651254654,
0.009873935952782631,
-0.008433454670011997,
0.03849455714225769,
0.05455438792705536,
-0.009981205686926842,
0.00590495066717267,
-0.03708472475409508,
-0.0321400947868824,
-0.043316591531038284,
-0.025193093344569206,
0.04666749760508537,
-0.008229130879044533,
-0.011380821466445923,
0.01605983078479767,
0.029647346585989,
0.027767570689320564,
-0.00528176361694932,
0.030158156529068947,
-0.009102614596486092,
-0.00774897076189518,
0.03761596605181694,
0.0033560143783688545,
-0.004426158964633942,
0.03471457213163376,
0.024518825113773346,
-0.018378904089331627,
0.048465546220541,
0.05868172273039818,
0.0033790008164942265,
-0.019022522494196892,
-0.028952647000551224,
0.030668964609503746,
-0.03829023241996765,
-0.002517010783776641,
0.005843653343617916,
0.0575375109910965,
-0.0022794846445322037,
0.02186262048780918,
-0.010052718222141266,
-0.04298967495560646,
0.049160245805978775,
0.03863758221268654,
-0.013219733722507954,
-0.015058645978569984,
0.03197663649916649,
0.006165463011711836,
0.011482983827590942,
-0.027399787679314613,
0.02717503160238266,
0.02308856137096882,
-0.004209065344184637,
0.0074578095227479935,
0.021413108333945274,
0.03120020590722561,
0.04196805879473686,
-0.03498019278049469,
0.008060564287006855,
-0.051489535719156265,
-0.02903437614440918,
-0.04491031542420387,
-0.024273637682199478,
0.029667779803276062,
0.015038213692605495,
-0.02909567393362522,
-0.01547750923782587,
-0.027215896174311638,
0.02842140570282936,
-0.04907851666212082,
-0.060684096068143845,
-0.03436722233891487,
0.002525949850678444,
0.062482140958309174,
-0.0195844117552042,
-0.036144837737083435,
0.07396512478590012,
-0.013720326125621796,
-0.04147768020629883,
0.009460180066525936,
-0.01591680385172367,
-0.019829601049423218,
0.03132279962301254,
-0.02308856137096882,
0.04572761058807373,
-0.01622328907251358,
-0.0386580154299736,
0.03931185230612755,
0.0638306736946106,
-0.014813457615673542,
0.007401620503515005,
0.02670508809387684,
-0.006660947576165199,
0.021637864410877228,
0.04209065064787865,
-0.03420376405119896,
-0.03032161481678486,
-0.01637653261423111,
-0.0032385282684117556,
0.03538883849978447,
0.011595361866056919,
0.009863719344139099,
0.008331292308866978,
-0.06742677092552185,
0.047811709344387054,
-0.0022858697921037674,
-0.029116105288267136,
0.07425117492675781,
-0.01948225125670433,
-0.020033923909068108,
-0.02707287110388279,
-0.05749664828181267,
0.047403063625097275,
-0.02500920183956623,
-0.02098402939736843,
-0.037023428827524185,
-0.030505506321787834,
-0.0016167100984603167,
0.052265964448451996,
0.013526218943297863,
-0.08189287781715393,
-0.03788158670067787,
0.015293617732822895,
0.00883699394762516,
0.006855055224150419,
0.039495743811130524,
0.005337952636182308,
-0.018562793731689453,
0.010910877957940102,
0.037840720266103745,
-0.03267133608460426,
-0.04241756722331047,
0.029422590509057045,
0.05099915713071823,
-0.057578377425670624,
0.001833803835324943,
0.011288875713944435,
-0.0019729991909116507,
0.01938008889555931,
-0.017847662791609764,
0.019094035029411316,
-0.0076059442944824696,
-0.06812147051095963,
0.03661477938294411,
-0.04098730534315109,
0.048588141798973083,
0.04809776321053505,
0.001741858315654099,
-0.013883785344660282,
-0.04768911749124527,
-0.04862900450825691,
0.011983576230704784,
0.003085285658016801,
-0.020585598424077034,
0.018613874912261963,
0.011932495050132275,
0.008556048385798931,
0.05610724538564682,
0.005353277083486319,
0.040578655898571014,
0.020085005089640617,
0.0006557509186677635,
0.06554699689149857,
-0.0229863990098238,
-0.016090478748083115,
0.013516003265976906,
-0.013342327438294888,
-0.004201402887701988,
-0.009245640598237514,
-0.04157984256744385,
0.07564058154821396,
0.007401620503515005,
-0.011840549297630787,
-0.03328430652618408,
0.00744248554110527
] |
20,895 | precession.precession | morphology |
Evaluate the spin morphology. Returns:
- L0 for librating about deltaphi=0,
- Lpi for librating about deltaphi=pi
- C- for circulating from deltaphi=pi to deltaphi=0,
- C+ for circulating from deltaphi=0 to deltaphi=pi.
If simpler=True, do not distinguish between the two circulating morphologies and return C for both.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
simpler: boolean, optional (default: False)
If True simplifies output.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
morph: string
Spin morphology.
Examples
--------
``morph = precession.morphology(kappa,r,chieff,q,chi1,chi2,simpler=False)``
| def morphology(kappa, r, chieff, q, chi1, chi2, simpler=False, precomputedroots=None):
"""
Evaluate the spin morphology. Returns:
- L0 for librating about deltaphi=0,
- Lpi for librating about deltaphi=pi
- C- for circulating from deltaphi=pi to deltaphi=0,
- C+ for circulating from deltaphi=0 to deltaphi=pi.
If simpler=True, do not distinguish between the two circulating morphologies and return C for both.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
simpler: boolean, optional (default: False)
If True simplifies output.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
morph: string
Spin morphology.
Examples
--------
``morph = precession.morphology(kappa,r,chieff,q,chi1,chi2,simpler=False)``
"""
deltachiminus,deltachiplus = deltachilimits_plusminus(kappa, r, chieff, q, chi1, chi2)
# Pairs of booleans based on the values of deltaphi at S- and S+
status = np.transpose([eval_cosdeltaphi(deltachiminus, kappa, r, chieff, q, chi1, chi2) > 0, eval_cosdeltaphi(deltachiplus, kappa, r, chieff, q, chi1, chi2) > 0])
# Map to labels
dictlabel = {(False, False): "Lpi", (True, True): "L0", (False, True): "C-", (True, False): "C+"}
# Subsitute pairs with labels
morphs = np.zeros(deltachiminus.shape)
for k, v in dictlabel.items():
morphs = np.where((status == k).all(axis=1), v, morphs)
# Simplifies output, only one circulating morphology
if simpler:
morphs = np.where(np.logical_or(morphs == 'C+', morphs == 'C-'), 'C', morphs)
return morphs
| (kappa, r, chieff, q, chi1, chi2, simpler=False, precomputedroots=None) | [
0.03225836157798767,
-0.04548165574669838,
0.027236342430114746,
-0.003391886595636606,
0.020027318969368935,
-0.041431643068790436,
-0.03177236020565033,
0.009426407516002655,
0.020219694823026657,
0.05969720333814621,
0.026952842250466347,
0.05244768038392067,
0.03468836843967438,
0.025980839505791664,
-0.06075020879507065,
-0.029565101489424706,
0.026952842250466347,
-0.030881356447935104,
-0.024603834375739098,
-0.029038598760962486,
0.026142839342355728,
0.003143823239952326,
-0.004141139332205057,
0.06099320948123932,
-0.005771269556134939,
0.0527716800570488,
-0.019227441400289536,
0.012069040909409523,
-0.059332702308893204,
-0.03507312014698982,
0.004029763862490654,
-0.004047482740134001,
-0.001073253690265119,
-0.055404189974069595,
0.033149365335702896,
0.006930586416274309,
0.04155314341187477,
0.03260261192917824,
-0.07253574579954147,
0.015592553652822971,
-0.003280511125922203,
0.0036551374942064285,
-0.002233835868537426,
-0.05285268276929855,
-0.03766512870788574,
-0.0025489774998277426,
-0.027054091915488243,
0.08861429989337921,
0.007538088131695986,
0.015359677374362946,
0.021384073421359062,
-0.07678826153278351,
-0.016483556479215622,
-0.030152352526783943,
-0.0475066639482975,
0.01358779612928629,
-0.008935343474149704,
0.008074714802205563,
0.03531612083315849,
-0.07650475949048996,
0.019510941579937935,
0.017455559223890305,
0.052569180727005005,
0.05443218722939491,
0.00038886460242792964,
-0.010570536367595196,
0.04268714785575867,
0.013385295867919922,
0.01813393644988537,
0.017901061102747917,
-0.04702066257596016,
-0.0027211031410843134,
-0.02065507136285305,
-0.033149365335702896,
-0.018214937299489975,
-0.014650925062596798,
0.002438867697492242,
-0.031185107305645943,
0.023105328902602196,
-0.00652052229270339,
-0.029504351317882538,
-0.002341414336115122,
0.00025850479141809046,
-0.05937320366501808,
-0.007603900972753763,
0.0049232980236411095,
0.04548165574669838,
-0.03254185989499092,
-0.02322682924568653,
-0.05058467388153076,
-0.07452025264501572,
-0.0219713244587183,
0.022032074630260468,
0.03365561366081238,
0.015936804935336113,
0.06484071910381317,
-0.027459094300866127,
-0.05807719752192497,
0.06313971430063248,
-0.047385163605213165,
0.0020060224924236536,
0.0784892663359642,
0.002840072149410844,
0.0050650485791265965,
0.03377711400389671,
-0.013516921550035477,
-0.06228921189904213,
0.0398116372525692,
0.0346478670835495,
-0.09023430943489075,
-0.09938734024763107,
0.012160167098045349,
-0.03825237974524498,
-0.03796888142824173,
-0.01676705665886402,
-0.029787851497530937,
-0.010651536285877228,
0.032136861234903336,
0.014893925748765469,
0.007249524816870689,
0.00594339519739151,
-0.036531124264001846,
0.011623539961874485,
-0.029868852347135544,
0.015967179089784622,
0.03406061604619026,
0.0433756485581398,
0.04540065675973892,
-0.004098107572644949,
0.029767602682113647,
-0.021100571379065514,
0.02091832086443901,
0.0690932348370552,
0.029038598760962486,
-0.04100639000535011,
0.05289318040013313,
-0.02764134481549263,
-0.02016906999051571,
0.02095882222056389,
0.05864420160651207,
0.030415603891015053,
-0.051556676626205444,
-0.0069508361630141735,
0.025778338313102722,
-0.043578147888183594,
0.04649415984749794,
0.058482199907302856,
-0.024948084726929665,
0.02766159549355507,
0.01658480614423752,
-0.006814148277044296,
-0.001932615996338427,
0.09922534227371216,
0.003682981478050351,
0.058522701263427734,
-0.0634637176990509,
0.055161189287900925,
0.020007068291306496,
-0.01734418421983719,
-0.00865184236317873,
0.02480633556842804,
-0.014296549372375011,
0.013375170528888702,
0.017870686948299408,
-0.004492984153330326,
-0.012322166934609413,
0.029281599447131157,
-0.0026299776509404182,
0.036834876984357834,
0.04080389067530632,
0.008935343474149704,
0.004310733638703823,
-0.04989616945385933,
0.02865384891629219,
0.014073798432946205,
0.017668185755610466,
-0.050220172852277756,
-0.003776637837290764,
0.0392446331679821,
-0.06937673687934875,
-0.053824685513973236,
-0.0004793571133632213,
-0.03203561156988144,
-0.0012390511110424995,
-0.01070216204971075,
0.090882308781147,
0.07626175880432129,
-0.03948763385415077,
0.023044578731060028,
-0.009765596129000187,
0.013314420357346535,
-0.019227441400289536,
0.011562789790332317,
0.06889073550701141,
0.05973770469427109,
0.000011736734450096264,
0.06658222526311874,
-0.032440610229969025,
-0.010570536367595196,
-0.007371025159955025,
-0.01856931298971176,
0.023814082145690918,
0.0030248539987951517,
0.038596633821725845,
0.0480736643075943,
-0.03875863179564476,
-0.023105328902602196,
0.061884213238954544,
0.012575292959809303,
0.03276461362838745,
0.023328080773353577,
-0.0036196999717503786,
0.03377711400389671,
0.011694415472447872,
0.010084534995257854,
0.04297064617276192,
0.042768146842718124,
0.025677088648080826,
-0.041249390691518784,
-0.016463305801153183,
-0.012160167098045349,
0.033959366381168365,
0.03726012632250786,
0.0563356913626194,
-0.04155314341187477,
0.047385163605213165,
-0.013608046807348728,
0.03987238556146622,
0.0024021645076572895,
-0.060345206409692764,
0.0030299166683107615,
-0.02814759686589241,
-0.03829288110136986,
-0.05985920503735542,
-0.053865183144807816,
-0.03225836157798767,
-0.007801339030265808,
0.034971870481967926,
0.02355083078145981,
-0.004368952475488186,
-0.004156326875090599,
-0.06200571358203888,
-0.011542539112269878,
0.030152352526783943,
-0.006955898832529783,
-0.095013327896595,
0.035538870841264725,
-0.03736137971282005,
-0.008687280118465424,
0.0214043240994215,
0.011664040386676788,
-0.05467518791556358,
0.004860016517341137,
-0.017455559223890305,
0.05111117660999298,
-0.02219407632946968,
-0.03975088521838188,
0.025899838656187057,
0.04592715576291084,
-0.03766512870788574,
0.010428785346448421,
-0.03766512870788574,
-0.00041923971730284393,
0.04710166156291962,
-0.03975088521838188,
-0.02581883780658245,
-0.015714053064584732,
0.03697662800550461,
-0.01678730733692646,
-0.04665616154670715,
0.014164923690259457,
-0.0022591482847929,
-0.11007937788963318,
-0.0002994795504491776,
-0.03944713622331619,
0.04839766398072243,
0.009198593907058239,
0.03367586433887482,
-0.04212014377117157,
0.005270080640912056,
-0.041249390691518784,
-0.001947803539223969,
0.012615793384611607,
-0.032177358865737915,
-0.03997363522648811,
0.05755069851875305,
-0.019824817776679993,
-0.010038971900939941,
0.0931503176689148,
-0.013365046121180058,
0.057996198534965515,
0.0007676042150706053,
-0.030658604577183723,
-0.005720644723623991,
0.11915140599012375,
0.007391275372356176,
-0.054108183830976486,
-0.048964668065309525,
0.029848601669073105,
-0.09760533273220062,
0.023672331124544144,
-0.0408443883061409,
0.04236314445734024,
-0.03663237392902374,
-0.0336151160299778,
0.00825696624815464,
0.0914493128657341,
-0.012636043131351471,
0.012848668731749058,
-0.00026530754985287786,
-0.03377711400389671,
-0.01303091924637556,
-0.0031995109748095274,
0.022416826337575912,
0.012838544324040413,
-0.0445096530020237,
0.036247625946998596,
0.03367586433887482,
0.03335186466574669,
0.04993667080998421,
0.015673553571105003,
0.004019638989120722,
-0.0060345204547047615,
0.043497148901224136,
0.013314420357346535,
-0.09922534227371216,
-0.0072191497310996056,
-0.016119055449962616,
0.0292006004601717,
-0.014418049715459347,
-0.027054091915488243,
0.05058467388153076,
-0.009563094936311245,
0.018235187977552414,
-0.017354309558868408,
-0.011572914198040962,
0.027054091915488243,
-0.012109541334211826,
-0.017759310081601143,
-0.03673362731933594,
0.06824273616075516,
-0.0036677937023341656,
-0.01653418131172657,
0.018933814018964767,
0.009471969678997993,
0.03387836739420891,
0.07670726627111435,
0.01758718490600586,
-0.013871297240257263,
0.009993408806622028,
-0.003085604403167963,
0.02016906999051571,
0.0033032926730811596,
0.016716431826353073,
0.001111855381168425,
0.03019285388290882,
-0.07034873962402344,
-0.01420542411506176,
0.014893925748765469,
-0.007087524048984051,
0.038151130080223083,
0.017242934554815292,
0.009082156233489513,
0.039345886558294296,
-0.019328691065311432,
-0.042727645486593246,
-0.08966730535030365,
0.05066567286849022,
-0.03128635883331299,
-0.030111853033304214,
0.0017199902795255184,
0.013891547918319702,
0.0035083245020359755,
-0.03349361568689346,
0.040743138641119,
0.06698723137378693,
0.02814759686589241,
-0.02814759686589241,
-0.029241099953651428,
-0.023955831304192543,
0.0086366543546319,
0.019197065383195877,
-0.04467165470123291,
0.02709459327161312,
-0.003872825764119625,
0.03312911465764046,
0.03159010782837868,
-0.016665806993842125,
0.025413837283849716,
0.026446590200066566,
-0.0433756485581398,
-0.034708619117736816,
0.05686219409108162,
0.008950530551373959,
-0.03505286946892738,
0.021910574287176132,
0.039649635553359985,
0.010170597583055496,
-0.04653466120362282,
0.005421956069767475,
0.04499565437436104,
-0.022558577358722687,
-0.045117154717445374,
-0.019753942266106606,
-0.007973465137183666,
-0.010621161200106144,
0.009765596129000187,
0.026244089007377625,
-0.021242322400212288,
-0.020239943638443947,
-0.04681815952062607,
-0.0012928403448313475,
0.018650313839316368,
-0.00825190357863903,
-0.05807719752192497,
-0.017172059044241905,
-0.0292006004601717,
-0.002130054170265794,
-0.029909351840615273,
0.06682522594928741,
-0.000808104348834604,
-0.04080389067530632,
0.03750312700867653,
0.052042677998542786,
0.013324545696377754,
0.08521229028701782,
0.06350421905517578,
0.012160167098045349,
0.005447268486022949,
0.02066519670188427,
-0.009573220275342464,
0.01857943832874298,
-0.01706068404018879,
-0.029038598760962486,
-0.03434411808848381,
-0.04625115916132927,
0.00006134347495390102,
-0.004060138948261738,
0.03881938382983208,
-0.03677412495017052,
0.003829794470220804,
0.028350096195936203,
0.002956510055810213,
-0.04827616363763809,
-0.0012472777161747217,
0.01044903602451086,
0.015298927202820778,
0.010671786963939667,
0.003756387857720256,
-0.029058849439024925,
0.0392446331679821,
0.0059940204955637455,
-0.012858794070780277,
0.02946385182440281,
0.09193531423807144,
0.0398116372525692,
-0.013213170692324638,
0.018447812646627426,
-0.04552215710282326,
-0.020290570333600044,
0.024117833003401756,
0.06066920608282089,
0.0030071353539824486,
0.013962422497570515,
0.0044297026470303535,
0.042808648198843,
0.038333382457494736,
-0.01602792926132679,
-0.0402773879468441,
-0.03673362731933594,
0.05346018448472023,
-0.06358521431684494,
0.013830797746777534,
0.032703861594200134,
0.04284914582967758,
-0.0034273243509233,
-0.055930692702531815,
0.02142457291483879,
0.004675234667956829,
-0.06245121359825134,
-0.03391886502504349,
-0.03922438621520996,
-0.03798912838101387,
-0.0397103875875473,
0.0045182965695858,
-0.05949470400810242,
0.0019351472146809101,
-0.021627074107527733,
0.028066596016287804,
-0.10675836354494095,
0.015106551349163055,
0.081486277282238,
0.012190542183816433,
0.009720033034682274,
-0.016149429604411125,
0.03726012632250786,
0.006955898832529783,
-0.05556619167327881,
0.03159010782837868,
-0.015298927202820778,
-0.0026603529695421457,
0.0006650882423855364,
-0.05301468074321747,
-0.004449952859431505,
0.024684835225343704,
0.015946930274367332,
0.01732393354177475,
-0.03875863179564476,
-0.034971870481967926,
-0.022882578894495964,
-0.021282823756337166,
-0.09930633753538132,
0.0413101427257061,
-0.01626080647110939,
-0.022356076166033745,
-0.03845488280057907,
-0.022356076166033745,
0.04811416566371918,
-0.025413837283849716,
-0.03960913419723511,
0.010044034570455551,
-0.03792838007211685,
-0.04361864924430847,
0.030132103711366653,
-0.019723568111658096,
-0.009001155383884907,
-0.006945773959159851,
-0.07731476426124573,
0.003893075743690133,
-0.011572914198040962,
-0.04386164993047714,
-0.040378637611866,
-0.048964668065309525,
0.0831872820854187,
-0.010661661624908447,
0.020320944488048553,
-0.03588312119245529,
-0.01993619278073311,
0.04058114066720009,
-0.008034215308725834,
-0.021910574287176132,
-0.008910030126571655,
-0.011289414018392563,
-0.012474042363464832,
0.05447268486022949,
0.022011825814843178,
0.02608208917081356,
-0.0039386386051774025,
-0.015582428313791752,
0.004138607997447252,
-0.03950788453221321,
-0.0014655988197773695,
-0.042484644800424576,
0.039426885545253754,
0.040743138641119,
0.034283366054296494,
0.039123132824897766,
-0.06232971325516701,
-0.03124585747718811,
0.019227441400289536,
-0.029058849439024925,
-0.035012368112802505,
0.0490051694214344,
-0.07901576906442642,
0.023348329588770866,
0.04293014854192734,
-0.00005798164420411922,
0.028836099430918694,
0.002824884606525302,
-0.012210791930556297,
0.028572848066687584,
0.028046345338225365,
0.05115167424082756,
-0.03647037595510483,
-0.0355793721973896,
0.05418918654322624,
0.03274436295032501,
-0.008059527724981308,
-0.009335282258689404,
-0.039426885545253754,
0.009522595442831516,
-0.004141139332205057,
0.047911662608385086,
-0.014964801259338856,
0.07281924784183502,
0.004584109410643578,
-0.018943939357995987,
0.06617722660303116,
0.004052544943988323,
0.027803344652056694,
-0.04475265368819237,
-0.019693192094564438,
0.0037791691720485687,
-0.04722316190600395,
-0.02276107855141163,
-0.020007068291306496,
0.03960913419723511,
0.008970780298113823,
0.03898138180375099,
0.018964190036058426,
-0.03235961124300957,
-0.08448328822851181,
-0.007330525200814009,
-0.0020984134171158075,
-0.08456429094076157,
0.03713862597942352,
0.03225836157798767,
-0.009365657344460487,
0.021343573927879333,
0.003726012771949172,
0.01886294037103653,
-0.009244157001376152,
-0.004024701192975044,
0.02942335046827793,
0.01060091145336628,
0.03778662905097008,
-0.005918082781136036,
-0.0355793721973896,
0.05892770364880562,
-0.014296549372375011,
0.004072795156389475,
-0.05175917595624924,
-0.02013869397342205,
-0.052569180727005005,
-0.04702066257596016,
0.011299538426101208,
0.010499660857021809,
-0.058765701949596405,
-0.010160472244024277,
-0.023631831631064415,
0.04851916804909706,
-0.016473431140184402,
0.013081545010209084,
-0.015025551430881023,
-0.07452025264501572,
0.05589019134640694,
0.016848057508468628,
-0.006014270707964897,
-0.02711484208703041,
0.0681617334485054,
-0.01278791856020689,
-0.014104173518717289,
-0.021100571379065514,
-0.0041335453279316425,
-0.015653302893042564,
-0.01857943832874298,
0.02889684960246086,
-0.01784031093120575,
-0.005821894854307175,
0.04064188897609711,
-0.06961973756551743,
0.036045122891664505,
-0.030800355598330498,
-0.026750341057777405,
-0.0137092974036932,
-0.09404132515192032,
0.03231910988688469,
-0.0034855431877076626,
-0.032136861234903336,
-0.0028577910270541906,
0.00472332863137126,
-0.007695026230067015,
-0.023145828396081924,
-0.014569925144314766,
0.0019566628616303205,
-0.030030852183699608,
0.06735172867774963,
-0.003865231992676854,
0.033716365694999695,
-0.01831618696451187,
0.025150585919618607,
-0.03286586329340935,
-0.007467213086783886,
-0.04653466120362282,
-0.0002121511206496507,
0.05143517628312111,
0.028734847903251648,
0.0552016906440258,
0.009654220193624496,
-0.013527045957744122,
0.03843463212251663,
0.0666632279753685,
0.023368580266833305,
0.023348329588770866,
0.041411392390728,
-0.01539005246013403,
0.05321718379855156,
0.005907957907766104,
-0.002776790875941515,
-0.013273920863866806,
-0.021566323935985565,
0.01912618987262249,
0.010069346986711025,
0.01123878825455904,
0.05285268276929855,
0.002281929599121213,
-0.04031788930296898,
-0.0075836507603526115,
-0.012069040909409523,
-0.027317343279719353,
0.10278934985399246,
-0.01279804389923811,
-0.020715821534395218,
-0.029058849439024925,
-0.05471568927168846,
-0.010175660252571106,
0.02735784463584423,
-0.04031788930296898,
0.021060071885585785,
0.010236410424113274,
0.005492831114679575,
0.11032237857580185,
0.02116132341325283,
-0.055647190660238266,
0.005659894552081823,
-0.0314483568072319,
-0.02430008351802826,
0.04754716157913208,
0.026507340371608734,
-0.016392430290579796,
-0.007107774261385202,
-0.03375686705112457,
0.05443218722939491,
0.011360288597643375,
-0.020219694823026657,
-0.01215004175901413,
0.06285621225833893,
-0.019561566412448883,
-0.03385811671614647,
-0.008013964630663395,
-0.06889073550701141,
0.022619327530264854,
-0.04078363999724388,
-0.016200056299567223,
0.02687184140086174,
-0.052285678684711456,
0.005249830428510904,
-0.06431422382593155,
-0.008580966852605343,
0.016686057671904564,
-0.01939956657588482,
-0.017668185755610466,
-0.009431470185518265,
-0.02689209207892418,
0.018994564190506935,
-0.014519299380481243,
0.0072343372739851475,
0.014073798432946205,
0.03543762117624283,
0.021242322400212288,
0.036308374255895615,
-0.023915331810712814,
0.010428785346448421,
-0.06358521431684494,
0.01229179184883833,
0.02482658438384533,
-0.025697337463498116,
0.005776332225650549,
-0.010752786882221699,
-0.016959432512521744,
0.0011998165864497423,
-0.016463305801153183,
0.02918034978210926,
0.05807719752192497,
0.03385811671614647,
0.028066596016287804,
-0.022518077865242958,
0.02377358078956604
] |
20,896 | precession.precession | norm_nested |
Norm of 2D array of shape (N,3) along last axis.
Parameters
----------
x : array
Input array.
Returns
-------
n : array
Norm of the input arrays.
Examples
--------
``n = norm_nested(x)``
| def norm_nested(x):
"""
Norm of 2D array of shape (N,3) along last axis.
Parameters
----------
x : array
Input array.
Returns
-------
n : array
Norm of the input arrays.
Examples
--------
``n = norm_nested(x)``
"""
return np.linalg.norm(x, axis=1)
| (x) | [
-0.03963049128651619,
0.05859985575079918,
-0.006686070468276739,
0.048125311732292175,
0.042654071003198624,
-0.0033992775715887547,
-0.0201931931078434,
-0.0037997218314558268,
0.06767059117555618,
0.054136473685503006,
-0.0007154005579650402,
-0.03651692345738411,
-0.04636155441403389,
0.0057412018068134785,
0.012346283532679081,
0.030919702723622322,
0.025376472622156143,
0.0064835986122488976,
-0.03916255757212639,
0.008899763226509094,
-0.003599499585106969,
0.042654071003198624,
0.002641132799908519,
0.032017551362514496,
-0.011500401422381401,
0.026726284995675087,
0.030433770269155502,
-0.022190915420651436,
-0.0018638658802956343,
-0.04175419732928276,
0.018681403249502182,
0.006524092983454466,
0.01844743639230728,
-0.0007294610841199756,
0.017718536779284477,
0.016530701890587807,
-0.03235950320959091,
-0.007788417395204306,
-0.07695730030536652,
-0.006366615183651447,
0.012922204099595547,
-0.03894658759236336,
-0.03527509793639183,
0.03675089031457901,
0.05903179571032524,
0.004024690482765436,
0.04675750061869621,
0.0014218023279681802,
-0.11806359142065048,
-0.02589840069413185,
-0.032017551362514496,
-0.019977223128080368,
0.07231394946575165,
-0.038586635142564774,
-0.029227936640381813,
0.01850142888724804,
-0.004053936339914799,
0.03815469518303871,
0.03703885152935982,
-0.04988906532526016,
0.039738476276397705,
0.012994193471968174,
-0.05651214346289635,
0.03725482150912285,
-0.024890540167689323,
-0.018213467672467232,
-0.03072172962129116,
0.09070739150047302,
0.03477116674184799,
0.015522842295467854,
-0.06569086760282516,
0.05539629980921745,
-0.022874820977449417,
-0.059427738189697266,
0.018627410754561424,
0.06885842978954315,
0.02373870089650154,
0.022280903533101082,
0.0177635308355093,
0.0422581247985363,
-0.029119951650500298,
0.0028053601272404194,
-0.03093769960105419,
0.0348251610994339,
0.005475739017128944,
-0.02280282974243164,
-0.006839049514383078,
0.04258207976818085,
-0.04009842500090599,
0.02060713618993759,
-0.0070370216853916645,
0.009871628135442734,
0.021956948563456535,
0.035203106701374054,
-0.007815414108335972,
0.019563280045986176,
-0.000996049027889967,
-0.02735619805753231,
0.0031158169731497765,
-0.07109011709690094,
0.0008728786488063633,
-0.0114284111186862,
0.005705207120627165,
0.01404704712331295,
0.0280940942466259,
0.044813770800828934,
-0.013417134992778301,
-0.08912361413240433,
0.020499151200056076,
0.05734002962708473,
-0.027284206822514534,
0.02325276844203472,
-0.010735508054494858,
-0.009781640022993088,
-0.02757216803729534,
0.006213636137545109,
-0.02377469465136528,
0.04942113161087036,
-0.004519621841609478,
-0.003954950254410505,
0.06612280756235123,
0.021039076149463654,
-0.038766611367464066,
-0.048845209181308746,
-0.01875339262187481,
0.007365476340055466,
-0.06403510272502899,
-0.006524092983454466,
-0.01809648424386978,
-0.014020050875842571,
-0.012031327933073044,
0.014487986452877522,
-0.01607176661491394,
-0.010051602497696877,
0.009592666290700436,
-0.019131340086460114,
0.054388441145420074,
-0.0378667376935482,
0.007896402850747108,
-0.023360753431916237,
-0.004296902567148209,
0.046217575669288635,
0.002521899528801441,
0.011023467406630516,
0.02501652203500271,
0.02375669777393341,
0.030397774651646614,
0.03174758702516556,
0.008022384718060493,
-0.03478916361927986,
-0.0369308665394783,
0.016098761931061745,
0.13872471451759338,
0.011023467406630516,
0.015306872315704823,
-0.007154005579650402,
-0.028022104874253273,
-0.1107925996184349,
0.05093292146921158,
-0.022748837247490883,
-0.04564165696501732,
-0.01511789858341217,
-0.07065817713737488,
-0.024566585198044777,
0.003145062830299139,
-0.0010776001727208495,
-0.02708623558282852,
-0.03522110357880592,
-0.033187385648489,
-0.013417134992778301,
0.002280058106407523,
0.017655545845627785,
-0.035887010395526886,
-0.02858002670109272,
0.0165936928242445,
0.0012575752334669232,
-0.008418329991400242,
0.0013576862402260303,
-0.019095346331596375,
-0.03361932560801506,
-0.003984196111559868,
-0.018078487366437912,
0.07515755295753479,
-0.0675986036658287,
-0.04027840122580528,
0.005493736360222101,
-0.009034744463860989,
-0.0008875016355887055,
-0.013678099028766155,
0.014128035865724087,
-0.016971640288829803,
-0.011248436756432056,
-0.017052629962563515,
0.014586972072720528,
0.021201053634285927,
0.02764415740966797,
-0.005066295620054007,
0.035383082926273346,
0.0757334753870964,
-0.07270989567041397,
-0.050572969019412994,
-0.003844715654850006,
-0.017943505197763443,
0.035653043538331985,
-0.016917647793889046,
-0.04747740179300308,
-0.035653043538331985,
-0.0034172749146819115,
-0.002823357470333576,
0.011545395478606224,
0.0069155385717749596,
0.04006243124604225,
0.03844265639781952,
-0.00883227214217186,
0.018105482682585716,
0.016233744099736214,
0.005777196958661079,
-0.046433545649051666,
0.02951589785516262,
-0.016125759109854698,
-0.04042237997055054,
-0.029173944145441055,
0.06842648983001709,
0.013885069638490677,
-0.04416586086153984,
0.010978474281728268,
0.02861602231860161,
0.06770659238100052,
-0.007019024342298508,
0.006641076877713203,
0.003840216202661395,
0.0049223159439861774,
0.00982663407921791,
-0.008895264007151127,
-0.03138763830065727,
-0.11316826939582825,
-0.020751114934682846,
0.02933592163026333,
0.10021007061004639,
-0.0175295639783144,
-0.01045654620975256,
-0.056044209748506546,
-0.052228741347789764,
-0.04009842500090599,
-0.00005567976040765643,
0.023684708401560783,
0.00857130903750658,
0.0302897896617651,
0.023684708401560783,
-0.01067251618951559,
-0.09394694119691849,
0.05424445867538452,
0.023162780329585075,
0.03532908856868744,
0.018789388239383698,
-0.012994193471968174,
-0.00907523836940527,
0.0632072165608406,
0.021920952945947647,
-0.0004308151255827397,
0.02235289290547371,
-0.01404704712331295,
0.019815245643258095,
0.004814330954104662,
-0.05543229356408119,
-0.027050239965319633,
0.01791650988161564,
0.0008616302511654794,
0.0413222573697567,
0.030451767146587372,
0.0998501181602478,
0.03531109169125557,
0.05780796334147453,
-0.03765076771378517,
0.035383082926273346,
0.048125311732292175,
0.04632556065917015,
0.0019482291536405683,
0.03473517298698425,
0.014730952680110931,
-0.00498530687764287,
-0.01500091515481472,
-0.052948638796806335,
0.0417901910841465,
0.001006172620691359,
-0.0001640865666558966,
-0.0355270616710186,
-0.015324870124459267,
-0.013363142497837543,
0.03433922678232193,
0.03775875270366669,
-0.03241349384188652,
0.02517849951982498,
0.05327259376645088,
-0.03559905290603638,
-0.05093292146921158,
-0.08660396188497543,
0.01141041424125433,
0.03237750008702278,
0.026456322520971298,
-0.009295707568526268,
0.04877322167158127,
0.03765076771378517,
0.006420607678592205,
0.04438183084130287,
0.03500513359904289,
0.0015106650535017252,
-0.03027179278433323,
0.013192166574299335,
-0.017907511442899704,
0.002740119118243456,
0.020481152459979057,
-0.09351500123739243,
0.028292067348957062,
0.020931091159582138,
0.04182618483901024,
0.03919855132699013,
-0.04726143181324005,
0.021758975461125374,
0.022982805967330933,
0.012103317305445671,
0.04348195716738701,
0.07073017209768295,
0.032089538872241974,
-0.028508037328720093,
-0.01356111466884613,
0.08977152407169342,
0.012580251321196556,
0.005529731512069702,
0.022244907915592194,
0.03988245502114296,
-0.03721882775425911,
-0.023954670876264572,
0.03246748819947243,
-0.005003304686397314,
-0.029389914125204086,
0.045497674494981766,
-0.03361932560801506,
0.028256071731448174,
-0.050500981509685516,
-0.051976773887872696,
0.03406926617026329,
-0.00570070743560791,
-0.05377652496099472,
-0.047189440578222275,
-0.018663406372070312,
0.021543005481362343,
0.0006186640239320695,
0.02134503237903118,
-0.021237047389149666,
-0.016314731910824776,
-0.03144162893295288,
-0.013642103411257267,
-0.0071585047990083694,
-0.035149116069078445,
0.04686548560857773,
-0.019275320693850517,
-0.0366968996822834,
0.0003202992375008762,
0.005673711188137531,
0.030811717733740807,
0.033241380006074905,
-0.01788051426410675,
-0.031153669580817223,
0.060147639364004135,
0.013507122173905373,
0.0005894180503673851,
-0.024836547672748566,
-0.0030055821407586336,
0.01045654620975256,
-0.042870040982961655,
-0.04906117916107178,
0.002355422591790557,
0.017988499253988266,
0.016728674992918968,
0.04251009225845337,
-0.04560565948486328,
-0.03410525992512703,
0.021956948563456535,
-0.06428706645965576,
0.00594367366284132,
-0.019077347591519356,
0.03426723554730415,
-0.08070078492164612,
0.03619296848773956,
-0.009034744463860989,
0.013876071199774742,
0.041646212339401245,
-0.062055375427007675,
0.01826746016740799,
-0.037110842764377594,
0.03048776276409626,
0.018771391361951828,
-0.008517316542565823,
-0.11388816684484482,
0.009052741341292858,
-0.014811941422522068,
-0.026798274368047714,
-0.03594100475311279,
-0.04484976455569267,
-0.033007413148880005,
0.04344595968723297,
0.01165338046848774,
0.0034645183477550745,
-0.06633877754211426,
-0.028957974165678024,
-0.03286343067884445,
0.03153161704540253,
0.009889625012874603,
-0.004751339554786682,
-0.04269006475806236,
0.06911039352416992,
0.04315800219774246,
-0.011095457710325718,
0.0907793790102005,
0.017655545845627785,
0.051976773887872696,
0.01511789858341217,
-0.003720982698723674,
0.017466573044657707,
0.01707962527871132,
-0.03487915173172951,
0.021237047389149666,
0.04776535928249359,
0.03334936499595642,
-0.03765076771378517,
-0.04614558443427086,
-0.0891956016421318,
0.0014184277970343828,
0.017583556473255157,
-0.0747976005077362,
-0.0045398687943816185,
-0.034231241792440414,
-0.04556966572999954,
-0.03887459635734558,
-0.02881399542093277,
-0.029173944145441055,
0.04171819984912872,
-0.00827884953469038,
-0.0008965003653429449,
0.013831077143549919,
0.06043560057878494,
-0.007324981968849897,
-0.06360316276550293,
0.0028278569225221872,
0.04495774954557419,
0.016638686880469322,
0.014964919537305832,
0.01744857430458069,
-0.047441404312849045,
0.0020370918791741133,
-0.05114889144897461,
0.08552411198616028,
-0.028400052338838577,
-0.012580251321196556,
-0.01043854933232069,
-0.04146623611450195,
-0.040206409990787506,
-0.0005621406016871333,
-0.0037097344174981117,
-0.04157422110438347,
0.012058324180543423,
0.034681178629398346,
-0.01453297957777977,
-0.045497674494981766,
-0.07688531279563904,
0.007140507455915213,
0.0019268571631982923,
0.005174280609935522,
-0.0016130257863551378,
0.06648276001214981,
0.03862263262271881,
-0.005169781390577555,
0.016125759109854698,
0.06529492139816284,
-0.020769113674759865,
-0.005453241989016533,
-0.0357610285282135,
0.001332939718849957,
-0.06536691635847092,
-0.09473883360624313,
0.033475346863269806,
-0.020301178097724915,
0.00012443582818377763,
-0.022226911038160324,
-0.009052741341292858,
-0.05410047993063927,
0.01965326815843582,
0.0791889950633049,
-0.021471016108989716,
-0.02138102799654007,
0.07558949291706085,
0.06659074127674103,
0.016611691564321518,
0.0006895291735418141,
-0.03358333185315132,
0.006632077973335981,
0.015162892639636993,
0.026312341913580894,
0.021183054894208908,
0.02714022807776928,
0.020121203735470772,
0.03815469518303871,
0.017520565539598465,
-0.019563280045986176,
0.0605795793235302,
-0.06129948049783707,
-0.0189333688467741,
0.036156974732875824,
0.0026951252948492765,
-0.04056636244058609,
-0.04294203221797943,
0.020535144954919815,
0.024062655866146088,
0.01965326815843582,
0.04578563570976257,
-0.04153822734951973,
0.01900535821914673,
0.0970425084233284,
0.037110842764377594,
0.03190956637263298,
-0.007734424900263548,
-0.052948638796806335,
-0.008476821705698967,
0.011743367649614811,
0.05330859124660492,
0.033277373760938644,
-0.0017682542093098164,
-0.021255046129226685,
0.019815245643258095,
0.0004026940150652081,
0.002213692292571068,
0.030649740248918533,
0.014568975195288658,
-0.03432122990489006,
0.03190956637263298,
-0.01356111466884613,
0.005687209311872721,
-0.028292067348957062,
0.010087598115205765,
0.04099830240011215,
-0.017934506759047508,
0.07911700010299683,
-0.02235289290547371,
-0.0018447436159476638,
-0.0013790583470836282,
0.00973664689809084,
-0.011689375154674053,
0.026708288118243217,
0.0060066650621593,
-0.013390138745307922,
0.010267572477459908,
-0.026942254975438118,
0.019365308806300163,
-0.017655545845627785,
-0.01680966280400753,
-0.07346578687429428,
-0.002713122870773077,
0.001480294275097549,
-0.043589942157268524,
-0.010177585296332836,
-0.04542568698525429,
0.03099169209599495,
0.018312454223632812,
0.007941395975649357,
0.03912656009197235,
0.005768198054283857,
-0.00021821966220159084,
-0.021543005481362343,
0.03307940065860748,
-0.05935575067996979,
0.03453719988465309,
0.04952911660075188,
-0.049565110355615616,
0.049313146620988846,
-0.004476877860724926,
0.009214718826115131,
-0.0580599308013916,
-0.035365086048841476,
-0.04315800219774246,
0.05237272009253502,
-0.1158318966627121,
-0.003871711902320385,
0.0017446324927732348,
-0.027698149904608727,
-0.024836547672748566,
-0.0035590052139014006,
0.02494453266263008,
-0.051004908978939056,
-0.005502735264599323,
-0.033727310597896576,
-0.014568975195288658,
0.058023933321237564,
-0.010546534322202206,
0.087323859333992,
-0.01478494517505169,
-0.051040906459093094,
0.0029628381598740816,
0.04704546183347702,
-0.016584694385528564,
0.0006360990810208023,
0.05402848869562149,
-0.020805107429623604,
0.10755304992198944,
-0.04182618483901024,
-0.06677071750164032,
0.026366334408521652,
-0.05734002962708473,
-0.030073819682002068,
-0.046433545649051666,
-0.0189333688467741,
-0.017772529274225235,
-0.04376991465687752,
0.0057142055593431,
0.011671377345919609,
-0.023882679641246796,
-0.020949088037014008,
0.010168586857616901,
-0.0031113175209611654,
-0.00251740007661283,
-0.03291742503643036,
-0.028634019196033478,
-0.009214718826115131,
-0.057951945811510086,
-0.028670014813542366,
0.01045654620975256,
0.03822668641805649,
-0.0006467850762419403,
-0.031153669580817223,
-0.057016074657440186,
0.011743367649614811,
0.013219162821769714,
-0.039522506296634674,
-0.023900678381323814,
-0.007365476340055466,
0.016737673431634903,
-0.00032761070178821683,
-0.025286484509706497,
-0.03268345817923546,
0.08113272488117218,
0.04297802597284317,
0.006533091887831688,
-0.020481152459979057,
0.03390728682279587,
0.02397266775369644,
0.026762280613183975,
0.010609525255858898,
-0.012490264140069485,
0.009322703815996647,
-0.02330676093697548,
-0.03099169209599495,
0.021920952945947647,
-0.006929036695510149,
0.04798132926225662,
0.03223352134227753,
-0.019077347591519356,
0.03790273144841194,
0.004940313287079334,
-0.011581390164792538,
-0.036372944712638855,
0.03415925055742264,
-0.04351795092225075,
-0.016179751604795456,
0.011554393917322159,
-0.002501652343198657,
-0.022226911038160324,
0.037542782723903656,
-0.03826268017292023,
-0.04877322167158127,
-0.04798132926225662,
-0.014730952680110931,
0.013156170956790447,
-0.011113455519080162,
0.004564615432173014,
-0.009187722578644753,
0.0032642963342368603,
0.011203442700207233,
-0.025052517652511597,
0.039918452501297,
0.02813008986413479,
-0.010573530569672585,
0.021561002358794212,
-0.006695069372653961,
-0.00013413760461844504,
0.000742959207855165,
-0.027932116761803627,
0.02381069026887417,
0.07141407579183578,
0.0009836758254095912,
-0.02044515870511532,
-0.07832511514425278,
-0.016296735033392906,
-0.03126165643334389,
-0.0070460205897688866,
-0.007815414108335972,
0.014505983330309391,
0.04128625988960266,
0.053668539971113205,
0.006564587354660034,
0.015162892639636993,
0.055612269788980484,
-0.01580180414021015,
-0.03941452130675316,
0.03149562329053879,
0.01719661056995392,
0.0018571168184280396,
-0.00015396297385450453,
-0.017187610268592834,
0.042870040982961655,
0.06507895141839981,
-0.0029425909742712975,
0.0008993124938569963,
0.06943435221910477,
-0.031315647065639496,
0.010186583735048771,
0.04560565948486328,
0.019545283168554306,
0.025394469499588013,
-0.0018829882610589266,
-0.0031113175209611654,
0.03241349384188652,
0.001837994554080069,
0.03262946382164955,
-0.05014102905988693,
-0.0011968336766585708,
-0.00714500667527318,
0.02908395789563656,
0.008953755721449852,
-0.013525119982659817,
0.0034330228809267282,
-0.05931975319981575,
-0.026996247470378876,
0.01809648424386978,
0.024386610835790634,
0.008971752598881721,
0.0619833841919899,
0.005529731512069702,
0.02517849951982498,
-0.056584134697914124,
-0.061119504272937775,
0.01429001335054636,
0.03070373274385929,
0.033961281180381775,
-0.03959449753165245,
-0.007581446319818497,
0.0045916116796433926,
-0.021291039884090424,
-0.024332618340849876,
0.022532867267727852,
-0.08185262233018875,
0.028670014813542366,
-0.009934619069099426,
-0.04200616106390953,
-0.0378667376935482,
-0.021327035501599312,
-0.007059518713504076,
0.034177251160144806,
-0.05042899027466774,
-0.01826746016740799,
-0.03963049128651619,
0.03153161704540253,
-0.06342318654060364,
0.05514433607459068,
0.06119149550795555,
-0.04229412227869034,
-0.013129174709320068,
0.05453241989016533,
0.02688826248049736
] |
20,897 | precession.precession | normalize_nested |
Normalize 2D array of shape (N,3) along last axis.
Parameters
----------
x : array
Input array.
Returns
-------
y : array
Normalized array.
Examples
--------
``y = normalize_nested(x)``
| def normalize_nested(x):
"""
Normalize 2D array of shape (N,3) along last axis.
Parameters
----------
x : array
Input array.
Returns
-------
y : array
Normalized array.
Examples
--------
``y = normalize_nested(x)``
"""
return x/norm_nested(x)[:, None]
| (x) | [
-0.04221799597144127,
0.056893445551395416,
-0.009615548886358738,
0.03140267729759216,
0.032567672431468964,
-0.02637755312025547,
-0.026481881737709045,
-0.022134888917207718,
0.07880228757858276,
0.03578444570302963,
0.017292337492108345,
-0.06607429683208466,
-0.030342010781168938,
-0.002858147956430912,
0.009632936678826809,
0.04381768777966499,
0.01222374476492405,
0.02067429944872856,
-0.008963499218225479,
0.049764376133680344,
0.02216966450214386,
0.010832706466317177,
-0.005959727335721254,
0.02408234216272831,
-0.004916449077427387,
0.003255897667258978,
0.030689770355820656,
-0.013797355815768242,
-0.00463389465585351,
-0.061275213956832886,
0.04990347847342491,
0.01797916367650032,
0.026864416897296906,
0.012719301506876945,
0.04892975464463234,
-0.03787100315093994,
-0.056302253156900406,
0.009006969630718231,
-0.07574200630187988,
-0.020343927666544914,
-0.01723148114979267,
-0.04621722921729088,
-0.061031781136989594,
0.03960980102419853,
0.07928915321826935,
0.02048303186893463,
0.05981462448835373,
0.024969127029180527,
-0.06433549523353577,
-0.022447871044278145,
-0.036027878522872925,
-0.030637606978416443,
0.0673610046505928,
-0.0010476253228262067,
-0.02463875710964203,
0.04666931554675102,
0.016370775178074837,
0.0296464916318655,
0.02729911543428898,
-0.06645683199167252,
0.02849888615310192,
0.028551049530506134,
-0.0335935615003109,
-0.006037973333150148,
-0.0202917642891407,
-0.02942044846713543,
-0.04260053113102913,
0.10064158588647842,
-0.011336958035826683,
0.008815702050924301,
-0.09848547726869583,
0.04531305655837059,
-0.011050056666135788,
-0.055119872093200684,
-0.012658443301916122,
0.09048700332641602,
-0.004292655736207962,
0.043122172355651855,
0.016588125377893448,
0.04364380985498428,
-0.035454075783491135,
0.045417383313179016,
-0.03248073160648346,
0.044652312994003296,
-0.0010791410459205508,
-0.02733389288187027,
0.012102028355002403,
0.05432002618908882,
-0.04277441278100014,
0.04298306629061699,
0.013814743608236313,
0.010606663301587105,
0.013188776560127735,
0.0573803074657917,
-0.02086556702852249,
0.04534783214330673,
-0.014075563289225101,
-0.015970852226018906,
0.0014323341893032193,
-0.07977601885795593,
-0.01815304346382618,
-0.01271060761064291,
-0.027768591418862343,
0.025073455646634102,
0.018274758011102676,
0.060510143637657166,
0.01776181347668171,
-0.0680217444896698,
0.015597010962665081,
0.03020290657877922,
-0.03574967011809349,
0.01138042751699686,
-0.04319172352552414,
-0.0036775560583919287,
-0.012910569086670876,
-0.021352428942918777,
-0.021282877773046494,
0.03609742969274521,
0.014292912557721138,
0.0012367195449769497,
0.01664898358285427,
0.012919262982904911,
-0.03651474043726921,
-0.016927190124988556,
-0.044269777834415436,
0.007537685800343752,
-0.010128493420779705,
0.02830761857330799,
-0.043087393045425415,
-0.01590130105614662,
-0.05449390411376953,
0.011719493195414543,
-0.06318788975477219,
-0.019561467692255974,
0.006159689277410507,
-0.006816084962338209,
0.039644576609134674,
-0.03999233618378639,
0.036619070917367935,
-0.06176207587122917,
0.004768651444464922,
0.0359235517680645,
0.0038688238710165024,
0.003905773162841797,
0.044826190918684006,
0.01510145328938961,
0.05748463422060013,
0.047295283526182175,
-0.007628972642123699,
-0.04371336102485657,
-0.05678911507129669,
0.027386056259274483,
0.14146853983402252,
-0.003236336400732398,
0.025508154183626175,
-0.010276291519403458,
-0.07302948087453842,
-0.09111297130584717,
0.06638728082180023,
-0.0013312665978446603,
-0.05755418911576271,
-0.022291380912065506,
-0.03385438024997711,
-0.033576175570487976,
-0.017483605071902275,
-0.030324622988700867,
-0.03503676503896713,
-0.061831627041101456,
-0.043991569429636,
-0.002686441643163562,
0.03115924634039402,
0.017153235152363777,
-0.05442435294389725,
-0.012371541932225227,
0.008415778167545795,
0.013693028129637241,
0.007998467423021793,
-0.011641247197985649,
-0.03801010549068451,
0.026081958785653114,
0.01570133864879608,
0.0020800360944122076,
0.07323814183473587,
-0.06666548550128937,
-0.027055684477090836,
-0.014345076866447926,
-0.003864476690068841,
-0.001560570439323783,
-0.016570737585425377,
0.01815304346382618,
0.02079601399600506,
-0.01931803673505783,
0.00434264587238431,
0.002886403352022171,
0.040235769003629684,
0.02354331500828266,
-0.006776961963623762,
-0.0027842491399496794,
0.0690997987985611,
-0.07928915321826935,
-0.05445912852883339,
-0.017840059474110603,
0.01645771600306034,
0.04468708857893944,
-0.027559936046600342,
-0.01356261782348156,
-0.012441094033420086,
0.00759419659152627,
-0.0031819988507777452,
0.007285560481250286,
0.006368344649672508,
0.04228754714131355,
0.01367564033716917,
-0.03842741996049881,
-0.0025234294589608908,
-0.00260384869761765,
0.03971412777900696,
-0.014918879605829716,
0.04774736985564232,
0.0013301798608154058,
-0.049590494483709335,
-0.04169635847210884,
0.06756965816020966,
-0.015944769605994225,
-0.039296817034482956,
0.0035319318994879723,
-0.0206221342086792,
0.04666931554675102,
0.0030124662443995476,
0.009137379005551338,
0.02754254825413227,
-0.02562987059354782,
-0.013423514552414417,
-0.049034081399440765,
-0.009206931106746197,
-0.060684021562337875,
0.004629547707736492,
-0.026690537109971046,
0.08721806854009628,
0.033384907990694046,
-0.008998275734484196,
-0.05432002618908882,
-0.02368241734802723,
-0.059292983263731,
-0.011406509205698967,
0.03129835054278374,
0.0019441925687715411,
0.005907563492655754,
0.025890691205859184,
-0.024325773119926453,
-0.07295992970466614,
0.058562688529491425,
0.02387368492782116,
0.03839264065027237,
0.030255071818828583,
0.0071029867976903915,
0.018865950405597687,
0.0714297890663147,
0.005238126497715712,
0.02102205902338028,
-0.0057815006002783775,
-0.014006011188030243,
0.050946757197380066,
-0.0034775943495333195,
-0.04527828097343445,
-0.02674270048737526,
0.02121332660317421,
0.011041361838579178,
0.030637606978416443,
0.0420788936316967,
0.017048906534910202,
0.033715277910232544,
0.05087720602750778,
-0.022899959236383438,
0.036027878522872925,
0.06492668390274048,
0.04733005911111832,
-0.025003904476761818,
0.04260053113102913,
0.006859554909169674,
-0.021456757560372353,
-0.029750820249319077,
-0.028342394158244133,
0.028533661738038063,
0.02562987059354782,
-0.013927765190601349,
-0.029281344264745712,
-0.032185137271881104,
-0.012015088461339474,
0.03001163899898529,
0.03541930019855499,
-0.018031327053904533,
-0.016501184552907944,
0.04879064857959747,
-0.039888009428977966,
-0.057275980710983276,
-0.10210217535495758,
-0.010954421944916248,
0.04604335129261017,
0.004716487601399422,
-0.03644518926739693,
0.07080382108688354,
0.03780145198106766,
0.04034009575843811,
0.0646137073636055,
0.016283836215734482,
0.0025321233551949263,
-0.024343160912394524,
-0.005581539124250412,
-0.01518839318305254,
-0.016136037185788155,
0.0290205255150795,
-0.09452101588249207,
-0.0025038679596036673,
0.01052841730415821,
0.0070030055940151215,
0.0790804997086525,
-0.00022264754807110876,
0.02276085503399372,
0.04913840815424919,
-0.013936460018157959,
0.028794482350349426,
0.050007808953523636,
0.033176250755786896,
-0.020917730405926704,
0.03303714841604233,
0.09125207364559174,
0.022065335884690285,
-0.02714262343943119,
0.028637990355491638,
0.031124470755457878,
-0.037175484001636505,
-0.026899192482233047,
0.01290187519043684,
-0.038323089480400085,
-0.04447843134403229,
0.021856680512428284,
-0.044408880174160004,
0.03514109179377556,
-0.0650310143828392,
-0.08819179236888885,
0.04371336102485657,
0.007116027642041445,
-0.05814537778496742,
-0.04343515262007713,
-0.004820815287530422,
0.007550726644694805,
0.0016866333317011595,
0.011510837823152542,
0.015562235377728939,
-0.01590130105614662,
-0.04333082586526871,
0.00039693480357527733,
0.0035210642963647842,
-0.0335935615003109,
-0.006003197282552719,
-0.03609742969274521,
-0.04096606373786926,
0.017657484859228134,
0.006824778858572245,
0.03348923474550247,
0.016301224008202553,
-0.019822288304567337,
-0.030881037935614586,
0.08742672204971313,
0.0043013496324419975,
-0.04326127469539642,
0.0077028716914355755,
-0.0026234101969748735,
-0.0009221059153787792,
-0.039435919374227524,
-0.021526308730244637,
0.007259478326886892,
0.008541841059923172,
0.01855296641588211,
0.041174717247486115,
-0.03115924634039402,
-0.02691658027470112,
0.03898383304476738,
-0.02163063734769821,
0.03362833708524704,
-0.006329221650958061,
0.00947644468396902,
-0.05619792640209198,
0.05376360937952995,
0.01679678075015545,
0.0316808857023716,
0.013745191507041454,
-0.056893445551395416,
-0.007994120009243488,
-0.02618628554046154,
0.02869015373289585,
0.016596820205450058,
-0.0138669079169631,
-0.10091979056596756,
0.0028342395089566708,
-0.014466792345046997,
-0.043678585439920425,
-0.0277338158339262,
-0.03362833708524704,
-0.02371719479560852,
0.019248485565185547,
0.02006571926176548,
0.00040128178079612553,
-0.0416615791618824,
-0.034706391394138336,
-0.008676597848534584,
0.04990347847342491,
0.030150743201375008,
0.017448829486966133,
-0.01451026275753975,
0.08742672204971313,
0.03474116697907448,
-0.01949191652238369,
0.08095839619636536,
0.024621369317173958,
0.03265461325645447,
0.008398390375077724,
0.004933836869895458,
0.018274758011102676,
0.018396474421024323,
-0.014266830869019032,
-0.04263530671596527,
0.026464493945240974,
0.040618304163217545,
-0.08304495364427567,
-0.0374189168214798,
-0.07344679534435272,
0.012867099605500698,
0.0473996102809906,
-0.0531376414000988,
-0.032219912856817245,
-0.034115202724933624,
-0.0535549521446228,
-0.03759279474616051,
-0.033332742750644684,
0.009711182676255703,
0.05383316054940224,
-0.0103110671043396,
0.03187215328216553,
0.015718726441264153,
0.0527203306555748,
0.007763729430735111,
-0.08596613258123398,
0.027577323839068413,
0.045556485652923584,
-0.031628720462322235,
0.025508154183626175,
-0.033958710730075836,
-0.04221799597144127,
0.0007389888050965965,
-0.05299853906035423,
0.08130615949630737,
-0.033350128680467606,
-0.0048903669230639935,
-0.01499712560325861,
-0.022673916071653366,
-0.028394557535648346,
0.024012789130210876,
0.022656528279185295,
-0.01851819083094597,
0.007281213067471981,
0.055745840072631836,
0.0007216008380055428,
-0.022291380912065506,
-0.06819562613964081,
0.007524644955992699,
-0.004281788133084774,
0.031646110117435455,
0.005755418911576271,
0.05880612134933472,
0.010989198461174965,
-0.012041171081364155,
0.050146911293268204,
0.047295283526182175,
-0.010571886785328388,
-0.013145307078957558,
-0.04545215889811516,
0.007259478326886892,
-0.05352017655968666,
-0.0730990320444107,
0.01738797128200531,
-0.0055119870230555534,
-0.003334143664687872,
-0.008372308686375618,
0.00048631985555402935,
-0.041000839322805405,
0.0034232570324093103,
0.06562220305204391,
0.008107141591608524,
-0.034341245889663696,
0.057275980710983276,
0.01683155633509159,
0.027977246791124344,
-0.028533661738038063,
-0.02430838532745838,
0.0035688811913132668,
0.015823055058717728,
0.04646066203713417,
-0.008367961272597313,
0.025143006816506386,
0.03647996485233307,
0.013058367185294628,
-0.0191267691552639,
-0.008724414743483067,
0.08081929385662079,
-0.05240734666585922,
0.000691171910148114,
-0.008563576266169548,
-0.0008166913175955415,
-0.06471803039312363,
-0.028898809105157852,
-0.00707255769520998,
0.023247718811035156,
0.0084201255813241,
0.049799151718616486,
-0.05049467086791992,
-0.0012312857434153557,
0.10891825705766678,
0.010050247423350811,
0.0168402511626482,
-0.024882188066840172,
-0.03129835054278374,
0.0004273637605365366,
0.028151126578450203,
0.043469931930303574,
0.04552171006798744,
0.0076072379015386105,
-0.011050056666135788,
-0.006633511278778315,
-0.007016046904027462,
-0.002586460905149579,
0.039679352194070816,
0.032793715596199036,
-0.02025698684155941,
0.021265489980578423,
-0.008659210056066513,
-0.0017561852000653744,
-0.007655054796487093,
0.002332161646336317,
0.042322322726249695,
0.0022071856074035168,
0.049590494483709335,
-0.003336317138746381,
0.010024165734648705,
-0.019909227266907692,
0.016909802332520485,
0.02253481186926365,
0.015344885177910328,
-0.0018181297928094864,
-0.04319172352552414,
-0.00793760921806097,
0.004607812501490116,
0.044269777834415436,
-0.010971810668706894,
-0.034341245889663696,
-0.05988417565822601,
0.023595478385686874,
0.007985426113009453,
-0.0348454974591732,
-0.016892414540052414,
-0.009241706691682339,
0.03129835054278374,
-0.01215419266372919,
0.011789045296609402,
0.05960596725344658,
-0.03406303748488426,
0.05828448385000229,
0.005698907654732466,
0.030133355408906937,
-0.04287873953580856,
0.04872109740972519,
0.0484776645898819,
-0.031072305515408516,
0.038531746715307236,
0.02448226511478424,
0.019909227266907692,
-0.061066556721925735,
-0.06621339917182922,
-0.023630253970623016,
0.05310286581516266,
-0.09625981003046036,
-0.016379470005631447,
-0.008911335840821266,
-0.0202917642891407,
-0.0497296005487442,
0.034706391394138336,
0.04486096650362015,
-0.058562688529491425,
0.003308061743155122,
-0.04569559171795845,
-0.018205206841230392,
0.05383316054940224,
0.02562987059354782,
0.08109749853610992,
-0.03651474043726921,
-0.05407659336924553,
-0.017666179686784744,
0.03552362695336342,
-0.04221799597144127,
0.0022865182254463434,
0.032567672431468964,
-0.004586077760905027,
0.08172346651554108,
-0.018257370218634605,
-0.09083476662635803,
0.03531496971845627,
-0.05032079294323921,
-0.00821581669151783,
-0.057275980710983276,
-0.01664028875529766,
0.02176974155008793,
-0.022795630618929863,
0.0405835285782814,
0.002832066034898162,
-0.009858979843556881,
-0.02425622008740902,
-0.033958710730075836,
-0.019074605777859688,
-0.010406700894236565,
-0.034706391394138336,
-0.04566081613302231,
-0.018083490431308746,
-0.040653079748153687,
-0.0324285663664341,
-0.002213706262409687,
0.05581539124250412,
-0.015162311494350433,
-0.033384907990694046,
-0.07358589768409729,
0.016188202425837517,
-0.030150743201375008,
-0.04892975464463234,
-0.039262041449546814,
0.0044143712148070335,
0.005403312388807535,
-0.019909227266907692,
-0.005303331650793552,
-0.02811635099351406,
0.06193595752120018,
0.03362833708524704,
-0.016327306628227234,
0.0026625331956893206,
0.03498459979891777,
-0.00013489263074006885,
0.011815126985311508,
-0.014779776334762573,
-0.017170622944831848,
-0.013962541706860065,
-0.0009465577313676476,
-0.04267008230090141,
0.02430838532745838,
-0.030689770355820656,
0.044617537409067154,
0.025264723226428032,
0.02314339019358158,
0.04127904400229454,
-0.011667328886687756,
-0.0303941760212183,
-0.01262366771697998,
0.01811826601624489,
-0.02161324955523014,
-0.021700188517570496,
0.03999233618378639,
0.02790769562125206,
0.004336125683039427,
0.018205206841230392,
-0.024690920487046242,
-0.056510910391807556,
-0.05692822113633156,
-0.005251167342066765,
0.008602699264883995,
-0.022691303864121437,
-0.015066677704453468,
-0.006294446066021919,
-0.008633128367364407,
0.007611584849655628,
0.001993096200749278,
0.008998275734484196,
0.013745191507041454,
-0.020569970831274986,
0.03707115724682808,
0.002679921220988035,
0.005233779549598694,
0.014762388542294502,
-0.060684021562337875,
0.00339717511087656,
0.04966004937887192,
-0.01480585802346468,
0.0014790643472224474,
-0.023960625752806664,
-0.009215625002980232,
-0.0424962043762207,
-0.00926778931170702,
-0.03289804235100746,
0.019735347479581833,
0.05119019001722336,
0.05101630836725235,
-0.0021528482902795076,
0.017048906534910202,
0.060475368052721024,
-0.03211558610200882,
-0.040618304163217545,
0.0038883851375430822,
0.04611290246248245,
0.017144540324807167,
-0.011284793727099895,
-0.016961967572569847,
0.029768208041787148,
0.05595449358224869,
0.027612099424004555,
0.019370200112462044,
0.030724545940756798,
-0.017353195697069168,
0.03936636820435524,
0.073516346514225,
-0.03058544360101223,
0.013823437504470348,
0.011110913939774036,
0.037940554320812225,
0.011180466040968895,
0.008833089843392372,
0.00210177106782794,
-0.01987445168197155,
-0.025577707216143608,
-0.012067252770066261,
0.050146911293268204,
0.02389107272028923,
-0.030828874558210373,
-0.0043469928205013275,
-0.05275510624051094,
-0.02430838532745838,
0.009424281306564808,
0.03197648003697395,
0.023456374183297157,
0.047677818685770035,
-0.004955572076141834,
0.04392201825976372,
-0.030915813520550728,
-0.04433932900428772,
0.0027712080627679825,
-0.023021675646305084,
0.02580375038087368,
-0.027090460062026978,
-0.012936650775372982,
-0.009006969630718231,
0.017483605071902275,
-0.016492491587996483,
0.016396857798099518,
-0.05101630836725235,
0.017857447266578674,
-0.008863518945872784,
-0.036619070917367935,
-0.04284396395087242,
0.0024582245387136936,
-0.01723148114979267,
0.012067252770066261,
-0.01337135024368763,
-0.003373266663402319,
-0.01309314277023077,
0.02729911543428898,
-0.0656917616724968,
0.05585016682744026,
0.05195526033639908,
-0.024030176922678947,
-0.009998084045946598,
0.06475280970335007,
0.02710784785449505
] |
20,899 | precession.precession | omegasq_aligned |
Squared oscillation frequency of a given perturbed aligned-spin binary.
The flag which needs to be set to `uu` for up-up, `ud` for up-down, `du` for down-up or `dd` for down-down where the term before (after) the hyphen refers to the spin of the heavier (lighter) black hole.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string
Select function behavior.
Returns
-------
omegasq: float
Squared frequency.
Examples
--------
``omegasq = precession.omegasq_aligned(r,q,chi1,chi2,which)``
| def omegasq_aligned(r, q, chi1, chi2, which):
"""
Squared oscillation frequency of a given perturbed aligned-spin binary.
The flag which needs to be set to `uu` for up-up, `ud` for up-down, `du` for down-up or `dd` for down-down where the term before (after) the hyphen refers to the spin of the heavier (lighter) black hole.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string
Select function behavior.
Returns
-------
omegasq: float
Squared frequency.
Examples
--------
``omegasq = precession.omegasq_aligned(r,q,chi1,chi2,which)``
"""
r = np.atleast_1d(r).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
# These are all the valid input flags
uulabels = np.array(['uu', 'up-up', 'upup', '++'])
udlabels = np.array(['ud', 'up-down', 'updown', '+-'])
dulabels = np.array(['du', 'down-up', 'downup', '-+'])
ddlabels = np.array(['dd', 'down-down', 'downdown', '--'])
assert np.isin(which, np.concatenate([uulabels, udlabels, dulabels, ddlabels])).all(), "Set `which` flag to either uu, ud, du, or dd."
# +1 if primary is co-aligned, -1 if primary is counter-aligned
alpha1 = np.where(np.isin(which, np.concatenate([uulabels, udlabels])), 1, -1)
# +1 if secondary is co-aligned, -1 if secondary is counter-aligned
alpha2 = np.where(np.isin(which, np.concatenate([uulabels, dulabels])), 1, -1)
theta1 = np.arccos(alpha1)
theta2 = np.arccos(alpha2)
deltachi = eval_deltachi(theta1, theta2, q, chi1, chi2)
chieff = eval_chieff(theta1, theta2, q, chi1, chi2)
omegasq = (9/4) * (1/r)**7 * (r**0.5-chieff)**2 * (
((1-q)/(1+q))**2*r - 2*((1-q)/(1+q))*deltachi*r**0.5 + chieff**2
)
return omegasq
| (r, q, chi1, chi2, which) | [
-0.01140411477535963,
0.013250211253762245,
-0.006411712616682053,
0.028267117217183113,
0.015671972185373306,
-0.016853077337145805,
-0.029497848823666573,
-0.014004530385136604,
-0.04327409714460373,
-0.02213331125676632,
0.039184894412755966,
0.04867343604564667,
0.04271828383207321,
0.026202665641903877,
-0.061933573335409164,
0.04248007759451866,
0.02725474163889885,
-0.009041904471814632,
0.011265161447227001,
-0.0029949448071420193,
-0.009959990158677101,
-0.013428865931928158,
-0.01701188273727894,
0.0346192792057991,
-0.005066841375082731,
0.04371080920100212,
-0.01762724667787552,
-0.03944295272231102,
-0.06689620018005371,
-0.02038646675646305,
-0.0048608919605612755,
-0.030510224401950836,
-0.034817785024642944,
0.0279693603515625,
0.020178036764264107,
-0.04053473100066185,
0.061417460441589355,
0.05649453401565552,
-0.07563041895627975,
0.04279768839478493,
-0.009319812059402466,
-0.05431097745895386,
0.05149220675230026,
-0.05963091552257538,
-0.03686238452792168,
0.007240471430122852,
-0.07320865988731384,
0.06133805587887764,
-0.016714124009013176,
0.016773676499724388,
0.0706280916929245,
-0.1578512042760849,
0.02171645127236843,
0.022173013538122177,
-0.0331900417804718,
0.0967116579413414,
0.03678298369050026,
0.004582985304296017,
0.013825875706970692,
-0.04295649006962776,
-0.017041657119989395,
0.05030117556452751,
0.05701064690947533,
0.025488046929240227,
0.0027765892446041107,
0.008496015332639217,
0.010758972726762295,
-0.0016351852100342512,
0.004654943011701107,
0.06788872182369232,
-0.012853201478719711,
0.0010371888056397438,
0.009022054262459278,
-0.06586397439241409,
0.0063471985049545765,
0.026996685191988945,
-0.048713136464357376,
-0.023026583716273308,
0.02209361083805561,
-0.01877857744693756,
0.03769610822200775,
0.01816321164369583,
0.060901347547769547,
-0.034579578787088394,
-0.02360224910080433,
0.03626687079668045,
0.015949880704283714,
0.02995441108942032,
0.053358156234025955,
-0.05601812154054642,
-0.023780904710292816,
-0.05006296932697296,
0.039661306887865067,
0.019413793459534645,
0.023145686835050583,
0.02933904528617859,
-0.029934560880064964,
-0.05446978285908699,
-0.005434075370430946,
-0.009860738180577755,
-0.006104030180722475,
0.06106014922261238,
0.06598307192325592,
0.010461215861141682,
0.02370150201022625,
-0.041130244731903076,
-0.05943240970373154,
0.017607396468520164,
0.0497850626707077,
-0.06487144529819489,
-0.06697560101747513,
-0.021914957091212273,
-0.05061878636479378,
-0.020346766337752342,
-0.06320400536060333,
-0.015443691983819008,
-0.0000699807787896134,
0.04251977801322937,
-0.012217985466122627,
0.006630068179219961,
0.03972085937857628,
0.010481066070497036,
0.031224843114614487,
-0.04085233807563782,
0.048038218170404434,
-0.0422021709382534,
0.006550666410475969,
0.05589902028441429,
-0.02288763038814068,
0.022550173103809357,
0.03684253618121147,
-0.007443938869982958,
0.030887383967638016,
0.04132875055074692,
0.001236934564076364,
0.02147824503481388,
0.027175340801477432,
-0.00644645094871521,
-0.0040941666811704636,
0.019403867423534393,
0.045298848301172256,
-0.0012878014240413904,
0.005329860374331474,
-0.027274591848254204,
0.039939213544130325,
0.10020534694194794,
0.059511810541152954,
-0.0031760805286467075,
-0.0004128284635953605,
-0.007801248226314783,
-0.013240286149084568,
0.04819702357053757,
0.02503148466348648,
0.047005992382764816,
0.06062344089150429,
-0.06475234031677246,
0.048276424407958984,
-0.03446047380566597,
-0.0625687912106514,
0.028545023873448372,
0.010148569941520691,
-0.025865206494927406,
-0.0270165354013443,
0.021299591287970543,
0.02489253133535385,
0.0206246729940176,
-0.02137899212539196,
0.02616296336054802,
0.03868863359093666,
-0.0005688410019502044,
-0.027949510142207146,
-0.019185511395335197,
-0.06252908706665039,
-0.021597348153591156,
-0.04379021003842354,
0.03275333344936371,
-0.09464720636606216,
-0.045298848301172256,
0.010004653595387936,
-0.08281630277633667,
0.021061385050415993,
-0.016962256282567978,
-0.010193233378231525,
-0.05157160758972168,
0.015423841774463654,
0.07749636471271515,
0.07265284657478333,
-0.03829162195324898,
0.04132875055074692,
0.004178531002253294,
-0.019880279898643494,
-0.06649918854236603,
-0.01726001314818859,
0.02104153484106064,
0.06796812266111374,
-0.008262772113084793,
0.01187060121446848,
0.0034639129880815744,
0.029755905270576477,
0.00786576233804226,
0.028763379901647568,
0.028803082183003426,
-0.015106233768165112,
0.009731709957122803,
0.006089142058044672,
-0.004898111801594496,
0.022530322894454002,
0.027195191010832787,
0.021438544616103172,
0.017279863357543945,
0.02366180159151554,
-0.02151794545352459,
-0.057328253984451294,
0.03978040814399719,
-0.002769145416095853,
0.08039454370737076,
0.06014702841639519,
0.030331570655107498,
-0.031264543533325195,
0.010659720748662949,
0.06848423928022385,
0.022907482460141182,
0.012128657661378384,
0.013409015722572803,
0.049189548939466476,
0.02810831367969513,
0.0055134776048362255,
0.051214300096035004,
0.01597965508699417,
-0.021696601063013077,
0.04343290254473686,
-0.00593530060723424,
-0.011185758747160435,
-0.029557401314377785,
-0.004138830117881298,
0.004796377848833799,
0.0010452531278133392,
0.010401664301753044,
-0.07531281560659409,
0.030510224401950836,
0.0022629573941230774,
-0.006337273400276899,
-0.03398406133055687,
0.04498124122619629,
0.01583077758550644,
-0.09266215562820435,
0.0031487862579524517,
0.02019788697361946,
-0.01986042968928814,
0.001269811880774796,
-0.031204992905259132,
-0.06598307192325592,
-0.008788811042904854,
-0.04934835433959961,
0.030470523983240128,
-0.022649424150586128,
0.014083932153880596,
0.034718532115221024,
0.0564151331782341,
-0.03596911206841469,
0.044306326657533646,
-0.009751560166478157,
-0.013250211253762245,
-0.03132409602403641,
-0.0611395537853241,
0.010223009623587132,
0.02247077040374279,
-0.017468443140387535,
-0.033924512565135956,
-0.015046682208776474,
-0.04772061109542847,
0.03281288221478462,
-0.05367576330900192,
0.01986042968928814,
-0.0211010854691267,
0.02995441108942032,
0.06812693178653717,
0.025468196719884872,
0.002342359395697713,
0.016853077337145805,
-0.0067193955183029175,
-0.008426538668572903,
0.013240286149084568,
0.04664868488907814,
-0.05351695790886879,
0.019463419914245605,
-0.021259889006614685,
-0.026381319388747215,
0.09361497312784195,
-0.02227226458489895,
-0.0071114432066679,
0.019036633893847466,
0.023641949519515038,
0.003967619501054287,
0.11021000146865845,
0.003195931203663349,
0.00319344992749393,
-0.01858007162809372,
0.023860305547714233,
-0.0017009400762617588,
0.009850812144577503,
-0.0015247667906805873,
-0.020644525066018105,
-0.039085641503334045,
0.0051412805914878845,
0.009180857799947262,
0.08162527531385422,
-0.03684253618121147,
0.02995441108942032,
-0.012912753038108349,
-0.032931987196207047,
0.011374338530004025,
0.00969200860708952,
0.0350956916809082,
-0.015225336886942387,
0.0493086501955986,
0.02009863592684269,
0.035155244171619415,
0.06868274509906769,
0.02598430961370468,
0.006501039955765009,
0.039661306887865067,
0.019036633893847466,
-0.011195683851838112,
-0.009865700267255306,
-0.02977575547993183,
-0.05601812154054642,
-0.015066532418131828,
0.026004159823060036,
-0.012525668367743492,
-0.020465869456529617,
0.015771225094795227,
-0.013567819260060787,
0.0038063342217355967,
-0.02019788697361946,
0.013101332820951939,
0.026460722088813782,
-0.013547969050705433,
0.006252908613532782,
0.0019714031368494034,
-0.0003480041341390461,
0.05347725749015808,
-0.051214300096035004,
0.016555320471525192,
-0.024297017604112625,
-0.03229676932096481,
0.027195191010832787,
-0.004099129233509302,
0.020723925903439522,
0.005185944028198719,
0.014629821293056011,
0.0012270092265680432,
0.033309146761894226,
0.004677275195717812,
0.06911945343017578,
0.039839960634708405,
-0.03090723417699337,
-0.033864960074424744,
0.031204992905259132,
-0.008883100934326649,
0.0021103566978126764,
-0.03717999532818794,
0.00558295426890254,
-0.0027195189613848925,
-0.04772061109542847,
-0.040038466453552246,
-0.051134899258613586,
0.04517974704504013,
-0.019751250743865967,
-0.02284792996942997,
-0.005166093818843365,
-0.06002792343497276,
-0.00786576233804226,
-0.008371950127184391,
0.031840208917856216,
0.07400267571210861,
-0.05296114459633827,
0.0028708791360259056,
-0.05351695790886879,
-0.0829751044511795,
0.0012108806986361742,
-0.008312398567795753,
-0.09655284881591797,
0.04795881733298302,
-0.0055134776048362255,
-0.0016215380746871233,
0.012624920345842838,
0.030450673773884773,
0.05907509848475456,
0.007900500670075417,
-0.021061385050415993,
0.0010768898064270616,
0.05204802006483078,
-0.034063465893268585,
-0.0028832857497036457,
0.04593406617641449,
0.015761300921440125,
0.031046187505126,
-0.07658324390649796,
-0.036147769540548325,
-0.007721845991909504,
-0.03469868004322052,
-0.04398871585726738,
-0.009424027055501938,
0.0077615468762815,
-0.015671972185373306,
0.004590428899973631,
-0.010758972726762295,
-0.01270432211458683,
0.04593406617641449,
-0.0568915456533432,
0.0274929478764534,
0.03594926372170448,
0.017895229160785675,
-0.12029405683279037,
-0.030728580430150032,
-0.03231662139296532,
-0.033686306327581406,
-0.004059427883476019,
0.057566460222005844,
0.022689126431941986,
-0.0478794164955616,
-0.00891287624835968,
0.0350956916809082,
0.06411712616682053,
-0.017954781651496887,
-0.006540740840137005,
0.04085233807563782,
0.02483298070728779,
0.020178036764264107,
-0.022669276222586632,
0.0355721041560173,
-0.044584233313798904,
-0.016773676499724388,
-0.02530939318239689,
0.024713877588510513,
0.0008616359555162489,
0.034778084605932236,
0.035770609974861145,
-0.023780904710292816,
0.026579825207591057,
-0.014163334853947163,
-0.009424027055501938,
-0.012376789003610611,
-0.04537825286388397,
-0.028703829273581505,
-0.015165785327553749,
0.023105986416339874,
-0.059273604303598404,
-0.06078224256634712,
0.033864960074424744,
0.017279863357543945,
-0.04303589090704918,
0.02892218343913555,
0.03622717037796974,
-0.008371950127184391,
0.026897432282567024,
-0.03487733379006386,
-0.030649177730083466,
-0.0369814895093441,
0.020505569875240326,
0.04712509736418724,
-0.06574486941099167,
0.052603837102651596,
0.015364290215075016,
0.08829504251480103,
0.045060645788908005,
-0.03400391340255737,
-0.026937134563922882,
-0.015483393333852291,
0.05177011340856552,
-0.040693532675504684,
0.0014242737088352442,
-0.01972147636115551,
0.026083562523126602,
0.01767687313258648,
-0.04517974704504013,
0.012575293891131878,
-0.01621786132454872,
-0.02489253133535385,
0.01308148168027401,
-0.050182074308395386,
0.0011085266014561057,
0.007260321639478207,
0.04517974704504013,
-0.04132875055074692,
-0.014540494419634342,
-0.03716014325618744,
0.00149002845864743,
-0.04053473100066185,
0.004513508174568415,
0.008610156364738941,
0.03610806539654732,
0.004250489175319672,
0.01308148168027401,
0.030272018164396286,
0.04101113975048065,
-0.030450673773884773,
-0.0035929412115365267,
-0.016188085079193115,
0.04251977801322937,
0.022034060209989548,
-0.09313856810331345,
-0.0161186084151268,
0.011533142998814583,
-0.0426785834133625,
-0.03525449335575104,
-0.02270897664129734,
-0.034341372549533844,
0.040693532675504684,
-0.01341894082725048,
-0.05423157662153244,
0.08527776598930359,
-0.010064205154776573,
0.018738875165581703,
-0.011294936761260033,
-0.020406318828463554,
-0.010540617629885674,
0.013260136358439922,
-0.008878137916326523,
-0.03380540758371353,
0.026421021670103073,
-0.04601346701383591,
0.015890328213572502,
-0.018371641635894775,
0.011930152773857117,
0.00037653924664482474,
-0.03962160646915436,
0.04494154080748558,
-0.05010267347097397,
-0.04891164228320122,
-0.03338854759931564,
-0.029001586139202118,
0.08146646618843079,
-0.0014912690967321396,
0.03465897962450981,
0.0007301263394765556,
-0.008694521151483059,
0.014649671502411366,
-0.028604576364159584,
0.008411651477217674,
-0.0008634969126433134,
0.030033811926841736,
-0.007880650460720062,
0.04204336926341057,
0.04573556035757065,
0.019890204071998596,
-0.0033373660407960415,
0.08750101923942566,
-0.011910302564501762,
-0.07432028651237488,
-0.022252414375543594,
0.03469868004322052,
0.024773428216576576,
0.06006762385368347,
0.0393436998128891,
0.021498095244169235,
-0.03632642328739166,
0.008069230243563652,
-0.009706896729767323,
-0.02243106998503208,
0.006689619738608599,
0.022391367703676224,
-0.08948606997728348,
-0.05149220675230026,
-0.01318073458969593,
0.026520272716879845,
0.001421792316250503,
0.028664126992225647,
0.026718778535723686,
-0.056772440671920776,
0.029934560880064964,
-0.07626563310623169,
-0.02910083904862404,
-0.0573679581284523,
0.0006742968107573688,
0.016942406073212624,
-0.06014702841639519,
-0.008029528893530369,
-0.039184894412755966,
-0.027850257232785225,
-0.028386220335960388,
0.007706958334892988,
-0.06475234031677246,
0.03717999532818794,
0.01716076023876667,
0.014351914636790752,
0.04815732315182686,
0.010758972726762295,
0.026381319388747215,
-0.04196396470069885,
-0.040514878928661346,
0.014064081944525242,
-0.04517974704504013,
-0.05502559617161751,
0.02233181707561016,
0.021200338378548622,
-0.005379486363381147,
0.03664403036236763,
-0.027512798085808754,
-0.030331570655107498,
-0.014917653985321522,
-0.02715548872947693,
-0.06506995111703873,
-0.011850751005113125,
0.04019727185368538,
0.005955151282250881,
0.008644894696772099,
-0.04379021003842354,
-0.05228622630238533,
0.03769610822200775,
0.02598430961370468,
0.00043360944255255163,
0.016485843807458878,
0.005806272383779287,
0.012009554542601109,
-0.06002792343497276,
-0.02697683498263359,
0.03356720134615898,
0.039462801069021225,
-0.03779536113142967,
0.013915203511714935,
-0.00886324979364872,
-0.03684253618121147,
-0.0530802458524704,
-0.018550295382738113,
0.007374462205916643,
-0.05538290739059448,
0.000936075346544385,
0.04184486344456673,
0.02920009195804596,
-0.005389411933720112,
0.06900034844875336,
-0.045060645788908005,
-0.0251307375729084,
0.001687292824499309,
-0.014431316405534744,
0.03332899510860443,
-0.024435970932245255,
0.031780656427145004,
-0.02199435792863369,
0.04033622518181801,
-0.019324464723467827,
0.012069106101989746,
0.0039725820533931255,
-0.0483558289706707,
-0.018083808943629265,
0.012624920345842838,
0.010103906504809856,
-0.009384325705468655,
0.00005334823072189465,
0.04613257199525833,
-0.02493223361670971,
-0.023860305547714233,
-0.012595145031809807,
-0.08353091776371002,
0.010322262533009052,
0.009816073812544346,
0.0029552436899393797,
-0.015860551968216896,
0.012674546800553799,
0.05550200864672661,
0.001920536276884377,
0.003828665940091014,
-0.04025682061910629,
-0.028783230111002922,
0.07495550066232681,
0.01915573701262474,
-0.003265407867729664,
-0.01183090079575777,
0.04537825286388397,
-0.011344563215970993,
-0.0022244970314204693,
-0.016942406073212624,
-0.012644771486520767,
0.008123818784952164,
0.04442542791366577,
0.01801433227956295,
0.030272018164396286,
0.006411712616682053,
0.03338854759931564,
0.053159650415182114,
0.01725008711218834,
0.004972551017999649,
0.07848889380693436,
-0.026996685191988945,
0.048276424407958984,
0.010610094293951988,
-0.04232127591967583,
-0.0668564960360527,
-0.003002388635650277,
-0.02683788165450096,
0.036048516631126404,
-0.07181912660598755,
0.08519836515188217,
-0.02114078588783741,
-0.06951646506786346,
0.012495892122387886,
0.0053000845946371555,
-0.00898731593042612,
0.0535566583275795,
-0.041368450969457626,
-0.010778823867440224,
0.000006266284799494315,
-0.09464720636606216,
0.032971687614917755,
-0.027334144338965416,
0.011930152773857117,
-0.01116590853780508,
-0.04641047865152359,
-0.00829751044511795,
0.026480572298169136,
-0.05014237388968468,
0.017756275832653046,
0.0028634353075176477,
0.018748801201581955,
0.006600292399525642,
0.05319935083389282,
0.05010267347097397,
-0.003119010478258133,
-0.0025433457922190428,
0.026043862104415894,
0.04684719070792198,
-0.017150836065411568,
-0.05772526562213898,
-0.026559974998235703,
-0.018460968509316444,
-0.01876865141093731,
-0.022073760628700256,
-0.019701624289155006,
-0.015036757104098797,
0.019304614514112473,
-0.005439037922769785,
-0.0055134776048362255,
-0.012406565248966217,
-0.008595268242061138,
0.021180488169193268,
-0.06106014922261238,
0.007647406775504351,
0.02332434244453907,
-0.03452002629637718,
0.007553116884082556,
0.04470333456993103,
-0.014997055754065514,
-0.003607829101383686,
0.020158186554908752,
-0.04402841627597809,
0.020267365500330925,
-0.004905555862933397,
0.008600231260061264,
0.03227692097425461,
-0.0019999381620436907,
0.05431097745895386,
-0.015255112200975418,
-0.00019447290105745196,
0.01963214762508869,
0.012277537025511265,
-0.00730002298951149,
-0.009562980383634567,
-0.004992401693016291,
-0.03944295272231102,
0.010262710973620415,
-0.019304614514112473,
0.07432028651237488,
0.013726623728871346,
0.032157815992832184,
-0.0639980211853981,
0.026698928326368332
] |
20,900 | precession.precession | pnseparation_to_gwfrequency |
Convert PN orbital separation in natural units (c=G=M=1) to GW frequency in Hz. We use the 2PN expression reported in Eq. 4.5 of Kidder 1995, arxiv:gr-qc/9506022.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
M_msun: float
Total mass of the binary in solar masses.
PNorder: array (default: [0,1,1.5,2])
PN orders considered.
Returns
-------
fGW: float
Gravitational-wave frequency.
Examples
--------
``fGW = precession.pnseparation_to_gwfrequency(theta1,theta2,deltaphi,r,q,chi1,chi2,M_msun,PNorder=[0,1,1.5,2])``
| def pnseparation_to_gwfrequency(theta1, theta2, deltaphi, r, q, chi1, chi2, M_msun, PNorder=[0,1,1.5,2]):
"""
Convert PN orbital separation in natural units (c=G=M=1) to GW frequency in Hz. We use the 2PN expression reported in Eq. 4.5 of Kidder 1995, arxiv:gr-qc/9506022.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
M_msun: float
Total mass of the binary in solar masses.
PNorder: array (default: [0,1,1.5,2])
PN orders considered.
Returns
-------
fGW: float
Gravitational-wave frequency.
Examples
--------
``fGW = precession.pnseparation_to_gwfrequency(theta1,theta2,deltaphi,r,q,chi1,chi2,M_msun,PNorder=[0,1,1.5,2])``
"""
theta1 = np.atleast_1d(theta1).astype(float)
theta2 = np.atleast_1d(theta2).astype(float)
deltaphi = np.atleast_1d(deltaphi).astype(float)
r = np.atleast_1d(r).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
M_msun = np.atleast_1d(M_msun).astype(float)
tildeomega = r**(-3/2) * (
(0 in PNorder) * 1
- (1 in PNorder) * r**(-1) *(3- q/(1+q)**2)
- (1.5 in PNorder) * r**(-3/2) * 1/(1+q)**2 *( (2+3*q)*chi1*np.cos(theta1) + q*(3+2*q)*chi2*np.cos(theta2) )
+ (2 in PNorder) * r**(-2) * (6 + 41*q/(4*(1+q)**2) + q**2/(1+q)**4 +3*q/(2*(1+q)**2) *chi1*chi2*(2*np.cos(theta1)*np.cos(theta2) - np.cos(deltaphi)*np.sin(theta1)*np.sin(theta2)))
)**(1/2)
# Prefactor is pi*Msun*G/c^3/s. It's pi and not 2pi because f is the GW frequency while Kidder's omega is the orbital angular velocity
fGW = tildeomega / (1.548e-5 * M_msun)
return fGW
| (theta1, theta2, deltaphi, r, q, chi1, chi2, M_msun, PNorder=[0, 1, 1.5, 2]) | [
-0.016064291819930077,
0.010935785248875618,
-0.04966354742646217,
0.016818484291434288,
0.01236874982714653,
-0.016545088961720467,
-0.03571099415421486,
-0.02562367543578148,
-0.030714472755789757,
0.052906572818756104,
0.06354068219661713,
-0.00670288223773241,
0.01949586533010006,
0.010257012210786343,
-0.08281029015779495,
0.016639363020658493,
0.010709527879953384,
-0.02890441194176674,
-0.02341766469180584,
-0.031091568991541862,
-0.04114117845892906,
-0.005741287022829056,
0.03853921592235565,
0.060222238302230835,
-0.04434649273753166,
-0.056300438940525055,
-0.033636968582868576,
0.018279731273651123,
-0.09578239172697067,
-0.017666948959231377,
0.047137003391981125,
-0.006537902634590864,
-0.027791978791356087,
0.008503515273332596,
0.03850150480866432,
0.0005968722980469465,
0.03842608630657196,
0.005571593996137381,
-0.12647801637649536,
0.027396026998758316,
-0.013895989395678043,
-0.021796151995658875,
0.053095120936632156,
-0.01281183771789074,
-0.0349002368748188,
0.04253643378615379,
-0.04231017455458641,
0.07409936934709549,
-0.0003208262496627867,
0.08597789704799652,
0.04246101528406143,
-0.07858681678771973,
-0.05558395758271217,
-0.05015377327799797,
-0.03910486027598381,
0.024831773713231087,
0.0346551276743412,
-0.04615655541419983,
0.030789891257882118,
-0.060787882655858994,
0.022399505600333214,
-0.013895989395678043,
0.036238931119441986,
0.004353102296590805,
0.026641834527254105,
0.028847847133874893,
0.03959508612751961,
0.002386310836300254,
0.022474924102425575,
0.035088784992694855,
-0.005152074620127678,
-0.03755876421928406,
-0.019363882020115852,
-0.023926744237542152,
-0.00633521331474185,
0.07259098440408707,
0.01977868750691414,
-0.023945597931742668,
0.046609070152044296,
0.026547560468316078,
-0.020834555849432945,
0.04287581890821457,
0.03222285583615303,
-0.02858388051390648,
0.06320129334926605,
0.05720546841621399,
0.02894212119281292,
-0.008192411623895168,
-0.015178116038441658,
-0.07406166195869446,
-0.08884382992982864,
-0.03118584305047989,
0.06044849380850792,
0.023323390632867813,
-0.004673634190112352,
-0.0174501184374094,
-0.051134224981069565,
-0.050417739897966385,
-0.016705354675650597,
-0.0018972645048052073,
-0.0029130668845027685,
0.03146866336464882,
-0.00442145112901926,
0.037841588258743286,
0.05867614224553108,
-0.04902248457074165,
-0.025397418066859245,
0.009342554025352001,
0.014744454994797707,
-0.025529401376843452,
-0.07311892509460449,
0.017629239708185196,
0.05988284945487976,
-0.033636968582868576,
0.012547871097922325,
-0.0001266807084903121,
-0.033599257469177246,
0.0424233041703701,
0.035522446036338806,
0.020966539159417152,
-0.018392859026789665,
0.025831079110503197,
-0.005703577771782875,
0.02366277575492859,
-0.010191020555794239,
-0.03729479759931564,
0.04306436702609062,
-0.0146124716848135,
0.04491213709115982,
-0.0047631943598389626,
0.05275573581457138,
0.040801793336868286,
0.019382735714316368,
-0.02890441194176674,
0.005571593996137381,
0.03669144585728645,
-0.042083919048309326,
-0.041329726576805115,
0.059015531092882156,
0.01053040660917759,
0.03746449202299118,
-0.022606907412409782,
0.011661695316433907,
-0.0008201838936656713,
-0.024360403418540955,
0.09600865095853806,
0.041442856192588806,
-0.004631210584193468,
-0.009328413754701614,
-0.025265434756875038,
-0.058449886739254,
0.01700703054666519,
0.1277601420879364,
-0.033844370394945145,
0.00029416437610052526,
-0.04487442970275879,
0.035447027534246445,
0.03557901084423065,
-0.05494289472699165,
0.01493300311267376,
0.023983309045433998,
0.02313484251499176,
0.00748535618185997,
0.014706745743751526,
0.01020987518131733,
0.015988871455192566,
0.06452113389968872,
-0.02113623358309269,
0.04159369319677353,
0.012199057266116142,
0.01593230850994587,
-0.013302062638103962,
-0.014320221729576588,
-0.0332975797355175,
-0.02958318404853344,
0.028489606454968452,
-0.010718954727053642,
-0.017270999029278755,
-0.020042654126882553,
0.01613028347492218,
0.060787882655858994,
-0.02045745961368084,
-0.021268216893076897,
-0.0038204542361199856,
0.0034692834597080946,
0.09691368043422699,
0.061504364013671875,
0.01709187775850296,
0.0340329185128212,
-0.022324085235595703,
0.04506297782063484,
0.010634108446538448,
0.016516806557774544,
0.042724981904029846,
0.07228931039571762,
0.025604821741580963,
0.07191221415996552,
-0.021023103967308998,
-0.059015531092882156,
0.022606907412409782,
0.060071397572755814,
0.025435127317905426,
-0.06041078642010689,
-0.018722819164395332,
0.015658913180232048,
-0.01613028347492218,
0.00038740725722163916,
0.041933078318834305,
0.03090302087366581,
0.022682327777147293,
0.04034927487373352,
-0.020193492993712425,
-0.027396026998758316,
0.011152615770697594,
-0.0016827910440042615,
0.03393864259123802,
0.030752182006835938,
0.022757746279239655,
0.010860365815460682,
-0.03214743733406067,
0.03371238708496094,
0.05663982406258583,
0.0011460183886811137,
-0.027923962101340294,
-0.009318985976278782,
0.017582103610038757,
-0.01190680731087923,
0.013556602410972118,
-0.014584189280867577,
-0.040009889751672745,
0.03141209855675697,
-0.020344331860542297,
-0.03207201883196831,
-0.025755658745765686,
0.06131581589579582,
-0.04830600321292877,
-0.022870874032378197,
-0.00040537823224440217,
-0.004148056264966726,
0.05581021308898926,
-0.0077776056714355946,
-0.03638976812362671,
-0.03727594390511513,
0.053019702434539795,
-0.010257012210786343,
-0.004572289530187845,
0.029790587723255157,
-0.025152305141091347,
0.040688663721084595,
0.056111890822649,
-0.03725709021091461,
-0.06689684092998505,
-0.024247275665402412,
-0.003285449231043458,
-0.01252901554107666,
0.0034457151778042316,
-0.012161347083747387,
-0.009290703572332859,
0.02541627362370491,
0.0030191252008080482,
0.007197820581495762,
0.01805347204208374,
-0.053132832050323486,
0.0008490553009323776,
0.008324394933879375,
0.01953357458114624,
0.000011609328794293106,
0.0034527855459600687,
0.010313577018678188,
-0.024266129359602928,
0.014574762433767319,
0.04472358897328377,
-0.042611852288246155,
-0.007622053846716881,
-0.002550112083554268,
-0.02405872754752636,
0.03910486027598381,
0.04027385637164116,
-0.024944903329014778,
0.050304610282182693,
0.007570202928036451,
-0.0381055548787117,
0.016196275129914284,
0.006170234177261591,
-0.051209643483161926,
0.11131875216960907,
-0.0037120392080396414,
-0.030808746814727783,
0.06964963674545288,
-0.03899173066020012,
-0.006750019267201424,
0.008583649061620235,
-0.0005733038415201008,
0.044044818729162216,
0.0834890604019165,
0.022474924102425575,
-0.028395332396030426,
-0.05973201245069504,
0.0552445687353611,
0.007504211273044348,
-0.01957128383219242,
0.08597789704799652,
0.06783957779407501,
-0.03473054617643356,
-0.03133668005466461,
-0.010096746496856213,
0.12150034308433533,
-0.013518893159925938,
0.02017463743686676,
0.0018972645048052073,
-0.08281029015779495,
0.01154856663197279,
-0.009955335408449173,
0.05807279050350189,
0.032166291028261185,
-0.04430878534913063,
0.025925353169441223,
0.017139015719294548,
0.03906714916229248,
0.02641557715833187,
0.008432810194790363,
0.043366044759750366,
0.018524842336773872,
0.024869482964277267,
0.005665868055075407,
-0.038765471428632736,
-0.05792195349931717,
0.05211467295885086,
0.04415794461965561,
-0.00942740123718977,
-0.04046240448951721,
0.008149988017976284,
-0.045968007296323776,
0.025435127317905426,
-0.0038534500636160374,
0.004063209984451532,
0.09072931110858917,
-0.024944903329014778,
0.006467197090387344,
-0.010021327063441277,
-0.007678618188947439,
-0.032599952071905136,
-0.05716776102781296,
0.0570923388004303,
-0.06825438141822815,
-0.020306622609496117,
0.021079668775200844,
-0.015328953973948956,
-0.007570202928036451,
0.006707595661282539,
-0.03269422799348831,
0.03207201883196831,
-0.009064446203410625,
0.038765471428632736,
0.02153218351304531,
-0.00978564191609621,
-0.04838142171502113,
-0.0007742253364995122,
0.012161347083747387,
0.023191407322883606,
-0.024831773713231087,
0.0739862397313118,
-0.013226643204689026,
-0.0031181129161268473,
-0.013500038534402847,
-0.03735136240720749,
-0.008833474479615688,
0.04166911169886589,
-0.051058802753686905,
-0.007706900127232075,
0.01201050914824009,
-0.005736573599278927,
-0.008649640716612339,
0.0011961015406996012,
0.006486051715910435,
0.0976678729057312,
0.02420956641435623,
-0.011180897243320942,
-0.05034232139587402,
-0.05196383595466614,
-0.014357931911945343,
0.009573525749146938,
-0.033919788897037506,
0.06376694142818451,
0.005001236218959093,
0.007815315388143063,
0.0021600532345473766,
-0.00990819837898016,
0.029507765546441078,
-0.04498755931854248,
-0.058789271861314774,
0.00046547793317586184,
0.07541920989751816,
0.015366663224995136,
-0.017836643382906914,
0.03269422799348831,
-0.031317826360464096,
-0.0023922030813992023,
-0.055508535355329514,
-0.011218607425689697,
0.013254925608634949,
-0.08567622303962708,
-0.05460350587964058,
0.013273780234158039,
-0.015668340027332306,
-0.056979212909936905,
0.034164901822805405,
0.02177729643881321,
-0.010662390850484371,
0.020344331860542297,
-0.05648898705840111,
0.0017841355875134468,
-0.010162738151848316,
0.000889121787622571,
-0.0752306580543518,
0.006580325774848461,
-0.0721384733915329,
-0.02089112065732479,
-0.0021235221065580845,
0.045364655554294586,
-0.010596399195492268,
-0.04668448865413666,
0.05581021308898926,
0.048494551330804825,
0.0693102553486824,
0.007612626533955336,
0.03731365501880646,
0.02933807112276554,
0.03782273456454277,
0.027546865865588188,
0.013141796924173832,
0.06889544427394867,
-0.029243797063827515,
-0.010879220440983772,
0.013641449622809887,
-0.007461788132786751,
0.040688663721084595,
0.02765999548137188,
0.01281183771789074,
-0.024888338521122932,
-0.00032612914219498634,
0.02601962722837925,
-0.003233598545193672,
-0.03244911506772041,
0.010624680668115616,
-0.04623197391629219,
-0.00640591885894537,
-0.07326976209878922,
-0.020118074491620064,
-0.029771732166409492,
-0.0029295647982507944,
0.015281816944479942,
0.0360126718878746,
-0.021324781700968742,
0.07228931039571762,
0.0437808521091938,
0.014565334655344486,
-0.01829858496785164,
-0.043931689113378525,
-0.05026690289378166,
0.019514720886945724,
0.07108260691165924,
0.020476315170526505,
0.06463426351547241,
-0.01629054918885231,
0.05094567686319351,
0.04804203659296036,
0.0009981261100620031,
-0.03887860104441643,
0.0007553704781457782,
0.04906019568443298,
0.009234139695763588,
-0.004888107534497976,
-0.018949076533317566,
0.0038840891793370247,
0.027754267677664757,
-0.04906019568443298,
0.031016148626804352,
0.010181592777371407,
-0.07210076600313187,
-0.014037400484085083,
0.004664206877350807,
0.007037554867565632,
0.0218904260545969,
0.007108260411769152,
-0.04438420385122299,
-0.01916590705513954,
-0.016158565878868103,
-0.018194884061813354,
-0.09057846665382385,
0.025529401376843452,
0.014659608714282513,
-0.005741287022829056,
-0.013500038534402847,
-0.007787033449858427,
0.05362305790185928,
0.01037014089524746,
-0.05347221717238426,
0.011067768558859825,
-0.013377482071518898,
0.016196275129914284,
0.01201050914824009,
-0.04559091106057167,
-0.010332431644201279,
0.009521675296127796,
-0.05452808737754822,
-0.049889806658029556,
0.025529401376843452,
-0.06342755258083344,
0.033919788897037506,
-0.05671524628996849,
-0.03731365501880646,
0.028602734208106995,
-0.01402797270566225,
-0.012896684929728508,
0.03244911506772041,
-0.013782860711216927,
0.009394405409693718,
-0.060259945690631866,
0.006886716466397047,
-0.00942740123718977,
-0.016384823247790337,
-0.033844370394945145,
0.014301367104053497,
0.01037014089524746,
0.015225253067910671,
-0.03925569728016853,
-0.07044154405593872,
0.06682141870260239,
-0.05132276937365532,
0.001562591758556664,
0.011256316676735878,
-0.017987480387091637,
0.03989676013588905,
-0.024794064462184906,
-0.04114117845892906,
-0.05271802470088005,
-0.02666069008409977,
-0.016912758350372314,
0.021023103967308998,
-0.016780773177742958,
-0.03861463442444801,
-0.013151224702596664,
-0.031355537474155426,
0.04736326262354851,
0.019759831950068474,
0.03731365501880646,
-0.03818097338080406,
0.013622594065964222,
0.01668649911880493,
-0.00852708425372839,
-0.05362305790185928,
0.012717563658952713,
0.02106081321835518,
0.05158673971891403,
0.07247786223888397,
0.012434741482138634,
-0.0039925044402480125,
0.007490070071071386,
-0.024794064462184906,
-0.060750171542167664,
-0.05848759412765503,
-0.015668340027332306,
-0.006330499891191721,
-0.038727764040231705,
-0.015460937283933163,
-0.017261572182178497,
0.019382735714316368,
-0.03787929564714432,
0.052454058080911636,
0.020344331860542297,
0.052491769194602966,
-0.0034881383180618286,
-0.03537160903215408,
-0.06693454831838608,
-0.003844022750854492,
0.04770264774560928,
-0.020834555849432945,
-0.023436518386006355,
-0.04419565573334694,
0.00312282657250762,
0.03373124077916145,
0.03667258843779564,
-0.02353079244494438,
0.01989181526005268,
0.0013045165687799454,
-0.011784250847995281,
-0.00882876105606556,
0.01832686737179756,
0.008456379175186157,
-0.05060628801584244,
-0.02217324636876583,
0.05192612484097481,
-0.03782273456454277,
-0.03393864259123802,
0.03899173066020012,
-0.008329108357429504,
-0.015149833634495735,
0.028244493529200554,
-0.014574762433767319,
-0.0158474612981081,
0.011096050962805748,
0.0013139439979568124,
-0.020514024421572685,
0.030375085771083832,
-0.0039972178637981415,
0.026245884597301483,
-0.021362490952014923,
0.010794374160468578,
-0.06063704192638397,
0.008781624026596546,
0.023436518386006355,
0.0006357603706419468,
0.00008072212222032249,
0.010238157585263252,
0.019477009773254395,
0.022474924102425575,
-0.06516219675540924,
-0.003035623114556074,
0.011473147198557854,
-0.0280559454113245,
-0.005868556909263134,
0.0017169654602184892,
-0.010219302959740162,
0.006509620230644941,
-0.03146866336464882,
-0.00990819837898016,
-0.0762111097574234,
0.043893977999687195,
-0.023304535076022148,
0.007631481159478426,
-0.011774824000895023,
-0.01865682750940323,
-0.062296267598867416,
-0.02238065004348755,
0.03233598545193672,
-0.057582564651966095,
-0.026132754981517792,
-0.044572751969099045,
-0.002451124368235469,
-0.04645823314785957,
0.037125106900930405,
-0.04634510353207588,
0.0009274205658584833,
-0.016384823247790337,
-0.0047254846431314945,
-0.002102310536429286,
-0.013509465381503105,
0.04249872267246246,
0.004963526502251625,
-0.061617493629455566,
0.023945597931742668,
-0.010728382505476475,
-0.014084537513554096,
-0.07489127665758133,
-0.05592334270477295,
-0.005670581944286823,
-0.007683331612497568,
-0.020400896668434143,
-0.016507379710674286,
0.03595610707998276,
0.004188122693449259,
0.000136770962853916,
-0.013490610755980015,
-0.05720546841621399,
-0.004214048385620117,
0.0579596608877182,
-0.012792983092367649,
0.006420060060918331,
-0.054414957761764526,
0.029752878472208977,
-0.0146124716848135,
0.0451383963227272,
-0.02845189720392227,
-0.029734022915363312,
0.05539540946483612,
0.009663086384534836,
0.01864739879965782,
0.028150219470262527,
0.022154392674565315,
0.013009813614189625,
0.05494289472699165,
0.012274475768208504,
-0.0680658370256424,
0.027509156614542007,
-0.012246194295585155,
0.01753496564924717,
0.0032972334884107113,
0.013320917263627052,
0.04174453020095825,
-0.021551039069890976,
0.03286391869187355,
-0.006712309550493956,
-0.009573525749146938,
0.0803968757390976,
0.03408948332071304,
-0.010002472437918186,
-0.015762614086270332,
-0.034278031438589096,
-0.033806659281253815,
-0.007975581102073193,
-0.038840893656015396,
0.016507379710674286,
-0.005350050050765276,
-0.05720546841621399,
0.011840815655887127,
-0.009036163799464703,
-0.029847152531147003,
-0.015149833634495735,
-0.005793137941509485,
-0.06199458986520767,
0.03337299823760986,
0.02177729643881321,
-0.016102001070976257,
-0.02113623358309269,
0.03829410299658775,
-0.009545243345201015,
0.07858681678771973,
0.034240320324897766,
-0.03376895189285278,
-0.018430568277835846,
0.006929139606654644,
0.03823753818869591,
0.02309713326394558,
-0.008008576929569244,
0.017223861068487167,
0.053095120936632156,
-0.03482481837272644,
-0.09216227382421494,
-0.04102804884314537,
-0.018204310908913612,
0.03233598545193672,
-0.057733405381441116,
-0.016036009415984154,
0.0076173399575054646,
-0.017921488732099533,
-0.012745846062898636,
-0.013735723681747913,
-0.015800323337316513,
0.04928645119071007,
-0.014801019802689552,
0.022286375984549522,
-0.002181264804676175,
-0.030921874567866325,
-0.007796460762619972,
0.00725438492372632,
-0.027113204821944237,
-0.025585966184735298,
0.021023103967308998,
0.04114117845892906,
0.04894706606864929,
-0.05271802470088005,
0.04148056358098984,
-0.07210076600313187,
-0.055056020617485046,
0.04125430807471275,
-0.03212858363986015,
-0.0008119349367916584,
-0.04178224131464958,
-0.01573433168232441,
-0.029734022915363312,
0.033561546355485916,
0.04298894852399826,
0.05449037626385689,
0.020664863288402557,
0.004280040040612221,
-0.019759831950068474,
-0.012142492458224297
] |
20,902 | precession.precession | precession_average |
Average a generic function over a precession cycle. The function needs to have call: func(deltachi, *args). Keywords arguments are not supported.
There are integration methods implemented:
- method='quadrature' uses scipy.integrate.quad. This is set by default and should be preferred.
- method='montecarlo' samples t(deltachi) and approximate the integral with a Monte Carlo sum. The number of samples can be specifed by Nsamples.
Additional keyword arguments are passed to scipy.integrate.quad.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
func: function
Function to precession-average.
*args: tuple
Extra arguments to pass to func.
method: string (default: 'quadrature')
Either 'quadrature' or 'montecarlo'
Nsamples: integer, optional (default: 1e4)
Number of Monte Carlo samples.
Returns
-------
func_av: float
Precession average of func.
Examples
--------
``func_av = precession.precession_average(kappa,r,chieff,q,chi1,chi2,func,*args,method='quadrature',Nsamples=1e4)``
| def precession_average(kappa, r, chieff, q, chi1, chi2, func, *args, method='quadrature', Nsamples=1e4):
"""
Average a generic function over a precession cycle. The function needs to have call: func(deltachi, *args). Keywords arguments are not supported.
There are integration methods implemented:
- method='quadrature' uses scipy.integrate.quad. This is set by default and should be preferred.
- method='montecarlo' samples t(deltachi) and approximate the integral with a Monte Carlo sum. The number of samples can be specifed by Nsamples.
Additional keyword arguments are passed to scipy.integrate.quad.
Parameters
----------
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
func: function
Function to precession-average.
*args: tuple
Extra arguments to pass to func.
method: string (default: 'quadrature')
Either 'quadrature' or 'montecarlo'
Nsamples: integer, optional (default: 1e4)
Number of Monte Carlo samples.
Returns
-------
func_av: float
Precession average of func.
Examples
--------
``func_av = precession.precession_average(kappa,r,chieff,q,chi1,chi2,func,*args,method='quadrature',Nsamples=1e4)``
"""
kappa=np.atleast_1d(kappa).astype(float)
r=np.atleast_1d(r).astype(float)
chieff=np.atleast_1d(chieff).astype(float)
q=np.atleast_1d(q).astype(float)
chi1=np.atleast_1d(chi1).astype(float)
chi2=np.atleast_1d(chi2).astype(float)
u = eval_u(r=r,q=q)
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2)
if method == 'quadrature':
tau = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]), donotnormalize=True)
# Each args needs to be iterable
args = [np.atleast_1d(a) for a in args]
# Compute the numerator explicitely
def _integrand(deltachi, deltachiminus,deltachiplus,deltachi3, kappa, r, chieff, q, chi1, chi2, *args):
dchidt2 = dchidt2_RHS(deltachi, kappa, r, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]),donotnormalize=True)
return func(deltachi, *args) / dchidt2**(1/2)
def _compute(deltachiminus,deltachiplus,deltachi3, kappa, r, chieff, q, chi1, chi2, *args):
return scipy.integrate.quad(_integrand, deltachiminus, deltachiplus, args=(deltachiminus,deltachiplus,deltachi3, kappa, r, chieff, q, chi1, chi2, *args))[0]
func_av = np.array(list(map(_compute, deltachiminus,deltachiplus,deltachi3, kappa, r, chieff, q, chi1, chi2, *args))) / tau * 2
elif method == 'montecarlo':
deltachi = deltachisampling(kappa, r, chieff, q, chi1, chi2, N=int(Nsamples), precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
evals = func(deltachi, *args)
func_av = np.sum(evals, axis=-1)/Nsamples
func_av = np.atleast_1d(func_av)
else:
raise ValueError("Available methods are 'quadrature' and 'montecarlo'.")
return func_av
| (kappa, r, chieff, q, chi1, chi2, func, *args, method='quadrature', Nsamples=10000.0) | [
-0.03871279954910278,
-0.023695267736911774,
-0.001141980173997581,
0.025401325896382332,
0.018271682783961296,
0.020198898389935493,
-0.04684291034936905,
-0.052866771817207336,
-0.01636553183197975,
0.05476239323616028,
0.022578956559300423,
0.003130408003926277,
0.014701596461236477,
-0.022305143997073174,
-0.09014732390642166,
0.02013571187853813,
0.016892092302441597,
0.056026142090559006,
-0.038123052567243576,
-0.018608683720231056,
-0.039997611194849014,
-0.04625315964221954,
-0.03094075247645378,
0.02992975525557995,
0.0038254691753536463,
0.05914338678121567,
0.04170367121696472,
-0.04031354933977127,
-0.01491222158074379,
-0.009794043377041817,
0.02738119661808014,
0.027486510574817657,
-0.01608118787407875,
0.010652339085936546,
0.04751690849661827,
-0.05526789277791977,
-0.003109345678240061,
-0.00604492612183094,
-0.12401576340198517,
0.023589955642819405,
-0.009836168959736824,
-0.03365781158208847,
0.06255550682544708,
-0.047980282455682755,
-0.01774512231349945,
0.015143908560276031,
0.010468042455613613,
0.05573126673698425,
0.013332536444067955,
-0.012869162485003471,
0.01663934253156185,
-0.0936858206987381,
0.036227431148290634,
-0.02001986838877201,
-0.018871963024139404,
0.09688731282949448,
0.013880160637199879,
-0.01504912693053484,
-0.021209897473454475,
-0.06946399062871933,
0.04840153083205223,
-0.013659005053341389,
0.0714859887957573,
0.03418437018990517,
0.009462310001254082,
0.015565157867968082,
-0.013458911329507828,
0.0013874894939363003,
-0.0010761599987745285,
0.03458455950021744,
-0.019050994887948036,
-0.015596751123666763,
0.02333720587193966,
-0.054130520671606064,
0.03614317998290062,
0.001509915105998516,
-0.002459042239934206,
-0.0332576222717762,
0.05067627876996994,
-0.019219493493437767,
-0.026875698938965797,
-0.004470507148653269,
-0.014964877627789974,
0.015533563680946827,
0.025317076593637466,
0.034731995314359665,
-0.04126136004924774,
-0.041113920509815216,
-0.013258818536996841,
-0.014922752976417542,
-0.06685224920511246,
-0.04406266659498215,
0.016175968572497368,
0.030561629682779312,
0.01690262369811535,
0.0026170106139034033,
-0.001096564345061779,
-0.09848806262016296,
0.03618530556559563,
-0.02361101657152176,
0.02129414677619934,
0.035237494856119156,
0.07409773021936417,
-0.025422388687729836,
0.064324751496315,
-0.05282464995980263,
-0.049201905727386475,
0.01873505860567093,
0.025317076593637466,
0.0012038511922582984,
-0.05880638584494591,
0.01723962277173996,
-0.007429782766848803,
-0.030456315726041794,
-0.03995548561215401,
-0.048822782933712006,
-0.053245898336172104,
0.06226063147187233,
-0.004436280578374863,
0.016355000436306,
0.01586003229022026,
0.009483372792601585,
0.018208496272563934,
0.00884096696972847,
0.03344718739390373,
-0.015196564607322216,
0.03226768970489502,
0.06727349758148193,
-0.03393162414431572,
0.02367420494556427,
0.006913752295076847,
0.01533347088843584,
0.03626955673098564,
-0.022136645391583443,
-0.01740812323987484,
0.008477640338242054,
0.015417720191180706,
-0.009378059767186642,
0.01817690208554268,
-0.024306077510118484,
0.047474782913923264,
0.0014388292329385877,
-0.0034779387060552835,
0.013816973194479942,
-0.016871029511094093,
0.03363674879074097,
0.059185512363910675,
-0.01283756922930479,
-0.03016144223511219,
0.006771580781787634,
-0.01769246533513069,
0.056573767215013504,
0.02462201565504074,
-0.025822576135396957,
0.026075324043631554,
-0.05838513746857643,
0.04966527968645096,
-0.009751918725669384,
-0.033341873437166214,
-0.06626249849796295,
-0.05880638584494591,
0.0019535431638360023,
0.05404626950621605,
0.023442517966032028,
0.008772514760494232,
0.037006743252277374,
-0.004520530346781015,
0.02001986838877201,
0.0034858370199799538,
0.01463840901851654,
0.021473176777362823,
-0.04130348190665245,
-0.012784913182258606,
0.009999402798712254,
-0.017502903938293457,
0.03917617350816727,
-0.029908692464232445,
-0.04294635355472565,
-0.0037701802793890238,
-0.007482438813894987,
-0.007066455204039812,
-0.05880638584494591,
-0.026243824511766434,
-0.032562561333179474,
0.009246420115232468,
0.011763383634388447,
0.060407135635614395,
-0.058132387697696686,
0.007256017532199621,
0.0008267015218734741,
-0.002819736720994115,
-0.014796378090977669,
0.010030996054410934,
0.04218810796737671,
0.05105540156364441,
-0.01918790116906166,
0.04852790758013725,
0.005781644955277443,
0.04031354933977127,
0.05366714671254158,
0.026517637073993683,
-0.00923062302172184,
0.016765717417001724,
0.011879227124154568,
0.042335543781518936,
-0.01730281114578247,
-0.047264158725738525,
0.03675399348139763,
-0.01891408860683441,
0.03607999160885811,
0.006682065315544605,
-0.06782112270593643,
0.0296559426933527,
0.01817690208554268,
0.006260816007852554,
0.04054523631930351,
0.11525377631187439,
-0.002122042700648308,
0.037238430231809616,
0.0044441791251301765,
0.038333676755428314,
-0.00037780788261443377,
-0.01430140994489193,
-0.03593255579471588,
0.04056629538536072,
-0.005105013493448496,
0.017376529052853584,
0.05012865364551544,
-0.009904621168971062,
-0.04739053547382355,
0.0013243021676316857,
0.009351732209324837,
-0.049201905727386475,
-0.0022510504350066185,
0.009335935115814209,
-0.019050994887948036,
-0.012121445499360561,
0.022663205862045288,
0.026180638000369072,
0.011763383634388447,
0.0073876576498150826,
0.009241154417395592,
0.011847633868455887,
0.022410456091165543,
-0.05071840435266495,
-0.01923002488911152,
0.01188975851982832,
0.04696928337216377,
0.006592549849301577,
0.027254823595285416,
-0.01723962277173996,
-0.042609356343746185,
-0.041935358196496964,
0.019093120470643044,
-0.04962315410375595,
0.044989414513111115,
0.07561422884464264,
0.054636020213365555,
0.04397841542959213,
-0.04250404238700867,
0.03538493067026138,
-0.06407200545072556,
0.02988762967288494,
0.02849750779569149,
-0.048864904791116714,
0.01679731160402298,
0.028307946398854256,
-0.005065521690994501,
0.00568159855902195,
0.030793316662311554,
-0.030582690611481667,
0.07346586138010025,
-0.04201960563659668,
-0.03685930371284485,
-0.006134441122412682,
0.04372566565871239,
0.009193764068186283,
0.016344469040632248,
-0.04300954192876816,
-0.00939385686069727,
-0.0017376529285684228,
-0.02927681803703308,
-0.02089395932853222,
-0.019935617223381996,
-0.04983377829194069,
0.014469909481704235,
0.02870813198387623,
-0.00760881369933486,
0.1175285279750824,
0.01017843373119831,
0.027023134753108025,
0.022431518882513046,
-0.029234694316983223,
-0.023084456101059914,
0.11837102472782135,
0.04330441728234291,
-0.05787963792681694,
-0.05257190018892288,
0.023758454248309135,
-0.009430715814232826,
0.032688938081264496,
0.008324936963617802,
0.03104606457054615,
-0.04806453362107277,
0.013764317147433758,
0.005934347864240408,
0.09410706907510757,
0.013406255282461643,
-0.012679601088166237,
-0.045494914054870605,
-0.02816050872206688,
0.00108471664134413,
-0.03814411535859108,
0.011816039681434631,
-0.007429782766848803,
-0.053582895547151566,
0.03696461766958237,
0.0020693866536021233,
0.021694334223866463,
0.03688036650419235,
-0.006692596711218357,
0.05547851696610451,
0.05863788723945618,
0.03397374600172043,
0.030014004558324814,
-0.022094519808888435,
-0.01419609785079956,
-0.020693866536021233,
-0.002846064744517207,
-0.006897955667227507,
-0.04206173121929169,
0.06790536642074585,
-0.04075586050748825,
0.062007881700992584,
-0.02733907289803028,
-0.0033410326577723026,
-0.009888825006783009,
-0.035511307418346405,
-0.015670469030737877,
0.012911288067698479,
0.014164503663778305,
0.01591268740594387,
-0.032351937144994736,
0.02794988453388214,
-0.022157708182930946,
-0.026959948241710663,
0.062176380306482315,
0.0018074222607538104,
0.015396658331155777,
0.03759649023413658,
-0.00781417265534401,
-0.016397124156355858,
0.031404126435518265,
0.08454471081495285,
0.04130348190665245,
0.052529774606227875,
-0.036122117191553116,
-0.04090329632163048,
0.020420053973793983,
-0.06921124458312988,
0.03652230650186539,
0.003288376610726118,
0.01657615602016449,
0.07641460001468658,
0.035068996250629425,
-0.005470973905175924,
-0.04663228616118431,
0.008303875103592873,
-0.043051667511463165,
-0.0072823455557227135,
0.03913405165076256,
-0.03709099069237709,
-0.028560694307088852,
-0.009320138022303581,
0.0069716740399599075,
0.04294635355472565,
0.023800579831004143,
0.0007878676406107843,
-0.05248764902353287,
-0.00042157829739153385,
0.022389395162463188,
0.014227691106498241,
-0.020967679098248482,
-0.019440650939941406,
0.006998002063483,
-0.012247820384800434,
0.0013157455250620842,
-0.012437382712960243,
0.019440650939941406,
-0.03311018645763397,
-0.03220450133085251,
-0.01083663571625948,
0.007487704511731863,
-0.05054990202188492,
-0.06659949570894241,
0.005823770072311163,
0.04423116520047188,
0.009457044303417206,
-0.059017010033130646,
-0.000289115181658417,
-0.008403921499848366,
-0.07729922980070114,
0.04418903961777687,
0.030456315726041794,
0.023926954716444016,
-0.0537935234606266,
-0.006613612174987793,
-0.022094519808888435,
0.031130315735936165,
0.051139652729034424,
-0.01346944272518158,
-0.017882028594613075,
-0.029129382222890854,
0.06352438032627106,
-0.049033407121896744,
0.023821642622351646,
-0.06630462408065796,
-0.033405061811208725,
-0.049033407121896744,
0.06617824733257294,
0.04574766382575035,
-0.0482330322265625,
-0.0027960415463894606,
0.09697156399488449,
0.07464535534381866,
-0.009035794995725155,
0.0007937914342619479,
-0.039449986070394516,
-0.0031856968998908997,
0.004691662732511759,
0.011773915030062199,
-0.010030996054410934,
-0.05438327044248581,
-0.006492502987384796,
-0.022536830976605415,
0.02245258167386055,
-0.022705331444740295,
0.04663228616118431,
0.10623904317617416,
-0.03940786048769951,
-0.016344469040632248,
0.0023695267736911774,
0.012268882244825363,
-0.07679373025894165,
-0.032014939934015274,
-0.028918756172060966,
0.00876198336482048,
-0.05417264625430107,
-0.045705538243055344,
-0.04578978568315506,
-0.018208496272563934,
0.04806453362107277,
-0.0005624335026368499,
0.0388181135058403,
0.04406266659498215,
-0.0030514239333570004,
-0.03121456503868103,
-0.010920885019004345,
-0.00917270127683878,
0.006934814620763063,
0.026096386834979057,
0.04915978014469147,
0.000375504168914631,
-0.019556494429707527,
0.031088190153241158,
0.06356650590896606,
0.030035067349672318,
-0.013795911334455013,
-0.023463580757379532,
-0.058680012822151184,
0.04911765456199646,
0.0027934086974710226,
-0.04119817167520523,
-0.004238820169121027,
0.03496368229389191,
0.015723126009106636,
-0.026454448699951172,
0.014901690185070038,
0.01250057015568018,
-0.03233087435364723,
-0.005523629952222109,
-0.005544692277908325,
0.03626955673098564,
0.04717991128563881,
0.011415853165090084,
-0.02700207382440567,
-0.0074982354417443275,
-0.017724059522151947,
0.02727588452398777,
-0.027591822668910027,
-0.010220558382570744,
-0.031677938997745514,
0.079868845641613,
0.039997611194849014,
-0.0493282787501812,
-0.01851390115916729,
0.05809026211500168,
0.006887424271553755,
0.011331602931022644,
-0.016218094155192375,
0.028350070118904114,
0.006371393799781799,
-0.08601908385753632,
0.03441605716943741,
0.003269946901127696,
-0.010910353623330593,
-0.0058079734444618225,
0.01935639977455139,
-0.04191429540514946,
-0.0009675567271187901,
-0.05455176904797554,
-0.03574299439787865,
0.04802240803837776,
-0.028855569660663605,
0.013227224349975586,
-0.04524216428399086,
-0.006682065315544605,
0.016670936718583107,
-0.042335543781518936,
-0.05349864810705185,
0.015386126935482025,
-0.013869629241526127,
-0.023295080289244652,
0.07182298600673676,
0.017155373468995094,
0.07338161021471024,
-0.007793109863996506,
-0.040060799568891525,
0.03441605716943741,
0.02289489284157753,
-0.04625315964221954,
0.0009267482091672719,
-0.00731920450925827,
0.04439966380596161,
-0.02295808121562004,
0.007182298693805933,
-0.026454448699951172,
-0.06811599433422089,
0.027591822668910027,
0.014248753897845745,
-0.00626608170568943,
0.015428251586854458,
-0.019366931170225143,
-0.0432622916996479,
0.03565874323248863,
-0.026875698938965797,
-0.041219234466552734,
-0.014343534596264362,
0.0056552705354988575,
-0.014101316221058369,
0.03970273584127426,
-0.031298816204071045,
0.07422410696744919,
0.08403921127319336,
0.06251338124275208,
0.07291823625564575,
-0.00008712946873856708,
-0.05017077922821045,
-0.010536495596170425,
-0.005223489832133055,
-0.039913360029459,
-0.06394562870264053,
-0.028792383149266243,
-0.05577339231967926,
-0.05910126119852066,
0.0006572145503014326,
0.038944486528635025,
0.024537764489650726,
-0.04223022982478142,
-0.03626955673098564,
-0.049538906663656235,
0.026264887303113937,
0.026138512417674065,
-0.011110447347164154,
-0.09823530912399292,
0.020535897463560104,
0.03144625201821327,
-0.12224651873111725,
-0.02100980281829834,
-0.06676799803972244,
-0.004691662732511759,
-0.03869173675775528,
0.01930374465882778,
-0.04642166197299957,
0.01613384485244751,
0.030793316662311554,
-0.037680741399526596,
0.037996675819158554,
0.03511112183332443,
-0.0030514239333570004,
-0.04608466103672981,
-0.004265148192644119,
-0.05783751234412193,
-0.05838513746857643,
-0.0065978155471384525,
0.02788669615983963,
-0.0018153206910938025,
-0.03359462320804596,
0.022747457027435303,
-0.03846004977822304,
-0.06718924641609192,
-0.01813477836549282,
-0.014775315299630165,
-0.039344675838947296,
-0.007787844631820917,
0.019998805597424507,
-0.01064707338809967,
-0.006202894262969494,
0.05282464995980263,
-0.03875492513179779,
0.03336293622851372,
-0.03066694177687168,
0.03418437018990517,
0.007714125793427229,
0.05943826213479042,
0.050423528999090195,
-0.013416786678135395,
-0.010736588388681412,
0.095370814204216,
0.050423528999090195,
-0.026012137532234192,
0.014406722038984299,
-0.006076519377529621,
-0.022220894694328308,
-0.011910821311175823,
-0.029782317578792572,
0.026475511491298676,
-0.12334176152944565,
0.0017231724923476577,
-0.024516703560948372,
0.026370199397206306,
-0.009751918725669384,
0.0698852390050888,
0.00021605475922115147,
-0.02350570447742939,
-0.01852443255484104,
0.04084010794758797,
0.021926021203398705,
-0.05787963792681694,
-0.03913405165076256,
0.005386724136769772,
0.031298816204071045,
-0.016892092302441597,
-0.0017376529285684228,
0.045705538243055344,
-0.03917617350816727,
-0.051097527146339417,
-0.031003940850496292,
0.06714712083339691,
0.02089395932853222,
-0.0070822518318891525,
-0.0035885164979845285,
-0.04423116520047188,
0.022536830976605415,
-0.07641460001468658,
-0.004365194588899612,
0.028560694307088852,
0.0025946316309273243,
-0.011026198044419289,
0.024053329601883888,
-0.014859565533697605,
0.051813650876283646,
-0.07140173763036728,
-0.005576285999268293,
-0.04142985865473747,
-0.036732930690050125,
0.022431518882513046,
-0.015649408102035522,
-0.008814639411866665,
0.022136645391583443,
0.005352497566491365,
0.004570553544908762,
-0.007119111251085997,
-0.01740812323987484,
0.032183438539505005,
0.03940786048769951,
0.004133507609367371,
-0.010146839544177055,
-0.035237494856119156,
-0.015143908560276031,
0.027528634294867516,
0.04142985865473747,
0.014670003205537796,
-0.012437382712960243,
0.021388927474617958,
0.0019746054895222187,
0.020030399784445763,
0.00845657754689455,
-0.026875698938965797,
-0.021188834682106972,
-0.022031333297491074,
-0.000044510899897431955,
0.002574885729700327,
-0.03871279954910278,
0.017450246959924698,
-0.027086323127150536,
-0.05017077922821045,
0.021146709099411964,
0.01569153182208538,
-0.04372566565871239,
0.01336413063108921,
0.02063068002462387,
-0.009378059767186642,
0.010236355476081371,
-0.010078387334942818,
0.016091719269752502,
-0.012131976895034313,
-0.036227431148290634,
0.009325403720140457,
-0.015923218801617622,
-0.00006154187576612458,
0.011531696654856205,
0.027254823595285416,
-0.011331602931022644,
-0.0003003045858349651,
0.04696928337216377,
0.04174579307436943,
0.0387970507144928,
0.037280552089214325,
-0.014427784830331802,
-0.01763981021940708,
-0.04503154009580612,
0.01346944272518158,
-0.011731790378689766,
-0.023442517966032028,
-0.009188498370349407,
0.07510872930288315,
-0.007556157186627388,
0.0013144291006028652,
-0.011321072466671467,
0.00380440684966743,
0.007708860095590353,
0.02761288359761238,
-0.00012217872426845133,
-0.0014467276632785797,
-0.08176446706056595,
0.02948744408786297,
-0.023147642612457275,
0.02765500918030739,
-0.009083185344934464,
-0.0033357669599354267,
-0.010346933268010616,
-0.02039899118244648,
-0.029592756181955338,
0.08563996106386185,
-0.011615946888923645,
-0.005844832397997379,
-0.011352665722370148,
0.04347291588783264,
-0.024959014728665352,
0.049033407121896744,
0.02367420494556427,
-0.00010819193266797811,
0.012658538296818733,
0.018324339762330055,
-0.011321072466671467,
0.028813444077968597,
-0.04035567119717598,
-0.008883092552423477,
-0.024411391466856003,
-0.028455382212996483,
0.019988274201750755,
0.015575689263641834,
0.06205000728368759,
0.039386797696352005,
0.009141107089817524,
0.010794510133564472,
0.007050658110529184
] |
20,903 | precession.precession | reminantspindirection |
Angle between the spin of the remnant and the binary angular momentum, assuming that the spins stays in the direction of the total angular momentum 'at plunge'.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
thetaL: float
Angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``thetaL = precession.reminantspindirection(theta1,theta2,deltaphi,r,q,chi1,chi2)``
| def reminantspindirection(theta1, theta2, deltaphi, r, q, chi1, chi2):
"""
Angle between the spin of the remnant and the binary angular momentum, assuming that the spins stays in the direction of the total angular momentum 'at plunge'.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
thetaL: float
Angle betwen orbital angular momentum and total angular momentum.
Examples
--------
``thetaL = precession.reminantspindirection(theta1,theta2,deltaphi,r,q,chi1,chi2)``
"""
Lvec,S1vec,S2vec = angles_to_Lframe(theta1, theta2, deltaphi, r, q, chi1, chi2)
Jvec = Lvec + S1vec + S2vec
hatL = normalize_nested(Lvec)
hatJ = normalize_nested(Jvec)
thetaL = np.arccos(dot_nested(hatL,hatJ))
return thetaL
| (theta1, theta2, deltaphi, r, q, chi1, chi2) | [
-0.007314880844205618,
0.019221855327486992,
0.046459004282951355,
0.0010372798424214125,
-0.01777465082705021,
-0.013284603133797646,
-0.009374365210533142,
0.03593893349170685,
-0.05480826646089554,
0.03855503723025322,
0.017051048576831818,
0.014240129850804806,
0.021058693528175354,
0.0624895878136158,
-0.048871010541915894,
-0.006382546853274107,
0.03996513411402702,
-0.01540902629494667,
-0.06968850642442703,
-0.0347885899245739,
-0.006767540704458952,
0.03473293036222458,
0.03885189816355705,
0.052284933626651764,
-0.11013603955507278,
-0.0038058718200773,
-0.016744907945394516,
0.0005569073837250471,
-0.058815911412239075,
0.006141345947980881,
0.08082085102796555,
-0.0011549812043085694,
-0.007120064925402403,
-0.016336722299456596,
0.007106149569153786,
0.008404923602938652,
0.0018414760706946254,
0.04746091365814209,
-0.08185987174510956,
0.0010216250084340572,
-0.037979863584041595,
0.007723066955804825,
0.014546269550919533,
-0.010084052570164204,
0.004768356215208769,
-0.0011317888274788857,
-0.05391767621040344,
-0.02580849640071392,
0.024416951462626457,
0.05981782078742981,
0.04096704348921776,
-0.021040139719843864,
-0.003263169899582863,
-0.01652226224541664,
0.04059596732258797,
0.049538955092430115,
0.01080765575170517,
0.03892611339688301,
0.010380915366113186,
-0.07844595611095428,
0.03885189816355705,
-0.0323023647069931,
-0.009179549291729927,
0.07146967947483063,
0.06382546573877335,
-0.02235746756196022,
0.0258456040173769,
-0.0055708130821585655,
0.038406603038311005,
0.029148200526833534,
-0.07573708146810532,
-0.006591278128325939,
-0.057628460228443146,
-0.039928026497364044,
0.04516023024916649,
0.030595406889915466,
0.03829528018832207,
-0.012217752635478973,
0.04293375834822655,
-0.02165241912007332,
-0.03306307643651962,
-0.039482731372117996,
-0.00021250030840747058,
-0.00022830012312624604,
-0.005106965079903603,
0.05825929343700409,
0.0004180429095868021,
-0.05555042251944542,
-0.009731528349220753,
-0.08326996862888336,
-0.07696163654327393,
-0.0369037389755249,
-0.010918978601694107,
0.0008018770022317767,
0.04671875759959221,
0.023248055949807167,
-0.013674234971404076,
-0.035345207899808884,
-0.025251878425478935,
-0.013998929411172867,
0.00587231433019042,
0.05517934262752533,
-0.01972281187772751,
0.03272910788655281,
0.04267400503158569,
-0.006568085867911577,
-0.04861125722527504,
0.021318448707461357,
0.050318218767642975,
-0.03246935084462166,
-0.054956696927547455,
0.01927751861512661,
-0.017904527485370636,
-0.011800290085375309,
-0.09573820233345032,
0.0284988135099411,
-0.02734846994280815,
-0.00906358752399683,
0.013739174231886864,
0.015492519363760948,
0.08698075264692307,
-0.008919795043766499,
-0.002191681182011962,
-0.02280276082456112,
0.036458443850278854,
-0.0047242906875908375,
0.022487344220280647,
0.0277937650680542,
-0.03618013486266136,
-0.03580905497074127,
-0.016012027859687805,
0.027237147092819214,
-0.007913244888186455,
0.08623860031366348,
-0.040670182555913925,
0.028647245839238167,
-0.0034440704621374607,
-0.002602186519652605,
0.022153373807668686,
0.027237147092819214,
0.008520885370671749,
-0.018609575927257538,
0.01524204108864069,
-0.004037795588374138,
-0.04772067070007324,
0.0477948859333992,
-0.01428651437163353,
0.059224095195531845,
0.018581746146082878,
-0.00005703879287466407,
-0.020594846457242966,
-0.04271111264824867,
0.09670300781726837,
-0.017051048576831818,
0.0014321303460747004,
-0.021077247336506844,
0.008813109248876572,
0.02386033535003662,
0.003418558742851019,
-0.00235518766567111,
0.002469989936798811,
-0.08349261432886124,
0.01215281430631876,
0.033378493040800095,
0.008678593672811985,
-0.028368936851620674,
0.05406611040234566,
0.0026323366910219193,
-0.006317608058452606,
0.0385921448469162,
0.030762391164898872,
0.00826113112270832,
0.04100415110588074,
-0.053769245743751526,
-0.015501796267926693,
-0.024082981050014496,
0.0035878634080290794,
-0.010501516051590443,
0.012588831596076488,
-0.039482731372117996,
0.023990212008357048,
-0.029964573681354523,
0.024379843845963478,
-0.07031933963298798,
0.014768916182219982,
0.12349485605955124,
-0.00016495589807163924,
-0.02694028429687023,
0.057628460228443146,
0.013358819298446178,
0.009035756811499596,
0.014128806069493294,
0.007440119981765747,
0.01889716275036335,
-0.004374085459858179,
0.012486784718930721,
0.005835206247866154,
-0.03393511101603508,
-0.03480714559555054,
0.01586359739303589,
-0.02046496793627739,
0.05510512739419937,
-0.0493905209004879,
-0.003434793557971716,
0.03903743624687195,
0.03818395733833313,
-0.04289665073156357,
0.04397277906537056,
0.00481010228395462,
-0.014926624484360218,
0.006507785525172949,
0.03434329852461815,
0.03326717019081116,
-0.02311817742884159,
-0.02588271163403988,
0.018034406006336212,
-0.02547452598810196,
0.003539159195497632,
0.05863037332892418,
-0.0036156941205263138,
0.07276845723390579,
-0.046125032007694244,
-0.04697851464152336,
-0.0065031470730900764,
-0.027237147092819214,
0.013061956502497196,
-0.0446036122739315,
-0.003555394010618329,
-0.030762391164898872,
-0.03536376357078552,
0.007314880844205618,
-0.024788031354546547,
0.019852688536047935,
-0.04193184897303581,
0.014193745329976082,
-0.005941891111433506,
-0.036829520016908646,
0.024120090529322624,
-0.01329388003796339,
0.06801865249872208,
-0.09299222379922867,
0.009768635965883732,
-0.01933318004012108,
0.030187219381332397,
-0.013182556256651878,
0.03172719478607178,
-0.003564670914784074,
-0.021299894899129868,
0.0030335651244968176,
-0.00742620462551713,
-0.06044865399599075,
-0.00810806080698967,
-0.017041770741343498,
0.007569997571408749,
0.04315640777349472,
-0.005969722289592028,
-0.008966179564595222,
0.04631057381629944,
-0.024082981050014496,
-0.011336442083120346,
0.01966715045273304,
-0.08260203152894974,
-0.05195096135139465,
-0.03243224322795868,
-0.025177663192152977,
0.029129646718502045,
-0.04048464447259903,
0.03896322101354599,
0.0008726138039492071,
-0.05944674462080002,
0.03428763523697853,
0.010473685339093208,
-0.10145280510187149,
0.016809847205877304,
0.05213650315999985,
0.04059596732258797,
0.00786686036735773,
0.00788077525794506,
-0.01424940675497055,
-0.007203557528555393,
-0.02081749215722084,
-0.009369727224111557,
0.04000224173069,
0.02848025970160961,
-0.07095017284154892,
0.027589671313762665,
0.013238218612968922,
-0.02541886456310749,
0.042265817523002625,
-0.006062491796910763,
0.020613400265574455,
0.02734846994280815,
0.011271503753960133,
0.03664398193359375,
0.11637015640735626,
0.06846394389867783,
-0.051839638501405716,
-0.014351453632116318,
-0.004051711410284042,
-0.03356403112411499,
0.01740357279777527,
-0.025567295029759407,
-0.006336161866784096,
-0.05673787370324135,
-0.03554930165410042,
-0.04133812338113785,
0.07681320607662201,
-0.005371358245611191,
-0.003594821086153388,
-0.013507249765098095,
-0.0369037389755249,
0.021485432982444763,
-0.03235802799463272,
0.002182404277846217,
0.014036037027835846,
-0.03926008567214012,
0.00807095319032669,
0.01331243384629488,
0.025381755083799362,
0.011188010685145855,
-0.02193072810769081,
0.043379053473472595,
0.06059708818793297,
0.012189921922981739,
0.003592501860111952,
-0.012672323733568192,
-0.0017487064469605684,
0.031838517636060715,
0.032525014132261276,
0.03243224322795868,
-0.04404699429869652,
0.017867419868707657,
-0.040299102663993835,
-0.02350781112909317,
-0.001573603949509561,
-0.009100695140659809,
0.019425949081778526,
-0.018414760008454323,
0.014017483219504356,
-0.016308890655636787,
0.0555875301361084,
-0.006289777345955372,
0.027515456080436707,
0.04519733786582947,
0.0072870501317083836,
-0.0044343858025968075,
0.05291576683521271,
-0.007634935900568962,
0.016652138903737068,
0.05365792289376259,
-0.04111547768115997,
0.07874281704425812,
-0.046050816774368286,
-0.02462104521691799,
-0.001585200079716742,
0.03486280515789986,
-0.03966826945543289,
-0.00351596693508327,
0.000884789798874408,
-0.03198694810271263,
-0.07202629745006561,
0.03981670364737511,
-0.04757223650813103,
-0.0177468191832304,
-0.04541998356580734,
-0.034157756716012955,
-0.06252669543027878,
-0.03382378816604614,
-0.010937533341348171,
0.0111972875893116,
-0.01963004283607006,
-0.007634935900568962,
0.009481051005423069,
0.009100695140659809,
-0.02892555296421051,
0.06738781929016113,
0.05143145099282265,
0.002908326219767332,
-0.04482625797390938,
-0.025956926867365837,
-0.016012027859687805,
-0.023823227733373642,
-0.031133469194173813,
0.03966826945543289,
0.0231923945248127,
0.05209939181804657,
0.04716405272483826,
-0.030354205518960953,
0.0055151511915028095,
0.01925896480679512,
-0.029964573681354523,
-0.05365792289376259,
0.08067242056131363,
-0.018962102010846138,
-0.019184747710824013,
0.011132349260151386,
0.0019052551360800862,
0.05295287445187569,
-0.0138968825340271,
0.002481586067005992,
0.04909365996718407,
-0.009610927663743496,
-0.04671875759959221,
-0.039482731372117996,
-0.029612047597765923,
-0.06575507670640945,
0.06419654935598373,
-0.016401661559939384,
-0.025307539850473404,
-0.010046944953501225,
-0.024045873433351517,
-0.02508489415049553,
0.04890812188386917,
0.010455131530761719,
0.0021568925585597754,
-0.005074495915323496,
-0.04085572063922882,
0.022134819999337196,
-0.012431123293936253,
0.05985492840409279,
-0.00904503371566534,
-0.04352748394012451,
-0.009842852130532265,
0.014722531661391258,
0.025363201275467873,
0.013173279352486134,
-0.001375308958813548,
0.023730456829071045,
-0.03595748916268349,
0.017913805320858955,
0.002206756267696619,
0.026105359196662903,
0.012403292581439018,
-0.032599229365587234,
-0.022171929478645325,
0.027459794655442238,
0.052210718393325806,
0.02196783572435379,
0.038406603038311005,
0.0015353364869952202,
0.045308660715818405,
0.015566734597086906,
-0.004494686145335436,
0.008975456468760967,
-0.044195424765348434,
-0.04501179978251457,
-0.02122567966580391,
-0.032988861203193665,
-0.01154981181025505,
-0.023452147841453552,
0.012449677102267742,
0.012533169239759445,
0.009508881717920303,
0.03384234011173248,
-0.027608225122094154,
-0.0014332899590954185,
-0.027478348463773727,
-0.002195160137489438,
-0.07800065726041794,
-0.049538955092430115,
0.02623523585498333,
0.0500955693423748,
-0.0030637152958661318,
0.04516023024916649,
0.015956366434693336,
-0.0038290643133223057,
0.02701449953019619,
-0.003965899348258972,
-0.030595406889915466,
-0.025548741221427917,
0.04386145621538162,
-0.04664454236626625,
-0.017997298389673233,
-0.019908351823687553,
0.08794555813074112,
0.004972449038177729,
-0.05677498131990433,
-0.02668052911758423,
-0.016104798763990402,
-0.013173279352486134,
-0.0794849693775177,
-0.025660064071416855,
0.010724162682890892,
0.039853811264038086,
0.01998256705701351,
-0.0734735056757927,
-0.033693909645080566,
-0.017579834908246994,
-0.021875066682696342,
-0.01893427036702633,
0.04137523099780083,
0.02270999178290367,
0.016114074736833572,
0.0034811783116310835,
-0.02274709939956665,
0.06749914586544037,
-0.032135382294654846,
-0.07792644202709198,
0.05091194435954094,
-0.009402196854352951,
0.017134539783000946,
0.00906822644174099,
-0.0017985701560974121,
0.014370007440447807,
0.013071233406662941,
0.02424996718764305,
-0.016698524355888367,
-0.014824578538537025,
-0.07733272016048431,
0.06705384701490402,
0.02586415782570839,
0.005148711614310741,
0.07005958259105682,
0.06928031891584396,
0.0037687639705836773,
0.06278644502162933,
-0.010362361557781696,
0.05232204124331474,
0.04044753313064575,
-0.048388611525297165,
-0.037571679800748825,
0.01963004283607006,
-0.0011590399080887437,
-0.07146967947483063,
-0.009406834840774536,
-0.017449956387281418,
-0.021782295778393745,
-0.044974688440561295,
0.02011244371533394,
0.007992099039256573,
-0.025919819250702858,
0.01775609701871872,
-0.038443710654973984,
0.009174911305308342,
0.03467726707458496,
0.0454941987991333,
-0.022227590903639793,
-0.043007973581552505,
0.043713025748729706,
-0.029407955706119537,
-0.021708080545067787,
0.0023586663883179426,
-0.056144148111343384,
0.005501235835254192,
-0.015715166926383972,
-0.002261258428916335,
0.005918698851019144,
-0.018832223489880562,
-0.0633801743388176,
0.025233324617147446,
-0.015316257253289223,
-0.0601889006793499,
-0.050800617784261703,
0.06582929193973541,
-0.0304469745606184,
0.0238974429666996,
-0.029018323868513107,
-0.020205212756991386,
0.013182556256651878,
0.0638996809720993,
-0.01652226224541664,
-0.03671819716691971,
0.03888900578022003,
-0.0531013049185276,
-0.02892555296421051,
0.025622956454753876,
0.042191602289676666,
-0.000004344044100434985,
0.013952543959021568,
0.036458443850278854,
0.024379843845963478,
0.0025047785602509975,
-0.014128806069493294,
-0.027534009888768196,
-0.05280444398522377,
-0.021522540599107742,
0.06987404078245163,
-0.041449446231126785,
0.012273414991796017,
0.0072360266931355,
0.07191497832536697,
0.03822106495499611,
-0.002432882087305188,
-0.030168665573000908,
0.028999770060181618,
0.0617845356464386,
-0.0073659042827785015,
0.07024512439966202,
0.02666197530925274,
-0.018637407571077347,
-0.05722027271986008,
0.0008360858191736042,
0.021782295778393745,
-0.07087595760822296,
-0.0032933198381215334,
0.007978183217346668,
0.03269200026988983,
0.01366495806723833,
0.034937020391225815,
0.011716797016561031,
-0.0007966587436385453,
-0.03729337081313133,
0.013869051821529865,
-0.029574939981102943,
-0.011911613866686821,
-0.021782295778393745,
-0.0068092867732048035,
-0.06126502901315689,
-0.01816428266465664,
-0.007681320887058973,
0.04360169917345047,
-0.012440400198101997,
0.020984478294849396,
0.002049047965556383,
-0.012987740337848663,
0.01620684564113617,
-0.035734839737415314,
-0.051505669951438904,
0.005306419916450977,
0.04241425171494484,
-0.047238267958164215,
-0.024045873433351517,
0.01771898940205574,
-0.057999540120363235,
-0.02818339690566063,
0.036050256341695786,
0.02662486769258976,
-0.020557738840579987,
0.019908351823687553,
-0.009518158622086048,
-0.025956926867365837,
-0.03434329852461815,
0.00906358752399683,
-0.021021585911512375,
-0.007393734995275736,
0.005292504094541073,
-0.008140530437231064,
-0.03139322251081467,
0.05054086446762085,
0.05889012664556503,
-0.0438985638320446,
-0.03332282975316048,
-0.0626751258969307,
0.016902616247534752,
-0.04445518180727959,
-0.0284988135099411,
0.034083541482686996,
0.002602186519652605,
0.02352636493742466,
0.039890918880701065,
-0.034584496170282364,
0.12327221035957336,
-0.007778728846460581,
0.016874786466360092,
-0.02855447493493557,
-0.0463847890496254,
-0.03705216944217682,
-0.021522540599107742,
0.013256772421300411,
0.0034116010647267103,
0.0757741928100586,
0.011327165178954601,
0.017876697704195976,
0.0024259244091808796,
-0.011642581783235073,
0.0024537553545087576,
0.05588439106941223,
-0.00023221384617500007,
0.043750133365392685,
-0.03002023510634899,
-0.014982286840677261,
-0.08111771941184998,
0.017143817618489265,
0.012477507814764977,
0.0033327469136565924,
-0.00906358752399683,
0.015381195582449436,
-0.06582929193973541,
0.0008082549320533872,
0.036829520016908646,
-0.06100527197122574,
0.012264138087630272,
0.029593493789434433,
-0.026476437225937843,
-0.029519278556108475,
0.055698852986097336,
0.05254468694329262,
0.025251878425478935,
0.002178925322368741,
0.028999770060181618,
0.044974688440561295,
-0.0005316856550052762,
0.0230996236205101,
0.015269871801137924,
0.08163722604513168,
0.015464688651263714,
-0.04772067070007324,
0.01968570426106453,
-0.04582817107439041,
-0.025251878425478935,
0.05510512739419937,
-0.033805232495069504,
0.0065031470730900764,
0.013340264558792114,
-0.056144148111343384,
-0.011123072355985641,
0.026884622871875763,
-0.03658832237124443,
0.000008583903763792478,
0.0013057318283244967,
0.014277237467467785,
0.020539183169603348,
0.10672211647033691,
-0.007477227598428726,
0.017171649262309074,
-0.031077807769179344,
-0.004397277720272541,
0.008697147481143475,
0.037998419255018234,
-0.014444222673773766,
-0.028387490659952164,
-0.07748115062713623,
0.04400988668203354,
-0.005937252659350634,
0.0031912734266370535,
-0.03170863911509514,
0.04935341328382492,
-0.017867419868707657,
-0.02241312898695469,
-0.04352748394012451,
-0.0734735056757927,
0.04386145621538162,
-0.015464688651263714,
0.007314880844205618,
0.01972281187772751,
0.005260034929960966,
-0.04746091365814209,
0.04059596732258797,
-0.016846954822540283,
0.05402899906039238,
0.027274254709482193,
0.026847515255212784,
0.008970817551016808,
-0.03963116183876991,
-0.0009624843369238079,
0.05662654712796211,
-0.06864948570728302,
-0.03133756294846535,
0.0031425694469362497,
-0.038332387804985046,
0.08809398859739304,
-0.023823227733373642,
0.027459794655442238,
-0.04560552164912224,
-0.02386033535003662,
0.007723066955804825,
0.012894971296191216,
0.024955015629529953,
-0.03428763523697853,
-0.04289665073156357,
-0.011624027974903584,
0.004777633119374514,
-0.0038128294982016087,
0.0626751258969307,
0.012013659812510014,
0.05154277756810188,
-0.05510512739419937,
0.04430674761533737
] |
20,904 | precession.precession | remnantkick |
Estimate the kick of the merger remnant. We collect various numerical-relativity
results, as described in Gerosa and Kesden 2016. Flags let you switch the
various contributions on and off (all on by default): superkicks (Gonzalez et al. 2007a;
Campanelli et al. 2007), hang-up kicks (Lousto & Zlochower 2011),
cross-kicks (Lousto & Zlochower 2013). The orbital-plane kick components are
implemented as described in Kesden et al. 2010a. The final kick depends on
the orbital phase at merger. By default, this is assumed to be uniformly
distributed in [0,2pi]. The maximum kick is realized for Theta=0 and can be
computed with the optional argument maxphase. The final kick is returned in
geometrical units (i.e. vkick/c) by default, and converted to km/s if
kms=True. This formula has to be applied *close to merger*, where
numerical relativity simulations are available. You should do a PN evolution
to transfer binaries at r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
kms: boolean, optional (default: False)
Return velocities in km/s.
maxphase: boolean, optional (default: False)
Maximize over orbital phase at merger.
superkick: boolean, optional (default: True)
Switch kick terms on and off.
hangupkick: boolean, optional (default: True)
Switch kick terms on and off.
crosskick: boolean, optional (default: True)
Switch kick terms on and off.
full_output: boolean, optional (default: False)
Return additional outputs.
Returns
-------
vk: float
Kick of the black-hole remnant (magnitude).
vk_array: array, optional
Kick of the black-hole remnant (in a frame aligned with L).
Examples
--------
``vk = precession.remnantkick(theta1,theta2,deltaphi,q,chi1,chi2,full_output=False)``
``vk,vk_array = precession.remnantkick(theta1,theta2,deltaphi,q,chi1,chi2,full_output=True)``
| def remnantkick(theta1, theta2, deltaphi, q, chi1, chi2, kms=False, maxphase=False, superkick=True, hangupkick=True, crosskick=True, full_output=False):
"""
Estimate the kick of the merger remnant. We collect various numerical-relativity
results, as described in Gerosa and Kesden 2016. Flags let you switch the
various contributions on and off (all on by default): superkicks (Gonzalez et al. 2007a;
Campanelli et al. 2007), hang-up kicks (Lousto & Zlochower 2011),
cross-kicks (Lousto & Zlochower 2013). The orbital-plane kick components are
implemented as described in Kesden et al. 2010a. The final kick depends on
the orbital phase at merger. By default, this is assumed to be uniformly
distributed in [0,2pi]. The maximum kick is realized for Theta=0 and can be
computed with the optional argument maxphase. The final kick is returned in
geometrical units (i.e. vkick/c) by default, and converted to km/s if
kms=True. This formula has to be applied *close to merger*, where
numerical relativity simulations are available. You should do a PN evolution
to transfer binaries at r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
kms: boolean, optional (default: False)
Return velocities in km/s.
maxphase: boolean, optional (default: False)
Maximize over orbital phase at merger.
superkick: boolean, optional (default: True)
Switch kick terms on and off.
hangupkick: boolean, optional (default: True)
Switch kick terms on and off.
crosskick: boolean, optional (default: True)
Switch kick terms on and off.
full_output: boolean, optional (default: False)
Return additional outputs.
Returns
-------
vk: float
Kick of the black-hole remnant (magnitude).
vk_array: array, optional
Kick of the black-hole remnant (in a frame aligned with L).
Examples
--------
``vk = precession.remnantkick(theta1,theta2,deltaphi,q,chi1,chi2,full_output=False)``
``vk,vk_array = precession.remnantkick(theta1,theta2,deltaphi,q,chi1,chi2,full_output=True)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
eta = eval_eta(q)
Lvec,S1vec,S2vec = angles_to_Lframe(theta1, theta2, deltaphi, 1, q, chi1, chi2)
hatL = normalize_nested(Lvec)
hatS1 = normalize_nested(S1vec)
hatS2 = normalize_nested(S2vec)
#More spin parameters.
Delta = - scalar_nested(1/(1+q), (scalar_nested(q*chi2,hatS2)-scalar_nested(chi1,hatS1)) )
Delta_par = dot_nested(Delta,hatL)
Delta_perp = norm_nested(np.cross(Delta,hatL))
chit = scalar_nested(1/(1+q)**2, (scalar_nested(chi2*q**2,hatS2)+scalar_nested(chi1,hatS1)) )
chit_par = dot_nested(chit,hatL)
chit_perp = norm_nested(np.cross(chit,hatL))
#Coefficients are quoted in km/s
#vm and vperp from Kesden at 2010a. vpar from Lousto Zlochower 2013
zeta=np.radians(145)
A=1.2e4
B=-0.93
H=6.9e3
#Multiply by 0/1 boolean flags to select terms
V11 = 3677.76 * superkick
VA = 2481.21 * hangupkick
VB = 1792.45 * hangupkick
VC = 1506.52 * hangupkick
C2 = 1140 * crosskick
C3 = 2481 * crosskick
#maxkick
bigTheta=np.random.uniform(0, 2*np.pi,q.shape) * (not maxphase)
vm = A * eta**2 * (1+B*eta) * (1-q)/(1+q)
vperp = H * eta**2 * Delta_par
vpar = 16*eta**2 * (Delta_perp * (V11 + 2*VA*chit_par + 4*VB*chit_par**2 + 8*VC*chit_par**3) + chit_perp * Delta_par * (2*C2 + 4*C3*chit_par)) * np.cos(bigTheta)
kick = np.array([vm+vperp*np.cos(zeta),vperp*np.sin(zeta),vpar]).T
if not kms:
kick = kick/299792.458 # speed of light in km/s
vk = norm_nested(kick)
if full_output:
return np.concatenate([vk[:, None], kick], axis=-1)
else:
return vk
| (theta1, theta2, deltaphi, q, chi1, chi2, kms=False, maxphase=False, superkick=True, hangupkick=True, crosskick=True, full_output=False) | [
0.013769809156656265,
-0.007723418064415455,
-0.009607547894120216,
0.017275402322411537,
-0.049987535923719406,
-0.0059655699878931046,
-0.06114077940583229,
0.004548684228211641,
-0.0019952584989368916,
0.014032475650310516,
-0.001476238714531064,
0.039339423179626465,
-0.021700330078601837,
0.07172827422618866,
-0.023821869865059853,
-0.022326689213514328,
0.05479636415839195,
-0.008329572156071663,
0.0057988776825368404,
0.0008776611648499966,
-0.012264525517821312,
-0.013062628917396069,
0.00943075306713581,
0.10393528640270233,
-0.059201084077358246,
0.027943721041083336,
0.04441091790795326,
0.01671976037323475,
-0.08170962333679199,
0.008041649125516415,
0.005450338590890169,
0.005164941307157278,
0.010254113003611565,
-0.00456383777782321,
-0.026589974761009216,
-0.03428813815116882,
0.04481501877307892,
0.03331828862428665,
-0.07580971717834473,
0.002401886973530054,
0.015436733141541481,
-0.014285040087997913,
0.03596516326069832,
-0.054513491690158844,
-0.026266692206263542,
0.005253338720649481,
-0.0020899700466543436,
0.10304626077413559,
-0.03976373374462128,
0.03190393000841141,
-0.0017325915396213531,
-0.08898347616195679,
-0.010850165039300919,
-0.007278904784470797,
-0.04675471410155296,
0.01599237509071827,
0.020336482673883438,
0.001185789704322815,
0.01305252593010664,
-0.038713064044713974,
0.018204838037490845,
0.007081904448568821,
0.051240257918834686,
0.09949015080928802,
-0.012395858764648438,
0.012193807400763035,
-0.013709193095564842,
0.011981653049588203,
0.011597755365073681,
0.06497975438833237,
-0.005475595127791166,
0.029762184247374535,
0.012183704413473606,
-0.021619508042931557,
0.060211341828107834,
0.010759241878986359,
-0.03394464775919914,
-0.016851093620061874,
-0.010688523761928082,
-0.023619819432497025,
0.05370528623461723,
0.03857162967324257,
-0.020932534709572792,
-0.05374569445848465,
0.00016140441584866494,
0.06295924633741379,
-0.006081749685108662,
0.0018386684823781252,
0.008476059883832932,
-0.10943108797073364,
-0.05354364216327667,
-0.014769963920116425,
0.049704667180776596,
0.0174370426684618,
-0.00023725263599772006,
0.016497503966093063,
-0.05536210536956787,
-0.05968600884079933,
-0.0409962460398674,
-0.06017093360424042,
0.0008833438623696566,
0.0692228376865387,
0.021276021376252174,
0.008041649125516415,
0.023882485926151276,
-0.03107551857829094,
-0.0965806096792221,
0.04445132613182068,
0.017659299075603485,
-0.03899593651294708,
-0.07698161900043488,
0.010506677441298962,
-0.05031082034111023,
0.0007299109711311758,
-0.04897728189826012,
-0.009435804560780525,
-0.03703603893518448,
-0.010435959324240685,
0.004351683892309666,
0.055038824677467346,
0.06130241975188255,
-0.029661158099770546,
-0.0011693729320541024,
-0.033378906548023224,
-0.008011341094970703,
-0.005329107865691185,
0.024428024888038635,
0.07916377484798431,
0.028064951300621033,
-0.027074899524450302,
0.016093401238322258,
0.03828875720500946,
-0.03511654958128929,
0.021962996572256088,
-0.006647493690252304,
0.02592320553958416,
0.008248751983046532,
-0.03362136706709862,
0.06263595819473267,
-0.0009174400474876165,
0.02357940748333931,
-0.06344416737556458,
0.03170187771320343,
-0.026266692206263542,
-0.03257070109248161,
0.005066440906375647,
0.05330118164420128,
-0.07039473950862885,
0.030307723209261894,
0.014224424958229065,
0.020457712933421135,
0.002669605193659663,
0.09229712188243866,
-0.03830896317958832,
0.024872537702322006,
-0.021801354363560677,
0.0005123899318277836,
-0.014476989395916462,
-0.008541726507246494,
-0.01396175753325224,
-0.011183549650013447,
-0.0806993618607521,
-0.0011965236626565456,
0.09641896933317184,
0.01861904375255108,
-0.0183462742716074,
0.03170187771320343,
0.004159735050052404,
-0.011516934260725975,
0.05516005679965019,
0.029014592990279198,
0.01807350479066372,
-0.03471244499087334,
-0.008117418736219406,
0.0035939908120781183,
0.03016628697514534,
-0.06497975438833237,
-0.04663348197937012,
-0.0218619704246521,
-0.036308653652668,
-0.04849235713481903,
-0.006495955400168896,
0.01617422141134739,
-0.040491119027137756,
-0.018103813752532005,
0.033459726721048355,
0.08308357000350952,
-0.016830889508128166,
0.030368337407708168,
-0.014103193767368793,
-0.006783878430724144,
-0.015951965004205704,
0.018386684358119965,
0.04396640509366989,
0.020568842068314552,
0.02103355899453163,
0.011345190927386284,
0.03135839104652405,
-0.003743003821000457,
-0.025801975280046463,
-0.05402856692671776,
0.03632885590195656,
-0.0188008900731802,
-0.041784245520830154,
0.05600867047905922,
-0.02927725948393345,
-0.03234844282269478,
0.04570404440164566,
0.058837391436100006,
0.0029246951453387737,
0.004399671219289303,
0.010355138219892979,
0.03350013494491577,
0.04748209938406944,
0.012436268851161003,
-0.04055173322558403,
0.042309582233428955,
0.004781043156981468,
-0.016477297991514206,
0.0011056005023419857,
0.0190635584294796,
-0.01816442795097828,
-0.01589134894311428,
0.05516005679965019,
-0.07762818038463593,
0.052614208310842514,
0.00966816395521164,
0.04703758656978607,
-0.004715376533567905,
-0.055685389786958694,
0.040147628635168076,
-0.01707335002720356,
0.0034879138693213463,
0.009021598845720291,
-0.07124335318803787,
0.043400660157203674,
-0.039783935993909836,
0.0028640797827392817,
0.020215250551700592,
0.016123708337545395,
-0.009733830578625202,
-0.0473608672618866,
0.011678575538098812,
0.026670796796679497,
0.01608329825103283,
0.02673141099512577,
0.018831199035048485,
-0.0020672392565757036,
0.005632185377180576,
0.057584673166275024,
-0.050068359822034836,
-0.02909541316330433,
-0.007193033117800951,
0.022872228175401688,
0.014588117599487305,
-0.0404709130525589,
0.01377991121262312,
0.018033094704151154,
0.02483212761580944,
-0.007319314870983362,
0.02412494644522667,
-0.03325767442584038,
-0.0525737963616848,
0.022690381854772568,
-0.07265771180391312,
0.016942016780376434,
0.0020748162642121315,
0.026751616969704628,
-0.06857627630233765,
-0.029378285631537437,
0.027499206364154816,
0.03154023736715317,
-0.06368663161993027,
-0.002912067109718919,
-0.02745879627764225,
0.04901769012212753,
-0.01708345301449299,
0.030146081000566483,
-0.00925900973379612,
-0.013244475238025188,
-0.015658989548683167,
-0.01950807124376297,
0.028953978791832924,
0.033277880400419235,
-0.08373013883829117,
-0.007147571071982384,
-0.020993148908019066,
0.0013247000752016902,
0.03612680733203888,
0.006728314328938723,
-0.03224741667509079,
-0.03964250162243843,
0.04255204275250435,
0.015325604937970638,
0.10361199826002121,
0.03172208368778229,
-0.030833056196570396,
-0.008284110575914383,
0.005864544305950403,
-0.012587807141244411,
0.017851248383522034,
-0.026226282119750977,
0.022872228175401688,
-0.03172208368778229,
0.02275099791586399,
-0.00958229135721922,
0.08215413242578506,
-0.03855142369866371,
0.06202980503439903,
-0.012719141319394112,
-0.040612347424030304,
-0.03461141884326935,
0.014769963920116425,
0.00218973308801651,
0.012577705085277557,
-0.026408128440380096,
0.043117787688970566,
0.019760634750127792,
0.06449483335018158,
0.016598530113697052,
0.00001759071346896235,
-0.015123553574085236,
0.051078613847494125,
0.0944792777299881,
0.024852333590388298,
-0.06962694227695465,
-0.007915367372334003,
0.04978548735380173,
-0.009415599517524242,
0.003056028624996543,
-0.07524397224187851,
0.019437352195382118,
0.00017679504526313394,
0.034732650965452194,
-0.029499517753720284,
0.01129467785358429,
0.0046471841633319855,
-0.061019547283649445,
0.004773466382175684,
-0.00017947854939848185,
0.08150757104158401,
0.005212928168475628,
-0.03125736489892006,
0.03503572940826416,
0.005536210723221302,
0.03836957737803459,
0.06728314608335495,
0.009183240123093128,
-0.0005629028310067952,
0.084861621260643,
0.0019359057769179344,
0.04198629781603813,
0.01714406907558441,
0.03251008316874504,
0.04715881496667862,
0.005298800300806761,
-0.024771511554718018,
-0.025943411514163017,
-0.024347204715013504,
-0.03293439373373985,
-0.037985678762197495,
0.018124017864465714,
-0.02582217939198017,
0.06732355803251266,
-0.02953992784023285,
-0.054513491690158844,
-0.06857627630233765,
-0.0330556221306324,
0.03541962429881096,
-0.03323746845126152,
0.0038465552497655153,
-0.02988341450691223,
-0.03497511148452759,
0.005293748807162046,
0.010299574583768845,
0.04897728189826012,
-0.02701428346335888,
0.008794290944933891,
-0.005581672303378582,
-0.016921812668442726,
-0.023963306099176407,
-0.0040460810996592045,
-0.058675751090049744,
0.02774166874587536,
-0.014911399222910404,
0.01732591539621353,
-0.020993148908019066,
-0.011941242963075638,
0.06885914504528046,
-0.004503222648054361,
0.030105670914053917,
-0.00169975811149925,
0.10813795775175095,
0.002788310404866934,
-0.0655859112739563,
0.05338200181722641,
0.019437352195382118,
-0.008728624321520329,
-0.09003414213657379,
-0.022468125447630882,
0.019447455182671547,
-0.021377047523856163,
-0.015861041843891144,
0.001925803255289793,
0.008597291074693203,
-0.04336024820804596,
0.059726420789957047,
-0.005116953980177641,
-0.027418386191129684,
0.006374724209308624,
-0.05156353861093521,
-0.032732341438531876,
0.008955932222306728,
0.0009635330061428249,
-0.05709974840283394,
-0.002529432065784931,
-0.0658687874674797,
-0.00962270237505436,
0.026691000908613205,
0.04525953158736229,
0.017113760113716125,
-0.04075378552079201,
0.037076447159051895,
0.017548171803355217,
0.007869905792176723,
0.06077708676457405,
-0.0014067834708839655,
0.006521211471408606,
-0.043925993144512177,
-0.03416690602898598,
-0.014527501538395882,
0.03596516326069832,
0.0022036239970475435,
-0.039864759892225266,
-0.010132881812751293,
0.026165667921304703,
0.019194891676306725,
-0.011375498957931995,
0.01024906150996685,
-0.017588581889867783,
0.018124017864465714,
0.0017477453220635653,
-0.012456473894417286,
-0.02545848675072193,
0.04885604977607727,
-0.0017881556414067745,
-0.04768415167927742,
0.0030307723209261894,
-0.02927725948393345,
0.004894697107374668,
0.07504191994667053,
0.05645318329334259,
-0.011527037248015404,
0.023902690038084984,
0.04889645799994469,
0.025438282638788223,
-0.048371125012636185,
0.04824989289045334,
-0.03556106239557266,
-0.05140189826488495,
0.03537921607494354,
0.0235592033714056,
-0.026488950476050377,
0.11411868035793304,
0.010506677441298962,
0.06384827196598053,
0.03855142369866371,
-0.010850165039300919,
-0.030206697061657906,
-0.013830424286425114,
0.0048542870208621025,
-0.07568848878145218,
-0.002616566838696599,
0.007930520921945572,
0.026125257834792137,
-0.003063605632632971,
-0.041137684136629105,
-0.00424560671672225,
-0.028509464114904404,
-0.029600542038679123,
-0.08332603424787521,
-0.04833071678876877,
-0.013729398138821125,
0.02988341450691223,
-0.010526882484555244,
-0.05617031455039978,
-0.01377991121262312,
-0.01915448158979416,
-0.01714406907558441,
-0.060736674815416336,
-0.041137684136629105,
0.010244010016322136,
0.009253958240151405,
0.013830424286425114,
-0.010496574454009533,
0.040693167597055435,
0.0006367778987623751,
-0.03695521503686905,
0.0040284013375639915,
-0.027660848572850227,
0.01914437860250473,
0.06130241975188255,
-0.0559682622551918,
-0.031014902517199516,
0.006127211265265942,
-0.012880782596766949,
0.003515695920214057,
-0.012112986296415329,
-0.05645318329334259,
0.04667389392852783,
-0.01341621857136488,
-0.06243390962481499,
0.07843638956546783,
-0.010087420232594013,
-0.006884904578328133,
0.03659152239561081,
-0.0022743421141058207,
0.05548333749175072,
-0.010072266682982445,
-0.04921974241733551,
-0.001922014751471579,
0.03279295563697815,
-0.006076698657125235,
-0.024953357875347137,
0.026691000908613205,
0.03414670005440712,
0.03362136706709862,
-0.002997939009219408,
-0.009223650209605694,
0.007491058669984341,
-0.06679821759462357,
0.0016328286146745086,
-0.029580337926745415,
0.05936272814869881,
0.015608477406203747,
-0.01205237116664648,
-0.03976373374462128,
-0.0028261952102184296,
0.06025175377726555,
-0.054149799048900604,
-0.014648732729256153,
0.0030459261033684015,
0.025418076664209366,
-0.032550495117902756,
-0.05358405411243439,
0.04218835011124611,
0.029216645285487175,
0.0400870144367218,
-0.02465028129518032,
0.004316324833780527,
-0.023538997396826744,
-0.01608329825103283,
0.020558739081025124,
0.03263131529092789,
0.011516934260725975,
0.011941242963075638,
0.017295606434345245,
-0.05237174406647682,
0.034005265682935715,
-0.004829030483961105,
0.0037556320894509554,
-0.0010089946445077658,
0.028327617794275284,
-0.06853586435317993,
0.013648577965795994,
-0.00934993289411068,
-0.010314728133380413,
0.028852952644228935,
-0.020154636353254318,
0.006137313786894083,
-0.005657441448420286,
0.021700330078601837,
-0.00472295330837369,
0.023276330903172493,
-0.07690079510211945,
0.01842709630727768,
0.041420552879571915,
-0.02764064259827137,
-0.015184168703854084,
-0.018810993060469627,
0.034005265682935715,
0.04283491522073746,
0.014507296495139599,
-0.034267932176589966,
0.044491738080978394,
0.03727849945425987,
0.0017401684308424592,
0.0014396167825907469,
0.009243855252861977,
0.02600402571260929,
-0.013790014199912548,
0.0424308106303215,
-0.001039933762513101,
-0.03505593165755272,
-0.02566053904592991,
0.019831353798508644,
0.0413801446557045,
0.041501376777887344,
0.06017093360424042,
-0.014729552902281284,
0.018740275874733925,
-0.07188992202281952,
0.017942171543836594,
-0.009642907418310642,
-0.044936250895261765,
0.04643142968416214,
-0.049179330468177795,
0.0009534304263070226,
0.013790014199912548,
0.011163344606757164,
0.012769653461873531,
-0.02392289601266384,
-0.00018847614410333335,
-0.000721071264706552,
-0.03948086127638817,
0.005440236069262028,
-0.008966034278273582,
-0.02953992784023285,
0.05366487428545952,
0.014012270607054234,
-0.05988806113600731,
0.024953357875347137,
0.021518483757972717,
-0.03006526082754135,
-0.020488020032644272,
-0.044208865612745285,
-0.03402547165751457,
-0.0429561473429203,
0.045663636177778244,
0.011395704001188278,
0.020306173712015152,
-0.018447300419211388,
0.04146096482872963,
0.0017401684308424592,
-0.04020824655890465,
0.011910934932529926,
0.003255554474890232,
-0.022468125447630882,
0.0032050416339188814,
0.008556880056858063,
0.007996187545359135,
0.022548945620656013,
-0.018831199035048485,
0.018396787345409393,
-0.04703758656978607,
-0.05996888130903244,
0.0014219373697414994,
0.03432854637503624,
0.031014902517199516,
0.05301830917596817,
-0.03125736489892006,
0.07580971717834473,
0.014476989395916462,
-0.020791098475456238,
-0.0661112442612648,
-0.03588434308767319,
0.013709193095564842,
0.012335243634879589,
0.0069556222297251225,
-0.03414670005440712,
0.02816597744822502,
0.031398799270391464,
-0.03350013494491577,
-0.01977073773741722,
-0.03727849945425987,
-0.003232823684811592,
0.057584673166275024,
-0.02818618156015873,
-0.01779063418507576,
0.049098510295152664,
-0.04505748301744461,
-0.09027660638093948,
-0.006430288311094046,
-0.030691619962453842,
-0.04776497185230255,
-0.026428334414958954,
0.0022175151389092207,
0.026589974761009216,
-0.016012581065297127,
0.0070263403467834,
0.0030838109087198973,
0.017043042927980423,
-0.03125736489892006,
0.030388543382287025,
0.022286279127001762,
0.06853586435317993,
0.017113760113716125,
0.007061699405312538,
-0.04534035176038742,
-0.005414979998022318,
0.05164435878396034,
0.0016037836903706193,
-0.0035359009634703398,
0.044653378427028656,
0.046108148992061615,
0.020205149427056313,
-0.029600542038679123,
0.005601877346634865,
-0.04671430215239525,
-0.018730172887444496,
0.06744478642940521,
-0.031580645591020584,
-0.04441091790795326,
-0.025902999565005302,
-0.09633814543485641,
0.03287377581000328,
-0.028873156756162643,
0.029378285631537437,
-0.011729088611900806,
-0.03152003139257431,
0.04521912336349487,
0.061625704169273376,
0.07698161900043488,
-0.012001858092844486,
-0.0030004645232111216,
-0.05944354832172394,
0.009562086313962936,
0.031924135982990265,
0.03998598828911781,
0.00858213659375906,
-0.022003406658768654,
0.004139530006796122,
0.049623843282461166,
0.020336482673883438,
-0.010087420232594013,
0.0069758277386426926,
0.027681052684783936,
-0.03281316161155701,
0.011072421446442604,
-0.03647029399871826,
-0.019356532022356987,
0.04299655556678772,
-0.014547706581652164,
-0.0661112442612648,
0.03727849945425987,
-0.10110656172037125,
0.020831508561968803,
-0.027761874720454216,
0.017932068556547165,
0.022973254323005676,
-0.047724559903144836,
-0.018770582973957062,
-0.04667389392852783,
-0.027943721041083336,
0.004957838449627161,
0.015477144159376621,
0.007102109491825104,
0.015184168703854084,
0.016750067472457886,
-0.013092936016619205,
0.06231267750263214,
-0.03160085156559944,
-0.0019586365669965744,
0.01778053119778633,
0.05637236312031746,
0.031035108491778374,
-0.010739036835730076,
-0.007743623107671738,
-0.028469054028391838,
-0.07330428063869476,
-0.005601877346634865,
-0.031035108491778374,
-0.006192877888679504,
0.010890575125813484,
-0.028832746669650078,
-0.007541571743786335,
-0.002889336319640279,
-0.002005361020565033
] |
20,905 | precession.precession | remnantmass |
Estimate the final mass of the post-merger renmant. We implement the fitting
formula to numerical relativity simulations by Barausse Morozova Rezzolla
2012. This formula has to be applied *close to merger*, where numerical
relativity simulations are available. You should do a PN evolution to
transfer binaries to r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
mfin: float
Mass of the black-hole remnant.
Examples
--------
``mfin = precession.remnantmass(theta1,theta2,q,chi1,chi2)``
| def remnantmass(theta1, theta2, q, chi1, chi2):
"""
Estimate the final mass of the post-merger renmant. We implement the fitting
formula to numerical relativity simulations by Barausse Morozova Rezzolla
2012. This formula has to be applied *close to merger*, where numerical
relativity simulations are available. You should do a PN evolution to
transfer binaries to r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
mfin: float
Mass of the black-hole remnant.
Examples
--------
``mfin = precession.remnantmass(theta1,theta2,q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
eta = eval_eta(q).astype(float)
chit_par = ( chi2*q**2 * np.cos(theta2) + chi1*np.cos(theta1) ) / (1+q)**2
#Final mass. Barausse Morozova Rezzolla 2012
p0 = 0.04827
p1 = 0.01707
Z1 = 1 + (1-chit_par**2)**(1/3)* ((1+chit_par)**(1/3)+(1-chit_par)**(1/3))
Z2 = (3* chit_par**2 + Z1**2)**(1/2)
risco = 3 + Z2 - np.sign(chit_par) * ((3-Z1)*(3+Z1+2*Z2))**(1/2)
Eisco = (1-2/(3*risco))**(1/2)
#Radiated energy, in units of the initial total mass of the binary
Erad = eta*(1-Eisco) + 4* eta**2 * (4*p0+16*p1*chit_par*(chit_par+1)+Eisco-1)
Mfin = 1- Erad # Final mass
return Mfin
| (theta1, theta2, q, chi1, chi2) | [
0.05031287297606468,
0.04733797907829285,
0.02848459780216217,
0.009882221929728985,
0.0009540573810227215,
-0.04012386500835419,
-0.04700330272316933,
0.011351075023412704,
-0.03926858305931091,
0.017895838245749474,
0.043954040855169296,
0.04789577051997185,
-0.008659726940095425,
0.05730386823415756,
-0.05484958365559578,
0.005852171685546637,
0.03270522505044937,
0.0085202781483531,
-0.019448360428214073,
0.013944809325039387,
-0.028298666700720787,
-0.0011911190813407302,
-0.022125763818621635,
0.0686456486582756,
-0.06834816187620163,
0.015859896317124367,
0.016836032271385193,
-0.025249401107430458,
-0.032612260431051254,
0.013359127566218376,
0.03426704555749893,
0.0031213131733238697,
0.011127958074212074,
0.002030131872743368,
0.014688532799482346,
-0.0008250678656622767,
0.04008667916059494,
0.08143768459558487,
-0.1419023871421814,
0.003934760577976704,
-0.0020928834564983845,
0.0061264196410775185,
0.043284688144922256,
-0.0044274767860770226,
-0.005071262363344431,
-0.022181542590260506,
-0.05380837246775627,
0.08939552307128906,
-0.028056956827640533,
0.06265867501497269,
0.038896720856428146,
-0.06898032128810883,
0.026457952335476875,
-0.0410907045006752,
-0.026829812675714493,
0.07950400561094284,
0.013201085850596428,
0.042169105261564255,
0.025230808183550835,
-0.058828502893447876,
0.03990074619650841,
-0.002187010832130909,
0.05243248492479324,
0.013749581761658192,
-0.008692264556884766,
0.030567022040486336,
0.01832347922027111,
0.007474417798221111,
0.03897109255194664,
0.07846279442310333,
-0.010486496612429619,
-0.006172902416437864,
-0.011081474833190441,
0.0018837113166227937,
0.07065369933843613,
0.0349549874663353,
-0.021977020427584648,
-0.03225899115204811,
0.019504139199852943,
-0.006939866580069065,
-0.008761988952755928,
-0.0020649938378483057,
0.0010295917745679617,
-0.06604261696338654,
-0.015041801147162914,
0.030269533395767212,
0.010988510213792324,
-0.035289663821458817,
0.013619430363178253,
-0.07176928222179413,
-0.05250685662031174,
-0.017616942524909973,
0.03303990140557289,
0.004048643168061972,
0.04075602814555168,
0.027071522548794746,
-0.020173490047454834,
-0.059163179248571396,
-0.007943892851471901,
-0.04321031644940376,
-0.003223575185984373,
0.07690097391605377,
0.03569871187210083,
0.0015106876380741596,
0.03735349699854851,
-0.013368424028158188,
-0.056708890944719315,
-0.0017152115469798446,
0.044549018144607544,
-0.012327211908996105,
-0.12784601747989655,
0.020340828225016594,
-0.07638037204742432,
-0.041388195008039474,
-0.057155124843120575,
-0.03030671924352646,
-0.05269278585910797,
0.010430717840790749,
0.04209472984075546,
0.018304886296391487,
0.08857742697000504,
0.023278534412384033,
0.00905018113553524,
-0.027722280472517014,
0.010040262714028358,
-0.008989754132926464,
0.03270522505044937,
0.007674293592572212,
0.02781524695456028,
-0.03752083331346512,
-0.029990635812282562,
0.03207306191325188,
0.015673965215682983,
0.026513731107115746,
-0.050164125859737396,
0.007297783624380827,
-0.051614388823509216,
-0.05589079484343529,
0.08299950510263443,
-0.0011324346996843815,
0.004111394751816988,
-0.027183081954717636,
0.006456446833908558,
-0.03748364746570587,
-0.05656014755368233,
0.026513731107115746,
0.03482483699917793,
-0.020861435681581497,
-0.037613797932863235,
0.0038534156046807766,
-0.016473468393087387,
0.013572948053479195,
0.056002356112003326,
-0.02121470309793949,
0.02881927229464054,
-0.006758584175258875,
0.07638037204742432,
0.0064285569824278355,
-0.008622540161013603,
-0.00587076460942626,
-0.02182827517390251,
-0.018918458372354507,
0.016464171931147575,
0.08240452408790588,
0.0230926051735878,
-0.015627482905983925,
0.03199869021773338,
-0.011341778561472893,
-0.026885593309998512,
0.014502601698040962,
-0.026179054751992226,
-0.00960332527756691,
-0.021642344072461128,
-0.03391377627849579,
-0.002607679460197687,
0.04075602814555168,
-0.019745850935578346,
-0.05533300340175629,
-0.037056006491184235,
0.008111231029033661,
0.0006635405006818473,
-0.05384555831551552,
0.013638023287057877,
-0.05429179221391678,
0.02177249640226364,
0.09482470154762268,
0.024003665894269943,
-0.020303642377257347,
0.045441485941410065,
-0.042503777891397476,
0.03897109255194664,
-0.012485252693295479,
0.0008576057734899223,
0.06845971941947937,
0.026290614157915115,
-0.000309400464175269,
0.05812196433544159,
-0.00222187303006649,
0.0030818029772490263,
-0.02625342831015587,
-0.014158629812300205,
-0.00020873636822216213,
-0.03679570183157921,
-0.007455824874341488,
0.03348613530397415,
-0.00609388155862689,
-0.05418023094534874,
0.0388595350086689,
0.010570165701210499,
-0.002458934672176838,
-0.0012980293249711394,
-0.0020103766582906246,
0.0343228243291378,
-0.0042833806946873665,
0.003888277569785714,
-0.050275687128305435,
0.05644859001040459,
-0.02965596131980419,
0.013535761274397373,
-0.0019952699076384306,
0.013628726825118065,
-0.0012608431279659271,
-0.0061589572578668594,
0.019299617037177086,
-0.017021963372826576,
0.03915702551603317,
-0.03047405742108822,
0.034787651151418686,
-0.006651673931628466,
-0.018509410321712494,
0.014195815660059452,
0.01284781750291586,
-0.014084257185459137,
-0.03370925411581993,
-0.03125496581196785,
-0.0014200464356690645,
-0.014112147502601147,
0.011732232756912708,
-0.05652296170592308,
0.046110834926366806,
-0.040941961109638214,
-0.0056662410497665405,
-0.011174440383911133,
0.05391993001103401,
0.025175029411911964,
-0.03646102920174599,
0.021977020427584648,
-0.003686077892780304,
-0.008920029737055302,
0.02359461784362793,
-0.06094811484217644,
-0.05525863170623779,
-0.0010464417282491922,
0.009212871082127094,
0.03753942623734474,
-0.015060394071042538,
0.0034164784010499716,
0.04648269712924957,
0.03915702551603317,
-0.0005612786044366658,
0.060427505522966385,
-0.09333726018667221,
-0.0073861004784703255,
0.0063123502768576145,
-0.056485775858163834,
0.032351959496736526,
-0.06068781018257141,
0.03458312898874283,
-0.05384555831551552,
-0.02742479182779789,
0.048007331788539886,
0.018444335088133812,
-0.037985660135746,
-0.029618775472044945,
0.000055488719226559624,
0.03993793576955795,
-0.008008969016373158,
-0.004290353041142225,
-0.04168568179011345,
0.01810036227107048,
-0.0340811125934124,
-0.07035621255636215,
0.06150590628385544,
-0.00899440236389637,
-0.04157412424683571,
0.012652589939534664,
-0.002607679460197687,
-0.005368751473724842,
0.05154001712799072,
0.013126714155077934,
-0.028614748269319534,
-0.010542276315391064,
-0.021735308691859245,
0.019522733986377716,
0.09415535628795624,
0.01849081739783287,
-0.02865193411707878,
-0.016836032271385193,
0.003409505821764469,
-0.012178466655313969,
0.008232085965573788,
0.02147500589489937,
0.0011452174512669444,
-0.050387244671583176,
-0.02577000856399536,
0.00982644222676754,
0.10084886103868484,
0.001486284309066832,
0.01727296970784664,
0.019355395808815956,
-0.014595567248761654,
-0.0019487871322780848,
0.0013247568858787417,
0.00849703699350357,
0.006214736495167017,
-0.0065401154570281506,
0.06935218721628189,
0.019913187250494957,
0.06206369772553444,
0.011871680617332458,
0.0043228911235928535,
0.00944063626229763,
0.07284768670797348,
0.02577000856399536,
0.015106876380741596,
-0.03504795581102371,
-0.0484163798391819,
0.05157720297574997,
0.007846279069781303,
0.019466953352093697,
-0.04956914857029915,
0.0035140919499099255,
-0.020359421148896217,
0.016975481063127518,
0.003095747670158744,
0.010179710574448109,
0.03134793043136597,
-0.09527093917131424,
0.01959710568189621,
-0.03625650331377983,
0.034731872379779816,
-0.003411829937249422,
-0.03004641644656658,
0.01307093445211649,
0.0013968050479888916,
-0.006637729238718748,
0.05525863170623779,
-0.025082062929868698,
-0.006726046558469534,
0.07065369933843613,
-0.02303682453930378,
0.07370296865701675,
0.0071257976815104485,
0.027331827208399773,
0.009510359726846218,
0.0557420514523983,
-0.04153693839907646,
-0.037948474287986755,
-0.02214435674250126,
-0.005903302691876888,
-0.04268971085548401,
0.07017028331756592,
-0.018528003245592117,
0.007107204291969538,
-0.009733476676046848,
-0.05291590467095375,
-0.08694123476743698,
0.05154001712799072,
0.038227371871471405,
-0.04830481857061386,
0.005531440954655409,
0.011313888244330883,
-0.060762181878089905,
-0.011509115807712078,
0.01346138957887888,
0.033114273101091385,
-0.0489741712808609,
0.0012957052094861865,
-0.04484650865197182,
-0.018667452037334442,
-0.036665551364421844,
-0.032723817974328995,
-0.07002153247594833,
-0.01066313125193119,
-0.0005548872286453843,
0.0031724441796541214,
0.05154001712799072,
-0.011862384155392647,
0.0023601590655744076,
0.012875706888735294,
0.014065664261579514,
-0.037613797932863235,
0.05514707416296005,
0.003772070864215493,
-0.03285397216677666,
0.06001846119761467,
0.04733797907829285,
0.012513142079114914,
-0.1204831525683403,
0.017728500068187714,
0.014279484748840332,
-0.059758156538009644,
-0.0489741712808609,
0.03292834386229515,
-0.017254376783967018,
-0.0912548303604126,
0.022720742970705032,
-0.007544141728430986,
0.010328455828130245,
0.06009283289313316,
-0.0256026703864336,
-0.034731872379779816,
0.033114273101091385,
0.021939832717180252,
-0.06526170670986176,
0.006595894694328308,
-0.014456119388341904,
-0.09051110595464706,
0.013275458477437496,
0.03253788873553276,
0.03486202284693718,
-0.055816423147916794,
0.02904238924384117,
0.01704985275864601,
0.045218367129564285,
-0.012940783053636551,
0.005103800445795059,
-0.0050433725118637085,
-0.06291898339986801,
-0.017979508265852928,
-0.007130445912480354,
0.03370925411581993,
-0.04190880060195923,
-0.028075549751520157,
-0.011713639833033085,
0.02692277915775776,
0.008775933645665646,
0.00224162801168859,
0.04057009890675545,
0.004806310869753361,
0.01881619542837143,
0.040830403566360474,
0.009361615404486656,
-0.06262148916721344,
-0.040941961109638214,
-0.011090771295130253,
0.0036047331523150206,
-0.0416484959423542,
-0.03276100382208824,
-0.012429472990334034,
0.014725718647241592,
0.03804143890738487,
0.004834200721234083,
0.0001590579777257517,
0.028242887929081917,
0.0033560506999492645,
0.04347061738371849,
-0.0019174113404005766,
-0.035773083567619324,
-0.032723817974328995,
0.02943284437060356,
0.04637113958597183,
-0.037948474287986755,
0.05380837246775627,
0.009115257300436497,
0.054440535604953766,
0.04503243789076805,
-0.0032003337983042,
-0.004564600996673107,
-0.02909816801548004,
0.02498909831047058,
-0.039566073566675186,
-0.010923434048891068,
-0.03568011894822121,
0.061319973319768906,
-0.0018476872937753797,
-0.08939552307128906,
-0.02515643648803234,
0.027127303183078766,
-0.011258109472692013,
-0.03714897111058235,
-0.00540128955617547,
0.0270343367010355,
0.04146256670355797,
-0.0020022422540932894,
-0.05905161798000336,
0.0071257976815104485,
-0.046222396194934845,
0.0008506333688274026,
-0.037390682846307755,
0.004090477246791124,
0.019783036783337593,
0.044549018144607544,
0.03714897111058235,
-0.04696611687541008,
0.05570486560463905,
-0.0017431011656299233,
-0.03164542093873024,
0.007939244620501995,
-0.038785163313150406,
0.009696290828287601,
0.05938629433512688,
-0.036107759922742844,
-0.008371533825993538,
-0.052320923656225204,
0.004348456393927336,
-0.04447464644908905,
-0.041834428906440735,
-0.04856512323021889,
0.04559022933244705,
-0.044325899332761765,
-0.05023850128054619,
0.015274214558303356,
0.037111785262823105,
-0.014958132058382034,
0.032835379242897034,
-0.017412418499588966,
0.048936985433101654,
0.009835738688707352,
-0.05035005882382393,
-0.017133522778749466,
0.022348880767822266,
-0.026179054751992226,
-0.050721921026706696,
0.006832956802099943,
0.03199869021773338,
-0.02831725962460041,
-0.03279819339513779,
0.04458620399236679,
-0.022962452843785286,
-0.04930884763598442,
-0.0016385151538997889,
-0.0009389505139552057,
0.015116173774003983,
0.030176566913723946,
-0.02147500589489937,
0.009245408698916435,
-0.03168260678648949,
0.006921273656189442,
-0.004387966822832823,
-0.037669576704502106,
-0.01427018828690052,
0.01892775483429432,
-0.03242633119225502,
-0.025360960513353348,
0.01821192167699337,
0.045441485941410065,
0.010570165701210499,
-0.0015711152227595448,
0.005889357998967171,
-0.015032504685223103,
-0.04309875890612602,
-0.0351966992020607,
0.06303054094314575,
0.05325057730078697,
0.05544456094503403,
0.0031561751384288073,
-0.04551585763692856,
0.04034698009490967,
0.020061932504177094,
0.011304591782391071,
-0.0005238018929958344,
0.030269533395767212,
-0.05217218026518822,
-0.063067726790905,
0.04231784865260124,
0.008371533825993538,
0.017365936189889908,
-0.03380221873521805,
0.014707125723361969,
-0.013563651591539383,
0.0410907045006752,
0.010393531061708927,
-0.0038696846459060907,
-0.03692585602402687,
-0.004801662638783455,
0.04190880060195923,
-0.05622547119855881,
-0.017458900809288025,
-0.012364397756755352,
0.04596209153532982,
0.004769125021994114,
0.03926858305931091,
-0.05633702874183655,
0.010235490277409554,
0.014781498350203037,
-0.04358217865228653,
0.02577000856399536,
0.02487754076719284,
0.01786794885993004,
-0.01786794885993004,
0.00642390875145793,
0.0013282430591061711,
-0.06797629594802856,
-0.026550916954874992,
0.004829552490264177,
0.017523977905511856,
-0.0073535628616809845,
0.007767258677631617,
-0.009621918201446533,
-0.007544141728430986,
-0.04979226738214493,
0.013889030553400517,
0.005131689831614494,
-0.011611377820372581,
0.012290025129914284,
-0.01987600140273571,
-0.024691609665751457,
0.02920972742140293,
-0.007711479440331459,
0.01887197606265545,
-0.025714227929711342,
0.005285082850605249,
-0.00860394723713398,
-0.02043379470705986,
-0.00407885666936636,
-0.05414304509758949,
-0.04614802077412605,
0.021289074793457985,
0.052320923656225204,
-0.058828502893447876,
0.018193328753113747,
0.0069677564315497875,
-0.037167564034461975,
-0.00517817260697484,
0.012754851952195168,
-0.02443130686879158,
-0.0800246149301529,
0.0074651213362813,
-0.016361908987164497,
-0.012475956231355667,
-0.0002956009120680392,
0.03363487869501114,
-0.018555892631411552,
-0.02242325432598591,
-0.010542276315391064,
-0.011481226421892643,
-0.015488035045564175,
-0.016175979748368263,
0.034174080938100815,
-0.012541031464934349,
0.012299321591854095,
-0.0699099749326706,
-0.007004942744970322,
-0.09177543967962265,
-0.03270522505044937,
0.002705293009057641,
-0.008696912787854671,
0.024356933310627937,
0.008557464927434921,
-0.025584077462553978,
0.08314824849367142,
0.005484958179295063,
0.008487740531563759,
-0.016956888139247894,
-0.05168876051902771,
-0.024394119158387184,
-0.0012596810702234507,
-0.016008641570806503,
-0.010096042416989803,
0.06626573204994202,
-0.014558381401002407,
-0.034731872379779816,
-0.04752391204237938,
0.047114863991737366,
-0.02709011547267437,
0.05113096907734871,
-0.0171614121645689,
-0.014158629812300205,
-0.030232347548007965,
0.0009279108489863575,
-0.011880978010594845,
0.0318499431014061,
-0.04670581594109535,
-0.03952888771891594,
0.04254096373915672,
-0.015088283456861973,
0.025677042081952095,
0.026457952335476875,
0.07377734035253525,
0.05440334975719452,
0.03871079161763191,
0.020508166402578354,
0.03698163479566574,
0.02504487708210945,
0.04581334814429283,
0.0007599921082146466,
0.02281370759010315,
-0.06347677111625671,
0.026290614157915115,
0.03679570183157921,
-0.004580869805067778,
0.02982329949736595,
0.008748043328523636,
0.09155232459306717,
0.0721411481499672,
-0.06596824526786804,
0.03160823509097099,
-0.058270711451768875,
-0.0152091383934021,
0.021196110174059868,
-0.021623751148581505,
-0.009984483942389488,
0.033727847039699554,
-0.07853716611862183,
-0.007929948158562183,
-0.003088775323703885,
0.026606695726513863,
-0.03757661208510399,
-0.008306457661092281,
0.00996589008718729,
0.04663144424557686,
0.09162669628858566,
-0.005959081929177046,
-0.00888749212026596,
0.025416739284992218,
0.04707767814397812,
0.0574154295027256,
0.05923755094408989,
-0.02586297318339348,
-0.03224039822816849,
-0.03008360229432583,
0.05603954195976257,
0.02143782004714012,
-0.028614748269319534,
-0.015590297058224678,
0.038227371871471405,
-0.03919421136379242,
0.008153065107762814,
-0.05302746221423149,
-0.01993178017437458,
0.049271658062934875,
-0.002637893194332719,
0.0002559453423600644,
0.012243542820215225,
-0.057489801198244095,
-0.002709941240027547,
-0.009612621739506721,
-0.0377439521253109,
0.04462338984012604,
-0.02575141377747059,
0.024691609665751457,
-0.015673965215682983,
-0.010570165701210499,
0.02331572212278843,
0.041276637464761734,
-0.02686699852347374,
0.04547867178916931,
0.0315338633954525,
-0.011815901845693588,
0.07645474374294281,
-0.02465442381799221,
0.03837611526250839,
0.03326302021741867,
0.020954400300979614,
0.013368424028158188,
0.04406559839844704,
-0.02149359881877899,
-0.036163538694381714,
-0.03638665750622749,
-0.01570185460150242,
-0.0033281610812991858,
-0.007906707003712654,
0.05499832704663277,
0.01476290449500084,
0.0405329130589962,
-0.02526799403131008,
0.020340828225016594
] |
20,906 | precession.precession | remnantspin |
Estimate the final spin of the post-merger renmant. We implement the fitting
formula to numerical relativity simulations by Barausse and Rezzolla 2009
and Hofmann, Barausse and Rezzolla 2016. This can be selected by the keywork `
`which`, see those references for details. By default this returns the
Hofmann+ expression with nM=3, nJ=4 and corrections for the effective
angles (HBR16_34corr). This formula has to be applied *close to merger*,
where numerical relativity simulations are available. You should do a PN
evolution to transfer binaries at r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string, optional (default: 'HBR16_34corr')
Select function behavior.
Returns
-------
chifin: float
Spin of the black-hole remnant.
Examples
--------
``chifin = precession.remnantspin(theta1,theta2,deltaphi,q,chi1,chi2)``
| def remnantspin(theta1, theta2, deltaphi, q, chi1, chi2, which='HBR16_34corr'):
"""
Estimate the final spin of the post-merger renmant. We implement the fitting
formula to numerical relativity simulations by Barausse and Rezzolla 2009
and Hofmann, Barausse and Rezzolla 2016. This can be selected by the keywork `
`which`, see those references for details. By default this returns the
Hofmann+ expression with nM=3, nJ=4 and corrections for the effective
angles (HBR16_34corr). This formula has to be applied *close to merger*,
where numerical relativity simulations are available. You should do a PN
evolution to transfer binaries at r~10M.
Parameters
----------
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
which: string, optional (default: 'HBR16_34corr')
Select function behavior.
Returns
-------
chifin: float
Spin of the black-hole remnant.
Examples
--------
``chifin = precession.remnantspin(theta1,theta2,deltaphi,q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
eta = eval_eta(q).astype(float)
if which in ['HBR16_12', 'HBR16_12corr', 'HBR16_33', 'HBR16_33corr', 'HBR16_34', 'HBR16_34corr']:
kfit = {}
if 'HBR16_12' in which:
kfit = np.array( [[np.nan, -1.2019, -1.20764] ,
[3.79245, 1.18385, 4.90494] ] )
xifit = 0.41616
if 'HBR16_33' in which:
kfit = np.array( [[np.nan, 2.87025, -1.53315, -3.78893] ,
[32.9127, -62.9901, 10.0068, 56.1926],
[-136.832, 329.32, -13.2034, -252.27],
[210.075, -545.35, -3.97509, 368.405]] )
xifit = 0.463926
if 'HBR16_34' in which:
kfit = np.array( [[np.nan, 3.39221, 4.48865, -5.77101, -13.0459] ,
[35.1278, -72.9336, -86.0036, 93.7371, 200.975],
[-146.822, 387.184, 447.009, -467.383, -884.339],
[223.911, -648.502, -697.177, 753.738, 1166.89]])
xifit = 0.474046
# Calculate K00 from Eq 11
kfit[0,0] = 4**2 * ( 0.68646 - np.sum( kfit[1:,0] /(4**(3+np.arange(kfit.shape[0]-1)))) - (3**0.5)/2)
theta12 = eval_theta12(theta1=theta1, theta2=theta2, deltaphi=deltaphi)
# Eq. 18
if 'corr' in which:
eps1 = 0.024
eps2 = 0.024
eps12 = 0
theta1 = theta1 + eps1 * np.sin(theta1)
theta2 = theta2 + eps2 * np.sin(theta2)
theta12 = theta12 + eps12 * np.sin(theta12)
# Eq. 14 - 15
atot = ( chi1*np.cos(theta1) + chi2*np.cos(theta2)*q**2 ) / (1+q)**2
aeff = atot + xifit*eta* ( chi1*np.cos(theta1) + chi2*np.cos(theta2) )
# Eq. 2 - 6 evaluated at aeff, as specified in Eq. 11
Z1= 1 + (1-(aeff**2))**(1/3) * ( (1+aeff)**(1/3) + (1-aeff)**(1/3) )
Z2= ( (3*aeff**2) + (Z1**2) )**(1/2)
risco= 3 + Z2 - np.sign(aeff) * ( (3-Z1)*(3+Z1+2*Z2) )**(1/2)
Eisco=(1-2/(3*risco))**(1/2)
Lisco = (2/(3*(3**(1/2)))) * ( 1 + 2*(3*risco - 2 )**(1/2) )
# Eq. 13
etatoi = eta[:,np.newaxis]**(1+np.arange(kfit.shape[0]))
innersum = np.sum(kfit.T * etatoi[:,np.newaxis],axis=2)
aefftoj = aeff[:,np.newaxis]**(np.arange(kfit.shape[1]))
sumell = (np.sum(innersum * aefftoj,axis=1))
ell = np.abs( Lisco - 2*atot*(Eisco-1) + sumell )
# Eq. 16
chifin = (1/(1+q)**2) * ( chi1**2 + (chi2**2)*(q**4) + 2*chi1*chi2*(q**2)*np.cos(theta12)
+ 2*(chi1*np.cos(theta1) + chi2*(q**2)*np.cos(theta2))*ell*q + ((ell*q)**2) )**(1/2)
else:
raise ValueError("`which` needs to be one of the following: `HBR16_12`, `HBR16_12corr`, `HBR16_33`, `HBR16_33corr`, `HBR16_34`, `HBR16_34corr`.")
return np.minimum(chifin,1)
| (theta1, theta2, deltaphi, q, chi1, chi2, which='HBR16_34corr') | [
0.03130785748362541,
-0.012278897687792778,
0.003963441587984562,
-0.0125675518065691,
-0.01569833792746067,
-0.02032790333032608,
-0.03517138212919235,
-0.013744371943175793,
-0.04645109176635742,
0.01956186071038246,
0.04196585342288017,
0.018507162109017372,
-0.0016708626644685864,
0.00014337291941046715,
-0.06439204514026642,
0.006905491929501295,
0.03497154265642166,
-0.012090162374079227,
-0.020261291414499283,
-0.03936796635389328,
-0.03983425348997116,
-0.05155804753303528,
-0.07367338240146637,
0.07509444653987885,
-0.0397232323884964,
0.05457781255245209,
0.026489555835723877,
0.014921192079782486,
-0.00022013337002135813,
0.012167876586318016,
-0.008448680862784386,
-0.005856345873326063,
-0.007099778391420841,
-0.024802040308713913,
0.001310738967731595,
-0.057597577571868896,
0.047117214649915695,
0.003635930363088846,
-0.04325369372963905,
0.04012290760874748,
0.02302570827305317,
-0.010769015178084373,
0.054355770349502563,
-0.029309483245015144,
-0.07811421155929565,
0.040056295692920685,
-0.05293470248579979,
0.08792845159769058,
0.02088300697505474,
0.03617056831717491,
0.028510134667158127,
-0.13775457441806793,
-0.017507975921034813,
-0.008437578566372395,
-0.04094446077942848,
0.05844133347272873,
0.014688048511743546,
0.006428102497011423,
0.02651176042854786,
-0.07331811636686325,
0.012478734366595745,
0.0016555972397327423,
0.04265417903661728,
0.06585752218961716,
-0.018762510269880295,
0.0190733689814806,
0.011118730530142784,
0.004363116342574358,
0.028510134667158127,
0.048493873327970505,
-0.009542235173285007,
0.02138260006904602,
0.000026605954190017655,
-0.00499315932393074,
0.04156617820262909,
-0.01366665679961443,
-0.03728077560663223,
-0.02460220269858837,
-0.008559701964259148,
-0.004132748115807772,
-0.008376517333090305,
0.004901567008346319,
0.022392889484763145,
-0.06257130950689316,
-0.020227985456585884,
0.05515512079000473,
0.05719790235161781,
-0.0009062070748768747,
0.036214977502822876,
-0.03690330311655998,
-0.07531648874282837,
-0.02275925874710083,
0.022193051874637604,
-0.014699149876832962,
0.04003408923745155,
0.0031196835916489363,
-0.021549131721258163,
-0.08593007922172546,
0.009087050333619118,
-0.05906305089592934,
-0.011612772941589355,
0.027111273258924484,
0.008831702172756195,
0.021538030356168747,
0.01795205846428871,
-0.007144186645746231,
-0.07576057314872742,
0.05320115387439728,
0.049959346652030945,
-0.05386727675795555,
-0.06994308531284332,
0.02560139074921608,
-0.009714317508041859,
-0.0029531526379287243,
-0.04329809918999672,
-0.02320334129035473,
-0.0656798854470253,
0.02422473207116127,
0.014243965037167072,
0.04893795773386955,
0.048671506345272064,
-0.047028400003910065,
-0.04174381121993065,
-0.009064845740795135,
0.033639293164014816,
-0.0025465390644967556,
0.027821805328130722,
0.041344135999679565,
0.03983425348997116,
-0.049604080617427826,
0.045918192714452744,
0.016397768631577492,
0.02395828254520893,
0.010608035139739513,
-0.06323742866516113,
0.03843539208173752,
-0.03823555260896683,
-0.023469790816307068,
0.034349825233221054,
-0.0077992090955376625,
0.026844821870326996,
-0.034460846334695816,
0.0032723371405154467,
-0.016220135614275932,
-0.015276458114385605,
0.04525206610560417,
0.04689517244696617,
-0.0279772337526083,
-0.024713223800063133,
-0.026822619140148163,
0.007976842112839222,
0.052712664008140564,
0.039878662675619125,
-0.028687767684459686,
-0.0015723316464573145,
-0.03670346736907959,
0.040966663509607315,
0.015742745250463486,
-0.016042500734329224,
-0.027555355802178383,
0.02032790333032608,
-0.05213535577058792,
0.07114210724830627,
0.043164875358343124,
0.051247186958789825,
0.012789593078196049,
-0.02036120928823948,
-0.011146485805511475,
0.015864867717027664,
0.022626033052802086,
-0.03379472345113754,
0.004451932851225138,
-0.04809419810771942,
-0.014443802647292614,
-0.008348762057721615,
0.01043040119111538,
-0.05209094658493996,
-0.08353202790021896,
0.004315932281315327,
0.0316409207880497,
-0.04183262586593628,
-0.03557105362415314,
-0.009370152838528156,
-0.00262147793546319,
-0.024979673326015472,
0.07576057314872742,
0.09885289520025253,
-0.031241245567798615,
0.06408119201660156,
-0.035548850893974304,
-0.008110067807137966,
0.011274158954620361,
0.024158120155334473,
0.0437643900513649,
0.021016232669353485,
-0.005353976506739855,
0.047960974276065826,
0.006045081187039614,
-0.02152692712843418,
-0.046007007360458374,
-0.021815581247210503,
-0.0007084513199515641,
-0.04853828251361847,
-0.016830749809741974,
0.03497154265642166,
0.008565252646803856,
-0.013433513231575489,
0.03512697294354439,
0.05066987872123718,
0.07100888341665268,
0.000016663958376739174,
-0.0279772337526083,
-0.011340771801769733,
0.03772486001253128,
0.0005134710809215903,
0.02313672937452793,
0.0015265356050804257,
-0.0210273340344429,
-0.0021884969901293516,
0.008992682211101055,
0.017963161692023277,
-0.007105329539626837,
-0.0023786199744790792,
0.018973449245095253,
-0.03423880785703659,
0.03723636642098427,
0.015542907640337944,
0.03728077560663223,
-0.005917407106608152,
-0.051247186958789825,
0.009464520961046219,
0.05626532807946205,
-0.006866634823381901,
-0.007221901323646307,
-0.04578496515750885,
0.024535590782761574,
-0.051247186958789825,
-0.00935905147343874,
-0.011734895408153534,
0.035371217876672745,
-0.023625221103429794,
-0.007427289616316557,
0.019584063440561295,
0.04258756712079048,
-0.012045754119753838,
0.030219854786992073,
0.029509320855140686,
0.02038341388106346,
-0.03450525552034378,
-0.004488014616072178,
-0.027111273258924484,
-0.06057293340563774,
-0.015021110884845257,
-0.007876923307776451,
-0.014710252173244953,
-0.01582046039402485,
0.018429448828101158,
0.012256693094968796,
0.06408119201660156,
-0.01857377588748932,
0.036303792148828506,
-0.03386133536696434,
-0.0316409207880497,
-0.005084751173853874,
-0.05395609512925148,
0.025556981563568115,
-0.027577560395002365,
0.023003503680229187,
-0.05257943645119667,
-0.044807981699705124,
0.045185454189777374,
0.051424819976091385,
-0.07873593270778656,
0.014943395741283894,
-0.012156774289906025,
0.039878662675619125,
0.02059435285627842,
0.007754800841212273,
-0.049781713634729385,
0.014787966385483742,
0.009081498719751835,
-0.022037623450160027,
0.029020829126238823,
0.03690330311655998,
-0.0761602520942688,
0.011335221119225025,
-0.022626033052802086,
-0.03907931223511696,
0.09760946035385132,
-0.02053884230554104,
-0.047117214649915695,
-0.009470071643590927,
-0.0033583783078938723,
0.014721354469656944,
0.12913936376571655,
0.0349271334707737,
-0.026667188853025436,
-0.019728390499949455,
0.0031696429941803217,
0.022481705993413925,
0.015676133334636688,
-0.011379629373550415,
0.03350606933236122,
-0.07549412548542023,
0.015753846615552902,
-0.004213238134980202,
0.11128722131252289,
0.007344024255871773,
0.017152709886431694,
0.015665030106902122,
-0.0013967801351100206,
-0.01330028846859932,
0.03517138212919235,
-0.043076060712337494,
0.0032501330133527517,
-0.055288344621658325,
0.057952843606472015,
0.04256536439061165,
0.0819777399301529,
0.040678009390830994,
-0.0007674311054870486,
-0.011390730738639832,
0.05284588783979416,
0.026378534734249115,
0.03514917567372322,
-0.06758944690227509,
-0.01394420862197876,
0.013089348562061787,
-0.03663685545325279,
-0.003963441587984562,
-0.07167501002550125,
0.017963161692023277,
-0.02375844493508339,
0.015442989766597748,
-0.03181855380535126,
0.031707532703876495,
0.0206831693649292,
-0.042076870799064636,
0.007632677908986807,
0.0016139644430950284,
0.04154397174715996,
-0.006627940107136965,
-0.030597325414419174,
0.053645238280296326,
-0.030419692397117615,
-0.008576354943215847,
0.07247436046600342,
0.013888699002563953,
-0.025668002665042877,
0.09272454679012299,
-0.05484426021575928,
0.03119683638215065,
0.06652364879846573,
0.02422473207116127,
0.050136979669332504,
0.05857456102967262,
-0.04003408923745155,
-0.040789030492305756,
-0.005559365265071392,
-0.0218488872051239,
0.0006362877902574837,
0.012512041255831718,
-0.0452742725610733,
0.02349199540913105,
-0.052535030990839005,
-0.05475544556975365,
-0.04662872478365898,
0.031529899686574936,
0.053467605262994766,
-0.03743620589375496,
0.009253581054508686,
-0.005889651831239462,
-0.02422473207116127,
0.019706187769770622,
0.017730018123984337,
0.03512697294354439,
-0.008792845532298088,
0.039856456220149994,
-0.060706157237291336,
-0.04045597091317177,
0.02217084728181362,
0.006428102497011423,
-0.0794464647769928,
0.026378534734249115,
-0.048227421939373016,
0.006916594225913286,
-0.01610911451280117,
-0.03641481325030327,
0.03339504823088646,
-0.006961002480238676,
0.05182449519634247,
-0.03230704367160797,
0.11031024158000946,
-0.0033861335832625628,
-0.0011358812917023897,
0.048316240310668945,
0.04092225804924965,
0.022248562425374985,
-0.08255504816770554,
-0.005756427068263292,
0.008287700824439526,
-0.045829374343156815,
-0.014443802647292614,
0.01316706370562315,
0.02522392012178898,
-0.04782774671912193,
0.0599956251680851,
-0.014243965037167072,
0.0071941460482776165,
-0.03634820133447647,
-0.07544972002506256,
-0.01089668832719326,
0.026933638378977776,
-0.004332585725933313,
-0.0803346335887909,
0.055288344621658325,
-0.04076682776212692,
-0.02395828254520893,
0.0025548655539751053,
0.02504628524184227,
0.007749249693006277,
-0.0647917240858078,
0.0032168268226087093,
0.027089068666100502,
0.02477983571588993,
0.02469101920723915,
-0.03204059600830078,
0.0030114385299384594,
-0.011934733018279076,
-0.03230704367160797,
-0.02193770371377468,
0.021127253770828247,
-0.036015138030052185,
-0.011601670645177364,
-0.02032790333032608,
0.02460220269858837,
-0.014388292096555233,
0.013922004960477352,
0.014377189800143242,
-0.04791656509041786,
-0.015620622783899307,
0.020028147846460342,
0.011035464704036713,
-0.03825775906443596,
-0.03947898745536804,
0.01101326011121273,
0.00348605215549469,
-0.0042326669208705425,
-0.05462221801280975,
-0.03439423441886902,
0.05502189323306084,
0.043187081813812256,
-0.037125345319509506,
0.046007007360458374,
0.005356752313673496,
0.009642153978347778,
0.008648518472909927,
0.03090818226337433,
-0.026289718225598335,
-0.0349271334707737,
0.014488210901618004,
0.07260758429765701,
-0.0006293489714153111,
0.04076682776212692,
0.026311922818422318,
0.06443645805120468,
0.04025613144040108,
-0.014765762723982334,
-0.0014446577988564968,
-0.023070115596055984,
-0.019384225830435753,
-0.01845165155827999,
-0.020227985456585884,
0.012090162374079227,
0.031529899686574936,
0.013699963688850403,
0.019639573991298676,
0.02597886137664318,
-0.012811796739697456,
-0.03563766926527023,
-0.04036715254187584,
-0.045562922954559326,
-0.010319381020963192,
-0.00031710308394394815,
0.02808825485408306,
-0.05608769506216049,
-0.052979111671447754,
-0.06461408734321594,
-0.0388350673019886,
-0.029797974973917007,
-0.007455044891685247,
0.01389980036765337,
0.0064891641959548,
0.013922004960477352,
0.021782275289297104,
0.05741994455456734,
0.03677007928490639,
-0.0413663387298584,
-0.006244918331503868,
-0.014488210901618004,
0.013089348562061787,
0.05906305089592934,
-0.05946272611618042,
0.009553337469696999,
-0.025379348546266556,
-0.04118870571255684,
-0.006206061225384474,
-0.030597325414419174,
-0.06456968188285828,
0.018640387803316116,
-0.0133891049772501,
-0.05515512079000473,
0.09361271560192108,
-0.017208220437169075,
-0.007771453820168972,
0.015753846615552902,
-0.021049538627266884,
0.027177885174751282,
-0.018085284158587456,
-0.0033056435640901327,
0.011657181195914745,
-0.001307963510043919,
0.04016731679439545,
-0.022226357832551003,
0.043453529477119446,
0.05471103638410568,
0.014066332019865513,
-0.04227671027183533,
0.017763324081897736,
-0.011057669296860695,
-0.08659619837999344,
-0.02118276245892048,
-0.0015751072205603123,
0.06168314069509506,
0.008659619837999344,
-0.010286074131727219,
-0.03432762250304222,
-0.07007630914449692,
0.02270374819636345,
-0.01044150348752737,
-0.07109770178794861,
-0.021138355135917664,
-0.0186292864382267,
-0.06865524500608444,
0.014843476936221123,
0.011351874098181725,
0.01655319705605507,
0.017774425446987152,
-0.03570428118109703,
0.0052679358050227165,
0.01868479512631893,
-0.03614836186170578,
0.07189705222845078,
0.027044659480452538,
0.029487116262316704,
0.05093633010983467,
0.01898455247282982,
-0.03714755177497864,
0.0068999407812952995,
-0.026644986122846603,
-0.006844430696219206,
0.0021093946415930986,
0.015398581512272358,
-0.10045159608125687,
0.018762510269880295,
-0.012578653171658516,
0.008726232685148716,
0.019017858430743217,
-0.026844821870326996,
-0.014754660427570343,
-0.05688704177737236,
0.0897936001420021,
0.04898236319422722,
0.014354986138641834,
-0.09831999242305756,
-0.006211612373590469,
0.02009475976228714,
-0.08135601878166199,
-0.022626033052802086,
-0.041166502982378006,
0.038035716861486435,
0.010835627093911171,
0.02726670168340206,
-0.03503815457224846,
0.06563547998666763,
0.0462290495634079,
-0.024113710969686508,
0.049870532006025314,
0.008887212723493576,
0.009303540922701359,
-0.025534776970744133,
0.016630912199616432,
-0.02706686407327652,
-0.05608769506216049,
0.008626313880085945,
0.03430541977286339,
0.006228265352547169,
-0.00013721473806072026,
0.03761383891105652,
-0.021127253770828247,
0.004191034007817507,
-0.04098886996507645,
-0.0034916033037006855,
-0.012412122450768948,
0.007638229057192802,
0.06581311672925949,
-0.010058482177555561,
-0.023558607324957848,
0.026378534734249115,
-0.020672067999839783,
0.04662872478365898,
-0.017674507573246956,
0.03854641318321228,
-0.030530711635947227,
-0.030597325414419174,
0.029886791482567787,
0.007954638451337814,
-0.042631976306438446,
0.0006883287569507957,
0.028932012617588043,
-0.035371217876672745,
0.025734614580869675,
-0.00998631864786148,
0.01303383894264698,
-0.0035304606426507235,
-0.011168689467012882,
-0.0007313493406400084,
-0.045651741325855255,
0.024269141256809235,
0.02082749642431736,
0.0259566567838192,
0.0027102946769446135,
0.04636227339506149,
0.0014175964752212167,
-0.007960189133882523,
0.04525206610560417,
0.03494933992624283,
0.005120832938700914,
-0.008148924447596073,
0.014543721452355385,
-0.02449118159711361,
0.002425803802907467,
-0.021282682195305824,
-0.004782219883054495,
-0.02243729867041111,
-0.02340317890048027,
0.007199697196483612,
-0.017174912616610527,
0.04374218359589577,
0.02211533859372139,
-0.029242871329188347,
0.06545785069465637,
-0.04165499284863472,
-0.013788780197501183,
-0.06545785069465637,
-0.07784776389598846,
-0.008859457448124886,
0.011435139924287796,
0.004252095706760883,
-0.005617651157081127,
0.01028052344918251,
0.032706718891859055,
-0.03605954721570015,
-0.034194398671388626,
0.00663349125534296,
0.011912528425455093,
0.05195772275328636,
-0.03230704367160797,
-0.017152709886431694,
0.008637416176497936,
-0.041788216680288315,
-0.05750875920057297,
-0.0021343743428587914,
-0.04094446077942848,
-0.03661464899778366,
0.025534776970744133,
-0.014787966385483742,
0.04538528993725777,
0.022392889484763145,
0.007499453146010637,
0.04516325145959854,
0.024624407291412354,
0.01701948419213295,
0.0015695561887696385,
0.038213349878787994,
0.05488866940140724,
0.019517451524734497,
0.02431354857981205,
-0.05093633010983467,
-0.01848495937883854,
0.030131038278341293,
-0.008376517333090305,
-0.008248843252658844,
0.007960189133882523,
0.08957155793905258,
0.02097182348370552,
-0.07114210724830627,
0.04680635780096054,
-0.041344135999679565,
-0.026578372344374657,
0.04214348644018173,
-0.04167719930410385,
0.007960189133882523,
-0.01977279968559742,
-0.0924580991268158,
0.010596932843327522,
-0.040145110338926315,
-0.011956936679780483,
-0.060883790254592896,
-0.018285121768712997,
0.001522372360341251,
0.04653990641236305,
0.011196444742381573,
-0.016864055767655373,
-0.025490369647741318,
0.0263341274112463,
-0.023447586223483086,
0.047650113701820374,
0.045096635818481445,
-0.021082844585180283,
0.014621435664594173,
-0.010219462215900421,
0.07393983751535416,
0.01673083007335663,
-0.008515292778611183,
0.0031890717800706625,
0.06989867985248566,
-0.0107357082888484,
-0.02082749642431736,
-0.020172474905848503,
0.02726670168340206,
0.03230704367160797,
-0.027732988819479942,
-0.006305980030447245,
0.014721354469656944,
-0.06723418086767197,
0.009364602155983448,
-0.00127049395814538,
0.005248507019132376,
0.0324624739587307,
0.009453418664634228,
-0.011523956432938576,
-0.03432762250304222,
-0.004854383412748575,
0.026400739327073097,
0.031041407957673073,
-0.030530711635947227,
0.01757458783686161,
0.03208500146865845,
-0.0010137584758922458,
0.02340317890048027,
-0.008981580846011639,
0.04025613144040108,
0.0075827185064554214,
0.0323292501270771,
0.018285121768712997,
0.0025104572996497154,
0.014288373291492462,
0.0020344555377960205,
-0.004104992840439081,
-0.007849168963730335,
-0.011968038976192474,
-0.014610333368182182,
0.04791656509041786,
-0.008815049193799496,
-0.02018357627093792,
0.0012364938156679273,
-0.006983206607401371
] |
20,908 | precession.precession | rhs_orbav |
Right-hand side of the systems of ODEs describing orbit-averaged inspiral. The equations are reported in Sec 4A of Gerosa and Kesden, arXiv:1605.01067. The format is d[allvars]/dv=RHS where allvars=[Lhx,Lhy,Lhz,S1hx,S1hy,S1hz,S2hx,S2hy,S2hz,t], h indicates unit vectors, v is the orbital velocity, and t is time.
This is an internal function used by the ODE integrator and is not array-compatible.
Parameters
----------
allvars: array
Packed ODE input variables.
v: float
Newtonian orbital velocity.
q: float
Mass ratio: 0<=q<=1.
m1: float
Mass of the primary (heavier) black hole.
m2: float
Mass of the secondary (lighter) black hole.
eta: float
Symmetric mass ratio 0<=eta<=1/4.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
S1: float
Magnitude of the primary spin.
S2: float
Magnitude of the secondary spin.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
Returns
-------
RHS: float
Right-hand side.
Examples
--------
``RHS = precession.rhs_orbav(allvars,v,q,m1,m2,eta,chi1,chi2,S1,S2,PNorderpre=[0,0.5],PNorderrad=[0,1,1.5,2,2.5,3,3.5])``
| def rhs_orbav(allvars, v, q, m1, m2, eta, chi1, chi2, S1, S2, PNorderpre=[0,0.5], PNorderrad=[0,1,1.5,2,2.5,3,3.5]):
"""
Right-hand side of the systems of ODEs describing orbit-averaged inspiral. The equations are reported in Sec 4A of Gerosa and Kesden, arXiv:1605.01067. The format is d[allvars]/dv=RHS where allvars=[Lhx,Lhy,Lhz,S1hx,S1hy,S1hz,S2hx,S2hy,S2hz,t], h indicates unit vectors, v is the orbital velocity, and t is time.
This is an internal function used by the ODE integrator and is not array-compatible.
Parameters
----------
allvars: array
Packed ODE input variables.
v: float
Newtonian orbital velocity.
q: float
Mass ratio: 0<=q<=1.
m1: float
Mass of the primary (heavier) black hole.
m2: float
Mass of the secondary (lighter) black hole.
eta: float
Symmetric mass ratio 0<=eta<=1/4.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
S1: float
Magnitude of the primary spin.
S2: float
Magnitude of the secondary spin.
PNorderpre: array (default: [0,0.5])
PN orders considered in the spin-precession equations.
PNorderrad: array (default: [0,0.5])
PN orders considered in the radiation-reaction equation.
Returns
-------
RHS: float
Right-hand side.
Examples
--------
``RHS = precession.rhs_orbav(allvars,v,q,m1,m2,eta,chi1,chi2,S1,S2,PNorderpre=[0,0.5],PNorderrad=[0,1,1.5,2,2.5,3,3.5])``
"""
# Unpack inputs
Lh = allvars[0:3]
S1h = allvars[3:6]
S2h = allvars[6:9]
t = allvars[9]
# Angles
ct1 = np.dot(S1h, Lh)
ct2 = np.dot(S2h, Lh)
ct12 = np.dot(S1h, S2h)
# Spin precession for S1
Omega1 = (0 in PNorderpre) * eta*v**5*(2+3*q/2)*Lh + (0.5 in PNorderpre) * v**6*(S2*S2h-3*S2*ct2*Lh-3*q*S1*ct1*Lh)/2
dS1hdt = np.cross(Omega1, S1h)
# Spin precession for S2
Omega2 = (0 in PNorderpre) * eta*v**5*(2+3/(2*q))*Lh + (0.5 in PNorderpre) * v**6*(S1*S1h-3*S1*ct1*Lh-3*S2*ct2*Lh/q)/2
dS2hdt = np.cross(Omega2, S2h)
# Conservation of angular momentum
dLhdt = -v*(S1*dS1hdt+S2*dS2hdt)/eta
dvdt = (32*eta*v**9/5) * (
+ (0 in PNorderrad) * 1
- (1 in PNorderrad)*v**2
* (743+924*eta)/336
+ (1.5 in PNorderrad) * v**3
* (4*np.pi
- chi1*ct1*(113*m1**2/12 + 25*eta/4)
- chi2*ct2*(113*m2**2/12 + 25*eta/4))
+ (2 in PNorderrad) * v**4
* (34103/18144 + 13661*eta/2016 + 59*eta**2/18
+ eta*chi1*chi2 * (721*ct1*ct2 - 247*ct12)/48
+ ((m1*chi1)**2 * (719*ct1**2-233))/96
+ ((m2*chi2)**2 * (719*ct2**2-233))/96)
- (2.5 in PNorderrad) * v**5
* np.pi*(4159+15876*eta)/672
+ (3 in PNorderrad)*v**6
* (16447322263/139708800 + 16*np.pi**2/3
- 1712*(0.5772156649+np.log(4*v))/105
+ (451*np.pi**2/48 - 56198689/217728)*eta
+ 541*eta**2/896 - 5605*eta**3/2592)
+ (3.5 in PNorderrad) * v**7
* np.pi*(-4415/4032 + 358675*eta/6048
+ 91495*eta**2/1512))
# Integrate in v, not in time
dtdv = 1./dvdt
dLhdv = dLhdt*dtdv
dS1hdv = dS1hdt*dtdv
dS2hdv = dS2hdt*dtdv
# Pack outputs
return np.concatenate([dLhdv, dS1hdv, dS2hdv, [dtdv]])
| (allvars, v, q, m1, m2, eta, chi1, chi2, S1, S2, PNorderpre=[0, 0.5], PNorderrad=[0, 1, 1.5, 2, 2.5, 3, 3.5]) | [
-0.00632634200155735,
0.0011741691268980503,
-0.06494370102882385,
-0.015213587321341038,
0.022329457104206085,
-0.02251165546476841,
-0.05708891153335571,
-0.06445783376693726,
-0.026965400204062462,
0.03791756555438042,
-0.0009995620930567384,
0.014120395295321941,
0.0034212858881801367,
0.02822054736316204,
-0.0730414167046547,
0.056724514812231064,
0.05461910739541054,
0.013432089239358902,
-0.03645997494459152,
-0.006007494404911995,
-0.034233104437589645,
-0.04380865395069122,
-0.04303937032818794,
0.05437617748975754,
-0.005038298666477203,
0.01195425633341074,
0.02998180128633976,
-0.03354479745030403,
-0.08705046772956848,
-0.030771328136324883,
0.03190501034259796,
0.023969244211912155,
-0.018685484305024147,
0.00045359873911365867,
0.03235038369894028,
-0.015527374111115932,
0.050529759377241135,
0.01592213846743107,
-0.08834610134363174,
0.07219115644693375,
0.034233104437589645,
-0.03882855921983719,
0.0508536696434021,
-0.034354567527770996,
-0.05870845541357994,
-0.025204146280884743,
-0.04095420986413956,
0.048788752406835556,
0.061421189457178116,
0.03937515243887901,
0.05449764057993889,
-0.08154401928186417,
0.025001704692840576,
-0.05478106066584587,
-0.0253053680062294,
0.09571502357721329,
0.03046766296029091,
0.06542956084012985,
0.04287741705775261,
-0.04923412576317787,
0.013351112604141235,
-0.003527568420395255,
0.02708686701953411,
0.05113708972930908,
-0.00013910044799558818,
0.030305709689855576,
0.01163034699857235,
-0.018442552536725998,
0.008173634298145771,
0.036642175167798996,
-0.013249890878796577,
-0.00872023031115532,
0.004800428636372089,
-0.052311256527900696,
0.02641880512237549,
0.017541682347655296,
-0.052432723343372345,
-0.05364738032221794,
-0.010031048208475113,
-0.061421189457178116,
-0.026520026847720146,
-0.05704842135310173,
0.0042943209409713745,
-0.018503285944461823,
-0.0023407465778291225,
0.04587357118725777,
-0.002813956933096051,
-0.006402258295565844,
-0.006893182173371315,
-0.03160134330391884,
-0.010365079157054424,
-0.03208720684051514,
-0.02330118417739868,
0.04046834632754326,
-0.020831380039453506,
-0.011984622105956078,
0.009788116440176964,
-0.11782179772853851,
-0.01447467040270567,
-0.035609714686870575,
-0.004005840048193932,
-0.0115696145221591,
-0.05389031395316124,
0.008102779276669025,
0.029556671157479286,
0.017895957455039024,
-0.06478174030780792,
0.04259399697184563,
0.04583308473229408,
-0.06793985515832901,
-0.050651226192712784,
0.0713408961892128,
-0.0460355281829834,
-0.025244636461138725,
-0.07462047040462494,
-0.015335053205490112,
-0.012379386462271214,
0.050894156098365784,
-0.034091394394636154,
0.021317241713404655,
0.05753428488969803,
0.006118838209658861,
-0.008689863607287407,
0.029576914384961128,
0.0321681834757328,
-0.04591406136751175,
0.009150421246886253,
0.007950946688652039,
-0.04550917446613312,
-0.046237967908382416,
-0.010759842582046986,
0.046359434723854065,
0.039395399391651154,
0.014434182085096836,
-0.020021608099341393,
-0.0032922285608947277,
-0.01466699130833149,
-0.051784906536340714,
-0.013644654303789139,
-0.027916882187128067,
0.006053043995052576,
-0.0232606939971447,
-0.02516365796327591,
-0.06251437962055206,
-0.0050231157802045345,
0.05376884713768959,
0.07777857780456543,
-0.048140931874513626,
-0.010117086581885815,
0.011832790449261665,
0.0029657892882823944,
0.030386686325073242,
-0.009772933088243008,
-0.006604701280593872,
0.059153828769922256,
-0.07757613807916641,
0.057736728340387344,
-0.04830288887023926,
-0.028645677492022514,
0.006979220546782017,
-0.01895878277719021,
-0.015314809046685696,
-0.009469268843531609,
0.025912698358297348,
0.010071536526083946,
0.000567789189517498,
0.008143267594277859,
0.0009862767765298486,
-0.003600953845307231,
0.02151968516409397,
0.011286194436252117,
-0.018118644133210182,
-0.08672656118869781,
0.006164387799799442,
-0.030771328136324883,
-0.005719013512134552,
-0.03672315180301666,
-0.032208673655986786,
-0.001291839056648314,
-0.04567112773656845,
-0.019323179498314857,
-0.009621101431548595,
-0.02506243623793125,
-0.013502944260835648,
-0.014960533939301968,
0.10535131394863129,
0.08445920050144196,
-0.032836247235536575,
0.02986033447086811,
-0.018503285944461823,
-0.022795075550675392,
-0.009327558800578117,
0.01570957340300083,
0.037148281931877136,
0.014383571222424507,
-0.013907830230891705,
0.06551054120063782,
0.003965351264923811,
0.00014716653095092624,
-0.026034163311123848,
0.03684461489319801,
-0.022450923919677734,
-0.035366784781217575,
-0.018138887360692024,
0.015021266415715218,
-0.00040583484224043787,
-0.010891431011259556,
-0.01819962076842785,
0.06542956084012985,
0.0344557911157608,
0.016509221866726875,
0.007252518553286791,
-0.005663341376930475,
-0.0086139477789402,
-0.020213928073644638,
0.04186520352959633,
0.033443573862314224,
-0.007191785611212254,
0.04227008670568466,
0.027916882187128067,
0.029921067878603935,
-0.014930167235434055,
-0.026398560032248497,
0.014373449608683586,
-0.017258262261748314,
0.016772398725152016,
-0.002980972407385707,
0.06834474205970764,
-0.008310282602906227,
-0.02870641089975834,
0.012531218118965626,
0.02330118417739868,
-0.04077200964093208,
-0.008512726053595543,
-0.013695265166461468,
0.05781770497560501,
-0.02894934080541134,
-0.010446055792272091,
-0.06615835428237915,
0.0026924912817776203,
-0.010405567474663258,
-0.04696676507592201,
-0.00993994902819395,
0.0501248724758625,
-0.02745126374065876,
-0.015446396544575691,
0.019292812794446945,
0.02481950633227825,
-0.018321087583899498,
0.0021914448589086533,
-0.012085843831300735,
-0.05757477506995201,
0.005855662282556295,
0.038403429090976715,
-0.032330140471458435,
-0.02388826757669449,
0.06036848574876785,
0.022977273911237717,
0.05069171264767647,
-0.06300024688243866,
0.02443486452102661,
-0.06526760756969452,
-0.03374724090099335,
0.0022951969876885414,
-0.010780086740851402,
0.02275458723306656,
0.023706069216132164,
-0.034476034343242645,
-0.003117621410638094,
-0.005526692606508732,
0.012359142303466797,
0.04328230395913124,
-0.09344766288995743,
-0.003595892805606127,
0.014626502990722656,
0.0515824630856514,
0.01971794292330742,
0.004666309803724289,
-0.013745876029133797,
0.024475352838635445,
0.0061593265272676945,
0.008376076817512512,
0.01137729361653328,
0.023321427404880524,
-0.038788069039583206,
-0.002218015491962433,
-0.019778676331043243,
-0.06567249447107315,
0.07607805728912354,
-0.021296998485922813,
0.019140981137752533,
0.014211495406925678,
0.0619475431740284,
0.017895957455039024,
0.12721514701843262,
0.05113708972930908,
-0.04113640636205673,
-0.006382014136761427,
0.018290720880031586,
-0.04077200964093208,
-0.004102000035345554,
0.01353331096470356,
0.07862883806228638,
-0.058141615241765976,
-0.029657892882823944,
-0.008416565135121346,
0.07247457653284073,
0.0017523968126624823,
0.05336396023631096,
-0.06494370102882385,
0.0012418609112501144,
0.004165263846516609,
0.0041551413014531136,
0.02569000981748104,
0.028362257406115532,
-0.020051974803209305,
-0.02477901615202427,
-0.03652070835232735,
0.06919500231742859,
0.013270135037600994,
-0.009378169663250446,
0.003942576237022877,
0.0674944818019867,
-0.03803902864456177,
0.030548641458153725,
-0.03846415877342224,
-0.013543433509767056,
-0.015405908226966858,
0.028038349002599716,
0.002225607167929411,
-0.014950411394238472,
0.009317436255514622,
-0.014039418660104275,
0.05299956351518631,
0.0069184876047074795,
-0.058627478778362274,
0.022693853825330734,
-0.02911129593849182,
0.04312034696340561,
0.010375200770795345,
0.0672515481710434,
0.015537496656179428,
-0.02291654236614704,
0.042715463787317276,
-0.01959647797048092,
-0.03581215813755989,
0.07462047040462494,
-0.035974111407995224,
-0.013988807797431946,
0.04283692687749863,
-0.033969927579164505,
0.05806063860654831,
0.019424401223659515,
0.07364874333143234,
-0.009297192096710205,
0.043201323598623276,
-0.00842162687331438,
-0.019535744562745094,
0.012966470792889595,
-0.04769555851817131,
-0.03172281011939049,
0.05652207136154175,
-0.027916882187128067,
0.029192272573709488,
0.025467323139309883,
-0.0677374079823494,
-0.011043262667953968,
0.001184923923574388,
0.015507129952311516,
-0.03702681511640549,
-0.024212175980210304,
-0.026398560032248497,
0.03812000900506973,
-0.015203465707600117,
-0.009180787950754166,
0.03793780878186226,
0.010527033358812332,
-0.02846347913146019,
0.024738527834415436,
-0.08364942669868469,
0.04198666661977768,
0.0006326342117972672,
-0.04870777204632759,
0.015446396544575691,
0.01707606203854084,
0.009514818899333477,
0.022673610597848892,
0.02730955369770527,
0.023847779259085655,
0.017238017171621323,
-0.0033150033559650183,
0.003702175337821245,
0.06393148005008698,
-0.02376680262386799,
0.010456178337335587,
0.05097513273358345,
0.011832790449261665,
0.013907830230891705,
-0.050934646278619766,
-0.02113504335284233,
0.009904521517455578,
-0.03439505770802498,
0.008619008585810661,
0.0076776486821472645,
-0.008603825233876705,
-0.12842980027198792,
0.07405363023281097,
-0.00436011515557766,
-0.022734344005584717,
0.009393353015184402,
-0.039030998945236206,
0.03963832929730415,
0.013766120187938213,
-0.007586549501866102,
-0.056238651275634766,
0.04316083714365959,
-0.009848849847912788,
-0.03228965029120445,
0.02123626507818699,
0.029941312968730927,
0.027248820289969444,
-0.013654776848852634,
0.02190432697534561,
0.05235174670815468,
0.03441530093550682,
0.00892267283052206,
0.0056937080807983875,
0.034233104437589645,
-0.0256697665899992,
-0.01629665680229664,
0.036358755081892014,
0.049517545849084854,
-0.051056113094091415,
-0.045468688011169434,
-0.0004959852085448802,
0.02402997761964798,
0.009044138714671135,
-0.031540609896183014,
0.06271682679653168,
0.048262398689985275,
0.018938537687063217,
0.06721106171607971,
-0.021357731893658638,
-0.01171132456511259,
-0.008573458530008793,
-0.005612730979919434,
-0.002310380106791854,
-0.020153194665908813,
-0.04757409170269966,
-0.048626795411109924,
0.0154868857935071,
0.051056113094091415,
0.01962684467434883,
0.0023862961679697037,
0.003702175337821245,
-0.008512726053595543,
0.015507129952311516,
0.004248771350830793,
-0.07125991582870483,
-0.09028955549001694,
0.014029296115040779,
0.006437685806304216,
0.02743101865053177,
0.024333642795681953,
0.013179035857319832,
0.04631894826889038,
0.019505377858877182,
-0.028119325637817383,
-0.03263380378484726,
-0.0018308433936908841,
-0.0005412185564637184,
-0.04631894826889038,
-0.002105406718328595,
0.018786706030368805,
0.03670290485024452,
0.00022094750602263957,
-0.012187065556645393,
-0.012612195685505867,
-0.007576427422463894,
-0.04356572404503822,
-0.06445783376693726,
-0.024090711027383804,
-0.03645997494459152,
0.04429451748728752,
0.03162159025669098,
0.04095420986413956,
-0.0007496715406887233,
0.016782520338892937,
0.027370287105441093,
-0.0643363669514656,
-0.02870641089975834,
0.005992311052978039,
0.004051389638334513,
0.0453067310154438,
-0.02342264913022518,
0.03773536533117294,
0.0009641345241107047,
-0.01847291924059391,
0.036885105073451996,
-0.0072930073365569115,
0.05202783644199371,
0.010972407646477222,
-0.06093532592058182,
-0.01999124139547348,
0.00041817122837528586,
-0.03921319916844368,
-0.059639692306518555,
-0.040043216198682785,
-0.05733184143900871,
0.02239019051194191,
-0.04660236835479736,
-0.041581783443689346,
0.047250185161828995,
0.0013854688731953502,
0.0333828404545784,
0.07960056513547897,
-0.04202715680003166,
0.03706730529665947,
-0.027795417234301567,
-0.010466300882399082,
-0.018908170983195305,
-0.0356704480946064,
-0.016984963789582253,
0.008598764427006245,
-0.014980778098106384,
0.05550985783338547,
-0.07802151143550873,
-0.01924220286309719,
0.03075108304619789,
-0.030022289603948593,
-0.05781770497560501,
-0.03368650749325752,
-0.02354411408305168,
0.05316151678562164,
-0.02174237184226513,
0.014899801462888718,
0.012672928161919117,
-0.04356572404503822,
-0.017480948939919472,
-0.004276607185602188,
-0.015648839995265007,
0.01322964671999216,
0.03629802167415619,
-0.042067643254995346,
-0.02239019051194191,
0.038524892181158066,
0.01822998747229576,
0.006842571776360273,
0.010385323315858841,
0.019140981137752533,
0.002988564083352685,
-0.025366101413965225,
0.07401314377784729,
0.05384982377290726,
0.02137797512114048,
-0.0026570637710392475,
-0.002048469614237547,
-0.045995038002729416,
-0.027228577062487602,
-0.01933330111205578,
0.013847097754478455,
-0.0022838094737380743,
-0.015841159969568253,
-0.06336463987827301,
-0.04393012076616287,
0.05449764057993889,
0.07696881145238876,
-0.025851964950561523,
0.04186520352959633,
0.020912356674671173,
-0.01759229227900505,
-0.02692491188645363,
-0.0005851866444572806,
-0.048140931874513626,
-0.012409753166139126,
-0.005405226722359657,
0.021701883524656296,
-0.04405158385634422,
-0.04139958322048187,
-0.02629733830690384,
0.04797897860407829,
-0.04425402730703354,
0.02494097128510475,
-0.06057092919945717,
0.04733116179704666,
0.02101357840001583,
0.004575210623443127,
0.05304005369544029,
0.08215134590864182,
0.015618473291397095,
-0.04162226989865303,
0.008467175997793674,
-0.024374131113290787,
-0.03202647343277931,
-0.026601003482937813,
0.014839068055152893,
-0.01505163311958313,
0.026135385036468506,
0.032714780420064926,
0.006022677756845951,
-0.034597501158714294,
-0.019809043034911156,
0.0004725777544081211,
0.0023559299297630787,
-0.05194685980677605,
-0.020973090082406998,
0.02023417316377163,
0.008102779276669025,
0.034597501158714294,
-0.017055818811058998,
0.08567385375499725,
-0.0009540123865008354,
0.001601829775609076,
-0.04895070567727089,
0.011529126204550266,
0.025730498135089874,
-0.03617655485868454,
0.043079860508441925,
0.04563064128160477,
0.03581215813755989,
-0.03228965029120445,
0.028524210676550865,
-0.02330118417739868,
0.00797625258564949,
-0.03998248279094696,
-0.017268383875489235,
0.07417509704828262,
-0.09004662185907364,
0.023969244211912155,
-0.02202579192817211,
0.037512678653001785,
-0.0024609470274299383,
0.014656869694590569,
0.00853803101927042,
-0.03949661925435066,
0.016023360192775726,
0.030832061544060707,
0.0035807096865028143,
-0.0031783543527126312,
0.05777721852064133,
-0.01896890439093113,
-0.01417100615799427,
-0.01303732581436634,
0.04109591990709305,
0.04235106334090233,
0.019778676331043243,
-0.054578617215156555,
0.000557350751478225,
0.05644109472632408,
0.055104970932006836,
-0.009388292208313942,
0.02658075839281082,
-0.052189793437719345,
-0.00294301426038146,
-0.07340580970048904,
-0.009965253993868828,
0.056481581181287766,
0.008694924414157867,
0.01480870135128498,
0.012288287281990051,
0.008968222886323929,
-0.019960874691605568,
-0.02986033447086811,
-0.016924230381846428,
0.009585673920810223,
-0.031439390033483505,
0.03961808606982231,
0.025264879688620567,
-0.01435320544987917,
0.03603484481573105,
0.022815320640802383,
-0.06312171369791031,
0.026135385036468506,
0.03943588584661484,
0.023969244211912155,
-0.013351112604141235,
0.026762958616018295,
0.019029637798666954,
0.030811816453933716,
-0.009423719719052315,
0.025001704692840576,
0.027370287105441093,
0.040792252868413925,
-0.08036985248327255,
0.0024887830950319767,
-0.05401177704334259,
0.015203465707600117,
0.05073220282793045,
0.003084724536165595,
-0.0800054520368576,
-0.024738527834415436,
0.014332960359752178,
-0.0052230278961360455,
-0.0005244537605904043,
0.059761159121990204,
-0.022714098915457726,
-0.0034516523592174053,
0.01822998747229576,
-0.018938537687063217,
-0.002973380731418729,
0.022491412237286568,
-0.07862883806228638,
0.004565088544040918,
0.01417100615799427,
-0.035245317965745926,
0.049396079033613205,
0.01860450766980648,
-0.026520026847720146,
-0.04360621050000191,
-0.038788069039583206,
-0.01049666665494442,
0.04034687951207161,
0.022349702194333076,
-0.033443573862314224,
0.03228965029120445,
0.011306438595056534,
-0.004398073069751263,
0.024880237877368927,
0.008254610933363438,
0.012764028273522854,
-0.05550985783338547,
-0.0024571511894464493,
0.041318606585264206,
0.014181128703057766,
0.031034503132104874,
-0.0005734828882850707,
0.018908170983195305,
0.014717602171003819,
-0.0035579348914325237,
0.01884743943810463,
0.013108180835843086,
0.049517545849084854,
0.02149944193661213,
-0.049517545849084854,
-0.03658144176006317,
-0.030042532831430435,
0.002447029110044241,
-0.007611854933202267,
-0.02846347913146019,
0.058870408684015274,
0.0010204389691352844,
-0.0026975523214787245,
-0.024718284606933594,
-0.05223027989268303,
-0.008234366774559021,
0.0251839030534029,
-0.02178286202251911,
-0.0005421675159595907,
0.01886768266558647,
-0.01999124139547348,
0.04010394960641861,
0.008406443521380424,
0.006690739654004574,
0.00724745774641633,
0.010901552625000477,
-0.014960533939301968,
0.04773604869842529,
-0.016357390210032463,
-0.03012351132929325,
-0.0564006045460701,
-0.03842367231845856,
-0.009818483144044876,
0.017298750579357147,
0.10842844098806381,
-0.009479391388595104,
0.023361915722489357,
-0.06069239601492882,
-0.01314866915345192
] |
20,909 | precession.precession | rhs_precav |
Right-hand side of the dkappa/du ODE describing precession-averaged inspiral.
This is an internal function used by the ODE integrator and is not array-compatible.
Parameters
----------
kappa: float
Asymptotic angular momentum.
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
RHS: float
Right-hand side.
Examples
--------
``RHS = precession.rhs_precav(kappa,u,chieff,q,chi1,chi2)``
| def rhs_precav(kappa, u, chieff, q, chi1, chi2):
"""
Right-hand side of the dkappa/du ODE describing precession-averaged inspiral.
This is an internal function used by the ODE integrator and is not array-compatible.
Parameters
----------
kappa: float
Asymptotic angular momentum.
u: float
Compactified separation 1/(2L).
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
RHS: float
Right-hand side.
Examples
--------
``RHS = precession.rhs_precav(kappa,u,chieff,q,chi1,chi2)``
"""
if u <= 0:
# In this case use analytic result
if q==1: # TODO: think about this again
Ssav = (chi1**2+q**4 * chi2**2)/(1 + q)**4 #- ( 2*q*(kappa*(1+q) -chieff)*(kappa*(1+q) -q*chieff)/((-1 + q)**2 *(1 + q)**2))
else:
Ssav = (chi1**2+q**4 * chi2**2)/(1 + q)**4 - ( 2*q*(kappa*(1+q) -chieff)*(kappa*(1+q) -q*chieff)/((1-q)**2 *(1 + q)**2))
else:
# I don't use deltachiroots here because I want to keep complex numbers. This is needed to sanitize the output in some tricky cases
coeffs = deltachicubic_coefficients(kappa, u, chieff, q, chi1, chi2)
coeffsr = deltachicubic_rescaled_coefficients(kappa, u, chieff, q, chi1, chi2, precomputedcoefficients=coeffs)
deltachiminus, deltachiplus, _ = np.squeeze(np.sort_complex(roots_vec(coeffs.T)))
_, _, deltachi3 = np.squeeze(np.sort_complex(roots_vec(coeffsr.T)))
# deltachiminus, deltachiplus are complex. This can happen if the binary is very close to a spin-orbit resonance
if np.iscomplex(deltachiminus) and np.iscomplex(deltachiplus):
warnings.warn("Sanitizing RHS output; too close to resonance. [rhs_precav].", Warning)
deltachiav = np.mean(np.real([deltachiminus, deltachiplus]))
# Normal case
else:
deltachiminus, deltachiplus, deltachi3 = np.real([deltachiminus, deltachiplus, deltachi3])
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus, deltachiplus, deltachi3]))
deltachiav = inverseaffine( deltachitildeav(m), deltachiminus, deltachiplus)
Ssav = (2*kappa - chieff - (1-q)/(1+q)*deltachiav)/(2*u)
return float(Ssav)
| (kappa, u, chieff, q, chi1, chi2) | [
-0.01198054663836956,
0.002274691592901945,
-0.034742578864097595,
0.031356990337371826,
0.03798709809780121,
-0.016474511474370956,
-0.015255296602845192,
-0.07661907374858856,
0.008786406368017197,
0.04977620020508766,
0.05308117717504501,
-0.018378904089331627,
0.02396109327673912,
0.01221229787915945,
-0.0626736730337143,
0.06432616710662842,
0.023618504405021667,
-0.009249908849596977,
-0.019870175048708916,
0.020343754440546036,
-0.008831748738884926,
-0.05328270047903061,
-0.022812411189079285,
0.052516911178827286,
-0.04324685037136078,
0.011164378374814987,
0.029805263504385948,
-0.03204216808080673,
-0.06436646729707718,
-0.022852716967463493,
0.010489275678992271,
0.05142868682742119,
-0.004385645966976881,
-0.011789100244641304,
0.04929254204034805,
0.0021311065647751093,
0.04131222888827324,
0.017109308391809464,
-0.05408879369497299,
0.03202201798558235,
-0.04743853211402893,
0.010630342178046703,
0.05215417221188545,
-0.0649307370185852,
-0.043851420283317566,
0.005289980676025152,
-0.018620731309056282,
0.05098533630371094,
0.04465751349925995,
0.017482126131653786,
0.04897010698914528,
-0.05711163952946663,
0.00934059452265501,
-0.0288177989423275,
-0.010358286090195179,
0.05090472847223282,
0.023880483582615852,
0.037181008607149124,
0.0013489450793713331,
-0.09245878458023071,
0.02011200226843357,
-0.02007169835269451,
0.07146008312702179,
0.05469336360692978,
0.015396363101899624,
0.0259561724960804,
0.014811946079134941,
-0.018147151917219162,
0.012151841074228287,
0.049131326377391815,
-0.045423299074172974,
-0.024827642366290092,
-0.026721959933638573,
-0.043327461928129196,
0.05034046247601509,
-0.006322786211967468,
0.0012229931307956576,
-0.0626736730337143,
-0.0245253574103117,
-0.038571517914533615,
-0.013965548947453499,
-0.033755116164684296,
0.00024182768538594246,
-0.016152074560523033,
0.017441822215914726,
0.038148317486047745,
0.013240066356956959,
-0.05215417221188545,
0.0026197999250143766,
0.026762263849377632,
-0.02629876136779785,
-0.024082006886601448,
-0.005949968937784433,
0.057716209441423416,
0.024686576798558235,
0.034782882779836655,
-0.01200069859623909,
-0.0902017280459404,
0.01731083169579506,
-0.04590695723891258,
0.04989711195230484,
0.09221696108579636,
0.03069196455180645,
0.0014761565253138542,
0.05316178500652313,
-0.013250142335891724,
-0.026943635195493698,
0.03869242966175079,
0.067308709025383,
-0.06509195268154144,
-0.05993296205997467,
0.054451532661914825,
-0.05957021936774254,
-0.02438429184257984,
-0.1051950454711914,
-0.034359682351350784,
-0.061585452407598495,
0.03611293435096741,
0.022268299013376236,
0.02118007466197014,
-0.006609956733882427,
0.0025606025010347366,
-0.010862093418836594,
0.011567424051463604,
-0.0013716163812205195,
-0.05610402300953865,
0.038087859749794006,
0.04856706038117409,
-0.05715194344520569,
-0.006101110950112343,
0.000055261403758777305,
0.020031394436955452,
0.017099233344197273,
-0.01824791356921196,
-0.01226267870515585,
0.011557348072528839,
0.03210262581706047,
-0.006257291417568922,
0.028858104720711708,
-0.0017671054229140282,
0.02440444380044937,
0.03754374757409096,
-0.04449629411101341,
0.026580892503261566,
-0.007123840507119894,
0.02490825206041336,
0.05884473770856857,
0.01389501616358757,
-0.01226267870515585,
0.04832523316144943,
-0.027608660981059074,
0.05275874212384224,
0.01294785737991333,
-0.005904626101255417,
0.0831887274980545,
-0.09745655953884125,
0.07004941999912262,
-0.0288177989423275,
-0.019295834004878998,
-0.030933791771531105,
-0.04751913994550705,
-0.030833030119538307,
0.01818745769560337,
0.027125006541609764,
0.01781463995575905,
-0.0024485052563250065,
0.022187691181898117,
0.03468212112784386,
0.03169957920908928,
0.0728304386138916,
0.017875095829367638,
-0.04215862601995468,
-0.10043910145759583,
0.016182303428649902,
-0.049171630293130875,
-0.005844169296324253,
-0.004378088749945164,
-0.061545148491859436,
0.002428353065624833,
-0.04941345751285553,
-0.0038566477596759796,
-0.03923654183745384,
-0.020978551357984543,
-0.034702274948358536,
0.027548203244805336,
0.06190788745880127,
0.05074350908398628,
-0.009028233587741852,
0.0034863492473959923,
-0.03127638250589371,
-0.018993549048900604,
-0.01629314012825489,
0.00020325490913819522,
0.051468994468450546,
0.030450137332081795,
-0.025190385058522224,
0.08609065413475037,
0.02583525888621807,
0.00719437375664711,
-0.03065165877342224,
-0.009930049069225788,
-0.006327824667096138,
-0.011124073527753353,
-0.01766349747776985,
0.01174879539757967,
0.01322998944669962,
-0.039135780185461044,
0.008645339868962765,
0.028858104720711708,
0.04784157872200012,
0.014822022058069706,
0.005315171089023352,
-0.004237022716552019,
-0.05715194344520569,
-0.020454591140151024,
0.049091022461652756,
0.046310003846883774,
-0.007264907006174326,
0.023759569972753525,
0.03260643407702446,
0.010197067633271217,
-0.020303450524806976,
0.004325189162045717,
0.013723721727728844,
0.022389212623238564,
-0.025996476411819458,
-0.01718991808593273,
0.07210495322942734,
0.0025996477343142033,
-0.04651152715086937,
-0.012041003443300724,
0.011436434462666512,
-0.07879552245140076,
-0.06081966310739517,
0.0162830650806427,
0.034782882779836655,
-0.038571517914533615,
0.03323115408420563,
-0.02309454418718815,
0.01867111213505268,
-0.02730637602508068,
-0.019477205350995064,
-0.001690274802967906,
0.0642455592751503,
-0.05126747116446495,
-0.026056934148073196,
0.04417385905981064,
0.026721959933638573,
0.011658109724521637,
0.030309069901704788,
0.036657046526670456,
-0.09350670874118805,
-0.018137076869606972,
0.024263378232717514,
-0.0005674134008586407,
0.0060255397111177444,
0.0317801870405674,
0.05094503238797188,
0.05900595709681511,
-0.031840644776821136,
0.0010000582551583648,
-0.024364139884710312,
0.016051312908530235,
0.013622960075736046,
-0.06742961704730988,
-0.007970237173140049,
-0.010660571046173573,
-0.024142464622855186,
0.006383243482559919,
0.008957700803875923,
0.006927355658262968,
0.04876858368515968,
-0.06980758905410767,
-0.013965548947453499,
-0.030349375680088997,
0.06521286815404892,
-0.0008596218540333211,
0.021421901881694794,
-0.033352069556713104,
0.04953437298536301,
-0.00756215350702405,
-0.04663243889808655,
0.012595192529261112,
0.014519737102091312,
-0.027689270675182343,
0.0054663135670125484,
0.0011694636195898056,
-0.023678960278630257,
0.10293798893690109,
-0.009794021025300026,
0.022288452833890915,
0.030470289289951324,
0.012645572423934937,
-0.011859633028507233,
0.13671325147151947,
0.04933284968137741,
-0.05791773274540901,
-0.04032476618885994,
0.06033600866794586,
0.009239832870662212,
-0.013713644817471504,
-0.000969829794485122,
0.04159436374902725,
-0.02877749502658844,
0.001200951519422233,
0.02734668180346489,
0.0796419158577919,
-0.0021726705599576235,
0.017008546739816666,
-0.03851106017827988,
-0.036294303834438324,
-0.008262446150183678,
-0.025190385058522224,
0.0440126396715641,
-0.021784644573926926,
-0.03929699957370758,
0.04377081245183945,
-0.03895441070199013,
0.06053753197193146,
0.01731083169579506,
0.0014748970279470086,
0.023658808320760727,
0.035730041563510895,
-0.015396363101899624,
0.03605247661471367,
-0.03945821896195412,
-0.049252238124608994,
-0.0248679481446743,
0.061706364154815674,
-0.034803036600351334,
-0.02021276392042637,
0.02012207917869091,
-0.07315287739038467,
0.0517108216881752,
-0.005617455579340458,
-0.046833962202072144,
0.03391633182764053,
-0.03748328983783722,
0.0259561724960804,
-0.006524309515953064,
0.026480132713913918,
0.010630342178046703,
-0.03772512078285217,
-0.008851900696754456,
-0.004206794314086437,
-0.02545236423611641,
0.026278609409928322,
-0.02055535279214382,
-0.0008892205660231411,
0.059650830924510956,
-0.05521732196211815,
-0.0017116866074502468,
0.038108013570308685,
0.05691011622548103,
0.023114696145057678,
0.05215417221188545,
-0.035669583827257156,
-0.015436667017638683,
0.03371480852365494,
-0.03341252729296684,
0.03871258348226547,
0.03018815629184246,
-0.019356291741132736,
0.034762728959321976,
0.012847095727920532,
-0.06892088800668716,
-0.04602786898612976,
-0.027709422633051872,
-0.016676034778356552,
-0.033795420080423355,
-0.03466196730732918,
-0.011375977657735348,
0.029885871335864067,
-0.05803864449262619,
0.01731083169579506,
0.06319763511419296,
0.004176565911620855,
-0.001880462164990604,
-0.019305910915136337,
-0.03601217269897461,
0.04215862601995468,
-0.0009515667916275561,
-0.07645785063505173,
0.00912395678460598,
0.03254597634077072,
0.006887050811201334,
-0.002947275061160326,
-0.0009824249427765608,
0.060215093195438385,
0.007783828768879175,
-0.006902165245264769,
-0.019406672567129135,
0.06279458850622177,
-0.006050730124115944,
-0.0034838300198316574,
0.022288452833890915,
0.005481427535414696,
0.0048239585012197495,
-0.06847754120826721,
0.020696420222520828,
0.001856531365774572,
-0.0336543545126915,
0.004781134892255068,
0.006665375549346209,
-0.010398590937256813,
-0.05892534554004669,
0.03498440608382225,
0.013794254511594772,
-0.011234911158680916,
0.08105257898569107,
-0.041151013225317,
-0.00839847419410944,
0.012383593246340752,
-0.0032067359425127506,
-0.07714303582906723,
0.03063150681555271,
-0.023114696145057678,
-0.02009185031056404,
0.006609956733882427,
0.0497358962893486,
0.02297363057732582,
-0.05429031699895859,
0.004350379575043917,
0.06763114035129547,
0.043448373675346375,
0.003161393105983734,
0.007995427586138248,
0.014771641232073307,
-0.009713412262499332,
-0.008055885322391987,
0.005556998774409294,
0.0017255413113161922,
-0.01630321703851223,
-0.05287965387105942,
-0.012161917053163052,
0.018872635439038277,
0.004229465499520302,
0.02496870793402195,
0.04554421454668045,
0.03371480852365494,
-0.004468773957341909,
0.022409366443753242,
-0.000009864594176178798,
-0.035246387124061584,
-0.0029321606270968914,
-0.015084002166986465,
-0.0019308429909870028,
-0.007340477779507637,
-0.08056892454624176,
-0.036677200347185135,
0.03889395296573639,
0.0325661301612854,
0.00204042112454772,
0.00024718063650652766,
0.039639588445425034,
-0.005335323512554169,
-0.018429284915328026,
-0.008413588628172874,
-0.037604205310344696,
-0.02355804666876793,
0.030772574245929718,
0.04032476618885994,
0.03065165877342224,
0.005174105055630207,
0.027628812938928604,
0.06912241131067276,
0.022711649537086487,
-0.03407755121588707,
-0.018046392127871513,
-0.051992952823638916,
0.013764025643467903,
-0.036133088171482086,
0.001622260781005025,
-0.00016940533532761037,
0.03442014008760452,
0.020837485790252686,
-0.03248551860451698,
0.010983007960021496,
0.01271610613912344,
-0.030107546597719193,
-0.060618139803409576,
-0.027145158499479294,
-0.0244245957583189,
0.02200631983578205,
0.034198466688394547,
-0.025190385058522224,
-0.028011707589030266,
0.005050672218203545,
-0.01780456304550171,
-0.03498440608382225,
0.013663263991475105,
0.03067181259393692,
-0.009401051327586174,
0.05118685960769653,
-0.0519123449921608,
0.01824791356921196,
0.05287965387105942,
-0.019376443699002266,
-0.002838956192135811,
-0.018912941217422485,
0.030550897121429443,
-0.00317902653478086,
-0.06738931685686111,
-0.019588042050600052,
0.0022079371847212315,
-0.03439998999238014,
-0.021744338795542717,
0.0019232858903706074,
-0.022852716967463493,
-0.005420970730483532,
-0.033795420080423355,
-0.07637724280357361,
0.0679938867688179,
-0.023416981101036072,
0.0182076096534729,
0.03728177025914192,
-0.031941406428813934,
0.023739418014883995,
-0.008287636563181877,
-0.03351328894495964,
-0.01639390178024769,
-0.03877304121851921,
-0.0026878139469772577,
0.03403724730014801,
0.021945862099528313,
0.0468742661178112,
-0.07210495322942734,
-0.03579049929976463,
0.0383901447057724,
-0.020938247442245483,
-0.08012557774782181,
-0.04546360671520233,
0.0048239585012197495,
0.040445681661367416,
-0.028858104720711708,
0.03226384520530701,
-0.0235378947108984,
-0.038571517914533615,
-0.001307380967773497,
-0.010222258046269417,
-0.007839247584342957,
0.04425446689128876,
0.015366134233772755,
-0.06150484085083008,
0.008816634304821491,
-0.017623193562030792,
-0.02776988036930561,
0.04747883602976799,
-0.016615577042102814,
-0.01415699627250433,
-0.023658808320760727,
-0.004617397207766771,
0.08117349445819855,
0.06871936470270157,
0.04848645254969597,
0.08383359760046005,
0.022691497579216957,
-0.01226267870515585,
-0.016585348173975945,
-0.007280020974576473,
-0.023376677185297012,
-0.053887270390987396,
0.032828107476234436,
-0.08544578403234482,
-0.03984111174941063,
0.02246982231736183,
0.03754374757409096,
0.0025303740985691547,
0.007934970781207085,
-0.009527003392577171,
-0.023820027709007263,
-0.01634352095425129,
0.029019322246313095,
-0.017492203041911125,
-0.07129886001348495,
0.0001879832416307181,
0.04187649488449097,
-0.06521286815404892,
-0.023275915533304214,
-0.02829383872449398,
0.022268299013376236,
-0.03306993469595909,
0.046269696205854416,
-0.04268258810043335,
0.019406672567129135,
0.024102158844470978,
0.03020830824971199,
0.06771175563335419,
0.024243226274847984,
0.0031362029258161783,
-0.025573277845978737,
-0.0020064141135662794,
-0.04860736429691315,
-0.056869812309741974,
-0.010761331766843796,
-0.0317801870405674,
-0.013532274402678013,
0.038148317486047745,
0.052476607263088226,
-0.005214409437030554,
-0.0461890883743763,
-0.04699518159031868,
0.01460034679621458,
-0.03373496234416962,
-0.020696420222520828,
-0.017139537259936333,
0.009249908849596977,
0.002710485365241766,
0.03655628487467766,
-0.02309454418718815,
0.056305546313524246,
0.001814967137761414,
0.005295018665492535,
0.0012771524488925934,
0.011688338592648506,
0.045262083411216736,
-0.022187691181898117,
-0.013008314184844494,
0.02347743883728981,
0.04836553707718849,
-0.04080842062830925,
0.025794953107833862,
0.00317902653478086,
0.003010250860825181,
-0.042924415320158005,
-0.016484586521983147,
0.06916271895170212,
-0.1086612418293953,
0.0002374193718424067,
-0.032404910773038864,
0.05485457926988602,
0.02060573361814022,
0.007839247584342957,
0.01586994156241417,
-0.0699688121676445,
0.02206677570939064,
0.040123242884874344,
0.009295252151787281,
-0.03693917766213417,
0.031356990337371826,
0.005587227176874876,
0.035709887742996216,
-0.04086887836456299,
0.0324653685092926,
0.011899937875568867,
0.009819211438298225,
-0.007068421691656113,
-0.027971401810646057,
0.033755116164684296,
0.03556882217526436,
-0.02204662375152111,
0.014852250926196575,
-0.023155001923441887,
-0.027044396847486496,
-0.057837121188640594,
-0.01679694838821888,
0.0651322603225708,
0.01672641560435295,
-0.020031394436955452,
0.008458930999040604,
0.010428818874061108,
-0.016948090866208076,
-0.05098533630371094,
-0.052516911178827286,
0.03990156948566437,
-0.009678145870566368,
0.058280471712350845,
-0.0015693609602749348,
-0.05038077011704445,
0.002675218740478158,
0.0107814846560359,
-0.011648033745586872,
-0.013572579249739647,
-0.02637937106192112,
0.03421861678361893,
0.009169300086796284,
-0.006060806568711996,
0.016907785087823868,
0.005763560067862272,
-0.03871258348226547,
0.034803036600351334,
0.05707133561372757,
0.02728622406721115,
-0.027044396847486496,
0.013673340901732445,
-0.06077935919165611,
0.0069726984947919846,
0.035185929387807846,
-0.030792726203799248,
-0.09124964475631714,
-0.02738698571920395,
0.005768598057329655,
-0.021784644573926926,
-0.016534967347979546,
0.05267813056707382,
-0.05602341517806053,
-0.03889395296573639,
0.034782882779836655,
-0.00907861441373825,
0.009844401851296425,
0.030792726203799248,
-0.0023527818266302347,
0.018399056047201157,
0.00814153254032135,
-0.029603740200400352,
0.07013002783060074,
0.023416981101036072,
-0.07649815827608109,
-0.03488364443182945,
-0.04078827053308487,
-0.003932218998670578,
0.04945376142859459,
0.009532040916383266,
-0.07170190662145615,
-0.013411360792815685,
0.04502025619149208,
-0.009411127306520939,
0.009869592264294624,
0.02109946496784687,
0.0312360767275095,
-0.025996476411819458,
-0.02396109327673912,
0.03341252729296684,
-0.009174337610602379,
-0.02934175916016102,
0.003345282981172204,
0.03484334051609039,
-0.02922084555029869,
0.006342938635498285,
0.015668418258428574,
-0.013461741618812084,
0.039014868438243866,
0.02728622406721115,
-0.01266572531312704,
-0.024686576798558235,
-0.06190788745880127,
-0.004337784368544817,
-0.05562036857008934,
0.011355824768543243,
0.027971401810646057,
0.008000466041266918,
0.025573277845978737,
-0.0011216019047424197,
-0.058240167796611786,
-0.005965082906186581,
0.021482359617948532,
-0.023658808320760727,
0.013844635337591171,
0.049574676901102066,
-0.004670297261327505,
0.0517108216881752,
0.007234678138047457,
0.024726880714297295,
-0.011829404160380363,
0.03347298130393028,
-0.008781367912888527,
0.03302963078022003,
-0.006876974832266569,
-0.041997410356998444,
-0.025734497234225273,
-0.03990156948566437,
0.012272755615413189,
0.001966109499335289,
0.10140641033649445,
0.01920514926314354,
0.003360397182404995,
-0.016686109825968742,
0.009496774524450302
] |
20,910 | precession.precession | roots_vec |
Locate roots of polynomial using a vectorized version of numpy.roots.
Credit to stackoverflow user 'pv' (https://stackoverflow.com/a/35853977) for some of this code, which we generalize to accomodate equations of different degrees.
Parameters
----------
p: float
Polynomial coefficients.
Returns
-------
roots: float
Polynomial roots.
Examples
--------
``roots = precession.roots_vec(p)``
| def roots_vec(p): #, enforce=False):
"""
Locate roots of polynomial using a vectorized version of numpy.roots.
Credit to stackoverflow user 'pv' (https://stackoverflow.com/a/35853977) for some of this code, which we generalize to accomodate equations of different degrees.
Parameters
----------
p: float
Polynomial coefficients.
Returns
-------
roots: float
Polynomial roots.
Examples
--------
``roots = precession.roots_vec(p)``
"""
p = np.atleast_1d(p).astype(float)
non_zeros = np.count_nonzero(p, axis=1)
# Mask arrays with all zeros with a dummy equation
p[non_zeros==0,0]=1
#if not non_zeros.all()!=0:
# if enforce:
# raise ValueError("There is at least one coefficients line with all zeros [roots_vec_zeros].")
# else:
# warnings.warn("There is at least one coefficients line with all zeros [roots_vec_zeros].", Warning)
#https://stackoverflow.com/a/20361561
B = np.append(p, np.ones(p.shape[0])[:,None], axis=1)
nz = np.argmax(B!=0,axis=1)
rows, columns = np.ogrid[:p.shape[0], :p.shape[1]]
shift = np.copy(nz)
shift[shift > 0] -= p.shape[1]
columns = columns + shift[:, np.newaxis]
p = p[rows, columns]
n = p.shape[-1]
A = np.zeros(p.shape[:1] + (n-1, n-1), float)
A[..., 1:, :-1] = np.eye(n-2)
A[..., 0, :] = -p[..., 1:]/p[..., None, 0]
results = np.linalg.eigvals(A)
nansol = np.reshape(np.repeat(nz, results.shape[1], axis=0), results.shape)
resind = np.mgrid[0:results.shape[0], 0:results.shape[1]][1]
resind = np.where(resind<nansol, np.nan, results)
# Replace nans for arrays where it's all zeros
resind = np.where(non_zeros==0, np.ones(resind.shape).T*np.nan, resind.T).T
return resind
| (p) | [
0.009406143799424171,
-0.02708047442138195,
0.042867813259363174,
0.05074227973818779,
0.006073900498449802,
0.012032565660774708,
-0.03516620397567749,
-0.06998670101165771,
0.03927629068493843,
0.02030075341463089,
0.03184356540441513,
-0.03322639688849449,
0.016709228977560997,
-0.04014056175947189,
-0.0739431381225586,
0.02500622533261776,
0.04060150682926178,
-0.02423798479139805,
-0.07190730422735214,
-0.0025952120777219534,
-0.0318627692759037,
-0.03914184868335724,
0.045671891421079636,
0.051817815750837326,
-0.032784659415483475,
0.028559336438775063,
0.03241974487900734,
-0.03372575342655182,
0.014462125487625599,
-0.06549249589443207,
-0.0373556911945343,
0.04736202210187912,
-0.0525476448237896,
-0.03170912340283394,
0.0037379697896540165,
-0.010083155706524849,
0.05400729924440384,
0.006304372567683458,
-0.01824571006000042,
0.023930689319968224,
-0.021126611158251762,
-0.015422426164150238,
-0.009871888905763626,
-0.014462125487625599,
0.022086910903453827,
-0.015403220430016518,
0.02782950922846794,
0.0729060173034668,
-0.023316096514463425,
0.03722124919295311,
-0.01525917463004589,
-0.037605367600917816,
0.050319746136665344,
-0.03991008922457695,
-0.021491525694727898,
0.0688343420624733,
0.04797661304473877,
0.014001181349158287,
-0.0056129563599824905,
-0.06837339699268341,
-0.0017165371682494879,
-0.0038604079745709896,
0.026004938408732414,
0.02304721251130104,
0.012954453937709332,
0.0015208759577944875,
0.005147210787981749,
-0.05331588536500931,
0.01792881079018116,
0.058463092893362045,
-0.028674572706222534,
-0.0339946374297142,
0.004964753519743681,
-0.049666743725538254,
0.09433992207050323,
0.024122748523950577,
0.03766298666596413,
-0.02573605254292488,
-0.012877630069851875,
-0.01792881079018116,
-0.027579830959439278,
-0.0007868462125770748,
0.04110085964202881,
0.0529317632317543,
0.01891792006790638,
0.024718135595321655,
0.020646460354328156,
0.03649142012000084,
0.03441717103123665,
0.014193241484463215,
0.007917677983641624,
-0.01624828390777111,
-0.02368101105093956,
0.06910322606563568,
0.0028544932138174772,
0.019282834604382515,
0.03441717103123665,
-0.038757726550102234,
-0.0350317619740963,
0.006285166833549738,
0.057041849941015244,
0.09679829329252243,
-0.00864750612527132,
0.001668522134423256,
0.0745193213224411,
0.06103669852018356,
0.016690023243427277,
-0.03111373633146286,
0.05923133343458176,
0.023220065981149673,
-0.051126398146152496,
0.050934337079524994,
-0.021914057433605194,
-0.03034549579024315,
-0.07732339948415756,
-0.02358498051762581,
-0.05423777177929878,
0.041484981775283813,
-0.008681116625666618,
-0.013040880672633648,
0.04405858740210533,
0.02093455009162426,
-0.014433316886425018,
0.030844852328300476,
0.04378970339894295,
-0.06364871561527252,
0.028674572706222534,
0.03263100981712341,
0.007624785881489515,
-0.04536459594964981,
0.010899410583078861,
0.019484497606754303,
0.018965935334563255,
-0.016968509182333946,
-0.03516620397567749,
-0.009958316572010517,
0.022451825439929962,
-0.03658745065331459,
-0.04993562772870064,
-0.05454506725072861,
0.0445963554084301,
0.036798715591430664,
-0.01043846644461155,
0.04202274978160858,
0.02909710444509983,
0.018399357795715332,
0.05208669975399971,
-0.0034978946205228567,
0.017765559256076813,
0.02235579490661621,
-0.009175671264529228,
-0.037624575197696686,
0.03161309286952019,
0.00362033280543983,
0.04259892925620079,
-0.007860059849917889,
0.06918004900217056,
-0.0847369134426117,
-0.02229817770421505,
0.01966695487499237,
-0.04532618448138237,
0.0049455477856099606,
-0.005665773060172796,
-0.02018551714718342,
-0.005401690490543842,
0.0460175983607769,
-0.034186698496341705,
-0.040985625237226486,
-0.028540130704641342,
0.03435955196619034,
0.02031995914876461,
-0.0022999197244644165,
-0.06449378281831741,
0.005046379286795855,
-0.01889871433377266,
-0.032746247947216034,
0.0018017637776210904,
-0.002914512064307928,
0.001457256032153964,
0.0036635464057326317,
0.03253497928380966,
-0.003488291520625353,
0.005036775954067707,
-0.0014056398067623377,
0.05346953123807907,
0.05350794270634651,
0.018015237525105476,
-0.028674572706222534,
0.012560730800032616,
-0.009425349533557892,
-0.09971760213375092,
0.0017705539939925075,
0.06149764358997345,
0.039602793753147125,
0.015191953629255295,
0.0016997319180518389,
0.014721406623721123,
0.07144635915756226,
-0.037624575197696686,
-0.04513412341475487,
-0.04190751537680626,
-0.007648793514817953,
0.0013276154641062021,
-0.0009915102273225784,
-0.03856566920876503,
0.025543993338942528,
0.0026096166111528873,
-0.049167387187480927,
0.0325733944773674,
0.06522361189126968,
0.009675027802586555,
-0.002960126381367445,
-0.09218885004520416,
-0.0070342011749744415,
-0.0371636301279068,
0.02379624731838703,
0.06307253986597061,
-0.02573605254292488,
0.022759122774004936,
0.02018551714718342,
-0.01733342371881008,
-0.014049196615815163,
0.023911481723189354,
-0.02900107577443123,
-0.011398767121136189,
0.0021678784396499395,
0.02510225586593151,
0.0698714628815651,
0.02840568870306015,
-0.027464594691991806,
0.03453240543603897,
0.0001823070488171652,
-0.05454506725072861,
-0.0802043005824089,
0.016814861446619034,
-0.09472404420375824,
0.003017744282260537,
-0.019503703340888023,
0.03589603304862976,
-0.01953251287341118,
0.008176959119737148,
-0.026100967079401016,
-0.0243340153247118,
0.039641205221414566,
-0.016497962176799774,
0.03232371434569359,
-0.000747834041249007,
0.0040524681098759174,
0.03729807212948799,
0.024602899327874184,
-0.04102403670549393,
-0.07117747515439987,
0.018495388329029083,
0.006381196901202202,
0.08089571446180344,
-0.0649547278881073,
0.05327747017145157,
0.09480086714029312,
0.07997382432222366,
0.00641960883513093,
0.004875925835222006,
0.025870496407151222,
0.032938309013843536,
-0.023104829713702202,
-0.03516620397567749,
-0.04378970339894295,
0.001006514998152852,
-0.017093349248170853,
0.014971084892749786,
0.05861674249172211,
0.04686266556382179,
0.029577255249023438,
-0.016334710642695427,
-0.017861589789390564,
-0.0001223632862092927,
0.038757726550102234,
-0.0006181934732012451,
0.026907620951533318,
0.017679132521152496,
0.025255903601646423,
-0.0051760198548436165,
-0.04605601355433464,
-0.009180473163723946,
0.07279077917337418,
-0.07647833228111267,
-0.006707699038088322,
-0.02640826441347599,
-0.07305966317653656,
0.06553090363740921,
-0.014202844351530075,
0.001526877749711275,
0.04720837250351906,
-0.006976583041250706,
-0.011821298860013485,
0.0285017192363739,
-0.0004714475362561643,
-0.015432029031217098,
-0.033514488488435745,
0.011149088852107525,
-0.030249465256929398,
0.01826491579413414,
-0.0021054588723927736,
0.0352238230407238,
-0.04889850318431854,
0.03837360814213753,
-0.0176119115203619,
-0.01078417431563139,
-0.011965344659984112,
0.02097296342253685,
-0.012320655398070812,
-0.04924421012401581,
-0.023354507982730865,
-0.053008586168289185,
-0.00432855449616909,
0.0035507110878825188,
-0.0025207889266312122,
0.05055021867156029,
-0.04713154956698418,
0.08296996355056763,
0.000021925610781181604,
0.05727232247591019,
0.04747725650668144,
0.02295118197798729,
-0.016334710642695427,
-0.029999786987900734,
-0.027925537899136543,
0.04509571194648743,
-0.029327576979994774,
0.03188197687268257,
-0.0035747187212109566,
0.03722124919295311,
0.014183638617396355,
-0.018668241798877716,
0.006606867536902428,
-0.0025976127944886684,
0.0075671677477657795,
0.0541609488427639,
-0.028751397505402565,
0.006770118605345488,
-0.009166068397462368,
0.0596538670361042,
0.008378622122108936,
-0.07597897201776505,
-0.03384098783135414,
-0.09426309913396835,
-0.013386588543653488,
0.011014646850526333,
0.014126020483672619,
0.012224625796079636,
0.011465988121926785,
0.009007618762552738,
-0.03376416489481926,
0.038296785205602646,
0.004244528245180845,
-0.004249329678714275,
0.00866671185940504,
-0.01314651407301426,
-0.018869904801249504,
-0.007375108078122139,
0.01350182481110096,
0.03779742866754532,
0.009675027802586555,
-0.028252040967345238,
-0.04075515270233154,
-0.03109453059732914,
-0.060422107577323914,
0.023412127047777176,
-0.007418321445584297,
0.017842384055256844,
-0.014779024757444859,
0.011600430123507977,
-0.061190348118543625,
-0.022490236908197403,
-0.03837360814213753,
-0.01936926133930683,
0.05197146162390709,
-0.003116175066679716,
0.011456385254859924,
-0.04313669726252556,
-0.04663219302892685,
0.013088895939290524,
-0.06806609779596329,
-0.012944851070642471,
-0.0639175996184349,
-0.010179185308516026,
0.015921782702207565,
0.04678583890199661,
0.015729721635580063,
0.06937211006879807,
0.014961482025682926,
-0.0313442088663578,
-0.025179078802466393,
0.0498972125351429,
0.004112486727535725,
-0.0013672278728336096,
0.04982038959860802,
0.06725944578647614,
0.0182265043258667,
-0.03495493903756142,
0.035492707043886185,
-0.04663219302892685,
0.00016235079965554178,
-0.009391739033162594,
-0.03297672048211098,
0.002801676746457815,
-0.07486502826213837,
0.004703071899712086,
-0.04594077542424202,
0.04183068871498108,
0.0543530099093914,
-0.02642747014760971,
0.03236212581396103,
0.08658069372177124,
-0.030172642320394516,
-0.02569764107465744,
-0.002277112565934658,
-0.08466009050607681,
-0.01660359650850296,
-0.01931164227426052,
-0.02903948724269867,
0.04647854343056679,
-0.06222747266292572,
-0.009156465530395508,
0.04521094635128975,
0.021376289427280426,
0.02439163252711296,
0.0035291044041514397,
-0.018745066598057747,
0.014078005217015743,
0.044865239411592484,
0.006136320065706968,
-0.017400644719600677,
-0.03401384502649307,
-0.053047001361846924,
-0.06629914790391922,
0.03313036635518074,
-0.003144984133541584,
0.03643380105495453,
-0.03178594633936882,
0.009958316572010517,
0.012800805270671844,
0.09626052528619766,
-0.004429385997354984,
-0.008493858389556408,
0.046324897557497025,
0.027406975626945496,
0.012320655398070812,
0.01765032298862934,
-0.09065236896276474,
-0.026600323617458344,
-0.008791550993919373,
-0.04256051778793335,
0.05120322108268738,
-0.03389860689640045,
-0.02020472288131714,
0.007619984447956085,
-0.027445388957858086,
-0.010630526579916477,
-0.02700364962220192,
0.007509550079703331,
0.012771996669471264,
0.05761802941560745,
0.030268670991063118,
-0.04378970339894295,
0.010198391042649746,
-0.03879614174365997,
-0.000692616740707308,
0.020147103816270828,
0.024141954258084297,
-0.02229817770421505,
0.042214810848236084,
0.004290142562240362,
-0.05469871684908867,
-0.016142651438713074,
0.048975326120853424,
0.013674679212272167,
-0.059884339570999146,
-0.009338922798633575,
-0.0018977938452735543,
-0.034820497035980225,
-0.0977201759815216,
-0.0036755502223968506,
0.010668938979506493,
-0.014548552222549915,
0.006846942473202944,
-0.049090560525655746,
0.00176935363560915,
-0.013031277805566788,
-0.007024598307907581,
-0.04329034686088562,
-0.03783584013581276,
0.007351100444793701,
0.011494796723127365,
0.09387897700071335,
0.0071686431765556335,
-0.01583535596728325,
0.010294421575963497,
0.003308235201984644,
0.053776826709508896,
-0.001984220929443836,
0.03518541157245636,
0.029289165511727333,
-0.038239166140556335,
0.018850699067115784,
0.006371594034135342,
0.021261053159832954,
-0.021357083693146706,
0.03314957395195961,
0.0008792751468718052,
0.0568113774061203,
-0.016363520175218582,
-0.005324866157025099,
0.02101137489080429,
0.002031035488471389,
-0.015038305893540382,
0.05611995980143547,
-0.006688492838293314,
-0.008220172487199306,
-0.0021186629310250282,
-0.005103996954858303,
-0.02969249151647091,
0.05477553978562355,
-0.047554079443216324,
0.011331546120345592,
0.007740022148936987,
0.0582326240837574,
-0.09026824682950974,
-0.061843350529670715,
-0.0008942798594944179,
0.007293482311069965,
-0.022663092240691185,
-0.0391034372150898,
0.001999825704842806,
0.036856334656476974,
-0.0594618059694767,
0.002861695596948266,
0.029308371245861053,
-0.0623042955994606,
0.003471486270427704,
-0.024775752797722816,
-0.01848578453063965,
0.07125429809093475,
0.03468605503439903,
-0.018063252791762352,
0.012877630069851875,
0.005829024128615856,
-0.023853864520788193,
0.0005572743830271065,
-0.029884550720453262,
0.0040692733600735664,
0.028175216168165207,
0.005329667590558529,
0.11277768760919571,
-0.012224625796079636,
0.02295118197798729,
-0.004763090517371893,
-0.0014116417150944471,
-0.0285017192363739,
-0.03449399396777153,
-0.01176368072628975,
-0.02235579490661621,
-0.024814164265990257,
0.014442919753491879,
-0.028847426176071167,
-0.08619657158851624,
0.006947773974388838,
0.04010215029120445,
0.0017885597189888358,
0.04190751537680626,
0.05481395125389099,
-0.0056417654268443584,
-0.0010503287194296718,
-0.04448112100362778,
-0.02575526013970375,
-0.0121670076623559,
-0.006390799768269062,
-0.016257887706160545,
-0.07305966317653656,
-0.00009047831554198638,
-0.0016433142591267824,
0.01120670698583126,
-0.10855236649513245,
-0.0028280848637223244,
-0.042406871914863586,
0.024756547063589096,
0.06852704286575317,
-0.02573605254292488,
0.04667060449719429,
-0.021299464628100395,
0.019859014078974724,
-0.04002532362937927,
0.004983959719538689,
-0.00609310669824481,
-0.024506868794560432,
0.004532618448138237,
-0.003200201317667961,
-0.059845928102731705,
0.03983326628804207,
0.05197146162390709,
-0.039564382284879684,
-0.045057300478219986,
-0.00018095663108397275,
-0.03789345920085907,
-0.017698338255286217,
-0.05923133343458176,
-0.037470925599336624,
-0.03852725774049759,
0.00047804959467612207,
0.0020454400219023228,
-0.02694603241980076,
-0.00643401313573122,
-0.011158691719174385,
0.0019698163960129023,
-0.026004938408732414,
-0.028232835233211517,
0.040831975638866425,
-0.04482682794332504,
0.06714420765638351,
0.014510140754282475,
0.029250754043459892,
-0.03576159104704857,
0.039449144154787064,
0.008772345259785652,
-0.02496781386435032,
-0.033552899956703186,
0.003934831358492374,
0.05565901845693588,
-0.03998691216111183,
-0.001642113900743425,
0.04121609777212143,
0.020838521420955658,
0.029558049514889717,
-0.03378337249159813,
0.006784522905945778,
-0.0024919798597693443,
0.005699383560568094,
0.020473606884479523,
-0.04536459594964981,
0.0056081549264490604,
0.08850129693746567,
-0.05485236644744873,
-0.023969100788235664,
-0.022586267441511154,
-0.016037018969655037,
0.034858908504247665,
0.03201641887426376,
-0.02711888588964939,
0.009641417302191257,
0.0623042955994606,
-0.015105526894330978,
0.014980687759816647,
0.004616644699126482,
-0.005881840363144875,
0.00006448267959058285,
0.04136974737048149,
-0.012992865405976772,
-0.01351142767816782,
0.014078005217015743,
-0.020531224086880684,
0.01554726529866457,
0.022029293701052666,
-0.009675027802586555,
-0.060575757175683975,
0.005805016495287418,
-0.0037667786236852407,
-0.03378337249159813,
0.07494185119867325,
0.013521031476557255,
-0.07793799042701721,
0.05354635417461395,
0.025236697867512703,
-0.015864163637161255,
-0.026139380410313606,
0.01836094632744789,
0.028981870040297508,
0.00978546217083931,
-0.012080579996109009,
0.0222021471709013,
-0.005569742992520332,
0.03159388527274132,
0.04451953247189522,
0.014298874884843826,
0.024199573323130608,
0.044942062348127365,
0.009180473163723946,
-0.04394334927201271,
0.016181062906980515,
0.07325172424316406,
-0.03666427358984947,
-0.07332854717969894,
-0.024045923724770546,
-0.020780902355909348,
0.07037082314491272,
0.004935944452881813,
0.010985837318003178,
0.007519152946770191,
-0.036068886518478394,
0.024852577596902847,
-0.012013358995318413,
-0.002976931631565094,
0.06145923212170601,
-0.025486376136541367,
-0.05323905870318413,
0.0068325381726026535,
-0.03322639688849449,
0.05734914541244507,
-0.00607870239764452,
-0.04740043357014656,
-0.04252210631966591,
0.0035291044041514397,
-0.0068997591733932495,
-0.011658048257231712,
0.02846330776810646,
-0.09841159731149673,
0.017583101987838745,
0.049666743725538254,
0.029942169785499573,
-0.032861482352018356,
0.003046553349122405,
0.02905869297683239,
0.0003760176768992096,
-0.004515813197940588,
0.014971084892749786,
0.026715559884905815,
-0.012944851070642471,
0.051664166152477264,
0.037528544664382935,
-0.04002532362937927,
0.01347301620990038,
0.027195710688829422,
-0.034071460366249084,
0.02427639625966549,
-0.0010461274068802595,
-0.008417033590376377,
-0.007783235516399145,
-0.010726556181907654,
-0.02037757635116577,
-0.02227897197008133,
-0.08404549956321716,
-0.044289059937000275,
-0.0013360180892050266,
-0.008604292757809162,
-0.009699035435914993,
-0.004854319151490927,
0.03203562647104263,
0.03779742866754532,
-0.03320719301700592,
-0.02227897197008133,
0.00011088469909736887,
-0.0313442088663578,
-0.026830796152353287,
0.03334163501858711,
-0.010966631583869457,
-0.005507323425263166,
-0.026888413354754448,
-0.018831493332982063,
-0.01557607389986515,
0.015883371233940125,
-0.018764272332191467,
0.01380912121385336,
-0.06276524066925049,
0.0018413761863484979,
-0.029481224715709686,
0.08658069372177124,
-0.002732055028900504,
0.03766298666596413,
-0.014596567489206791,
0.03743251413106918
] |
20,911 | precession.precession | rotate_nested |
Rotate a given vector vec to a frame such that the vector align_zaxis lies along z and the vector align_xzplane lies in the xz plane.
Parameters
----------
vec : array
Input array.
align_zaxis : array
Reference array.
align_xzplane : array
Reference array.
Returns
-------
vecrot : array
Rotated array.
Examples
--------
``vecrot = rotate_nested(vec, align_zaxis, align_xzplane)``
| def rotate_nested(vec, align_zaxis, align_xzplane):
"""
Rotate a given vector vec to a frame such that the vector align_zaxis lies along z and the vector align_xzplane lies in the xz plane.
Parameters
----------
vec : array
Input array.
align_zaxis : array
Reference array.
align_xzplane : array
Reference array.
Returns
-------
vecrot : array
Rotated array.
Examples
--------
``vecrot = rotate_nested(vec, align_zaxis, align_xzplane)``
"""
vec = np.atleast_2d(vec)
align_zaxis = np.atleast_2d(align_zaxis)
align_xzplane = np.atleast_2d(align_xzplane)
align_zaxis = normalize_nested(align_zaxis)
angle1 = np.arccos(align_zaxis[:,2])
vec1 = np.cross(align_zaxis,[0,0,1])
vec1 = normalize_nested(vec1)
r1 = scipy.spatial.transform.Rotation.from_rotvec(angle1[:,None] * vec1)
align_xzplane = r1.apply(align_xzplane)
align_xzplane[:,2]=0
align_xzplane = normalize_nested(align_xzplane)
angle2= -np.sign(align_xzplane[:,1])*np.arccos(align_xzplane[:,0])
vec2 = np.array([0,0,1])
r2 = scipy.spatial.transform.Rotation.from_rotvec(angle2[:,None] * vec2)
vecrot = r2.apply(r1.apply(vec))
return vecrot
| (vec, align_zaxis, align_xzplane) | [
0.006961291655898094,
0.05278901010751724,
-0.02123240940272808,
0.05037752166390419,
-0.0025033331476151943,
-0.029333507642149925,
-0.06556236743927002,
0.02070489712059498,
0.04054316505789757,
0.03581438586115837,
0.0027223455253988504,
0.0013164283009245992,
-0.00540230143815279,
0.021420808508992195,
-0.043256089091300964,
0.009523498825728893,
0.03884758800268173,
0.03517383337020874,
-0.03933741897344589,
0.008887656964361668,
0.043143052607774734,
-0.0027105705812573433,
0.04231410101056099,
0.06925495713949203,
0.011209657415747643,
0.01644711196422577,
-0.01192556880414486,
0.016286972910165787,
-0.013046534731984138,
-0.05135718733072281,
0.01899047940969467,
0.01659782975912094,
-0.05037752166390419,
0.004973697010427713,
-0.02108169160783291,
-0.004509767517447472,
-0.009909714572131634,
0.015759460628032684,
-0.06563772261142731,
0.03421300649642944,
0.042389459908008575,
-0.013658826239407063,
-0.021326608955860138,
-0.04619509354233742,
0.0052939727902412415,
-0.001676738727837801,
-0.011906729079782963,
0.01336681004613638,
-0.01695578545331955,
-0.0024727184791117907,
0.046911004930734634,
-0.06748402118682861,
0.0651102140545845,
-0.021251250058412552,
-0.0008954773657023907,
0.012876976281404495,
0.012697998434305191,
0.07324898988008499,
0.07746909558773041,
-0.004599256440997124,
0.005444691050797701,
0.006829413119703531,
-0.032573945820331573,
0.06119154393672943,
-0.010003913193941116,
-0.0034830006770789623,
-0.007163818925619125,
0.01136979553848505,
-0.005242163315415382,
0.01970638893544674,
-0.044913988560438156,
0.04525310546159744,
0.016286972910165787,
-0.06571308523416519,
-0.006085242610424757,
0.04740083962678909,
-0.036737535148859024,
-0.05101807042956352,
-0.01948031224310398,
-0.04095764085650444,
-0.0000775668304413557,
-0.04423575848340988,
-0.00017794742598198354,
0.03960117697715759,
0.03852730989456177,
0.06884048879146576,
0.0024256191682070494,
-0.010446647182106972,
-0.031707316637039185,
-0.029182789847254753,
0.018491225317120552,
-0.012132805772125721,
-0.008214135654270649,
0.007545324042439461,
-0.021420808508992195,
0.014308798126876354,
0.025094561278820038,
-0.042012665420770645,
-0.0605509914457798,
0.01173717062920332,
-0.012660318985581398,
-0.024397490546107292,
-0.07890091836452484,
-0.002913098083809018,
0.04676028713583946,
0.03374201059341431,
-0.015655841678380966,
-0.04205034673213959,
0.02338014356791973,
-0.004921887535601854,
0.019819429144263268,
0.008741648867726326,
0.0010408967500552535,
-0.02110053226351738,
0.0024727184791117907,
-0.052186138927936554,
0.02375693805515766,
-0.00612292205914855,
-0.03227251023054123,
-0.05165862292051315,
0.11853977292776108,
-0.023417823016643524,
0.05504978075623512,
-0.0048112040385603905,
-0.01111545879393816,
-0.059759721159935,
-0.017652856186032295,
0.015910178422927856,
-0.0077431416139006615,
0.02196716144680977,
-0.009264452382922173,
0.015881918370723724,
-0.061719056218862534,
-0.011605292558670044,
0.030463892966508865,
-0.006546816788613796,
0.07125197350978851,
0.00012260563380550593,
-0.07181716710329056,
0.0029554874636232853,
0.020949814468622208,
0.0051620942540466785,
0.005364621989428997,
0.002008789451792836,
-0.021251250058412552,
0.04498934745788574,
0.046911004930734634,
0.022664232179522514,
0.04129675403237343,
-0.03717084601521492,
-0.002019386738538742,
-0.006075822748243809,
0.021571526303887367,
0.04736315831542015,
-0.004500347655266523,
-0.05000072345137596,
-0.01846296526491642,
-0.04404735937714577,
0.030708810314536095,
0.07927771657705307,
-0.018001390621066093,
0.013536368496716022,
-0.11040099710226059,
0.005595408845692873,
0.04849354550242424,
0.004832398612052202,
0.046647246927022934,
-0.009245612658560276,
-0.04397200047969818,
-0.0016838036244735122,
0.02262655273079872,
0.04212570562958717,
-0.0844774842262268,
-0.02185412310063839,
0.007380476221442223,
0.012132805772125721,
-0.049548570066690445,
0.015768880024552345,
0.0094858193770051,
-0.08123704791069031,
-0.008322464302182198,
0.018029650673270226,
0.05037752166390419,
-0.01646595075726509,
-0.01300885435193777,
0.024171413853764534,
0.04186194762587547,
0.0028400940354913473,
0.05523817986249924,
-0.03809399530291557,
-0.04046780616044998,
0.030426213517785072,
0.02500036172568798,
0.023775778710842133,
0.003066170960664749,
0.02149616740643978,
-0.03798095881938934,
0.020441140979528427,
0.009250322356820107,
-0.004064678214490414,
-0.045780617743730545,
0.011463994160294533,
0.050791993737220764,
-0.03528687357902527,
-0.011275596916675568,
0.018491225317120552,
0.03050157241523266,
-0.0269031785428524,
-0.028353840112686157,
0.0026305015198886395,
0.023210585117340088,
-0.016475370153784752,
0.02575395256280899,
-0.051809340715408325,
-0.01659782975912094,
0.05889309197664261,
-0.046044375747442245,
0.015486283227801323,
0.047287799417972565,
0.010164051316678524,
-0.012274104170501232,
0.03206527233123779,
-0.03783024102449417,
-0.07336203008890152,
0.005699027795344591,
-0.025188760831952095,
0.04043012484908104,
0.03880990669131279,
-0.08101096749305725,
-0.03856499120593071,
0.04046780616044998,
-0.09291770309209824,
-0.02535831741988659,
-0.05569033324718475,
-0.04736315831542015,
-0.0856078714132309,
0.03852730989456177,
-0.04483862966299057,
0.04758923500776291,
-0.008802877739071846,
0.029201628640294075,
-0.019442632794380188,
-0.0026399213820695877,
-0.006499717477709055,
-6.347380576698924e-7,
0.05516282096505165,
0.0013588177971541882,
0.03442024439573288,
0.015420343726873398,
0.0023585024755448103,
-0.05286436900496483,
0.04310537129640579,
-0.037227366119623184,
0.027317652478814125,
-0.0032168892212212086,
-0.06544932723045349,
0.05199773982167244,
0.010653885081410408,
0.040128689259290695,
0.007507644593715668,
0.020196223631501198,
-0.07008390873670578,
-0.008119937032461166,
-0.04073156416416168,
0.010729243978857994,
-0.03138704225420952,
0.04208802431821823,
0.013461008667945862,
0.0030850109178572893,
0.019254235550761223,
0.1076127141714096,
-0.02385113760828972,
-0.013244351372122765,
0.0026658261194825172,
0.038772229105234146,
0.03604046255350113,
0.053316522389650345,
0.0038197615649551153,
0.00202409690245986,
0.011774850077927113,
0.016023216769099236,
-0.030803008005023003,
-0.010597364977002144,
0.04510238766670227,
-0.0489833764731884,
-0.019555671140551567,
-0.00829891487956047,
0.008308334276080132,
0.031123284250497818,
0.001556635252200067,
0.009528208523988724,
0.031066766008734703,
0.008275364525616169,
-0.03541874885559082,
-0.0032427937258034945,
-0.0018910409417003393,
-0.029050910845398903,
-0.07611263543367386,
0.04069388285279274,
0.007860890589654446,
-0.01010753121227026,
0.011982087977230549,
0.0672956258058548,
-0.028824834153056145,
0.02296566776931286,
0.02526411972939968,
-0.015062388963997364,
-0.026695940643548965,
0.0034147065598517656,
-0.027600249275565147,
-0.036473777145147324,
0.007154399063438177,
-0.061869774013757706,
-0.014610234647989273,
-0.005279842764139175,
0.04589365795254707,
0.011586452834308147,
-0.027336493134498596,
0.09020477533340454,
0.06725794821977615,
0.012396562844514847,
0.007710171863436699,
-0.021571526303887367,
0.0374157652258873,
0.01437473762780428,
-0.05184702202677727,
0.028542237356305122,
0.016305813565850258,
0.02876831404864788,
0.06884048879146576,
0.005001956596970558,
0.0033157977741211653,
-0.014299378730356693,
-0.0017497427761554718,
-0.01544860377907753,
-0.004792364314198494,
-0.008053997531533241,
-0.008011608384549618,
0.017417358234524727,
-0.004749974701553583,
0.022325117141008377,
-0.017991971224546432,
-0.0008630965603515506,
-0.05316580459475517,
-0.036982450634241104,
-0.020158544182777405,
0.032102953642606735,
0.02888135239481926,
0.014685593545436859,
0.054823704063892365,
-0.000919615791644901,
0.0384707897901535,
0.04973696917295456,
0.03315797820687294,
-0.08590930700302124,
0.010663304477930069,
-0.00282831909134984,
-0.007922119460999966,
0.03078416921198368,
0.009702476672828197,
0.03639841824769974,
0.007069620303809643,
-0.015354405157268047,
-0.02121357060968876,
-0.01023941021412611,
-0.048154428601264954,
-0.035343389958143234,
-0.029861019924283028,
0.019932467490434647,
-0.01721012219786644,
0.022796111181378365,
-0.039262060075998306,
0.05000072345137596,
-0.01848180592060089,
-0.023022187873721123,
0.06838832795619965,
-0.057988785207271576,
-0.013376230373978615,
0.039111342281103134,
-0.07396490126848221,
0.040618523955345154,
-0.010936480946838856,
0.0535425990819931,
0.026940857991576195,
0.022381635382771492,
0.01489283051341772,
0.016400011256337166,
0.03555062785744667,
0.006791733670979738,
0.0019781747832894325,
-0.04913409426808357,
0.002254883758723736,
0.08869758993387222,
-0.0065703666768968105,
-0.05437155067920685,
-0.0014812762383371592,
-0.05893077328801155,
0.022080199792981148,
-0.05128182843327522,
-0.030803008005023003,
-0.0049171773716807365,
0.013084214180707932,
-0.055087462067604065,
-0.011567613109946251,
-0.007149689365178347,
-0.01705940254032612,
0.032460909336805344,
0.008430792950093746,
0.030689969658851624,
0.02765676937997341,
-0.05064127594232559,
0.030972566455602646,
0.0519600585103035,
-0.02577279321849346,
0.01300885435193777,
0.01758691668510437,
-0.019310753792524338,
0.03332753852009773,
-0.02134544961154461,
0.0142616992816329,
0.021533846855163574,
0.006052273325622082,
-0.009584728628396988,
0.0495108924806118,
0.002618726808577776,
-0.04374592378735542,
-0.03078416921198368,
-0.022306276485323906,
0.032705824822187424,
0.008746358565986156,
0.016305813565850258,
-0.014054461382329464,
-0.01580655947327614,
-0.04321841150522232,
0.039262060075998306,
0.02187296189367771,
0.01161471288651228,
0.0379432775080204,
-0.021684564650058746,
0.09344521164894104,
0.04095764085650444,
0.032950740307569504,
-0.056481603533029556,
-0.013347970321774483,
-0.05237453430891037,
0.06605219841003418,
-0.03165079653263092,
0.02626262605190277,
-0.05602945014834404,
-0.01620219461619854,
0.10263901948928833,
0.035870905965566635,
0.027694448828697205,
-0.028994392603635788,
-0.011492254212498665,
-0.02513224072754383,
0.021816443651914597,
0.01162413228303194,
-0.05128182843327522,
-0.04939785227179527,
0.020026665180921555,
-0.01948031224310398,
0.015269625931978226,
0.03517383337020874,
-0.04321841150522232,
0.00136470515280962,
-0.02211787924170494,
0.014346477575600147,
-0.03087836690247059,
-0.010766923427581787,
0.042389459908008575,
-0.04404735937714577,
-0.015853658318519592,
0.02861759625375271,
0.08093561232089996,
0.015071808360517025,
-0.040882281959056854,
-0.06816225498914719,
-0.0452154241502285,
-0.007842049933969975,
-0.10407083481550217,
-0.04472559317946434,
-0.013969682157039642,
0.015382664278149605,
-0.010211150161921978,
0.009504659101366997,
-0.003803276689723134,
0.061116185039281845,
0.032215990126132965,
-0.02486848458647728,
-0.0522238165140152,
0.07015927135944366,
-0.02298450842499733,
0.1092706099152565,
-0.01192556880414486,
-0.028598757460713387,
-0.044160399585962296,
0.022042520344257355,
-0.05199773982167244,
-0.005637798458337784,
0.05791342258453369,
0.02460472658276558,
-0.03815051540732384,
-0.016400011256337166,
0.02200484089553356,
0.014120400883257389,
-0.04235178232192993,
-0.028466878458857536,
0.020912135019898415,
-0.01719128154218197,
-0.04608205333352089,
-0.009890873916447163,
0.01091764122247696,
0.042916975915431976,
-0.026978537440299988,
0.1006796807050705,
-0.005666058044880629,
0.04969928786158562,
0.05693375691771507,
-0.04359520599246025,
0.010540845803916454,
-0.021628044545650482,
-0.03892294690012932,
0.010079272091388702,
-0.004467378370463848,
0.06590148061513901,
0.006250090431421995,
-0.00992855429649353,
0.012876976281404495,
0.002865998540073633,
-0.06311319768428802,
0.013536368496716022,
-0.04762691631913185,
0.0008289494435302913,
-0.0020653088577091694,
0.035475268959999084,
-0.016230454668402672,
-0.02123240940272808,
0.006452618166804314,
-0.03178267553448677,
0.039111342281103134,
-0.006410228554159403,
-0.00816232617944479,
-0.047061722725629807,
-0.029597263783216476,
0.018547743558883667,
0.0356636680662632,
-0.03144356235861778,
0.028674116358160973,
0.029465386644005775,
-0.03570134565234184,
-0.023681579157710075,
-0.02074257656931877,
0.056707680225372314,
-0.013131313025951385,
-0.008854687213897705,
-0.07034766674041748,
-0.06978247314691544,
-0.03790559992194176,
0.009937973693013191,
0.05504978075623512,
0.09216410666704178,
0.05346724018454552,
-0.02775096707046032,
-0.010060432367026806,
0.013432749547064304,
0.024811964482069016,
-0.0026375665329396725,
0.01232120394706726,
0.043143052607774734,
-0.0014012071769684553,
-0.02850455790758133,
-0.009758995845913887,
-0.03304494172334671,
-0.0079079894348979,
-0.0022501738276332617,
0.006984841078519821,
0.007333376910537481,
-0.0006770538748241961,
-0.03344057500362396,
0.03387388959527016,
-0.07049838453531265,
0.007606553379446268,
-0.05738591030240059,
0.00034500312176533043,
-0.04773995280265808,
0.04186194762587547,
0.06955640017986298,
0.04216338321566582,
0.03562598675489426,
-0.0871904119849205,
0.02200484089553356,
0.0261119082570076,
-0.001721483189612627,
-0.00015822454588487744,
-0.023813458159565926,
0.0017685825005173683,
0.03758532181382179,
0.016663769260048866,
-0.04284161701798439,
-0.003379381960257888,
0.015863077715039253,
0.010993000119924545,
0.07980522513389587,
-0.08410069346427917,
-0.011275596916675568,
0.0044579585082829,
-0.03880990669131279,
-0.02258887328207493,
-0.028937872499227524,
-0.026149587705731392,
0.008906496688723564,
-0.0004910112475045025,
-0.03255510702729225,
0.011690071783959866,
-0.007338086608797312,
-0.07844876497983932,
0.021458487957715988,
0.03182035684585571,
-0.014921090565621853,
-0.08643682301044464,
-0.022701911628246307,
-0.07761981338262558,
-0.025169920176267624,
-0.038357753306627274,
-0.019442632794380188,
0.05214845761656761,
0.006499717477709055,
0.059232208877801895,
0.007889149710536003,
0.022551193833351135,
-0.022796111181378365,
0.04498934745788574,
-0.0562555268406868,
-0.010597364977002144,
0.006904772482812405,
-0.05693375691771507,
0.032460909336805344,
-0.004959566984325647,
0.0678231418132782,
0.01437473762780428,
-0.04807906970381737,
-0.0020829711575061083,
0.04996304586529732,
0.01693694479763508,
-0.05742359161376953,
0.028843672946095467,
-0.015985537320375443,
-0.009890873916447163,
0.016748547554016113,
-0.026922017335891724,
0.08025737851858139,
-0.01911293715238571,
0.006706954911351204,
-0.013630567118525505,
-0.04517774656414986,
0.009014825336635113,
0.02023390308022499,
-0.0024774286430329084,
-0.015561642125248909,
0.028448037803173065,
-0.03315797820687294,
-0.05753662809729576,
0.014751533046364784,
-0.009504659101366997,
-0.0281277634203434,
0.052713651210069656,
0.021665723994374275,
-0.029333507642149925,
-0.004026998765766621,
0.02790168486535549,
-0.02675246074795723,
0.022796111181378365,
0.01596669666469097,
0.01230236329138279,
-0.034834716469049454,
0.03933741897344589,
-0.02121357060968876,
0.04174891114234924,
0.021948320791125298,
-0.04009101167321205,
0.04777763411402702,
0.0010114596225321293,
0.008256524801254272,
-0.017144182696938515,
-0.02925814874470234,
0.014035621657967567,
-0.0006211233558133245,
-0.06040027365088463,
-0.06541164964437485,
0.008510861545801163,
0.01230236329138279,
0.03477820008993149,
-0.021948320791125298,
-0.05301508679986,
-0.007837340235710144,
0.031217483803629875,
0.03168847784399986,
-0.017436198890209198,
0.012707418762147427,
0.012151645496487617,
-0.05618016794323921,
0.003346412442624569,
0.032611627131700516,
-0.00622183084487915,
-0.0032168892212212086,
0.021006332710385323,
-0.014421836473047733,
0.04148515313863754,
-0.03415648639202118,
0.017360839992761612,
0.04329377040266991,
0.041372112929821014,
-0.007107299752533436,
0.01074808370321989,
0.012132805772125721,
-0.028598757460713387,
0.04193730652332306,
0.05286436900496483,
-0.010512586683034897,
-0.04031708836555481,
0.05538889765739441,
-0.009080764837563038,
-0.021439647302031517,
0.007870309986174107,
-0.03801863640546799,
-0.02888135239481926,
0.04570525884628296,
-0.08892367035150528,
-0.005510630086064339,
-0.01731373928487301,
0.05437155067920685,
0.042012665420770645,
0.02484964393079281,
0.003431191435083747,
0.026224946603178978,
-0.06077706813812256,
-0.004311950411647558,
-0.0524875745177269,
0.04005333036184311,
-0.008887656964361668,
0.025301799178123474,
-0.011303856037557125,
-0.034872397780418396,
-0.02673362009227276,
0.03990261256694794,
-0.015476863831281662,
0.00028038863092660904,
0.011586452834308147,
-0.039111342281103134,
0.004860658198595047,
-0.03442024439573288,
-0.07302290946245193,
-0.03833891451358795,
0.0021983645856380463,
0.02639450505375862,
-0.038772229105234146,
0.003765597240999341,
-0.024529367685317993,
-0.06480877846479416,
-0.07501992583274841,
-0.036228861659765244,
-0.006127632223069668,
0.06771010160446167,
0.034495603293180466,
0.015401504002511501,
0.01117197796702385,
0.033233337104320526
] |
20,912 | precession.precession | rupdown |
The critical separations r_ud+/- marking the region of the up-down precessional instability.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
rudm: float
Inner orbital separation in the up-down instability.
rudp: float
Outer orbital separation in the up-down instability.
Examples
--------
``rudp,rudm = precession.rupdown(q,chi1,chi2)``
| def rupdown(q, chi1, chi2):
"""
The critical separations r_ud+/- marking the region of the up-down precessional instability.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
rudm: float
Inner orbital separation in the up-down instability.
rudp: float
Outer orbital separation in the up-down instability.
Examples
--------
``rudp,rudm = precession.rupdown(q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
#Ignore q=1 "divide by zero" warning here
with warnings.catch_warnings():
warnings.filterwarnings("ignore", category=RuntimeWarning)
rudp = (chi1**0.5+(q*chi2)**0.5)**4/(1-q)**2
rudm = (chi1**0.5-(q*chi2)**0.5)**4/(1-q)**2
return np.stack([rudp, rudm])
| (q, chi1, chi2) | [
-0.058760855346918106,
0.025800535455346107,
-0.05322829633951187,
-0.0163897592574358,
-0.03648597002029419,
0.0022894132416695356,
0.02616214007139206,
-0.015051819384098053,
-0.01032382994890213,
-0.0015029219212010503,
0.03916184976696968,
0.049069833010435104,
0.00848416332155466,
0.09286022931337357,
-0.03912568837404251,
0.05185419321060181,
0.07405675947666168,
0.004840990528464317,
-0.01315339095890522,
-0.008407322689890862,
-0.006581215653568506,
0.020159494131803513,
0.02655990608036518,
0.07868530601263046,
-0.07680495828390121,
-0.015395344235002995,
-0.004599167034029961,
-0.06465502083301544,
-0.024733800441026688,
-0.03876408562064171,
-0.015594227239489555,
0.06613760441541672,
-0.02449875697493553,
0.007932715117931366,
0.005659122485667467,
0.00043392632505856454,
0.07441836595535278,
0.0545300729572773,
-0.05029929056763649,
0.031170373782515526,
-0.03670293465256691,
-0.01210473570972681,
0.042524777352809906,
-0.051709551364183426,
0.05771220102906227,
0.046755559742450714,
-0.030917249619960785,
-0.03129693493247032,
-0.030194038525223732,
0.011390565894544125,
0.06939204782247543,
-0.00793723575770855,
-0.009347495622932911,
0.009483098052442074,
-0.0025560972280800343,
0.016480159014463425,
-0.008276239968836308,
0.014907176606357098,
-0.007299906108528376,
-0.040065862238407135,
-0.029525069519877434,
0.01653440110385418,
0.012638104148209095,
0.05033545196056366,
0.03207438811659813,
0.007236625533550978,
-0.016615761443972588,
-0.031134212389588356,
0.009944144636392593,
0.024046750739216805,
-0.05286668986082077,
0.05055241659283638,
-0.04317566752433777,
-0.019345881417393684,
0.07861298322677612,
0.026957672089338303,
0.03339424729347229,
-0.01037807110697031,
0.010558873414993286,
-0.030736446380615234,
0.027753204107284546,
0.01818874478340149,
0.044983696192502975,
-0.03234558925032616,
0.011074161157011986,
0.046827882528305054,
0.018966196104884148,
-0.03706454113125801,
0.0008966680616140366,
0.004402543883770704,
-0.04516449570655823,
-0.07242953032255173,
-0.025746295228600502,
0.01254770252853632,
0.0749969333410263,
0.02825945056974888,
-0.07405675947666168,
-0.01630839705467224,
-0.10848157852888107,
-0.06747554242610931,
0.02214832231402397,
0.04317566752433777,
0.0012859586859121919,
-0.009049171581864357,
-0.019815968349575996,
-0.04841894283890724,
-0.02370322495698929,
0.04118683934211731,
0.014852936379611492,
-0.057314433157444,
-0.05250508338212967,
-0.002784360432997346,
-0.02759048156440258,
0.01308107003569603,
-0.05586801469326019,
-0.05655506253242493,
-0.04885287210345268,
0.01936396211385727,
0.022799212485551834,
0.023594742640852928,
-0.0019662287086248398,
-0.010902398265898228,
0.003184386296197772,
-0.015078939497470856,
-0.0012045975308865309,
-0.04306718707084656,
-0.004416104406118393,
0.0787576287984848,
-0.02957930974662304,
-0.01730281114578247,
0.012818906456232071,
-0.049431439489126205,
-0.05753139778971672,
-0.000028674166969722137,
-0.012954508885741234,
-0.00971814151853323,
0.030627965927124023,
0.012348819524049759,
0.06711393594741821,
0.04733412712812424,
0.04060827195644379,
0.008497723378241062,
-0.0007684112060815096,
0.031134212389588356,
0.025800535455346107,
0.07402059435844421,
0.023486262187361717,
0.06027959659695625,
0.007372227497398853,
0.042633261531591415,
-0.09343879669904709,
0.05199883505702019,
0.07817905396223068,
-0.017763858661055565,
0.08382009714841843,
-0.08931650221347809,
0.027011912316083908,
-0.03588932380080223,
-0.018966196104884148,
-0.04621315374970436,
0.011490006931126118,
-0.02769896388053894,
0.008402802050113678,
0.02666838839650154,
0.015928711742162704,
0.009293255396187305,
0.04285022243857384,
0.006811738945543766,
0.003080424852669239,
0.03361120820045471,
0.0019944789819419384,
0.006002647336572409,
0.0034691505134105682,
-0.0005517305107787251,
-0.03086300939321518,
-0.0348406657576561,
-0.05785684287548065,
-0.006160849705338478,
-0.024299873039126396,
-0.0660291239619255,
0.032110545784235,
-0.01840570755302906,
0.019165078178048134,
-0.06205146387219429,
0.005659122485667467,
0.0466470792889595,
0.02759048156440258,
-0.006206050515174866,
0.03285183757543564,
-0.013894681818783283,
0.010992799885571003,
-0.02317889779806137,
0.01616375520825386,
0.009049171581864357,
0.11810027807950974,
-0.022365285083651543,
-0.01855034939944744,
0.047117166221141815,
0.042452458292245865,
-0.008127078413963318,
0.0011740870540961623,
0.023052334785461426,
0.02406482957303524,
-0.0007181254331953824,
0.015006618574261665,
0.024119071662425995,
-0.05785684287548065,
0.013994123786687851,
0.06910276412963867,
-0.015865430235862732,
0.047153327614068985,
0.010613114573061466,
0.012267458252608776,
-0.025854775682091713,
-0.04064442962408066,
0.025746295228600502,
0.02064765989780426,
-0.02442643605172634,
0.007539469748735428,
0.00008136118412949145,
0.06548671424388885,
0.009474057704210281,
0.0070287021808326244,
-0.01440092921257019,
-0.044730570167303085,
0.022690730169415474,
-0.053915344178676605,
0.039740417152643204,
-0.0026080780662596226,
-0.029362346976995468,
0.024968843907117844,
-0.028494494035840034,
-0.007069382816553116,
-0.05510864034295082,
0.01686888560652733,
0.0531921349465847,
-0.09307719767093658,
0.010585994459688663,
0.04053594917058945,
0.05485551804304123,
-0.0660291239619255,
0.02560165338218212,
0.005148354917764664,
0.058652374893426895,
0.03268911689519882,
-0.04867206886410713,
-0.024661479517817497,
0.002282633213326335,
-0.012520582415163517,
0.04516449570655823,
-0.017845219001173973,
-0.06212378293275833,
-0.046972524374723434,
0.01719433069229126,
0.030627965927124023,
0.02674070931971073,
-0.013469795696437359,
-0.01032382994890213,
0.017357053235173225,
0.0030261839274317026,
0.06895812600851059,
-0.067005455493927,
0.018803473562002182,
0.011399606242775917,
-0.08787007629871368,
0.0004051108844578266,
-0.008000516332685947,
-0.023630904033780098,
-0.04129531979560852,
-0.03301456198096275,
-0.0483466237783432,
0.025890937075018883,
-0.05257740616798401,
-0.019201239570975304,
-0.012375939637422562,
0.06747554242610931,
0.0296877920627594,
-0.01965324580669403,
0.014274368062615395,
-0.002890581963583827,
0.03818551450967789,
-0.06964517384767532,
0.01911083795130253,
0.047117166221141815,
0.0006039937725290656,
0.002211442217230797,
-0.008936170488595963,
-0.001956058433279395,
0.06523358821868896,
0.01103800069540739,
0.031134212389588356,
-0.00479578971862793,
-0.01634455844759941,
0.008832208812236786,
0.08071029186248779,
0.03500339016318321,
-0.034732185304164886,
-0.006942821200937033,
0.0035053109750151634,
0.07962547987699509,
-0.03167662024497986,
-0.012348819524049759,
-0.04661091789603233,
0.022690730169415474,
0.005392438266426325,
-0.027988247573375702,
0.08895489573478699,
-0.03869176283478737,
-0.036540210247039795,
-0.025402769446372986,
-0.06678849458694458,
0.01755593530833721,
-0.030591804534196854,
0.05308365076780319,
-0.049069833010435104,
-0.06754786521196365,
0.013551156967878342,
0.026686469092965126,
0.030194038525223732,
0.0011153261875733733,
-0.012574822641909122,
-0.009293255396187305,
0.05818228796124458,
0.05344525724649429,
-0.037679269909858704,
-0.0068795401602983475,
-0.0679817870259285,
0.03393665328621864,
0.03129693493247032,
0.023974427953362465,
-0.06635456532239914,
0.02616214007139206,
-0.02307041548192501,
0.03717302158474922,
0.024697639048099518,
-0.019942529499530792,
0.0390172079205513,
-0.04429664462804794,
0.006111128721386194,
-0.00535627780482173,
-0.0034940107725560665,
0.04057211056351662,
-0.03189358487725258,
-0.03196590393781662,
0.05995415151119232,
-0.0009559938916936517,
0.020900784060359,
0.0308991689234972,
0.060641203075647354,
0.07304426282644272,
-0.005134794861078262,
-0.015268782153725624,
-0.001053740386851132,
0.015268782153725624,
0.035654280334711075,
0.0476234145462513,
-0.033050719648599625,
-0.024046750739216805,
0.09264326840639114,
-0.04610466957092285,
0.008262679912149906,
-0.013777160085737705,
-0.011761210858821869,
-0.022509926930069923,
-0.007869434542953968,
-0.03836631774902344,
-0.07304426282644272,
-0.02135279029607773,
-0.08338617533445358,
0.03388241305947304,
-0.03652213141322136,
0.02153359353542328,
-0.011191682890057564,
0.0029561230912804604,
-0.01807122305035591,
0.060930486768484116,
-0.009691021405160427,
0.013713879510760307,
-0.023233138024806976,
-0.006513414904475212,
-0.00012295991473365575,
-0.046791721135377884,
-0.10247892886400223,
0.03858328238129616,
0.004346043337136507,
0.01379524078220129,
-0.04115067794919014,
0.03854712098836899,
0.01537726353853941,
-0.013686759397387505,
0.0014735414879396558,
0.009672940708696842,
0.04060827195644379,
0.03420785814523697,
-0.04845510423183441,
0.017899461090564728,
0.005057953763753176,
-0.002388854743912816,
-0.007331546861678362,
0.009455977939069271,
-0.01313531119376421,
0.011227843351662159,
-0.02431795373558998,
0.030374841764569283,
-0.00036471281782723963,
-0.0019391082460060716,
-0.013885642401874065,
0.05011849105358124,
-0.006843379698693752,
-0.02652374655008316,
-0.027644721791148186,
-0.036648694425821304,
-0.022564169019460678,
0.04183772951364517,
-0.03908952698111534,
-0.028042487800121307,
-0.020484937354922295,
-0.01972556672990322,
-0.01609143428504467,
0.06346172094345093,
0.008095437660813332,
-0.039921220391988754,
-0.04353727400302887,
0.04295870661735535,
0.00030877700191922486,
-0.011761210858821869,
0.01763729751110077,
0.028313692659139633,
0.04530913755297661,
0.06516126543283463,
-0.018288185819983482,
0.053951505571603775,
-0.038113195449113846,
-0.06367868930101395,
-0.014265327714383602,
0.00571336317807436,
0.03608820587396622,
0.06306395679712296,
0.03252639248967171,
0.05763987824320793,
-0.037860069423913956,
0.036576371639966965,
0.030483324080705643,
-0.038040872663259506,
-0.002026119502261281,
-0.003421689849346876,
-0.03632324934005737,
-0.01755593530833721,
-0.04411584138870239,
-0.034442901611328125,
0.015187420882284641,
0.015567106194794178,
-0.04147612303495407,
0.021117746829986572,
0.02384786680340767,
-0.03399089351296425,
-0.04899751394987106,
0.010296709835529327,
-0.015313982963562012,
-0.025764374062418938,
0.05749523639678955,
0.022365285083651543,
-0.03948729485273361,
0.08794239908456802,
-0.0009921544697135687,
0.0880870446562767,
0.07029606401920319,
-0.04852742701768875,
-0.03605204448103905,
-0.02263648994266987,
0.02039453759789467,
-0.0341716967523098,
-0.0049042715691030025,
0.005487360060214996,
0.03388241305947304,
0.0026962191332131624,
0.010070706717669964,
-0.0009763342095538974,
0.011056080460548401,
-0.03930649161338806,
-0.007132663857191801,
-0.05883317440748215,
-0.011209762655198574,
0.03107997216284275,
-0.013370354659855366,
-0.06754786521196365,
-0.06921124458312988,
-0.007810673676431179,
-0.02178671769797802,
-0.0673670619726181,
-0.005708843003958464,
-0.02164207398891449,
-0.03887256607413292,
-0.03200206533074379,
-0.03908952698111534,
0.007946275174617767,
0.0031459657475352287,
-0.056627385318279266,
0.011815452016890049,
-0.046755559742450714,
0.05442159250378609,
0.051818035542964935,
-0.015286862850189209,
-0.030411003157496452,
-0.023648984730243683,
0.03585316240787506,
0.0617983378469944,
0.046864040195941925,
-0.018694991245865822,
-0.016841765493154526,
0.0053201173432171345,
-0.01130016427487135,
0.032110545784235,
0.014156846329569817,
0.0070558227598667145,
0.012059535831212997,
-0.01649823971092701,
0.012900267727673054,
0.0071462239138782024,
-0.0055280402302742004,
-0.02292577363550663,
0.02196751907467842,
0.04411584138870239,
0.037823911756277084,
-0.004049979150295258,
0.013885642401874065,
0.004359603393822908,
0.015133180655539036,
0.0196894071996212,
0.00971814151853323,
-0.044658251106739044,
-0.007159783970564604,
0.014825815334916115,
0.021804796531796455,
0.029000742360949516,
0.05738675594329834,
-0.047044843435287476,
-0.0203583762049675,
-0.05290285125374794,
-0.007412907667458057,
0.014464210718870163,
0.00634617218747735,
0.02556549198925495,
-0.0028182610403746367,
-0.018984276801347733,
0.02645142562687397,
-0.0159015916287899,
0.02410099096596241,
0.02263648994266987,
-0.01315339095890522,
-0.08280760794878006,
-0.019815968349575996,
0.015539986081421375,
0.012294579297304153,
0.05026313289999962,
0.06534206867218018,
0.004886190872639418,
0.011209762655198574,
0.04335647076368332,
-0.01671520248055458,
-0.03399089351296425,
-0.033340003341436386,
0.03395473584532738,
-0.035545796155929565,
-0.03299647942185402,
0.0324721522629261,
-0.02093694545328617,
0.029000742360949516,
0.004723468795418739,
-0.020032931119203568,
-0.03343040496110916,
0.013659638352692127,
-0.017076808959245682,
-0.01030575018376112,
-0.08548348397016525,
-0.044224321842193604,
0.07420139759778976,
-0.04990152642130852,
0.03818551450967789,
-0.020846543833613396,
0.009320375509560108,
0.007589190267026424,
0.03239983320236206,
-0.05528944358229637,
-0.009745261631906033,
0.009211894124746323,
-0.005134794861078262,
0.05257740616798401,
0.03366544842720032,
-0.03068220615386963,
0.021949440240859985,
-0.060822006314992905,
-0.011923933401703835,
-0.024625318124890327,
-0.01418396644294262,
-0.028277531266212463,
0.002021599328145385,
-0.009989345446228981,
0.0030713847372680902,
-0.019038517028093338,
0.03306880220770836,
-0.0018453168449923396,
0.031911663711071014,
-0.028006328269839287,
-0.020032931119203568,
-0.0033222483471035957,
-0.015820229426026344,
-0.02406482957303524,
-0.011218803003430367,
0.006739418022334576,
0.06559519469738007,
0.027210796251893044,
-0.005505440291017294,
0.05716979131102562,
-0.019128918647766113,
-0.005835405085235834,
-0.015006618574261665,
-0.09314951300621033,
-0.02759048156440258,
0.05518096312880516,
-0.024372193962335587,
0.017574016004800797,
0.027753204107284546,
-0.029109222814440727,
-0.02891034074127674,
0.010929519310593605,
0.005514480173587799,
-0.029742032289505005,
0.012258418835699558,
0.02024989388883114,
0.040102023631334305,
-0.01555806677788496,
0.042814064770936966,
-0.027644721791148186,
-0.08302456885576248,
0.024571077898144722,
-0.01037807110697031,
-0.012276498600840569,
-0.008705646730959415,
0.016561521217226982,
0.014925257302820683,
0.020159494131803513,
-0.02321505732834339,
0.03509379178285599,
-0.02567397430539131,
-0.05051625519990921,
-0.013623477891087532,
-0.015350143425166607,
-0.028114808723330498,
0.00627385126426816,
0.0028815418481826782,
0.049250636249780655,
0.03135117515921593,
-0.01025150902569294,
-0.031459659337997437,
-0.014075485058128834,
-0.009754301980137825,
0.03107997216284275,
-0.01194201409816742,
0.020159494131803513,
-0.016190875321626663,
0.0031572659499943256,
-0.0024973363615572453,
0.02424563281238079,
0.0022769831120967865,
0.07969780266284943,
0.1083369329571724,
-0.016814645379781723,
-0.06559519469738007,
-0.05492784082889557,
0.023124655708670616,
-0.019924450665712357,
0.030808769166469574,
-0.06150905415415764,
-0.011923933401703835,
-0.0015775029314681888,
0.0006486294441856444,
0.009022051468491554,
0.025764374062418938,
0.00782423373311758,
0.01755593530833721,
0.07116391509771347,
-0.00004113966133445501,
-0.022238723933696747,
0.047297969460487366,
0.022292964160442352,
0.022582247853279114,
0.009121492505073547,
-0.05434926971793175,
-0.0048455107025802135,
0.02634294331073761,
0.007842314429581165,
-0.02200368046760559,
-0.006242210976779461,
0.029036901891231537,
-0.02370322495698929,
-0.0034940107725560665,
-0.00826720055192709,
-0.014572692103683949,
-0.0005602056626230478,
0.07521389424800873,
-0.03717302158474922,
0.01543150469660759,
0.007110063452273607,
-0.049576081335544586,
0.08353081345558167,
0.03111613355576992,
-0.014880056492984295,
0.0007418558234348893,
-0.003150485921651125,
-0.0016837244620546699,
0.013270912691950798,
-0.018053142353892326,
-0.04802117869257927,
0.007946275174617767,
0.037860069423913956,
-0.01130016427487135,
0.05445775389671326,
-0.02858489565551281,
0.022491848096251488,
-0.013632518239319324,
-0.00486811064183712,
0.02737351879477501,
-0.05185419321060181,
-0.054313112050294876,
0.015585186891257763,
0.013894681818783283,
-0.007593710441142321,
-0.037860069423913956,
-0.020069092512130737,
-0.04986536502838135,
0.020123332738876343,
-0.019996771588921547,
0.006649016868323088,
0.001942498260177672,
-0.06263003498315811,
-0.004981112666428089,
-0.03923417255282402,
0.04831046238541603,
0.017248570919036865,
-0.026035578921437263,
-0.017329931259155273,
0.04570690542459488,
-0.026433344930410385,
-0.030374841764569283,
-0.016561521217226982,
-0.018713071942329407,
-0.01815258339047432,
0.012665224261581898,
-0.03395473584532738,
0.08743615448474884,
-0.010576954111456871,
0.00525231659412384,
-0.05579569190740585,
0.02182287722826004,
-0.01796274073421955,
0.023739386349916458,
0.003197946585714817,
-0.029525069519877434,
-0.03252639248967171,
-0.015323023311793804,
0.03464178368449211,
-0.014138765633106232,
0.06512510776519775,
0.04125916212797165,
0.06642688810825348,
-0.00808187760412693,
-0.0028024406637996435
] |
20,913 | precession.precession | sample_unitsphere |
Sample points uniformly on a sphere of unit radius. Returns array of shape (N,3).
Parameters
----------
N: integer, optional (default: 1)
Number of samples.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = sample_unitsphere(N=1)``
| def sample_unitsphere(N=1):
"""
Sample points uniformly on a sphere of unit radius. Returns array of shape (N,3).
Parameters
----------
N: integer, optional (default: 1)
Number of samples.
Returns
-------
vec: array
Vector in Cartesian coomponents.
Examples
--------
``vec = sample_unitsphere(N=1)``
"""
vec = np.random.randn(3, N)
vec /= np.linalg.norm(vec, axis=0)
return vec.T
| (N=1) | [
-0.016927074640989304,
-0.01000920683145523,
-0.005757508333772421,
-0.04914254695177078,
0.018778333440423012,
0.04343818500638008,
-0.02379179559648037,
-0.0010418875608593225,
0.03971794992685318,
0.04613092541694641,
-0.0017981140408664942,
0.026697121560573578,
-0.020036129280924797,
0.01663476973772049,
-0.048681944608688354,
-0.00806936901062727,
0.003018263028934598,
-0.021382499486207962,
-0.041524920612573624,
-0.028486378490924835,
0.0025864497292786837,
0.06306685507297516,
0.05654758960008621,
0.024340972304344177,
0.0022011396940797567,
0.008078226819634438,
-0.009761190973222256,
-0.042587846517562866,
0.0006881329463794827,
-0.031001966446638107,
0.011178423650562763,
0.03116140514612198,
0.024358687922358513,
0.03769839182496071,
0.021949391812086105,
-0.01781284436583519,
0.049709439277648926,
-0.004858450964093208,
-0.04439481720328331,
0.036352019757032394,
-0.01781284436583519,
-0.023118609562516212,
0.04882366955280304,
0.01799885556101799,
-0.003071409184485674,
0.015084671787917614,
0.07291662693023682,
0.04109974950551987,
-0.05714991316199303,
0.031090544536709785,
0.01923893578350544,
0.06639735400676727,
-0.010700107552111149,
-0.04510343447327614,
0.0007977470522746444,
-0.033995870500802994,
-0.02035500481724739,
-0.014420343562960625,
0.015961583703756332,
0.019433803856372833,
0.006430693902075291,
-0.004510786384344101,
0.020992759615182877,
-0.005753079429268837,
-0.009212013334035873,
-0.05729163438081741,
0.044288523495197296,
0.07681401818990707,
0.0658658966422081,
-0.008609688840806484,
0.018760619685053825,
0.03794640675187111,
-0.010168645530939102,
0.010336941108107567,
-0.0008088191971182823,
0.06728312373161316,
0.013667438179254532,
0.01216162834316492,
0.03691891208291054,
-0.005221616942435503,
-0.006492697633802891,
0.0016121022636070848,
0.01648418791592121,
0.003361498937010765,
-0.047264713793992996,
0.025882214307785034,
-0.03103739768266678,
-0.016847355291247368,
-0.00040385598549619317,
-0.01902635022997856,
-0.00951317511498928,
0.03436789661645889,
-0.005598069634288549,
-0.004947028122842312,
-0.010496379807591438,
0.028486378490924835,
0.028911547735333443,
-0.03339354693889618,
-0.035891421139240265,
-0.0008885384886525571,
0.005354482680559158,
-0.020868752151727676,
0.022658009082078934,
0.03922191634774208,
0.02072702907025814,
0.08028623461723328,
-0.026449106633663177,
-0.00901714339852333,
-0.02630738355219364,
0.11628394573926926,
0.0072367447428405285,
0.06579503417015076,
0.0028322511352598667,
-0.060055237263441086,
-0.06186221167445183,
-0.023650072515010834,
-0.039824239909648895,
0.04910711571574211,
-0.053146228194236755,
-0.03532452508807182,
0.05257933586835861,
0.003673732979223132,
-0.0285926703363657,
-0.008414819836616516,
0.026838846504688263,
0.007502476219087839,
-0.009840910322964191,
-0.044253092259168625,
-0.03488164022564888,
0.036387450993061066,
0.037840116769075394,
0.039363641291856766,
0.060303255915641785,
-0.008556542918086052,
0.0019564456306397915,
-0.0014670573873445392,
-0.019664105027914047,
-0.022037969902157784,
0.04014311730861664,
0.027937201783061028,
0.019788112491369247,
0.03231290727853775,
0.019876690581440926,
0.04166664183139801,
-0.025545621290802956,
0.050878655165433884,
0.02317175641655922,
-0.04559946432709694,
-0.01613873802125454,
-0.03897390142083168,
-0.018796049058437347,
0.003753452328965068,
0.11713428795337677,
-0.009761190973222256,
-0.036352019757032394,
-0.0467686802148819,
0.047477297484874725,
-0.12308666855096817,
0.003383643226698041,
-0.011258143000304699,
-0.038336146622896194,
0.008702695369720459,
-0.06469667702913284,
0.029177280142903328,
-0.04832763597369194,
0.04262327402830124,
-0.007095021661370993,
0.010717823170125484,
-0.03562568873167038,
-0.03925734758377075,
0.0029141849372535944,
0.03900933265686035,
0.04241069033741951,
0.021081337705254555,
0.0599135160446167,
-0.02209111675620079,
-0.03562568873167038,
-0.005770794581621885,
-0.004010325763374567,
-0.07341265678405762,
0.0018922272138297558,
-0.053110796958208084,
0.042056381702423096,
-0.0262365210801363,
-0.0003404680173844099,
0.03240148350596428,
0.01902635022997856,
-0.011054415255784988,
0.0031799159478396177,
-0.03741494566202164,
0.01948695071041584,
0.016643626615405083,
-0.03426160290837288,
0.027441170066595078,
0.01790142059326172,
0.023402055725455284,
-0.0034722203854471445,
-0.017927994951605797,
-0.05555552616715431,
-0.038336146622896194,
-0.04662695899605751,
0.03296837583184242,
-0.021701376885175705,
-0.04113518074154854,
-0.004369062837213278,
-0.021949391812086105,
-0.014810082502663136,
0.006944440770894289,
0.0075511932373046875,
0.021577369421720505,
0.05300450697541237,
-0.05204787477850914,
0.023313479498028755,
0.031338561326265335,
-0.003985967021435499,
0.03374785557389259,
0.0044332812540233135,
-0.06345659494400024,
-0.03971794992685318,
-0.011807320639491081,
0.01741424761712551,
-0.036848053336143494,
0.011231569573283195,
0.0251204501837492,
-0.05672474205493927,
0.060763854533433914,
0.029815034940838814,
0.01586414873600006,
-0.06366918236017227,
-0.06037411466240883,
0.019008634611964226,
0.000921754923183471,
0.06714140623807907,
-0.018193725496530533,
-0.06001980975270271,
-0.09396253526210785,
0.03521823510527611,
0.004730014596134424,
0.0509849488735199,
-0.011204997077584267,
-0.04861108586192131,
-0.03126769885420799,
-0.01961095817387104,
0.059346623718738556,
-0.027901770547032356,
0.057114481925964355,
-0.040532857179641724,
0.03617486730217934,
0.01883148029446602,
0.0025775921531021595,
-0.04857565462589264,
0.027458885684609413,
-0.004054614342749119,
0.028043493628501892,
0.0547051839530468,
-0.04613092541694641,
0.022693440318107605,
0.00968147162348032,
0.007613197434693575,
0.005584782920777798,
-0.05119753256440163,
-0.07001130282878876,
0.04170207306742668,
0.05332338437438011,
-0.01270194910466671,
-0.013844592496752739,
-0.03532452508807182,
0.032454632222652435,
0.008494539186358452,
0.030629944056272507,
0.11224483698606491,
0.02763604000210762,
-0.0022011396940797567,
-0.05201244354248047,
0.04815048351883888,
0.04365076869726181,
0.024588989093899727,
0.02292373962700367,
-0.0125602250918746,
0.010505237616598606,
-0.029017841443419456,
0.009885198436677456,
0.024978727102279663,
0.045032572001218796,
-0.03165743872523308,
0.005203901790082455,
0.022232839837670326,
0.006612276658415794,
0.055094923824071884,
-0.018920058384537697,
-0.016059018671512604,
0.02056759037077427,
-0.04322560131549835,
-0.06717683374881744,
-0.04559946432709694,
-0.015784429386258125,
-0.08638034015893936,
-0.035023365169763565,
0.011391008272767067,
-0.02667940780520439,
0.00030254598823376,
0.008591974154114723,
-0.014119181782007217,
0.025953074917197227,
0.025917643681168556,
0.03567883372306824,
-0.009026001207530499,
-0.061507903039455414,
-0.019681820645928383,
-0.052118733525276184,
-0.04910711571574211,
-0.0023229331709444523,
-0.03571426495909691,
0.0034677914809435606,
0.058354560285806656,
0.05803568288683891,
-0.004302630200982094,
0.0034766490571200848,
0.019256649538874626,
0.004539573565125465,
0.0030027618631720543,
-0.014898659661412239,
0.003352641360834241,
0.0282206479460001,
0.03989510238170624,
-0.003974894993007183,
-0.026927422732114792,
0.01961095817387104,
-0.032543208450078964,
0.013295414857566357,
-0.0001714796235319227,
-0.015970442444086075,
-0.02106362208724022,
0.035395387560129166,
-0.022392278537154198,
-0.023366624489426613,
0.04432395473122597,
0.025846783071756363,
0.01194018591195345,
-0.023561494424939156,
0.0008431427995674312,
-0.01833544857800007,
-0.02196710743010044,
0.013339703902602196,
-0.049992885440588,
0.018043145537376404,
0.0599135160446167,
-0.06643278896808624,
0.03036421164870262,
-0.054350875318050385,
0.029939042404294014,
0.035979997366666794,
0.08085312694311142,
0.0029053271282464266,
0.014154612086713314,
0.06799174100160599,
-0.014712647534906864,
0.00935373641550541,
-0.0715702548623085,
-0.010717823170125484,
0.01998298242688179,
0.010540668852627277,
0.037096068263053894,
-0.05686646327376366,
-0.028397802263498306,
-0.003695877268910408,
0.016927074640989304,
-0.01729024015367031,
-0.03149800002574921,
0.06480296701192856,
-0.03939907252788544,
-0.032702647149562836,
-0.03698977455496788,
0.017617974430322647,
0.03233062103390694,
0.01187818218022585,
-0.004442139063030481,
-0.007754920516163111,
-0.047441866248846054,
-0.030346496030688286,
-0.0247484277933836,
-0.003642731113359332,
0.036600034683942795,
0.014429201371967793,
-0.007161454297602177,
0.014677217230200768,
-0.004530716221779585,
0.042304396629333496,
-0.04545774310827255,
-0.0026240949518978596,
-0.045280586928129196,
0.0071348813362419605,
0.023596925660967827,
-0.010850688442587852,
-0.005137468688189983,
0.014216615818440914,
-0.04634351283311844,
-0.0011055523063987494,
-0.08730153739452362,
0.04861108586192131,
-0.03748580813407898,
0.0063598318956792355,
-0.02134706825017929,
0.008277525193989277,
-0.07075534760951996,
-0.08971083164215088,
-0.016679057851433754,
-0.10225334763526917,
0.02772461622953415,
-0.02366778813302517,
-0.03187002241611481,
0.024996442720294,
0.027458885684609413,
-0.0046812971122562885,
0.018813764676451683,
-0.0020051628816872835,
-0.018725188449025154,
-0.028450947254896164,
-0.016289319843053818,
0.05399657040834427,
0.035519395023584366,
-0.0626416876912117,
0.006665423046797514,
0.06558244675397873,
0.05360683053731918,
-0.0022985744290053844,
0.06756657361984253,
-0.02326033264398575,
0.04042656347155571,
0.005168470554053783,
-0.033871863037347794,
0.0012710806913673878,
-0.06593675166368484,
-0.010204075835645199,
0.021488791331648827,
-0.012737379409372807,
-0.022852879017591476,
-0.032702647149562836,
-0.06299600005149841,
0.05998437851667404,
-0.01270194910466671,
0.052118733525276184,
-0.040603719651699066,
0.026998285204172134,
-0.004960314836353064,
0.00240486697293818,
0.003939464222639799,
-0.0064705535769462585,
0.04099345952272415,
-0.03918648511171341,
0.044040508568286896,
-0.005265905521810055,
0.0016419970197603106,
-0.08999428153038025,
0.07440472394227982,
0.001519096433185041,
-0.007303177844733,
0.013694011606276035,
-0.08177433162927628,
-0.03752123937010765,
0.008255381137132645,
0.03571426495909691,
-0.024092957377433777,
-0.03408444672822952,
0.017325671389698982,
-0.02954930253326893,
0.007108307909220457,
0.022516286000609398,
0.005668931175023317,
-0.01821144111454487,
0.05059520900249481,
0.04361533746123314,
-0.004858450964093208,
0.014207758940756321,
0.04882366955280304,
-0.018317732959985733,
-0.1024659276008606,
0.045032572001218796,
-0.024712996557354927,
-0.028273794800043106,
-0.07011759281158447,
0.04914254695177078,
0.008379388600587845,
0.03408444672822952,
-0.03996596485376358,
0.01812286488711834,
0.047725312411785126,
0.03358841687440872,
0.07461730390787125,
-0.03766296058893204,
0.023154040798544884,
0.05796482041478157,
0.04237525910139084,
-0.007670772261917591,
-0.045032572001218796,
0.02063845284283161,
0.011718743480741978,
0.004823020193725824,
0.019540097564458847,
0.0919075459241867,
0.0494968555867672,
0.018636610358953476,
0.037096068263053894,
-0.017467394471168518,
-0.0025532334111630917,
0.028486378490924835,
-0.022888310253620148,
-0.030133912339806557,
-0.02072702907025814,
0.004171979147940874,
0.04903625324368477,
0.014305192977190018,
-0.006988729350268841,
-0.05059520900249481,
0.08822274208068848,
0.051693566143512726,
-0.027405738830566406,
0.014694931916892529,
-0.043261028826236725,
0.016227316111326218,
-0.004047971218824387,
0.007347465958446264,
-0.0795067623257637,
0.05920489877462387,
-0.02391580305993557,
-0.009070289321243763,
-0.026449106633663177,
-0.030027618631720543,
0.012586798518896103,
0.0051286108791828156,
-0.020868752151727676,
0.003937250003218651,
-0.05750421807169914,
0.008290811441838741,
0.01512010209262371,
0.03309238702058792,
-0.013685153797268867,
-0.050949517637491226,
0.14044776558876038,
-0.015943868085741997,
-0.036387450993061066,
-0.025598766282200813,
0.08985255658626556,
-0.012276778928935528,
-0.008467965759336948,
-0.0020804533269256353,
0.0034323607105761766,
-0.03521823510527611,
-0.008184519596397877,
0.03819442167878151,
0.03681262210011482,
-0.035926852375268936,
0.01135557796806097,
-0.023933518677949905,
0.06087014824151993,
-0.005088751204311848,
-0.01462407037615776,
-0.02481928840279579,
-0.07539678364992142,
0.05084322765469551,
0.0026218807324767113,
-0.02527988888323307,
0.04333189129829407,
0.04567032679915428,
-0.011329004541039467,
0.04272956773638725,
-0.013623150065541267,
0.00891970843076706,
0.03380100056529045,
-0.026874275878071785,
0.0034279318060725927,
0.02283516339957714,
-0.006067527923732996,
0.014827798120677471,
-0.009065860882401466,
-0.018131721764802933,
0.030275635421276093,
-0.0517289973795414,
-0.026962853968143463,
-0.02308317832648754,
-0.013632007874548435,
-0.019469235092401505,
-0.020053843036293983,
0.0016364610055461526,
0.0007722811424173415,
0.005434202030301094,
-0.040320273488759995,
-0.014703789725899696,
0.00862740445882082,
0.02246313914656639,
0.030877958983182907,
-0.0135522885248065,
0.013268841430544853,
-0.0018545819912105799,
0.015979299321770668,
-0.0725623145699501,
-0.033818718045949936,
-0.043261028826236725,
0.027441170066595078,
-0.013268841430544853,
-0.015385833568871021,
0.056335002183914185,
-0.0038619593251496553,
0.024358687922358513,
-0.0033017094247043133,
-0.029265856370329857,
-0.03840700909495354,
-0.05084322765469551,
-0.027405738830566406,
-0.0020217711571604013,
-0.003706949530169368,
-0.009043716825544834,
-0.04864651337265968,
-0.04907168447971344,
0.02196710743010044,
0.005766365677118301,
-0.04049742594361305,
0.0005835012998431921,
0.05257933586835861,
-0.03822985291481018,
-0.017635690048336983,
0.0013452639104798436,
-0.02180766873061657,
-0.01939837448298931,
-0.021453361958265305,
-0.06111816316843033,
0.052118733525276184,
-0.0028145357500761747,
-0.03996596485376358,
-0.028822971507906914,
0.005846085026860237,
-0.012445075437426567,
0.003343783551827073,
-0.032950662076473236,
-0.028114356100559235,
-0.0030049763154238462,
-0.08184519410133362,
0.019256649538874626,
0.003381428774446249,
0.07412127405405045,
0.08708895742893219,
-0.004446567967534065,
0.004654723685234785,
0.012879102490842342,
0.010832972824573517,
-0.027441170066595078,
-0.021364783868193626,
0.005828369874507189,
0.025935359299182892,
-0.024394119158387184,
-0.00849010981619358,
-0.0004509125428739935,
0.03036421164870262,
0.040780872106552124,
0.03404901921749115,
-0.04754815995693207,
-0.04535144940018654,
-0.03698977455496788,
0.030311066657304764,
-0.014827798120677471,
0.02531532011926174,
0.03879674896597862,
-0.03048822097480297,
0.015332686714828014,
-0.015438979491591454,
-0.011754174716770649,
-0.003627230180427432,
-0.035058796405792236,
-0.06296056509017944,
0.015722425654530525,
0.051162105053663254,
-0.010903834365308285,
0.041808366775512695,
-0.01636018045246601,
0.017299097031354904,
0.02797263115644455,
0.02382722683250904,
-0.019433803856372833,
-0.04492627829313278,
0.0273525919765234,
-0.017919136211276054,
-0.08390018343925476,
0.02954930253326893,
0.012259063310921192,
-0.018193725496530533,
0.012321067042648792,
-0.027281731367111206,
-0.04489084705710411,
0.0007567801512777805,
-0.011763031594455242,
-0.009628324769437313,
0.02354377880692482,
-0.013640865683555603,
0.01406603492796421,
0.0018645469099283218,
0.008560971356928349,
0.031125973910093307,
-0.0012710806913673878,
-0.0006305578863248229,
0.05498863011598587,
0.05948834493756294,
-0.04829220846295357,
-0.027919486165046692,
0.03318096324801445,
0.004880595486611128,
-0.009318305179476738,
-0.0010297081898897886,
0.014765794388949871,
0.059346623718738556,
0.03132084384560585,
-0.001247829175554216,
-0.0003695323830470443,
0.015323829837143421,
-0.007196885067969561,
-0.03364156186580658,
0.03475763276219368,
0.00484073581174016,
0.07075534760951996,
0.009442313574254513,
-0.009592894464731216,
-0.008321813307702541,
-0.07213714718818665,
-0.034190740436315536,
0.0032485632691532373,
-0.03819442167878151,
0.020549874752759933,
0.010744395665824413,
0.03567883372306824,
-0.04418223351240158,
0.0574333593249321,
-0.07327093183994293,
0.008206663653254509,
0.04042656347155571,
0.04758359119296074,
-0.006643278524279594,
0.016652485355734825,
-0.07086163759231567,
-0.028486378490924835,
-0.060338687151670456,
-0.07327093183994293,
0.005704361945390701,
0.014774651266634464,
0.06118902564048767,
-0.07203085720539093,
0.021152198314666748,
-0.004637008532881737,
0.03946993127465248,
-0.014889801852405071,
0.02333119511604309,
-0.05226045846939087,
0.005620213691145182,
0.04885910078883171,
-0.026431391015648842,
0.03716693073511124,
0.029531588777899742,
-0.011399866081774235,
-0.033694710582494736,
-0.009114578366279602,
-0.011798462830483913,
-0.02478385902941227,
-0.07018845528364182,
-0.026325099170207977,
0.011869324371218681,
0.050878655165433884,
-0.04609549418091774,
0.05672474205493927,
0.04124147444963455,
0.012817098759114742
] |
20,914 | precession.precession | scalar_nested |
Nested scalar product between a 1D and a 2D array.
Parameters
----------
k : float
Input scalar.
x : array
Input array.
Returns
-------
y : array
Scalar product array.
Examples
--------
``y = scalar_nested(k, x)``
| def scalar_nested(k, x):
"""
Nested scalar product between a 1D and a 2D array.
Parameters
----------
k : float
Input scalar.
x : array
Input array.
Returns
-------
y : array
Scalar product array.
Examples
--------
``y = scalar_nested(k, x)``
"""
return k[:,np.newaxis]*x
| (k, x) | [
-0.0015406502643600106,
-0.038472555577754974,
0.014476509764790535,
0.05435638129711151,
0.009313371032476425,
0.0131409065797925,
-0.029652195051312447,
-0.019182495772838593,
0.07730366289615631,
0.02941913716495037,
0.010254567489027977,
-0.04729292169213295,
0.0024672814179211855,
-0.006960377562791109,
-0.02599497139453888,
-0.016771238297224045,
0.06823232024908066,
-0.04087485000491142,
0.0010560457594692707,
0.03700249642133713,
0.010433843359351158,
-0.022015051916241646,
0.07282177358865738,
0.0449264794588089,
-0.025672275573015213,
0.021925413981080055,
0.050985999405384064,
-0.005996771156787872,
-0.028594467788934708,
-0.06260306388139725,
-0.015444598160684109,
0.06414483487606049,
0.022319819778203964,
0.004688058514147997,
0.004822515416890383,
0.023467184975743294,
-0.04033702239394188,
-0.025833623483777046,
-0.0033233226276934147,
0.0061670830473303795,
0.023341691121459007,
0.008475257083773613,
-0.0018353345803916454,
-0.02952670119702816,
0.02072426676750183,
0.0448906272649765,
0.03879525512456894,
0.012217636220157146,
-0.04406595975160599,
0.015704547986388206,
-0.00523036764934659,
-0.044962335377931595,
0.0036773921456187963,
-0.04162780940532684,
-0.05320901796221733,
0.060236621648073196,
0.026891348883509636,
0.01357116736471653,
-0.028433119878172874,
-0.04729292169213295,
-0.043922536075115204,
-0.0002874012861866504,
-0.030889196321368217,
0.0659375861287117,
-0.0420580692589283,
-0.03789887577295303,
-0.02179992012679577,
0.027967004105448723,
0.0068124751560389996,
0.003029758809134364,
-0.020025091245770454,
0.008291499689221382,
-0.01738077588379383,
-0.04736462980508804,
-0.007991212420165539,
0.019845815375447273,
-0.03987090662121773,
0.02122623845934868,
-0.0003540694306138903,
0.027482958510518074,
-0.05320901796221733,
-0.0015989148523658514,
-0.04998205602169037,
0.006444959901273251,
0.04044459015130997,
0.05858728662133217,
0.011742555536329746,
0.06217280030250549,
-0.04546430706977844,
0.03334527462720871,
0.022606661543250084,
0.006794547662138939,
-0.011016489937901497,
0.07443525642156601,
-0.014207595959305763,
0.03001074679195881,
-0.00951057393103838,
-0.020562918856739998,
-0.0025703648570924997,
0.013024376705288887,
0.04560772702097893,
-0.03711006045341492,
0.020795976743102074,
0.014395835809409618,
0.04087485000491142,
0.01738077588379383,
-0.007516132201999426,
0.0072472188621759415,
0.02511652000248432,
0.02714233472943306,
0.05740406736731529,
0.02522408589720726,
-0.00611330009996891,
-0.026138391345739365,
-0.05704551562666893,
0.012916811741888523,
-0.047651469707489014,
0.02923986129462719,
0.014709568582475185,
0.007722299080342054,
0.014879880473017693,
-0.0310684721916914,
0.010586228221654892,
-0.001955225132405758,
-0.03316599875688553,
0.015337033197283745,
0.008381137624382973,
0.0019776346161961555,
-0.022140543907880783,
0.00974363274872303,
-0.03160629794001579,
0.03420579805970192,
0.034169942140579224,
0.015175685286521912,
-0.01175151951611042,
-0.009528501890599728,
0.023951228708028793,
-0.03832913562655449,
0.05152382701635361,
-0.03460020199418068,
0.005154175218194723,
0.053173162043094635,
-0.03400859236717224,
0.04005018249154091,
0.012244528159499168,
-0.03325563669204712,
0.08347074687480927,
0.02158479019999504,
0.011186801828444004,
0.0014846265548840165,
-0.06228036433458328,
0.09444241970777512,
0.10871276259422302,
-0.0002930036571342498,
0.051452115178108215,
-0.02597704343497753,
0.040659721940755844,
-0.06428825110197067,
0.07386157661676407,
-0.00697382353246212,
-0.021154528483748436,
-0.019899599254131317,
-0.07959839701652527,
-0.013911791145801544,
-0.023180343210697174,
-0.043922536075115204,
0.011850121431052685,
-0.012916811741888523,
-0.004221941810101271,
-0.025492999702692032,
0.022803863510489464,
-0.03883110731840134,
-0.022857647389173508,
-0.020867686718702316,
0.021907486021518707,
-0.01749730482697487,
-0.0315345898270607,
-0.0031955887097865343,
0.014386871829628944,
-0.024130504578351974,
0.00023726013023406267,
-0.00530655961483717,
0.017730362713336945,
-0.026335595175623894,
-0.02454283833503723,
0.022696299478411674,
0.016798129305243492,
-0.014010393060743809,
-0.01664574444293976,
0.01615273766219616,
0.010953743010759354,
-0.01920042373239994,
-0.013409819453954697,
0.04316958039999008,
0.005745784845203161,
0.030530644580721855,
0.005409643054008484,
0.044101811945438385,
0.001029154402203858,
0.03926137089729309,
-0.042273201048374176,
-0.02378988079726696,
-0.02370024286210537,
0.047543905675411224,
0.05256362631917,
-0.015337033197283745,
0.02072426676750183,
0.02961633913218975,
-0.026998914778232574,
-0.03049479052424431,
-0.022517023608088493,
0.008874145336449146,
0.005172102712094784,
0.00745338574051857,
0.02167442813515663,
0.055181048810482025,
-0.06916455179452896,
-0.05399782955646515,
-0.02370024286210537,
-0.0410899817943573,
0.028343481943011284,
0.016269266605377197,
0.039225514978170395,
0.03352455049753189,
-0.030889196321368217,
-0.0030028673354536295,
0.011437787674367428,
0.05055573582649231,
-0.017058080062270164,
0.011312294751405716,
-0.005813013296574354,
0.01394764706492424,
-0.008824844844639301,
-0.035873059183359146,
-0.04080314189195633,
-0.058623142540454865,
-0.015229467302560806,
-0.02619217522442341,
0.0793115571141243,
0.02502688206732273,
-0.001455494319088757,
-0.04707778990268707,
-0.018187515437602997,
-0.03583720326423645,
-0.05998563766479492,
0.043922536075115204,
-0.014449618756771088,
0.04904982075095177,
0.034438855946063995,
0.029114367440342903,
-0.05310145020484924,
0.006323948968201876,
0.058228734880685806,
0.03868768736720085,
0.006718355696648359,
0.007708853576332331,
0.05557545647025108,
-0.006081927102059126,
0.02445320039987564,
-0.0025614011101424694,
-0.030548572540283203,
0.04987448826432228,
-0.01585693284869194,
0.022696299478411674,
-0.05191823095083237,
-0.04449621960520744,
0.007811937015503645,
0.039512354880571365,
-0.010308350436389446,
0.013266399502754211,
0.07203295826911926,
0.064933642745018,
0.04320543631911278,
-0.03678736463189125,
-0.005615809932351112,
0.021746138110756874,
0.04281102865934372,
0.08010036498308182,
-0.01585693284869194,
-0.010380061343312263,
-0.013598059304058552,
-0.014333088882267475,
-0.021835776045918465,
0.01691465824842453,
-0.01759590581059456,
-0.03517388552427292,
-0.011572243645787239,
-0.04134096950292587,
0.028935091570019722,
-0.020885614678263664,
-0.02352096699178219,
-0.008139114826917648,
0.07009678333997726,
0.05424881726503372,
-0.018465394154191017,
-0.017040152102708817,
-0.1107923611998558,
-0.005360342562198639,
0.03775545582175255,
0.008901036344468594,
0.01141985971480608,
0.04757976159453392,
0.05026889592409134,
0.04442450776696205,
0.03191106766462326,
0.0014140368439257145,
0.033488694578409195,
0.0051362477242946625,
-0.025959115475416183,
0.018590886145830154,
-0.02608460932970047,
0.006924522574990988,
-0.09544636309146881,
0.01523843128234148,
-0.016394758597016335,
-0.02361060492694378,
0.02065255679190159,
0.013526348397135735,
0.06952310353517532,
0.033578332513570786,
0.0678020566701889,
-0.011303330771625042,
0.00974363274872303,
0.04169951751828194,
0.0008089814218692482,
0.012934738770127296,
0.04159195348620415,
-0.027375394478440285,
-0.009492645971477032,
-0.019272133708000183,
0.05292217433452606,
0.013320181518793106,
-0.038257427513599396,
0.03114018216729164,
-0.061563264578580856,
-0.04822515323758125,
-0.0060953726060688496,
-0.025636419653892517,
-0.043814972043037415,
-0.04377911612391472,
-0.060523465275764465,
-0.007614733651280403,
-0.036357104778289795,
-0.06504121422767639,
-0.01255826000124216,
0.010953743010759354,
0.013732516206800938,
-0.04453207552433014,
0.039153803139925,
-0.02398708462715149,
0.024309780448675156,
-0.02292935736477375,
0.05105770751833916,
-0.048978112637996674,
-0.0069379680790007114,
0.04159195348620415,
-0.04510575532913208,
0.0032471304293721914,
-0.05980636179447174,
0.017318028956651688,
0.08806020766496658,
0.022499095648527145,
-0.00034146412508562207,
-0.03714591637253761,
0.07945497334003448,
0.02513444796204567,
-0.031946923583745956,
0.002058308804407716,
-0.009089276194572449,
0.006960377562791109,
-0.02083183266222477,
-0.05392611771821976,
-0.012289347127079964,
0.06661883741617203,
-0.005642701406031847,
0.05740406736731529,
-0.08139114826917648,
-0.00044034584425389767,
-0.0007960959919728339,
0.0005675195134244859,
0.018375756219029427,
-0.007664034608751535,
0.03485118970274925,
-0.02292935736477375,
0.012486550025641918,
0.014924698509275913,
-0.030458934605121613,
-0.044281087815761566,
-0.030889196321368217,
0.02732161059975624,
0.006489778868854046,
0.004800105933099985,
0.05704551562666893,
0.0035989589523524046,
-0.07665827125310898,
-0.04560772702097893,
0.00658838078379631,
-0.028719961643218994,
-0.05037645995616913,
0.00162468571215868,
-0.044567931443452835,
0.023556822910904884,
-0.009887052699923515,
-0.011204728856682777,
-0.02025814913213253,
-0.03901038318872452,
-0.027178190648555756,
0.02848690375685692,
-0.00228016241453588,
0.044962335377931595,
-0.031283602118492126,
0.025636419653892517,
0.016690563410520554,
-0.024596620351076126,
0.05256362631917,
0.002503136405721307,
0.04162780940532684,
-0.015435634180903435,
-0.00475528696551919,
0.012871992774307728,
0.023377547040581703,
-0.049336664378643036,
0.006704909726977348,
-0.030261732637882233,
-0.03146287798881531,
-0.05044817179441452,
-0.04377911612391472,
-0.03583720326423645,
0.02617424726486206,
0.007637143135070801,
-0.10003581643104553,
-0.05751163139939308,
0.00604158965870738,
0.024255996569991112,
-0.010640010237693787,
-0.023664386942982674,
0.028791671618819237,
0.027536742389202118,
0.018788089975714684,
-0.015453562140464783,
-0.006982787046581507,
0.042667608708143234,
-0.006140191573649645,
-0.07386157661676407,
-0.020096801221370697,
-0.013589095324277878,
0.01103441696614027,
0.04363569617271423,
-0.039691630750894547,
-0.04281102865934372,
0.038185715675354004,
-0.004463964141905308,
0.10527066886425018,
-0.025170303881168365,
0.044675495475530624,
-0.0010257929097861052,
-0.011150945909321308,
-0.0849766656756401,
0.0016963959205895662,
0.008416992612183094,
-0.02513444796204567,
-0.0018566235667094588,
0.05568302050232887,
-0.014117958024144173,
-0.012656861916184425,
0.004665649030357599,
-0.016269266605377197,
0.01332914549857378,
0.06202938035130501,
0.007852273993194103,
0.021136600524187088,
0.05568302050232887,
-0.0334707647562027,
0.024883462116122246,
0.04786660149693489,
-0.024883462116122246,
-0.02970597706735134,
0.06461095064878464,
-0.02531372383236885,
-0.04607384651899338,
-0.1193975880742073,
-0.01900321990251541,
0.0048314789310097694,
-0.000658838078379631,
-0.014539256691932678,
0.008058440871536732,
0.04904982075095177,
0.01729113794863224,
0.019953381270170212,
0.040838997811079025,
0.007045533508062363,
0.07038362324237823,
0.04596627876162529,
0.01394764706492424,
-0.03926137089729309,
-0.03230547532439232,
-0.012307274155318737,
0.03858012333512306,
0.0036482596769928932,
0.0477590374648571,
-0.011258511804044247,
0.03488704562187195,
-0.027644306421279907,
0.014010393060743809,
0.04356398433446884,
0.0448906272649765,
0.02122623845934868,
0.015704547986388206,
0.005759230814874172,
-0.012863028794527054,
-0.06217280030250549,
-0.04904982075095177,
-0.05564716458320618,
-0.009022047743201256,
-0.0021983678452670574,
0.04162780940532684,
-0.03961992263793945,
0.04316958039999008,
0.042380765080451965,
-0.0449264794588089,
0.06862672418355942,
0.002047104062512517,
0.014566147699952126,
0.002653279807418585,
0.011814266443252563,
0.06511291861534119,
-0.010693793185055256,
0.004412422422319651,
-0.02054499089717865,
0.07759051024913788,
-0.05234849452972412,
0.0028706516604870558,
-0.03689493238925934,
0.035496581345796585,
-0.09092861413955688,
0.0017647447530180216,
-0.07465038448572159,
0.014602002687752247,
0.009205805137753487,
0.025385433807969093,
0.018214408308267593,
0.04005018249154091,
0.07407670468091965,
-0.01548045314848423,
-0.009492645971477032,
0.03983505070209503,
-0.029831470921635628,
-0.013642878271639347,
0.01079239509999752,
-0.04700607806444168,
0.009438863955438137,
0.011195764876902103,
0.010657938197255135,
0.04431694373488426,
-0.006144673563539982,
-0.008954819291830063,
-0.03284330293536186,
-0.03782716393470764,
-0.05722479149699211,
-0.015821076929569244,
0.01366080529987812,
0.011258511804044247,
0.052599478513002396,
-0.02560056559741497,
0.0003308196319267154,
0.008901036344468594,
-0.00903101172298193,
0.014386871829628944,
-0.0075340596958994865,
0.002077356679365039,
-0.07407670468091965,
-0.039512354880571365,
0.06435996294021606,
-0.031229820102453232,
-0.0002738155599217862,
-0.004732877481728792,
0.02359267696738243,
-0.04844028502702713,
-0.0889207273721695,
-0.00219948822632432,
-0.009331298060715199,
-0.040086038410663605,
0.03936893492937088,
0.014440654776990414,
-0.008439402095973492,
-0.03160629794001579,
0.015005373395979404,
-0.01824129931628704,
-0.03295086696743965,
0.023485111072659492,
-0.022499095648527145,
0.014207595959305763,
-0.017318028956651688,
0.020132657140493393,
0.04159195348620415,
-0.06733594089746475,
-0.05152382701635361,
0.06299746781587601,
0.09903187304735184,
-0.04532088711857796,
-0.012235564179718494,
-0.036554306745529175,
-0.034546419978141785,
0.053173162043094635,
-0.06963066756725311,
-0.02540336176753044,
0.013122978620231152,
-0.015354960225522518,
0.03757617995142937,
-0.06446752697229385,
-0.019451409578323364,
-0.014628893695771694,
-0.02705269679427147,
0.05292217433452606,
0.01055037323385477,
0.017936529591679573,
-0.004076280165463686,
0.02122623845934868,
0.015247395262122154,
-0.048010021448135376,
-0.05589815229177475,
0.03936893492937088,
-0.026496943086385727,
-0.03302257880568504,
-0.022373603656888008,
0.02655072510242462,
0.026712073013186455,
-0.03555036336183548,
0.00903101172298193,
0.02197919599711895,
0.019325915724039078,
0.04134096950292587,
0.002299210289493203,
-0.01653818041086197,
-0.008295981213450432,
-0.015112938359379768,
-0.017542123794555664,
-0.022050905972719193,
-0.03352455049753189,
0.09135887771844864,
0.019827889278531075,
-0.02482968010008335,
-0.040193602442741394,
0.0021188142709434032,
0.035496581345796585,
-0.0054320525377988815,
0.0005515528027899563,
-0.059089258313179016,
0.021817848086357117,
0.01794549450278282,
-0.02751881442964077,
0.00894137378782034,
-0.023252053186297417,
0.056041572242975235,
0.02197919599711895,
0.008542485535144806,
0.05310145020484924,
-0.0011384005192667246,
-0.02906058542430401,
-0.014790242537856102,
0.02034778706729412,
-0.031014690175652504,
-0.05198994278907776,
0.0324847511947155,
-0.0028101459611207247,
-0.03305843099951744,
0.003036481561139226,
-0.10914302617311478,
-0.07120829075574875,
0.011204728856682777,
0.030118310824036598,
-0.012271419167518616,
-0.05704551562666893,
-0.046288974583148956,
-0.014091067016124725,
-0.018393682315945625,
0.019845815375447273,
-0.008291499689221382,
0.009013083763420582,
-0.011697736568748951,
-0.017748290672898293,
-0.003052168060094118,
0.04062386602163315,
0.05790603905916214,
-0.027877366170287132,
-0.04162780940532684,
0.04263175278902054,
0.038364991545677185,
-0.036554306745529175,
-0.06382213532924652,
0.02714233472943306,
-0.022391529753804207,
-0.011213692836463451,
-0.0004156954528298229,
-0.06543561816215515,
0.024309780448675156,
0.03228754550218582,
0.04740048572421074,
-0.01902114786207676,
0.029006801545619965,
-0.01040695235133171,
0.013365000486373901,
-0.027196118608117104,
-0.027303682640194893,
-0.006763174198567867,
0.028074568137526512,
0.006046071648597717,
-0.04980278015136719,
0.07515235990285873,
0.013920755125582218,
0.0005036525544710457,
0.020778048783540726,
0.07275006175041199,
-0.05077086761593819,
0.009304407052695751,
0.05435638129711151,
-0.07214052975177765,
0.0021871631033718586,
0.0014342053327709436,
0.07321617752313614,
0.003984401468187571,
0.0028975429013371468,
0.018268190324306488,
-0.041412677615880966,
-0.022050905972719193,
0.03565793111920357,
0.05166724696755409,
0.00043278266093693674,
0.02387951873242855,
0.039691630750894547,
-0.028343481943011284,
0.0011417618952691555,
0.040946561843156815,
0.0017994794761762023,
-0.010855141095817089,
-0.0018655873136594892,
0.00413230387493968,
-0.029401209205389023,
0.041125837713479996,
-0.020867686718702316,
-0.013642878271639347,
0.034349218010902405,
0.008210825733840466,
-0.05102185532450676,
-0.00927751511335373,
0.017837928608059883,
-0.01643957756459713,
0.028164206072688103,
0.014207595959305763,
0.011115090921521187,
-0.009949799627065659,
0.018608814105391502,
-0.06988165527582169,
-0.07203295826911926,
-0.011312294751405716,
-0.026998914778232574,
0.020580846816301346,
-0.07224809378385544,
-0.05887412652373314,
-0.0277160182595253,
-0.038257427513599396,
-0.021548934280872345,
0.027644306421279907,
0.09250624477863312,
-0.037683743983507156,
-0.01988167129456997,
0.09394044429063797,
0.03277159109711647
] |
20,916 | precession.precession | tiler |
Repeat the quantity thing a numer of times give by the shape of shaper.
Parameters
----------
thing: float
Quantity to be repeated
shaper: array
Quantity providing the shape.
Returns
-------
thing: float
Quantity to be repeated
Examples
--------
``thing = precession.tiler(thing,shaper)``
| def tiler(thing,shaper):
"""
Repeat the quantity thing a numer of times give by the shape of shaper.
Parameters
----------
thing: float
Quantity to be repeated
shaper: array
Quantity providing the shape.
Returns
-------
thing: float
Quantity to be repeated
Examples
--------
``thing = precession.tiler(thing,shaper)``
"""
thing =np.atleast_1d(thing)
shaper =np.atleast_1d(shaper)
assert thing.ndim == 1 and shaper.ndim==1
return np.squeeze(np.tile(thing, np.shape(shaper)).reshape(len(shaper),len(thing)))
| (thing, shaper) | [
0.043842799961566925,
0.009635301306843758,
-0.008078829385340214,
-0.0025156419724226,
0.0024001055862754583,
0.011701877228915691,
-0.022130673751235008,
-0.016724441200494766,
-0.006892946548759937,
0.06752558797597885,
0.001799534191377461,
0.02401413582265377,
-0.01526824664324522,
0.044331107288599014,
-0.016131499782204628,
-0.051760315895080566,
0.04544723033905029,
0.03297801688313484,
-0.02659517526626587,
0.032262999564409256,
0.0803610309958458,
0.017134269699454308,
0.05605042353272438,
0.013140632770955563,
-0.04872585088014603,
0.028862304985523224,
0.03616943955421448,
-0.017762089148163795,
-0.03958757221698761,
-0.003769103204831481,
0.04045954719185829,
-0.020892472937703133,
-0.002936369040980935,
0.03815753757953644,
0.006871147081255913,
0.022409705445170403,
-0.044365983456373215,
0.03250715136528015,
-0.07164129614830017,
-0.01607918180525303,
0.04903975874185562,
-0.033309366554021835,
0.07087396085262299,
-0.023926937952637672,
-0.0350358746945858,
0.028757669031620026,
0.08949930965900421,
-0.02657773718237877,
-0.03693677484989166,
-0.0001222124556079507,
-0.015120011754333973,
-0.03899463266134262,
0.004457961767911911,
0.003095504129305482,
-0.008388379588723183,
0.057864125818014145,
0.011431565508246422,
0.015172329731285572,
0.006517997942864895,
-0.002740174997597933,
-0.029368050396442413,
-0.005624225828796625,
0.0351056307554245,
0.03906438872218132,
0.021659808233380318,
-0.04370328411459923,
-0.05053955316543579,
0.033884868025779724,
-0.0019532195292413235,
-0.037320442497730255,
0.026752131059765816,
0.04070369899272919,
-0.032873380929231644,
0.015896067023277283,
-0.012277379631996155,
0.018381189554929733,
0.007546925917267799,
-0.038855116814374924,
0.09194082766771317,
-0.04154079407453537,
-0.016393091529607773,
0.030832964926958084,
-0.015896067023277283,
0.03965733200311661,
0.03909926861524582,
0.002280209446325898,
0.018293993547558784,
0.02706604078412056,
-0.04269179701805115,
-0.029751718044281006,
-0.03543698042631149,
0.006988863460719585,
0.035332344472408295,
-0.020648319274187088,
-0.03268154710531235,
0.036901894956827164,
-0.025374414399266243,
-0.026943964883685112,
-0.009949211962521076,
0.0019510395359247923,
0.010864783078432083,
-0.015320565551519394,
-0.006321804132312536,
-0.0026006593834608793,
-0.004874329082667828,
0.05071394890546799,
-0.01600942388176918,
0.022374827414751053,
-0.05573651194572449,
-0.011963468976318836,
0.03339656442403793,
0.07715217024087906,
-0.051341768354177475,
-0.03275130316615105,
-0.003472632262855768,
-0.024816351011395454,
-0.016785480082035065,
-0.016253575682640076,
-0.0007411770056933165,
0.01656748726963997,
0.018712539225816727,
-0.0150676928460598,
0.007751839701086283,
0.055771391838788986,
0.007490247953683138,
-0.02000305987894535,
-0.00636976258829236,
0.03437317535281181,
-0.022235311567783356,
-0.02900182083249092,
-0.054411113262176514,
0.03555905818939209,
-0.025217458605766296,
0.05653872713446617,
-0.029245974496006966,
0.008462497964501381,
-0.020752957090735435,
-0.04119200259447098,
0.005349554121494293,
-0.002583219902589917,
-0.023700226098299026,
-0.015896067023277283,
0.005942496005445719,
0.05625969544053078,
0.022130673751235008,
-0.05549236014485359,
0.015835030004382133,
0.0201251357793808,
0.05625969544053078,
0.034338295459747314,
-0.0350009948015213,
0.07282718271017075,
0.14774709939956665,
-0.01904388889670372,
0.027519466355443,
0.013498141430318356,
-0.026787009090185165,
0.0500861294567585,
-0.004865609109401703,
0.004774052184075117,
-0.006230246741324663,
-0.039238784462213516,
-0.01798008196055889,
0.03447781130671501,
-0.05256253108382225,
-0.020805275067687035,
0.0051838792860507965,
0.016759321093559265,
0.04548211023211479,
0.026385901495814323,
0.05210910364985466,
-0.05849194899201393,
-0.009225473739206791,
-0.06156129390001297,
-0.0008338241605088115,
0.04101761057972908,
-0.05748045817017555,
0.012303538620471954,
0.06665361672639847,
0.01303599588572979,
-0.057899005711078644,
-0.05469014495611191,
-0.007599244359880686,
0.006910386029630899,
-0.025862718001008034,
-0.008929003030061722,
0.03752971813082695,
-0.015599596314132214,
0.004351145122200251,
0.0250779427587986,
-0.019183404743671417,
0.0649794265627861,
-0.019915862008929253,
-0.0014540149131789804,
0.008628172799944878,
-0.03857608512043953,
-0.04415671154856682,
-0.04903975874185562,
-0.007756199687719345,
0.04262203723192215,
-0.08684850484132767,
-0.01177163515239954,
-0.007825957611203194,
0.0501907654106617,
0.06721168011426926,
-0.0030693449079990387,
0.0011259351158514619,
0.01603558287024498,
-0.048342183232307434,
0.004551698919385672,
0.020369289442896843,
-0.0137335741892457,
0.0549342967569828,
0.05653872713446617,
0.03109455667436123,
-0.024781471118330956,
-0.04743532836437225,
0.008065749891102314,
0.049772217869758606,
-0.0352451466023922,
-0.04304058477282524,
-0.006134329829365015,
-0.045830897986888885,
0.01995074190199375,
-0.008218345232307911,
0.002894950332120061,
0.01076014619320631,
0.019619392231106758,
-0.009260352700948715,
-0.026211507618427277,
-0.02206091582775116,
-0.028653031215071678,
0.020857593044638634,
0.01655876636505127,
0.031827013939619064,
-0.0748501569032669,
-0.0452030785381794,
-0.05615505948662758,
0.040389787405729294,
0.01808471977710724,
0.013986446894705296,
-0.04063393920660019,
0.0036121481098234653,
-0.010856063105165958,
0.001679637935012579,
0.061840321868658066,
-0.05451574921607971,
0.036797259002923965,
-0.027397390455007553,
0.010917101986706257,
-0.04952806606888771,
0.01199834793806076,
-0.01947987638413906,
-0.0016491188434883952,
0.05866634100675583,
0.01596582494676113,
0.000419092015363276,
-0.03895975276827812,
-0.01273952517658472,
-0.025409292429685593,
0.005689623765647411,
-0.04893512278795242,
0.0013820771127939224,
-0.0249733068048954,
-0.04457525908946991,
-0.0007046631653793156,
-0.0451333224773407,
0.04101761057972908,
-0.03221068158745766,
-0.013716135174036026,
0.0652933344244957,
0.025845279917120934,
-0.00006522766489069909,
-0.005044363439083099,
-0.011483884416520596,
0.056922394782304764,
0.0450286827981472,
0.10972908139228821,
-0.02406645379960537,
-0.06626994907855988,
0.008113708347082138,
-0.020247211679816246,
0.0299958698451519,
-0.018154477700591087,
-0.03937830030918121,
-0.004682494793087244,
0.03847144916653633,
0.06048004701733589,
0.04963270202279091,
0.017360981553792953,
-0.025287216529250145,
0.0301353856921196,
0.012390735559165478,
0.016637245193123817,
0.029333170503377914,
-0.005484709981828928,
-0.07303645461797714,
-0.028897184878587723,
0.024781471118330956,
-0.013123193755745888,
0.037320442497730255,
-0.057864125818014145,
-0.04942343011498451,
0.0226015392690897,
-0.006718551740050316,
0.05221374332904816,
0.007804158143699169,
0.008052670396864414,
-0.027240436524152756,
0.01249537244439125,
0.05810827761888504,
-0.008667411282658577,
-0.089917853474617,
0.007032461930066347,
0.01696859486401081,
-0.03962245211005211,
-0.030187703669071198,
0.03254203125834465,
-0.015791431069374084,
0.04851657524704933,
0.03962245211005211,
0.017395861446857452,
-0.01452706940472126,
0.012007067911326885,
0.04677262902259827,
0.004194189794361591,
-0.004817650653421879,
-0.02253178134560585,
-0.053818173706531525,
0.0950101763010025,
-0.07115299254655838,
0.06211935356259346,
-0.02049136534333229,
0.04750508815050125,
-0.03909926861524582,
0.047888755798339844,
-0.0007858656463213265,
-0.01801496185362339,
-0.037808749824762344,
-0.044784530997276306,
0.019305482506752014,
-0.035855527967214584,
-0.07076932489871979,
0.029664520174264908,
0.04555187001824379,
0.03616943955421448,
-0.00550214946269989,
-0.024328045547008514,
0.08573238551616669,
0.07087396085262299,
0.028949502855539322,
0.03198396787047386,
0.06243326514959335,
0.022392265498638153,
0.056364331394433975,
0.05120225250720978,
-0.03262922912836075,
0.006618274841457605,
-0.07798926532268524,
0.0348963588476181,
0.0026028393767774105,
-0.009391148574650288,
0.051272012293338776,
0.010873503051698208,
-0.007743120193481445,
-0.013376065529882908,
-0.03418134152889252,
0.014910737983882427,
-0.040808334946632385,
0.02704860083758831,
-0.014936896972358227,
-0.028809987008571625,
-0.011326928623020649,
0.0017581154825165868,
-0.008100628852844238,
0.016698282212018967,
-0.037320442497730255,
-0.007442289497703314,
-0.027257874608039856,
0.03268154710531235,
0.03616943955421448,
0.025758082047104836,
0.04408695548772812,
0.04419159144163132,
-0.0001336571149295196,
0.037285566329956055,
-0.08817391097545624,
-0.02157261222600937,
0.011492603458464146,
-0.022200431674718857,
-0.021188942715525627,
-0.010699108242988586,
0.06846731901168823,
-0.00024047380429692566,
-0.02600223384797573,
-0.002236610744148493,
-0.02052624337375164,
0.041331518441438675,
-0.09961419552564621,
0.015765272080898285,
0.05566675588488579,
-0.0751989483833313,
-0.013428383506834507,
0.030240023508667946,
-0.022357387468218803,
-0.04345913231372833,
0.021241262555122375,
-0.017718490213155746,
0.0008692480623722076,
-0.03759947419166565,
0.04471477493643761,
0.022148113697767258,
0.023194480687379837,
-0.05591090768575668,
0.05357401818037033,
-0.03857608512043953,
-0.05420184135437012,
-0.009591702371835709,
-0.012800563126802444,
0.037320442497730255,
0.04900488257408142,
0.014422433450818062,
-0.02047392539680004,
0.056922394782304764,
-0.0012371116317808628,
-0.019444996491074562,
-0.0125128123909235,
0.008222704753279686,
-0.01451835036277771,
0.016271015629172325,
-0.04241276532411575,
-0.05200446769595146,
0.017352262511849403,
-0.0049048480577766895,
0.0700019896030426,
-0.018189355731010437,
0.0032415594905614853,
0.006504918448626995,
-0.015843749046325684,
-0.04419159144163132,
0.02659517526626587,
0.029176216572523117,
0.04206397756934166,
0.001236021751537919,
0.0349137969315052,
-0.014091082848608494,
0.00017030721937771887,
0.009338830597698689,
-0.057899005711078644,
-0.03770411014556885,
0.052283499389886856,
0.012591289356350899,
0.0019030809635296464,
0.02101454883813858,
0.03913414850831032,
-0.025827839970588684,
-0.016227416694164276,
-0.029873793944716454,
-0.03264666721224785,
0.006448240019381046,
0.02197371982038021,
-0.016445409506559372,
0.025862718001008034,
0.01326270867139101,
0.022374827414751053,
-0.04708654060959816,
-0.023456072434782982,
0.018625343218445778,
0.044331107288599014,
0.006853707600384951,
0.03160030022263527,
0.0015401223208755255,
-0.04241276532411575,
-0.00951322540640831,
0.04569138213992119,
0.023804862052202225,
-0.03350120037794113,
0.05542260408401489,
-0.011239731684327126,
0.010603191331028938,
-0.049841973930597305,
-0.01102173887193203,
0.008946442976593971,
0.0017384961247444153,
-0.028792547062039375,
0.010699108242988586,
-0.037843625992536545,
0.0032328397501260042,
0.024380363523960114,
0.03168749809265137,
-0.025322094559669495,
-0.012504092417657375,
-0.0224445853382349,
0.07059492915868759,
-0.0050618029199540615,
0.05570163205265999,
0.0006032963283360004,
0.03451269119977951,
0.015433921478688717,
-0.009408588521182537,
0.004039414692670107,
0.014178280718624592,
0.013969006948173046,
-0.04098273068666458,
0.01848582737147808,
-0.02108430676162243,
0.024223409593105316,
-0.007921874523162842,
-0.028356561437249184,
0.03264666721224785,
0.00804395042359829,
-0.024205969646573067,
-0.030152825638651848,
0.03895975276827812,
0.01850326731801033,
-0.023857180029153824,
-0.047853875905275345,
-0.017735930159687996,
-0.004869969096034765,
-0.019235724583268166,
0.057306062430143356,
0.022409705445170403,
0.017422020435333252,
0.007594884838908911,
-0.017744649201631546,
0.021136624738574028,
0.0654677301645279,
-0.003352736122906208,
0.03453012928366661,
0.03613455966114998,
-0.05559699609875679,
0.0174917783588171,
-0.004573498386889696,
0.0851045623421669,
0.046807508915662766,
-0.024205969646573067,
-0.05566675588488579,
-0.038889992982149124,
0.08057030290365219,
-0.0027772339526563883,
-0.0016959874192252755,
-0.011693157255649567,
0.021276140585541725,
-0.09131301194429398,
-0.051864951848983765,
0.03794826567173004,
-0.026874206960201263,
-0.029245974496006966,
-0.04645872116088867,
-0.015320565551519394,
-0.07464088499546051,
-0.06857195496559143,
0.001167353824712336,
0.0014115062076598406,
-0.003143462585285306,
0.044749654829502106,
0.00952194444835186,
-0.02697884477674961,
0.0027467149775475264,
0.015503679402172565,
-0.03097248077392578,
-0.014474751427769661,
0.09766097366809845,
-0.009112117812037468,
0.043319616466760635,
-0.04851657524704933,
-0.020316969603300095,
0.021415656432509422,
-0.03801802173256874,
0.010132325813174248,
0.0401456356048584,
0.003472632262855768,
0.017422020435333252,
0.03111199662089348,
-0.03402438387274742,
-0.03269898518919945,
-0.005153360310941935,
-0.07122275233268738,
0.00854533538222313,
-0.03470452502369881,
0.00513156084343791,
0.011911150999367237,
-0.015791431069374084,
-0.04307546466588974,
0.008824366144835949,
-0.005510869435966015,
-0.04251740127801895,
0.0015695514157414436,
-0.05922440439462662,
0.031827013939619064,
0.03269898518919945,
0.039866603910923004,
-0.009940491989254951,
0.03766923397779465,
0.0035816289018839598,
-0.024328045547008514,
0.014692744240164757,
-0.044261347502470016,
-0.019863544031977654,
0.013846931047737598,
0.008414539508521557,
0.030815524980425835,
-0.04066881909966469,
0.022409705445170403,
0.015172329731285572,
-0.07750096172094345,
-0.004839450120925903,
-0.010245682671666145,
0.02343863435089588,
-0.06626994907855988,
-0.009181875735521317,
0.04663311317563057,
0.014936896972358227,
-0.03102479875087738,
-0.05360889807343483,
0.026943964883685112,
-0.020944790914654732,
-0.055283088237047195,
0.032262999564409256,
-0.06048004701733589,
-0.031774695962667465,
0.02851351723074913,
-0.009199314750730991,
-0.023804862052202225,
0.02111918479204178,
-0.055038932710886,
0.00624332670122385,
-0.04903975874185562,
0.039308540523052216,
-0.07192032784223557,
0.028809987008571625,
-0.0013657276285812259,
0.08817391097545624,
-0.051341768354177475,
-0.05845706909894943,
0.018660221248865128,
-0.0600963793694973,
0.03250715136528015,
-0.04569138213992119,
0.009931772015988827,
0.022758495062589645,
-0.0025919396430253983,
0.014422433450818062,
-0.020683199167251587,
0.004931007046252489,
-0.10338111966848373,
0.03212348371744156,
0.00018788292072713375,
-0.037773869931697845,
0.04147103428840637,
-0.03395462781190872,
0.0848255306482315,
0.04293594881892204,
0.006221527233719826,
-0.009321391582489014,
0.011396686546504498,
0.04677262902259827,
-0.029856353998184204,
-0.06288669258356094,
-0.008902844041585922,
0.0701066255569458,
0.039343420416116714,
-0.03861096501350403,
0.009199314750730991,
0.04666799306869507,
0.010245682671666145,
0.0073594520799815655,
-0.02903670072555542,
-0.018328871577978134,
0.03955269604921341,
-0.050783704966306686,
0.03001330979168415,
-0.02206091582775116,
-0.06742095202207565,
0.018852055072784424,
-0.054306477308273315,
-0.02003793977200985,
0.008606373332440853,
-0.016628524288535118,
-0.0058770980685949326,
-0.024328045547008514,
-0.08454649895429611,
-0.001679637935012579,
-0.009548104368150234,
-0.009574263356626034,
0.047784119844436646,
-0.020334409549832344,
-0.017683612182736397,
-0.08615092933177948,
-0.03262922912836075,
0.0701763853430748,
-0.00904235988855362,
0.054829660803079605,
-0.0005400782683864236,
-0.023351436480879784,
0.011876272037625313,
-0.012451774440705776,
0.0549691766500473,
0.027781058102846146,
-0.049318790435791016,
0.012608729302883148,
-0.017709771171212196,
0.019183404743671417,
0.010829904116690159,
-0.04670287296175957,
0.026821888983249664,
-0.06749071180820465,
-0.006953984498977661,
0.0004697754338849336,
-0.018241675570607185,
-0.005201318766921759,
0.07694289833307266,
0.03210604563355446,
0.02851351723074913,
-0.03275130316615105,
-0.0299958698451519,
-0.02605455182492733,
0.03547186031937599,
-0.017334822565317154,
0.016942434012889862,
-0.026734691113233566,
0.055387724190950394,
0.012190181761980057,
0.028164727613329887,
-0.05877097696065903,
0.016271015629172325,
0.029716838151216507,
0.014396273531019688,
0.01397772692143917,
-0.05455062910914421,
-0.0030606251675635576,
0.01531184557825327,
0.0007913154549896717,
-0.061910081654787064,
0.033884868025779724,
-0.026438221335411072,
0.014160840772092342,
-0.002910209819674492,
0.0351928286254406,
-0.027362512424588203,
-0.009548104368150234,
-0.05807340145111084,
-0.024903548881411552,
0.011754196137189865,
0.03456500917673111,
0.013088314794003963,
0.006230246741324663,
0.003208860522136092,
-0.034338295459747314,
-0.04841193929314613,
0.030920160934329033,
-0.0016425790963694453,
-0.05155104398727417,
-0.04408695548772812,
0.05346938222646713,
-0.02554880827665329,
0.05095810070633888,
-0.03812265768647194,
-0.007276614662259817,
-0.03395462781190872,
-0.07638483494520187,
-0.018939252942800522,
0.03412902355194092,
0.00825758371502161,
-0.020630881190299988,
0.012085545808076859,
0.04663311317563057,
-0.012835442088544369
] |
20,917 | precession.precession | tofdeltachi |
Time as a function of deltachi on the precessional timescale (without radiation reaction).
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
t: float
Time.
Examples
--------
``t = precession.tofdeltachi(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
| def tofdeltachi(deltachi, kappa , r, chieff, q, chi1, chi2, cyclesign=1, precomputedroots=None):
"""
Time as a function of deltachi on the precessional timescale (without radiation reaction).
Parameters
----------
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
r: float
Binary separation.
chieff: float
Effective spin.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
cyclesign: integer, optional (default: 1)
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
precomputedroots: array, optional (default: None)
Pre-computed output of deltachiroots for computational efficiency.
Returns
-------
t: float
Time.
Examples
--------
``t = precession.tofdeltachi(deltachi,kappa,r,chieff,q,chi1,chi2,cyclesign=1)``
"""
u= eval_u(r=r,q=q)
deltachiminus,deltachiplus,deltachi3 = deltachiroots(kappa, u, chieff, q, chi1, chi2, precomputedroots=precomputedroots)
psiperiod = eval_tau(kappa, r, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]), return_psiperiod=True)
deltachitilde = affine(deltachi,deltachiminus,deltachiplus)
m = elliptic_parameter(kappa, u, chieff, q, chi1, chi2, precomputedroots=np.stack([deltachiminus,deltachiplus,deltachi3]))
t = np.sign(cyclesign) * psiperiod * scipy.special.ellipkinc(np.arcsin(deltachitilde**(1/2)), m)
return t
| (deltachi, kappa, r, chieff, q, chi1, chi2, cyclesign=1, precomputedroots=None) | [
-0.01052264217287302,
-0.026673894375562668,
0.010245981626212597,
0.025586333125829697,
-0.01614171266555786,
-0.020320242270827293,
-0.052355628460645676,
-0.004700844641774893,
-0.029917502775788307,
0.055751875042915344,
0.04334985092282295,
-0.012707306072115898,
0.016828594729304314,
-0.020759083330631256,
-0.05216482654213905,
0.05598083510994911,
-0.007722645998001099,
0.021388724446296692,
-0.04663161560893059,
-0.03575599566102028,
0.03008922189474106,
-0.07246599346399307,
0.012459265999495983,
0.04041152447462082,
-0.011877324432134628,
0.00794206652790308,
-0.0352599136531353,
-0.00601021246984601,
-0.03873248025774956,
-0.0023098771926015615,
0.04663161560893059,
0.019824160262942314,
-0.035870473831892014,
0.024136250838637352,
0.01434818934649229,
-0.004421798978000879,
-0.016580553725361824,
-0.036061275750398636,
-0.058652039617300034,
0.01788753643631935,
0.048768579959869385,
-0.011037803255021572,
0.05697299912571907,
-0.054110992699861526,
-0.010331841185688972,
-0.003214986762031913,
0.013699468225240707,
0.054530754685401917,
0.01746777631342411,
-0.02669297531247139,
0.02312500774860382,
-0.061323247849941254,
0.01468209084123373,
-0.013871188275516033,
-0.01853625848889351,
0.03316110745072365,
0.004889260046184063,
-0.007651095744222403,
-0.020396562293171883,
-0.02005312219262123,
0.031234024092555046,
0.015168631449341774,
0.0641852542757988,
0.08563121408224106,
-0.005456891376525164,
0.009001008234918118,
0.0023921600077301264,
0.0017780212219804525,
-0.007722645998001099,
-0.01661871373653412,
-0.03699619695544243,
-0.0111045828089118,
-0.021312404423952103,
-0.0223808865994215,
0.032149866223335266,
-0.0007649903418496251,
-0.002114306902512908,
-0.05388203263282776,
-0.030165541917085648,
0.01073252223432064,
-0.05380571261048317,
-0.0264449343085289,
-0.029249699786305428,
0.011552964337170124,
0.049188341945409775,
0.012440185993909836,
0.0086861876770854,
-0.02976486086845398,
-0.007517535705119371,
-0.0009033206151798368,
-0.07712151855230331,
-0.08425745368003845,
-0.030737943947315216,
0.016332514584064484,
0.03129126504063606,
0.023716488853096962,
0.002563880290836096,
-0.04663161560893059,
0.03899960219860077,
-0.009664040058851242,
0.08822610229253769,
0.04487625136971474,
0.029707621783018112,
0.016008153557777405,
0.059338923543691635,
-0.02102620340883732,
-0.048196177929639816,
0.005280401092022657,
0.07654912024736404,
-0.02886809967458248,
-0.0831889733672142,
0.03919040039181709,
0.014558070339262486,
-0.05895732343196869,
-0.043769609183073044,
-0.05449259281158447,
0.041212886571884155,
0.03968648239970207,
0.045448653399944305,
-0.002625890541821718,
0.007121624890714884,
0.000041849383705994114,
0.015998613089323044,
-0.020396562293171883,
-0.02386912889778614,
-0.02379280887544155,
0.030241861939430237,
0.03733963891863823,
-0.000054519721743417904,
0.0118105448782444,
0.0415944866836071,
0.02926878072321415,
0.04930282384157181,
0.024079009890556335,
-0.010951942764222622,
0.012449725531041622,
0.017095714807510376,
0.01089470274746418,
0.025758054107427597,
0.012659606523811817,
-0.0001304299512412399,
0.01936624012887478,
-0.001358260284177959,
0.04117472469806671,
-0.061094287782907486,
-0.007918216288089752,
0.009554329328238964,
-0.003944798372685909,
-0.03524083271622658,
0.06712357699871063,
-0.041861604899168015,
0.06143772602081299,
0.008504927158355713,
0.02869637869298458,
0.054110992699861526,
-0.05746907740831375,
0.04674609750509262,
0.0021942046005278826,
-0.029478661715984344,
-0.005547521635890007,
-0.046364497393369675,
-0.013909349218010902,
0.03569875285029411,
-0.006763874087482691,
0.013317867182195187,
0.0034415621776133776,
-0.004376484081149101,
0.05514131486415863,
-0.0013678002869710326,
0.07246599346399307,
0.00571447191759944,
0.005595221649855375,
-0.05788883939385414,
0.010312761180102825,
0.04976074397563934,
-0.02793317846953869,
-0.00823303684592247,
-0.08257841318845749,
0.02528105303645134,
-0.05170690640807152,
-0.04281560704112053,
-0.04976074397563934,
-0.031310345977544785,
-0.031081384047865868,
0.018173737451434135,
0.008733888156712055,
-0.0013999978546053171,
0.018679358065128326,
-0.04106024652719498,
-0.022342726588249207,
0.02976486086845398,
0.006482443306595087,
0.0246895719319582,
0.07250414788722992,
0.0522029884159565,
0.007407825440168381,
0.044113051146268845,
0.007126394659280777,
0.028543738648295403,
0.020282082259655,
0.00785143580287695,
0.01721019484102726,
0.024517850950360298,
-0.02278156764805317,
0.06819206476211548,
-0.027875937521457672,
-0.022094685584306717,
-0.0027022105641663074,
-0.04922650009393692,
0.011438483372330666,
0.006930824369192123,
-0.03567967563867569,
-0.01027460116893053,
-0.03495463356375694,
-0.04041152447462082,
0.046364497393369675,
0.014310029335319996,
0.00848107784986496,
0.016342053189873695,
0.015092311426997185,
0.025967933237552643,
0.0007465065573342144,
0.01839315891265869,
0.009010548703372478,
0.05197402834892273,
0.037377797067165375,
-0.0011895211646333337,
0.0923473909497261,
-0.012821786105632782,
-0.07708335667848587,
-0.004560129251331091,
0.009826220571994781,
-0.0979950800538063,
-0.04148000478744507,
0.06479581445455551,
-0.04811985790729523,
-0.007398285437375307,
0.032321587204933167,
-0.012726386077702045,
0.00737920543178916,
-0.000980833312496543,
0.03609943389892578,
0.06162852793931961,
0.02652125433087349,
-0.011085502803325653,
-0.05258458852767944,
0.04464729130268097,
-0.046936895698308945,
-0.0236210897564888,
0.051516108214855194,
0.005285170860588551,
-0.036290235817432404,
0.005938662216067314,
0.04098392650485039,
0.015092311426997185,
0.012487885542213917,
0.04430385306477547,
0.030661623924970627,
0.02520473301410675,
0.005981592461466789,
0.01080884225666523,
-0.03823639824986458,
-0.008810208179056644,
0.029478661715984344,
-0.06918422132730484,
-0.01638021320104599,
-0.05178322643041611,
-0.018841538578271866,
-0.0308524239808321,
0.005943432450294495,
0.03583231568336487,
-0.037301477044820786,
-0.05258458852767944,
-0.010150580666959286,
-0.027131816372275352,
-0.00997886061668396,
0.0029311710968613625,
0.011619743891060352,
-0.06052188575267792,
0.019165899604558945,
-0.06429973244667053,
-0.05846124142408371,
-0.019557040184736252,
-0.04491441324353218,
-0.07551879435777664,
0.052279308438301086,
-0.019251760095357895,
0.013184307143092155,
0.08708129823207855,
-0.011467103846371174,
0.011247683316469193,
0.005795562174171209,
-0.01022690162062645,
-0.044189371168613434,
0.08418113738298416,
0.02884902060031891,
-0.08914194256067276,
-0.08166256546974182,
0.08761554211378098,
-0.0018376463558524847,
-0.010541722178459167,
-0.008447687141597271,
0.02112160436809063,
-0.012258925475180149,
-0.023220408707857132,
0.0525464303791523,
0.0504094660282135,
0.03991544246673584,
0.007794196251779795,
-0.019480720162391663,
-0.016914455220103264,
-0.023411208763718605,
-0.03300846740603447,
-0.00878158863633871,
-0.004676994867622852,
-0.026502175256609917,
-0.006992834620177746,
-0.004812940023839474,
0.05266090855002403,
0.02720813639461994,
-0.012125365436077118,
0.05430179089307785,
0.01035092119127512,
0.028715459629893303,
0.03451579064130783,
-0.06605509668588638,
-0.008461997844278812,
-0.007155014667659998,
0.006740023847669363,
-0.01953796111047268,
0.002611580304801464,
0.050600264221429825,
-0.022075606510043144,
0.026425855234265327,
-0.039877284318208694,
0.01218260545283556,
-0.011285843327641487,
-0.019175440073013306,
-0.01467255037277937,
-0.013241547159850597,
0.051516108214855194,
0.014243249781429768,
-0.038045600056648254,
-0.017610875889658928,
-0.01563609205186367,
0.000027707050321623683,
0.05895732343196869,
0.008209186606109142,
0.032970309257507324,
0.07177910953760147,
-0.018746139481663704,
-0.024002689868211746,
0.030070142820477486,
0.0493791438639164,
0.02518565207719803,
0.04350249096751213,
-0.03625207394361496,
-0.07689256221055984,
0.044113051146268845,
-0.029650380834937096,
0.034801993519067764,
0.012783626094460487,
0.01588413305580616,
-0.0018507638014853,
-0.002435090020298958,
-0.05330963060259819,
-0.010465401224792004,
0.0013570678420364857,
-0.039114080369472504,
0.030585303902626038,
0.007050074636936188,
-0.0031291265040636063,
0.0673525407910347,
-0.02986026182770729,
0.044761773198843,
0.027494337409734726,
0.029726700857281685,
0.015912752598524094,
-0.06227724999189377,
0.018660278990864754,
0.04010624438524246,
0.021350564435124397,
-0.07708335667848587,
0.009468469768762589,
0.066245898604393,
0.007913446053862572,
0.025987014174461365,
0.0010237633250653744,
0.09265267103910446,
-0.026807455345988274,
-0.012115824967622757,
-0.05815596133470535,
0.06918422132730484,
-0.00877681840211153,
-0.013623148202896118,
0.011085502803325653,
0.02629229426383972,
0.036958035081624985,
-0.03648103401064873,
0.0052136206068098545,
0.043769609183073044,
-0.06361284852027893,
0.01863165944814682,
-0.00758908549323678,
-0.006239173002541065,
-0.008843597956001759,
0.016675954684615135,
-0.012144445441663265,
-0.003427252173423767,
0.04426569119095802,
-0.0021465043537318707,
0.014939671382308006,
-0.0331229493021965,
0.0016659259563311934,
-0.05773619934916496,
0.034038789570331573,
-0.10570342093706131,
-0.05445443093776703,
-0.05113450437784195,
0.06849734485149384,
0.007364895194768906,
-0.04831065982580185,
-0.03069978393614292,
0.04468545317649841,
0.1191357672214508,
0.04956994205713272,
0.02444153092801571,
0.05319514870643616,
-0.021407803520560265,
0.042128726840019226,
0.03276042640209198,
-0.0332946702837944,
-0.009125028736889362,
0.006100842729210854,
0.021846644580364227,
0.04327353090047836,
-0.004359789192676544,
0.021178843453526497,
0.07876240462064743,
0.003303231904283166,
-0.019919561222195625,
-0.00397341838106513,
0.036385636776685715,
-0.05964420363306999,
-0.012983966618776321,
-0.03352363035082817,
-0.000287542148726061,
-0.012153984978795052,
-0.004414644092321396,
0.0010863697389140725,
0.007183634676039219,
0.019747840240597725,
0.0035679673310369253,
0.011858244426548481,
0.03266502916812897,
-0.003584662452340126,
0.007431675214320421,
0.01953796111047268,
-0.05998764559626579,
0.0070739248767495155,
0.019347159191966057,
0.03848443925380707,
0.08013616502285004,
-0.034973710775375366,
0.02917337976396084,
0.012659606523811817,
0.02072092331945896,
-0.045028891414403915,
-0.03718699514865875,
-0.07258047163486481,
-0.014233709312975407,
-0.02087356336414814,
-0.04258664697408676,
0.026387695223093033,
0.06376548856496811,
0.0017875612247735262,
-0.03442038968205452,
0.0038040829822421074,
-0.025242893025279045,
-0.07067246735095978,
-0.018431318923830986,
-0.06220092996954918,
0.05262275040149689,
0.021407803520560265,
0.022304566577076912,
-0.03365718945860863,
-0.02335396781563759,
-0.02629229426383972,
0.018068797886371613,
-0.09402643144130707,
-0.024804051965475082,
-0.0036061275750398636,
0.02776145748794079,
0.040449682623147964,
-0.018431318923830986,
-0.009282439015805721,
0.05216482654213905,
-0.0006994027062319219,
-0.0361185148358345,
0.006997604388743639,
-0.01005518063902855,
0.056247957050800323,
-0.002319417195394635,
0.02129332348704338,
0.015015991404652596,
-0.017725355923175812,
0.01631343364715576,
-0.043960411101579666,
-0.02802857756614685,
0.0021011894568800926,
-0.01813557744026184,
-0.07044350355863571,
0.02629229426383972,
-0.009191809222102165,
-0.025567252188920975,
-0.01656147465109825,
-0.032741349190473557,
-0.05838492140173912,
-0.028753619641065598,
-0.027646977454423904,
0.01285040657967329,
-0.0010833884589374065,
-0.0004942922969348729,
0.008042236790060997,
0.030375422909855843,
0.04201424866914749,
-0.020644603297114372,
-0.0175440963357687,
0.05937708169221878,
0.01753455586731434,
-0.021064363420009613,
-0.029421420767903328,
0.011991804465651512,
0.046021055430173874,
-0.01804017648100853,
-0.0190418791025877,
-0.05590451508760452,
-0.055103152990341187,
-0.053271468728780746,
-0.055828195065259933,
0.006792494095861912,
0.03865616023540497,
-0.0331229493021965,
-0.05903364345431328,
0.06029292568564415,
-0.0585375614464283,
-0.028620058670639992,
0.028562819585204124,
0.0008669492672197521,
0.010532181710004807,
-0.022743407636880875,
0.003296076785773039,
0.043693289160728455,
0.061819326132535934,
0.0024327051360160112,
0.061819326132535934,
0.044532813131809235,
-0.0030361113604158163,
-0.004846329800784588,
-0.00721702491864562,
-0.007794196251779795,
-0.06697093695402145,
0.03644287586212158,
-0.04800537973642349,
-0.057927001267671585,
-0.015159090980887413,
0.017610875889658928,
0.04365513101220131,
-0.014825190417468548,
0.014357729814946651,
-0.01786845736205578,
0.014538990333676338,
0.0719699114561081,
-0.008643257431685925,
-0.08357056975364685,
-0.018583958968520164,
-0.004459959454834461,
-0.06719990074634552,
0.04529601335525513,
-0.07868608087301254,
-0.000601915642619133,
-0.013747168704867363,
0.018727058544754982,
-0.032970309257507324,
0.0010476134484633803,
-0.0009760632528923452,
0.026712054386734962,
0.030318181961774826,
0.002437475137412548,
0.008361827582120895,
-0.07326734811067581,
-0.02610149420797825,
-0.04609737545251846,
0.004033043514937162,
-0.01097102276980877,
-0.04006808251142502,
-0.007608165964484215,
0.05678219720721245,
0.0585375614464283,
0.01210628543049097,
-0.043120890855789185,
-0.03337099030613899,
0.007016684394329786,
-0.019671520218253136,
-0.028085818514227867,
-0.0222091656178236,
0.01953796111047268,
-0.028791779652237892,
0.04434201121330261,
-0.021426884457468987,
0.10455861687660217,
-0.00573832169175148,
0.03550795465707779,
0.048272501677274704,
0.036633674055337906,
0.011381243355572224,
0.02253352664411068,
-0.02869637869298458,
0.04331168904900551,
0.014281409792602062,
-0.05437811091542244,
-0.000436455913586542,
-0.019995881244540215,
-0.005208850838243961,
-0.036309316754341125,
-0.01770627684891224,
0.035641513764858246,
-0.07063430547714233,
0.00008727627573534846,
-0.08143360912799835,
0.04651713743805885,
0.002373080002143979,
-0.018250057473778725,
-0.005566601641476154,
-0.06399445235729218,
0.020434722304344177,
0.013155687600374222,
0.015206791460514069,
-0.050104182213544846,
-0.00960202980786562,
0.005375801119953394,
0.06616957485675812,
-0.04750929772853851,
-0.00004061961590196006,
-0.023659249767661095,
-0.04415121302008629,
-0.011915484443306923,
-0.059338923543691635,
0.03400063142180443,
0.05216482654213905,
-0.029898421838879585,
0.00684019410982728,
-0.03169194608926773,
-0.0006636276375502348,
-0.06979478150606155,
-0.04014440253376961,
0.024498770013451576,
-0.0021870494820177555,
-0.017172034829854965,
-0.008066087029874325,
0.008371367119252682,
0.04224320873618126,
-0.05361491069197655,
-0.04449465125799179,
0.020358402281999588,
-0.04224320873618126,
0.058423079550266266,
0.0013749552890658379,
-0.03972464054822922,
-0.005351950880140066,
0.024098088964819908,
-0.02676929533481598,
-0.03674815595149994,
-0.019843241199851036,
0.04930282384157181,
0.03493555262684822,
0.0014441205421462655,
0.06796310096979141,
0.013565908186137676,
-0.033638108521699905,
0.0567440390586853,
0.05796515941619873,
-0.026502175256609917,
0.02629229426383972,
0.002594885416328907,
-0.0296122208237648,
0.03401970863342285,
0.03245514631271362,
-0.040373362600803375,
-0.042968250811100006,
-0.0036991427186876535,
0.010494021698832512,
-0.017067095264792442,
0.02178940549492836,
0.034553952515125275,
-0.00563338166102767,
-0.06468133628368378,
0.04731849953532219,
-0.012153984978795052,
-0.0020952268969267607,
0.024556010961532593,
0.017525015398859978,
-0.0010905434610322118,
-0.0015884132590144873,
-0.002295567188411951,
0.02610149420797825,
0.04251032695174217,
-0.0630786120891571,
-0.034973710775375366,
-0.014357729814946651,
0.022896047681570053,
0.026731135323643684,
0.04479993134737015,
-0.023411208763718605,
-0.0012735925847664475,
0.04663161560893059,
-0.014977831393480301,
0.04060232266783714,
0.02917337976396084,
0.0223808865994215,
0.000637988792732358,
-0.025987014174461365,
0.01314614713191986,
0.003613282460719347,
-0.03220710530877113,
-0.023754648864269257,
0.009043938480317593,
-0.00848107784986496,
-0.021159764379262924,
0.02211376652121544,
-0.007250415161252022,
0.005237470846623182,
0.044532813131809235,
-0.03999176248908043,
0.004712769761681557,
-0.06777229905128479,
-0.008213956840336323,
-0.052088506519794464,
0.030051061883568764,
0.04834882169961929,
-0.023468447849154472,
0.020358402281999588,
-0.03102414496243,
-0.0020224840845912695,
0.05205034837126732,
-0.010608501732349396,
-0.028486499562859535,
-0.011715143918991089,
0.049455463886260986,
-0.00785143580287695,
0.021560445427894592,
-0.02570081315934658,
-0.030585303902626038,
-0.06262069195508957,
0.028734538704156876,
-0.012831326574087143,
-0.0019413940608501434,
0.01988140121102333,
-0.0329512283205986,
0.008862677961587906,
0.006978524383157492,
-0.012049044482409954,
0.050867386162281036,
0.06414709240198135,
0.03919040039181709,
-0.01072298176586628,
0.004889260046184063,
0.03375259041786194
] |
20,918 | precession.precession | updown_endpoint |
Endpoint of the up-down precessional instability.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta1,theta2,deltaphi = precession.updown_endpoint(q,chi1,chi2)``
| def updown_endpoint(q, chi1, chi2):
"""
Endpoint of the up-down precessional instability.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta1,theta2,deltaphi = precession.updown_endpoint(q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
costhetaupdown = (chi1 - q * chi2) / (chi1 + q * chi2)
theta1 = np.arccos(costhetaupdown)
theta2 = np.arccos(costhetaupdown)
deltaphi = np.zeros(len(theta1))
return np.stack([theta1, theta2, deltaphi])
| (q, chi1, chi2) | [
-0.0359349362552166,
-0.03242997080087662,
-0.025293570011854172,
-0.042529333382844925,
-0.027750659734010696,
0.016955725848674774,
0.016693755984306335,
-0.0038392026908695698,
-0.03859076276421547,
0.019512182101607323,
0.0649322047829628,
0.011607942171394825,
0.019457982853055,
0.06211378052830696,
-0.03685634583234787,
0.04520322382450104,
0.08513092994689941,
-0.031002691015601158,
-0.006892497651278973,
-0.014724471606314182,
0.006806680466979742,
-0.01057813223451376,
0.05253835767507553,
0.025474239140748978,
-0.06688342988491058,
-0.014706403948366642,
-0.009602523408830166,
-0.043396539986133575,
-0.026269178837537766,
-0.06272805482149124,
-0.007032515946775675,
0.034941259771585464,
-0.0024277311749756336,
0.024480562657117844,
0.07559163868427277,
0.005135498009622097,
0.08664854615926743,
0.04155372083187103,
-0.056440796703100204,
0.0383378267288208,
-0.023721756413578987,
-0.015076774172484875,
0.008297194726765156,
-0.03880756348371506,
0.05806681141257286,
0.07848233729600906,
-0.05571812018752098,
-0.028021661564707756,
-0.01552844513207674,
0.012700985185801983,
0.05362236872315407,
-0.03656727448105812,
0.022149940952658653,
0.005203248932957649,
0.012791319750249386,
0.029394742101430893,
0.009629623964428902,
0.01177054364234209,
-0.03358624875545502,
-0.015420044772326946,
-0.04061424732208252,
-0.018364937976002693,
0.043396539986133575,
0.01799456775188446,
0.033134575933218,
0.036675676703453064,
-0.010505865328013897,
-0.017018958926200867,
0.0005592250381596386,
0.03042455203831196,
-0.010532964952290058,
0.028509467840194702,
-0.06102977320551872,
-0.009647690691053867,
0.030352285131812096,
0.03423665463924408,
0.025185169652104378,
0.03598913550376892,
0.015790414065122604,
-0.03226736932992935,
-0.0464317686855793,
-0.02440829575061798,
0.021662136539816856,
-0.04505869001150131,
0.05860881507396698,
0.08628720790147781,
0.023649487644433975,
-0.028057796880602837,
-0.017524830996990204,
0.04126465320587158,
-0.04845525324344635,
-0.07259254902601242,
-0.04596203193068504,
0.01205961313098669,
0.11244798451662064,
0.013703694567084312,
-0.05709120258688927,
-0.026756983250379562,
-0.0614633746445179,
-0.02117433212697506,
0.03273710608482361,
0.02327008545398712,
0.03631433844566345,
0.009891592897474766,
0.005885271821171045,
-0.08599814027547836,
-0.030406484380364418,
0.021933138370513916,
0.023884357884526253,
-0.08831069618463516,
-0.03674794360995293,
-0.009046968072652817,
0.0065582613460719585,
-0.03624207153916359,
-0.04032517597079277,
-0.01600721664726734,
0.0020234857220202684,
0.022186074405908585,
0.040794916450977325,
0.011219505220651627,
0.0179674681276083,
-0.013604327104985714,
0.004742544610053301,
-0.03046068549156189,
0.02063232660293579,
-0.04270999878644943,
-0.00217931205406785,
0.027208654209971428,
-0.05954829230904579,
-0.03365851566195488,
0.03046068549156189,
-0.010930435732007027,
-0.05098460987210274,
0.03808489069342613,
-0.03138209506869316,
0.011671176180243492,
0.03658534213900566,
0.008080392144620419,
0.028003595769405365,
0.0656910166144371,
0.010704600252211094,
0.0011325647355988622,
-0.012836487032473087,
0.011716343462467194,
0.0033875317312777042,
0.08578133583068848,
0.017226727679371834,
0.030677488073706627,
0.015465211123228073,
0.02840106561779976,
-0.07754285633563995,
0.030984623357653618,
0.06186084449291229,
-0.0348689928650856,
0.05943989008665085,
-0.1188797801733017,
0.007186084054410458,
0.0022199624218046665,
-0.021300800144672394,
-0.05022580549120903,
0.0007887302781455219,
-0.006364042870700359,
-0.006987348664551973,
0.023721756413578987,
-0.007335135247558355,
0.016766022890806198,
0.014598003588616848,
0.020939461886882782,
0.02789519540965557,
0.030930422246456146,
0.0067027960903942585,
-0.001788616762496531,
0.00853658001869917,
-0.017226727679371834,
0.007895207032561302,
-0.04325200617313385,
0.013306224718689919,
-0.029087604954838753,
0.005451667588204145,
-0.07862687110900879,
0.00869466457515955,
-0.020126454532146454,
0.003195571480318904,
-0.06316165626049042,
0.017868099734187126,
0.07190600782632828,
0.03132789209485054,
0.017813900485634804,
0.024426361545920372,
-0.005225832108408213,
-0.012429983355104923,
-0.013423658907413483,
0.0493224635720253,
0.027714526280760765,
0.08520320057868958,
-0.006205958314239979,
-0.0017107034800574183,
0.05943989008665085,
0.0006080619641579688,
0.04317973926663399,
0.005076780915260315,
0.03073168732225895,
0.03647693991661072,
-0.035284530371427536,
0.0493224635720253,
0.045420024544000626,
-0.0458536297082901,
-0.017588064074516296,
0.036675676703453064,
-0.02869013510644436,
0.028491400182247162,
0.012520316988229752,
-0.013513993471860886,
-0.029990946874022484,
-0.02901533804833889,
0.05391143634915352,
0.007443536538630724,
-0.016657622531056404,
0.004071813076734543,
0.016766022890806198,
0.0755193755030632,
0.007014449220150709,
0.017326096072793007,
-0.01913277991116047,
-0.001709574367851019,
0.012646785005927086,
-0.03862689435482025,
0.032682906836271286,
-0.03013548254966736,
-0.06496834009885788,
-0.0035365831572562456,
-0.005790420807898045,
-0.001496159820817411,
-0.022764213383197784,
0.03830169141292572,
0.06561874598264694,
-0.07230347394943237,
0.012014445848762989,
-0.0028274597134441137,
0.06301712244749069,
-0.04964766651391983,
0.03801262378692627,
-0.01509484089910984,
0.04263773187994957,
-0.026883451268076897,
-0.026847317814826965,
-0.014426368288695812,
-0.007962957955896854,
-0.00674796337261796,
0.01682925783097744,
-0.012402882799506187,
-0.06348685920238495,
-0.018915977329015732,
-0.020216789096593857,
0.018970178440213203,
-0.0037466101348400116,
-0.012809386476874352,
-0.015076774172484875,
-0.00609755702316761,
0.030876222997903824,
0.013857263140380383,
-0.07345975190401077,
-0.011391139589250088,
0.02437216229736805,
-0.06529354304075241,
0.009692857041954994,
-0.016350487247109413,
-0.03626013919711113,
-0.05691053345799446,
-0.01119240466505289,
-0.0760975107550621,
-0.013721762225031853,
-0.04549229145050049,
-0.0063504925929009914,
0.00217592460103333,
0.05080394074320793,
0.018789509311318398,
-0.02643178030848503,
-0.03920503333210945,
-0.02903340570628643,
0.02229447476565838,
-0.07154466956853867,
-0.005460700951516628,
0.013441725634038448,
-0.018753375858068466,
0.010027093812823296,
0.004954829812049866,
0.02818426303565502,
0.10189695656299591,
0.0011890236055478454,
0.036675676703453064,
0.018970178440213203,
-0.005406500771641731,
-0.004573167767375708,
0.0853477343916893,
0.08267384022474289,
-0.03344171494245529,
-0.011996379122138023,
0.011562774889171124,
0.037037014961242676,
-0.002116078045219183,
-0.0012319323141127825,
-0.06446246802806854,
0.006178857758641243,
0.0002525122545193881,
-0.00688346428796649,
0.08317971229553223,
0.00168699084315449,
-0.03073168732225895,
-0.0359349362552166,
-0.08260157704353333,
-0.006300808861851692,
-0.07537484169006348,
0.029828345403075218,
-0.05420050770044327,
-0.05806681141257286,
-0.004331524018198252,
0.022854547947645187,
0.02028905600309372,
0.009756091050803661,
-0.01943991519510746,
0.055609721690416336,
0.055573586374521255,
0.03826555982232094,
-0.02411922626197338,
0.0031233043409883976,
-0.029756078496575356,
0.05828361213207245,
0.045709095895290375,
0.018419139087200165,
-0.055284518748521805,
0.04552842676639557,
-0.014570903033018112,
0.03127369284629822,
-0.02115626446902752,
-0.014543802477419376,
0.02672084979712963,
-0.01658535562455654,
-0.0035614250227808952,
0.005591685883700848,
-0.008310744538903236,
0.03461605682969093,
-0.014028898440301418,
-0.029521210119128227,
0.03624207153916359,
-0.038735296577215195,
0.007226734422147274,
-0.000005557669283007272,
0.06504061073064804,
0.06644982099533081,
-0.010831068269908428,
-0.009521222673356533,
0.02005418762564659,
0.02238480933010578,
0.0533694326877594,
0.05098460987210274,
-0.04198732599616051,
-0.04574522748589516,
0.07479669898748398,
-0.03877142816781998,
-0.003346881363540888,
-0.01467930432409048,
-0.03432698920369148,
-0.02433602698147297,
-0.014832871966063976,
-0.024209560826420784,
-0.02608851157128811,
-0.01744353026151657,
-0.06504061073064804,
0.05391143634915352,
-0.04462508484721184,
-0.012728085741400719,
-0.009101168252527714,
-0.004618335049599409,
-0.010758800432085991,
0.04101171717047691,
0.0008135722018778324,
0.04130078852176666,
-0.025691039860248566,
0.024480562657117844,
0.02897920459508896,
-0.02298101596534252,
-0.09004510939121246,
0.05517611652612686,
0.03579040244221687,
0.016928624361753464,
-0.01085816789418459,
0.017949402332305908,
0.04845525324344635,
-0.024570897221565247,
-0.018952110782265663,
0.006020773202180862,
0.01766936480998993,
0.007655821740627289,
-0.00043388636549934745,
-0.0074706366285681725,
0.028599800541996956,
-0.003166212933138013,
0.00037827438791282475,
-0.005943988915532827,
0.030948489904403687,
0.02496836706995964,
0.02381208911538124,
0.03286357596516609,
0.006260158494114876,
-0.050948478281497955,
0.00724480114877224,
0.04823845252394676,
-0.007113816682249308,
-0.005691053345799446,
-0.025112902745604515,
-0.045420024544000626,
-0.04462508484721184,
0.050045136362314224,
-0.041662123054265976,
-0.005772354081273079,
-0.06623301655054092,
-0.013947597704827785,
-0.0347786583006382,
0.06381206214427948,
0.017913267016410828,
-0.044227614998817444,
-0.028906937688589096,
0.020849129185080528,
0.016747957095503807,
-0.010397464036941528,
0.0003723461995832622,
-0.002110432367771864,
0.054670244455337524,
0.06623301655054092,
0.005492317955940962,
0.03342364728450775,
-0.03185183182358742,
-0.04621496796607971,
-0.02637758105993271,
0.02993674762547016,
0.06785903871059418,
0.02205960638821125,
0.06561874598264694,
0.030930422246456146,
-0.04787711426615715,
0.02028905600309372,
0.02579944208264351,
0.006260158494114876,
-0.0015831064665690064,
-0.03183376416563988,
-0.013261057436466217,
-0.050370339304208755,
0.020415524020791054,
-0.029448943212628365,
0.020722661167383194,
-0.01349592674523592,
-0.004954829812049866,
0.012520316988229752,
0.009900625795125961,
-0.03015354834496975,
-0.018373971804976463,
0.022493211552500725,
-0.04270999878644943,
-0.018771441653370857,
0.04834685102105141,
0.03228543698787689,
-0.007032515946775675,
0.04086718335747719,
0.010162594728171825,
0.04961153119802475,
0.05748867243528366,
-0.00884823314845562,
-0.023667555302381516,
-0.015420044772326946,
0.010307129472494125,
-0.034092120826244354,
-0.01802166923880577,
0.018446238711476326,
0.06265578418970108,
-0.007032515946775675,
-0.0006475831614807248,
0.0082836439833045,
0.01650405488908291,
-0.05738027021288872,
-0.021824738010764122,
-0.0527912937104702,
0.009909659624099731,
0.01176150981336832,
-0.01000902708619833,
-0.05589878931641579,
-0.06074070185422897,
-0.018753375858068466,
-0.037253815680742264,
-0.06984638422727585,
0.004419599659740925,
0.002854560036212206,
-0.010270996019244194,
-0.039638638496398926,
-0.021138198673725128,
0.040216777473688126,
0.007240284699946642,
-0.059945762157440186,
0.009936760179698467,
-0.023089416325092316,
0.01420053280889988,
0.07797646522521973,
0.014760605059564114,
-0.02612464502453804,
-0.015329710207879543,
0.026811184361577034,
0.04668470472097397,
0.03830169141292572,
-0.033134575933218,
0.03138209506869316,
0.04668470472097397,
-0.0013775962870568037,
0.05669373273849487,
0.016684722155332565,
0.003186538117006421,
0.057308003306388855,
-0.00855012983083725,
0.009394754655659199,
0.03015354834496975,
-0.034381188452243805,
-0.018771441653370857,
0.032339636236429214,
0.03974704071879387,
0.022710012272000313,
-0.011924111284315586,
0.010487798601388931,
0.007881657220423222,
-0.019584450870752335,
0.008066842332482338,
0.020686527714133263,
-0.008057808503508568,
-0.003028453327715397,
0.012086712755262852,
0.03999997302889824,
0.012682918459177017,
0.04968379810452461,
-0.06919597834348679,
-0.011707309633493423,
-0.03503159433603287,
-0.00986449234187603,
-0.002306909067556262,
0.012520316988229752,
-0.0446973517537117,
-0.0014148590853437781,
-0.0024006308522075415,
0.009403788484632969,
-0.027750659734010696,
0.005885271821171045,
0.02289068140089512,
-0.013523026369512081,
-0.06720863282680511,
-0.01802166923880577,
0.0383378267288208,
0.0287082027643919,
0.02964767813682556,
0.0743630975484848,
0.003649500897154212,
-0.020216789096593857,
0.00674796337261796,
0.000530148739926517,
-0.06233058497309685,
-0.028346866369247437,
-0.004968380089849234,
-0.03286357596516609,
-0.006684729363769293,
0.031002691015601158,
0.019602516666054726,
0.025185169652104378,
0.036404673010110855,
-0.037615153938531876,
-0.010596198961138725,
0.03156276047229767,
-0.0028229430317878723,
-0.039060499519109726,
-0.07356815785169601,
-0.04090331494808197,
0.04054198041558266,
-0.06785903871059418,
0.06952118128538132,
-0.04101171717047691,
0.02146340161561966,
-0.012168013490736485,
0.017253829166293144,
-0.03768742084503174,
-0.01349592674523592,
0.02234867587685585,
0.004643176682293415,
0.04881659150123596,
0.004173438996076584,
-0.037253815680742264,
-0.008608846925199032,
-0.0911291167140007,
-0.003967928700149059,
0.00762872165068984,
-0.02925020642578602,
-0.030406484380364418,
0.010677499696612358,
0.0010004510404542089,
0.024588963016867638,
-0.03143629431724548,
0.024209560826420784,
0.019945787265896797,
0.027931328862905502,
-0.050045136362314224,
-0.0010478764306753874,
0.016431787982583046,
-0.026052378118038177,
-0.0359349362552166,
-0.027714526280760765,
-0.017515797168016434,
0.09358620643615723,
0.0359349362552166,
-0.025094835087656975,
0.045709095895290375,
-0.03826555982232094,
0.03598913550376892,
-0.007669372018426657,
-0.06561874598264694,
-0.05477864667773247,
0.06934051960706711,
-0.03385724872350693,
-0.011869911104440689,
0.032682906836271286,
-0.010740733705461025,
-0.04650403559207916,
0.0016926366370171309,
0.03241190314292908,
-0.030822021886706352,
0.006440827157348394,
0.03387531638145447,
0.056982800364494324,
-0.016079483553767204,
0.006802163552492857,
-0.012285448610782623,
-0.07035225629806519,
0.001922988798469305,
-0.025745240971446037,
-0.0035433582961559296,
-0.01741643063724041,
0.017172526568174362,
-0.01918697915971279,
0.028961138799786568,
-0.04986446723341942,
0.029123740270733833,
-0.010641366243362427,
-0.05521225184202194,
-0.003114270744845271,
-0.0347786583006382,
-0.03051488660275936,
-0.006526644341647625,
0.00428635673597455,
0.052935827523469925,
0.03620593994855881,
0.024173425510525703,
-0.06749770045280457,
-0.03217703476548195,
-0.023884357884526253,
0.023324284702539444,
0.009001800790429115,
0.013803062960505486,
0.010677499696612358,
0.01219511404633522,
-0.004728994332253933,
0.019024377688765526,
-0.005564585328102112,
0.06504061073064804,
0.1194579154253006,
-0.0452754907310009,
-0.06536581367254257,
-0.014327000826597214,
0.032068632543087006,
-0.017615165561437607,
0.033550113439559937,
-0.07046066224575043,
-0.012312548235058784,
-0.0023667553905397654,
-0.00227980874478817,
0.01087623555213213,
0.0017818417400121689,
0.04563682898879051,
0.007271901238709688,
0.043974678963422775,
0.012168013490736485,
0.006562778260558844,
0.01320685725659132,
0.021878939121961594,
0.06930438429117203,
0.002133015776053071,
-0.038699161261320114,
-0.025763308629393578,
0.02348688617348671,
-0.009001800790429115,
-0.036133673042058945,
-0.005429083947092295,
0.05553745478391647,
-0.06457087397575378,
-0.018807576969265938,
-0.03253837302327156,
-0.028798535466194153,
-0.027804860845208168,
0.06930438429117203,
-0.014697371050715446,
0.020957529544830322,
0.0005126464529894292,
-0.016106585040688515,
0.0655103474855423,
0.04317973926663399,
-0.062186047434806824,
-0.0013516251929104328,
0.021246599033474922,
-0.013188790529966354,
-0.001775066601112485,
-0.002513548592105508,
-0.06388433277606964,
0.03365851566195488,
0.08209570497274399,
-0.025763308629393578,
0.04762417823076248,
-0.031093023717403412,
0.046251099556684494,
-0.011887977831065655,
-0.05488704890012741,
0.03105689026415348,
-0.06803970038890839,
-0.055103849619627,
-0.01482383906841278,
-0.012005412019789219,
0.00855916365981102,
-0.05051487311720848,
-0.013830162584781647,
-0.07530257105827332,
-0.008735314942896366,
0.004071813076734543,
0.02961154468357563,
-0.009629623964428902,
-0.056440796703100204,
-0.03242997080087662,
-0.027154454961419106,
0.05228542163968086,
0.012402882799506187,
-0.02672084979712963,
0.003026195103302598,
0.02579944208264351,
-0.01998192071914673,
0.00601173983886838,
-0.01496837381273508,
-0.03338751196861267,
-0.0504787378013134,
0.012601617723703384,
-0.02056005969643593,
0.0412285178899765,
0.015203242190182209,
0.004941279534250498,
-0.04462508484721184,
0.023125549778342247,
-0.03454378992319107,
0.004378949292004108,
0.03078588843345642,
-0.06890691071748734,
-0.040433578193187714,
-0.03739834949374199,
0.06229444965720177,
0.014028898440301418,
0.05170728266239166,
0.05709120258688927,
0.05550131946802139,
0.002890693722292781,
0.018148137256503105
] |
20,919 | precession.precession | vectors_to_Jframe |
Rotate vectors of the three momenta onto a frame where J is along z and L lies in the x-z plane.
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Examples
--------
``Lvec,S1vec,S2vec = precession.vectors_to_Jframe(Lvec,S1vec,S2vec)``
| def vectors_to_Jframe(Lvec, S1vec, S2vec):
"""
Rotate vectors of the three momenta onto a frame where J is along z and L lies in the x-z plane.
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Examples
--------
``Lvec,S1vec,S2vec = precession.vectors_to_Jframe(Lvec,S1vec,S2vec)``
"""
Jvec = Lvec + S1vec + S2vec
rotation = lambda vec: rotate_nested(vec, Jvec, Lvec)
Lvecrot = rotation(Lvec)
S1vecrot = rotation(S1vec)
S2vecrot = rotation(S2vec)
return np.stack([Lvecrot, S1vecrot, S2vecrot])
| (Lvec, S1vec, S2vec) | [
-0.004165164195001125,
-0.004427571780979633,
-0.023643366992473602,
0.010594149120151997,
-0.04123801738023758,
-0.009811374358832836,
-0.05016876757144928,
0.051342930644750595,
0.035224881023168564,
0.05966881290078163,
0.0061910394579172134,
0.003931665793061256,
0.005897498689591885,
0.05518564581871033,
-0.025031013414263725,
0.020085297524929047,
0.08653222769498825,
-0.015104001387953758,
-0.04607699066400528,
0.014588081277906895,
0.009580099955201149,
-0.04536537453532219,
0.061732493340969086,
0.05422496795654297,
-0.027752935886383057,
0.0014499130193144083,
0.019338103011250496,
0.012880208902060986,
-0.02129504084587097,
0.023696737363934517,
0.031061939895153046,
0.030047889798879623,
-0.06269317120313644,
-0.022060025483369827,
-0.007885569706559181,
0.05233918875455856,
0.005501663777977228,
-0.005973107647150755,
-0.03817807883024216,
-0.014107742346823215,
0.005884156096726656,
-0.011786102317273617,
-0.01354734692722559,
-0.04123801738023758,
-0.0011886173160746694,
-0.00359587324783206,
-0.014356806874275208,
-0.005061352625489235,
0.05176990106701851,
0.002059232210740447,
0.04098895192146301,
-0.04351517930626869,
0.024586254730820656,
-0.056964680552482605,
0.008236928842961788,
0.060878556221723557,
0.03371270000934601,
0.06956024467945099,
0.03189808502793312,
-0.015771139413118362,
0.015388647094368935,
0.005982003174722195,
-0.008357013575732708,
0.09500043094158173,
0.010451827198266983,
0.020387733355164528,
0.04547211900353432,
0.0020447776187211275,
0.013244911096990108,
-0.0015199624467641115,
-0.028944889083504677,
-0.017594650387763977,
-0.03305445984005928,
0.026507612317800522,
-0.0006293333717621863,
0.049706220626831055,
-0.04700208827853203,
-0.05735606700181961,
-0.027663983404636383,
-0.030830664560198784,
0.02474636770784855,
-0.06575310975313187,
-0.030510438606142998,
-0.02054784633219242,
0.05411822348833084,
0.05241035297513008,
-0.018448585644364357,
0.02337651140987873,
-0.04600582644343376,
-0.05201896280050278,
-0.03743088245391846,
-0.03285876289010048,
-0.020494475960731506,
-0.01211522426456213,
-0.027752935886383057,
0.009606785140931606,
0.02293175272643566,
-0.04134475812315941,
-0.08439739048480988,
0.0017934889765456319,
0.023234188556671143,
-0.008606079034507275,
-0.07678312063217163,
0.024621834978461266,
0.0035091452300548553,
0.02556472271680832,
-0.06265758723020554,
-0.020672379061579704,
0.00964236631989479,
-0.04750021547079086,
0.0135829271748662,
0.048852283507585526,
0.019569378346204758,
-0.052054546773433685,
-0.036274511367082596,
0.00456767063587904,
0.022647107020020485,
0.011634884402155876,
-0.04180730879306793,
-0.024515092372894287,
0.06991604715585709,
0.008023444563150406,
0.0550789050757885,
-0.0003207821282558143,
-0.00814797729253769,
-0.030723923817276955,
-0.006978262215852737,
0.008557154797017574,
-0.007165060844272375,
-0.006320019718259573,
-0.003371270140632987,
0.012044062837958336,
-0.04369308426976204,
0.05920626223087311,
0.025724835693836212,
-0.04266124218702316,
-0.05340661108493805,
-0.03056381084024906,
-0.000686040089931339,
0.027450500056147575,
-0.016642866656184196,
-0.020031927153468132,
0.007672085426747799,
0.010309504345059395,
-0.06162574887275696,
0.02140178345143795,
0.06859956681728363,
-0.028855936601758003,
0.02150852605700493,
-0.0034379838034510612,
0.020387733355164528,
-0.008036787621676922,
0.04358633980154991,
-0.0271658543497324,
0.004469823557883501,
-0.0498841218650341,
0.030510438606142998,
-0.015504284761846066,
0.06340478360652924,
0.06080739572644234,
0.027272596955299377,
-0.012622248381376266,
-0.08752848953008652,
0.048105087131261826,
0.0025595857296139,
0.0018824407598003745,
0.0677456259727478,
0.0614122673869133,
-0.07084114849567413,
0.012924684211611748,
0.027592822909355164,
0.05411822348833084,
0.017968246713280678,
-0.01626037433743477,
-0.02300291322171688,
-0.02307407557964325,
-0.04059756547212601,
0.01810167357325554,
0.022718269377946854,
-0.06835050135850906,
-0.008646107278764248,
-0.006066507194191217,
0.004420900251716375,
-0.006529056001454592,
-0.010985537432134151,
0.061768073588609695,
0.011118964292109013,
0.008236928842961788,
0.05440286919474602,
-0.020761331543326378,
-0.011385819874703884,
0.02013866789638996,
-0.019177990034222603,
0.0006799246766604483,
-0.013689668849110603,
0.02273605950176716,
-0.02109934762120247,
-0.013049216940999031,
-0.016438277438282967,
-0.006297781597822905,
0.007325173821300268,
0.026845628395676613,
0.00794338807463646,
-0.05016876757144928,
0.05411822348833084,
0.020796911790966988,
0.013200434856116772,
-0.03417525067925453,
0.009562309831380844,
-0.04956389591097832,
0.022985123097896576,
-0.007165060844272375,
-0.0035714113619178534,
-0.024105915799736977,
0.002715251175686717,
0.004727783612906933,
-0.06831491738557816,
-0.009900325909256935,
0.054651934653520584,
-0.009900325909256935,
0.06162574887275696,
0.01119902078062296,
-0.11022897064685822,
-0.0029709874652326107,
-0.05824558436870575,
-0.019000086933374405,
0.0189822968095541,
0.010745367035269737,
-0.01789708621799946,
-0.045543279498815536,
-0.010309504345059395,
-0.059526488184928894,
-0.006680273916572332,
-0.038320399820804596,
-0.05084479972720146,
-0.0413091778755188,
0.02494206093251705,
-0.014196693897247314,
-0.035118136554956436,
-0.0007305159815587103,
0.0002965983876492828,
-0.035118136554956436,
0.006257753353565931,
0.036683689802885056,
0.031399957835674286,
0.030510438606142998,
-0.007351859472692013,
-0.009419986978173256,
-0.03495802357792854,
0.057711873203516006,
-0.08340112864971161,
0.04422679543495178,
-0.001145253307186067,
0.008797325193881989,
-0.006440104451030493,
-0.06294223666191101,
0.05347777158021927,
-0.007325173821300268,
0.01095885131508112,
-0.017781447619199753,
0.02341209165751934,
-0.09919895231723785,
-0.005950869992375374,
-0.006168801803141832,
0.0035135927610099316,
0.018786603584885597,
0.011537037789821625,
0.023714527487754822,
-0.0026285231579095125,
0.012337603606283665,
0.019960764795541763,
-0.058601390570402145,
-0.032467376440763474,
-0.009197607636451721,
0.06916885823011398,
-0.024799738079309464,
-0.019231360405683517,
-0.006907100789248943,
-0.01107448898255825,
-0.011545932851731777,
0.0342286191880703,
-0.03342805430293083,
-0.028535710647702217,
0.04187846928834915,
-0.02535123936831951,
0.008459308184683323,
-0.024016963317990303,
-0.0372173972427845,
0.02497764304280281,
-0.03084845468401909,
0.05835232511162758,
0.03892527148127556,
0.01867986097931862,
0.004145150072872639,
0.0071383751928806305,
0.04532979428768158,
-0.005470530595630407,
-0.01298695057630539,
0.05344219133257866,
0.017167681828141212,
-0.020458895713090897,
0.033588167279958725,
0.034886863082647324,
-0.034851282835006714,
-0.04059756547212601,
-0.034851282835006714,
-0.00014301767805591226,
-0.038320399820804596,
-0.003553621005266905,
0.005581720266491175,
-0.04547211900353432,
0.027752935886383057,
-0.039103176444768906,
-0.007529763039201498,
-0.021419573575258255,
0.05429612845182419,
-0.013227120041847229,
-0.03373049199581146,
0.05760513246059418,
-0.0016233688220381737,
0.03200482949614525,
-0.008308090269565582,
0.0316312313079834,
0.014499129727482796,
0.036754850298166275,
-0.023625576868653297,
0.008512679487466812,
0.02515554614365101,
0.0677456259727478,
0.026222966611385345,
-0.0158156156539917,
0.022913962602615356,
0.048887863755226135,
-0.012319812551140785,
0.006457894574850798,
-0.02392801269888878,
-0.010620835237205029,
0.017443431541323662,
0.034780122339725494,
-0.027308177202939987,
0.03529604151844978,
-0.08055467158555984,
-0.030243583023548126,
0.016856350004673004,
0.005096933338791132,
-0.022913962602615356,
0.06429430097341537,
0.0029331829864531755,
0.016714027151465416,
0.021490734070539474,
-0.03241400420665741,
0.05717816203832626,
0.032289475202560425,
0.05244593322277069,
-0.09514275938272476,
0.0539759024977684,
-0.021152717992663383,
-0.06820818036794662,
0.01645606756210327,
-0.012008481658995152,
0.02154410630464554,
0.04835415259003639,
-0.017576858401298523,
-0.05255267396569252,
-0.004972401075065136,
-0.004216311499476433,
-0.016820769757032394,
-0.01477488037198782,
-0.0016456068260595202,
-0.008997466415166855,
0.06055833026766777,
0.04938599467277527,
0.021988864988088608,
0.04041966050863266,
-0.06489917635917664,
0.03953014314174652,
-0.024853110313415527,
0.022718269377946854,
-0.03629229962825775,
-0.1064574122428894,
0.015023944899439812,
-0.07649847865104675,
-0.02412370592355728,
0.02535123936831951,
0.06632240116596222,
0.028482340276241302,
0.048105087131261826,
-0.03956572338938713,
0.0005073027568869293,
0.033481426537036896,
-0.06408081948757172,
-0.005643986631184816,
0.056253064423799515,
0.004174059256911278,
-0.028446760028600693,
0.001501060207374394,
-0.022131187841296196,
0.07197973132133484,
0.05009760707616806,
0.010763158090412617,
-0.02664993517100811,
-0.014561396092176437,
-0.04436911642551422,
-0.025582514703273773,
-0.03800017386674881,
-0.03309004008769989,
0.05308638513088226,
0.00038610605406574905,
0.004225206561386585,
-0.003942784853279591,
-0.03122205287218094,
-0.011714940890669823,
-0.016447173431515694,
-0.04828299209475517,
0.010629730299115181,
0.038284819573163986,
-0.025440191850066185,
-0.02914058230817318,
0.00655129412189126,
0.06803027540445328,
-0.040775466710329056,
0.027752935886383057,
0.03287655487656593,
0.022095605731010437,
-0.03271644189953804,
-0.007374097127467394,
-0.015753349289298058,
0.036238931119441986,
0.0034824598114937544,
-0.02184654213488102,
-0.012978055514395237,
0.0344243161380291,
0.017158785834908485,
-0.052161287516355515,
0.015504284761846066,
0.013707459904253483,
0.02940743789076805,
-0.001001262804493308,
0.014757090248167515,
0.08987681567668915,
0.036754850298166275,
0.07197973132133484,
-0.04369308426976204,
0.011857263743877411,
-0.04365750402212143,
-0.0005651213577948511,
-0.038284819573163986,
0.015788929536938667,
-0.05436728894710541,
0.008103501051664352,
0.027895258739590645,
0.07336737960577011,
0.03743088245391846,
-0.07308273017406464,
0.03609660640358925,
-0.01625147834420204,
0.005977555178105831,
-0.02761061303317547,
-0.05102270469069481,
-0.05308638513088226,
0.058601390570402145,
-0.030279165133833885,
0.04027733579277992,
0.061910394579172134,
-0.028944889083504677,
-0.009838059544563293,
-0.00022321321011986583,
-0.005136961583048105,
-0.04454702138900757,
0.018697651103138924,
0.02556472271680832,
-0.01373414508998394,
0.012586668133735657,
-0.01693640649318695,
0.06653588265180588,
0.004723336081951857,
-0.05635980889201164,
-0.05265941843390465,
-0.017025358974933624,
0.000012369848263915628,
-0.11940878629684448,
-0.09727759659290314,
0.012764571234583855,
0.04767812043428421,
0.008423727937042713,
0.008646107278764248,
0.02348325401544571,
0.006907100789248943,
0.050488993525505066,
-0.0221489779651165,
-0.054687514901161194,
0.047322314232587814,
-0.00991811603307724,
0.06916885823011398,
-0.025956111028790474,
0.015530969947576523,
-0.03803575411438942,
-0.04956389591097832,
-0.06521940231323242,
0.05091596394777298,
0.061092037707567215,
0.03111531026661396,
-0.0034491028636693954,
-0.028713613748550415,
0.04369308426976204,
-0.07012953609228134,
0.013209329918026924,
-0.06956024467945099,
-0.04675302281975746,
-0.010496302507817745,
-0.04867437854409218,
0.008997466415166855,
-0.015299695543944836,
0.037573207169771194,
-0.059562068432569504,
0.06721191853284836,
-0.04337285831570625,
0.0841127410531044,
0.05159199610352516,
-0.00943777710199356,
-0.04369308426976204,
-0.020120877772569656,
0.059526488184928894,
0.006782568525522947,
-0.040135014802217484,
0.003949456382542849,
0.035598475486040115,
0.013751935213804245,
0.01871544122695923,
0.029745453968644142,
-0.11556606739759445,
0.04767812043428421,
-0.06642914563417435,
0.00738744018599391,
0.0006348929018713534,
0.0323784239590168,
0.010691996663808823,
-0.015922358259558678,
-0.013316072523593903,
-0.046361636370420456,
0.027788516134023666,
0.014161113649606705,
0.0078010656870901585,
0.015442018397152424,
-0.06454336643218994,
0.027646193280816078,
-0.02020983025431633,
0.009562309831380844,
0.014098847284913063,
-0.00528373196721077,
-0.03953014314174652,
-0.008090158924460411,
-0.0024328294675797224,
0.0210281852632761,
-0.04223427549004555,
0.01167046558111906,
-0.018430795520544052,
-0.021864332258701324,
0.012408764101564884,
0.025173336267471313,
0.029727663844823837,
0.055399131029844284,
0.04358633980154991,
-0.02657877281308174,
-0.04027733579277992,
0.010896584950387478,
0.043266113847494125,
-0.025849368423223495,
0.03107973001897335,
0.009126446209847927,
0.05685793608427048,
0.011652674525976181,
0.026489822193980217,
-0.050417833030223846,
-0.006164353806525469,
-0.05568377673625946,
-0.0022493666037917137,
0.02839338779449463,
-0.019071247428655624,
-0.0006504594348371029,
0.034815702587366104,
-0.005772966425865889,
-0.007022737991064787,
-0.017256632447242737,
0.028784776106476784,
0.002486200537532568,
-0.041771724820137024,
0.03227168321609497,
0.04283914715051651,
0.047429054975509644,
-0.03319678083062172,
0.034780122339725494,
0.018119465559720993,
-0.003691496327519417,
0.027379337698221207,
0.0032800945919007063,
-0.01827068254351616,
0.0494927354156971,
-0.022575946524739265,
-0.02024541050195694,
-0.03579417243599892,
-0.019142409786581993,
0.013413919135928154,
0.030901826918125153,
-0.05500774085521698,
-0.0632624626159668,
-0.015219639055430889,
-0.0020203159656375647,
0.006529056001454592,
0.0005000754608772695,
0.02616959437727928,
0.03134658560156822,
0.02954976074397564,
-0.03394397348165512,
-0.021757589653134346,
0.008663897402584553,
-0.015335275791585445,
-0.009464462287724018,
0.02129504084587097,
-0.008908514864742756,
-0.06991604715585709,
-0.04468934237957001,
-0.05091596394777298,
-0.03639904409646988,
0.0032222759909927845,
-0.01611805148422718,
0.017363375052809715,
-0.013262701220810413,
0.06489917635917664,
0.00027575032436288893,
0.01830626279115677,
-0.0227004773914814,
0.07678312063217163,
-0.0539759024977684,
0.014339016750454903,
-0.007867779582738876,
-0.05813884362578392,
-0.003362374845892191,
-0.005012429319322109,
0.10275702178478241,
0.004496509209275246,
-0.03408629819750786,
-0.02951418049633503,
0.027343757450580597,
-0.014161113649606705,
-0.04479608312249184,
0.02188212238252163,
-0.004269682336598635,
0.0037159579806029797,
0.02508438378572464,
-0.020085297524929047,
0.07955841720104218,
-0.006035374011844397,
0.007881121709942818,
-0.009179817512631416,
-0.012880208902060986,
-0.022842800244688988,
-0.000045379274524748325,
0.005870813503861427,
-0.006084297318011522,
0.06746098399162292,
-0.03291213512420654,
0.009873640723526478,
0.007596476469188929,
0.007947836071252823,
0.005368235986679792,
0.04917250946164131,
0.03376607224345207,
0.0013164854608476162,
0.022504784166812897,
0.022006655111908913,
-0.09101539850234985,
0.06891979277133942,
-0.0019091261783614755,
-0.009188712574541569,
0.005079143214970827,
0.05568377673625946,
-0.022309090942144394,
0.055434711277484894,
0.014009895734488964,
-0.04792718589305878,
0.04383540526032448,
0.015255219303071499,
0.005310417618602514,
-0.05963323265314102,
-0.005128066521137953,
0.020868072286248207,
0.04963505640625954,
-0.003789343172684312,
-0.02181096188724041,
0.018377425149083138,
0.04148707911372185,
0.022718269377946854,
0.012310917489230633,
-0.02515554614365101,
0.04362192377448082,
0.0015244100941345096,
-0.010691996663808823,
-0.03542057424783707,
-0.009962592273950577,
0.019818441942334175,
-0.011848368681967258,
0.0031600098591297865,
0.05970439314842224,
0.0001423227513441816,
0.019782861694693565,
0.023056285455822945,
-0.005866365972906351,
0.02720143459737301,
-0.037608787417411804,
0.01211522426456213,
0.011456981301307678,
0.0777793824672699,
0.028571290895342827,
0.009313244372606277,
0.0010196090443059802,
-0.009758003056049347,
0.005061352625489235,
0.059313006699085236,
0.04476050287485123,
-0.03598986566066742,
-0.0037782241124659777,
0.029745453968644142,
-0.017576858401298523,
-0.018519748002290726,
-0.03817807883024216,
-0.011955110356211662,
0.02433718927204609,
-0.026881208643317223,
0.01086989976465702,
-0.05828116461634636,
0.07756590098142624,
0.004247444681823254,
0.038391560316085815,
-0.01721215806901455,
-0.054616354405879974,
-0.04202079027891159,
-0.017496801912784576,
-0.004423124250024557,
0.0476425401866436,
-0.005652881693094969,
-0.0053148651495575905,
0.020779121667146683,
0.010309504345059395,
-0.01816393993794918,
0.009108656086027622,
-0.06696285307407379,
-0.0034379838034510612,
-0.008712820708751678,
-0.036719270050525665,
0.02129504084587097,
-0.028019791468977928,
-0.06881304830312729,
-0.09300791472196579,
0.03220052272081375,
-0.011937320232391357,
-0.03138216584920883,
0.015228534117341042,
-0.05426054820418358,
-0.06045158579945564,
-0.05518564581871033,
0.007547553163021803,
0.0035224880557507277,
0.06123436242341995,
0.003266751766204834,
0.028090951964259148,
-0.012471030466258526,
0.041700564324855804
] |
20,920 | precession.precession | vectors_to_Lframe |
Rotate vectors of the three momenta onto a frame where L is along z and S1 lies in the x-z plane.
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Examples
--------
``Lvec,S1vec,S2vec = precession.vectors_to_Lframe(Lvec,S1vec,S2vec)``
| def vectors_to_Lframe(Lvec, S1vec, S2vec):
"""
Rotate vectors of the three momenta onto a frame where L is along z and S1 lies in the x-z plane.
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Examples
--------
``Lvec,S1vec,S2vec = precession.vectors_to_Lframe(Lvec,S1vec,S2vec)``
"""
Jvec = Lvec + S1vec + S2vec
rotation = lambda vec: rotate_nested(vec, Lvec, S1vec)
Lvecrot = rotation(Lvec)
S1vecrot = rotation(S1vec)
S2vecrot = rotation(S2vec)
return np.stack([Lvecrot, S1vecrot, S2vecrot])
| (Lvec, S1vec, S2vec) | [
-0.026624003425240517,
0.0026872195303440094,
-0.019241483882069588,
0.02030644379556179,
-0.03557689115405083,
-0.007788649294525385,
-0.03368161991238594,
0.040360186249017715,
0.01359177939593792,
0.062200892716646194,
-0.019891289994120598,
-0.013149550184607506,
0.00498636020347476,
0.060612477362155914,
-0.030035486444830894,
0.028808075934648514,
0.05046828091144562,
-0.037255555391311646,
-0.04877156764268875,
-0.03166000172495842,
0.0350714847445488,
0.001792607712559402,
0.04212910309433937,
0.04595573991537094,
-0.018970731645822525,
0.011461859568953514,
-0.0067327143624424934,
0.00760814780369401,
-0.02694890834391117,
0.029800834134221077,
0.056713640689849854,
0.03866346925497055,
-0.07068447768688202,
-0.039132773876190186,
-0.03608229383826256,
0.03463828191161156,
-0.0042801471427083015,
-0.038699571043252945,
-0.045558635145425797,
-0.014774066396057606,
0.007450208533555269,
-0.004544130992144346,
-0.005397001747041941,
-0.008388817310333252,
-0.015514123253524303,
-0.02608249895274639,
-0.029024677351117134,
-0.02703915908932686,
0.04375361651182175,
0.01594732701778412,
0.04743585363030434,
-0.04039628431200981,
0.031172648072242737,
-0.06750764697790146,
0.014918467961251736,
0.03945767506957054,
0.018591677770018578,
0.08028716593980789,
0.042020801454782486,
-0.01379935722798109,
0.023248622193932533,
0.014061084017157555,
-0.036822352558374405,
0.09732653200626373,
0.03546858951449394,
-0.003061760449782014,
0.04808565974235535,
0.01177773717790842,
0.023537425324320793,
0.00037313089706003666,
-0.037760961800813675,
0.001561339944601059,
-0.05714684724807739,
0.032995715737342834,
-0.003312206594273448,
0.05822985619306564,
-0.04212910309433937,
-0.04794125631451607,
-0.0031678052619099617,
-0.024530183523893356,
0.005559453275054693,
-0.062200892716646194,
-0.010099071078002453,
0.00045633091940544546,
0.03086579404771328,
0.02759871445596218,
-0.00890324730426073,
0.00907021202147007,
-0.027147458866238594,
-0.04869936406612396,
-0.037977561354637146,
-0.019837139174342155,
-0.02545074373483658,
-0.015017743222415447,
-0.023230571299791336,
-0.00341373891569674,
0.027147458866238594,
-0.030558941885828972,
-0.07285049557685852,
-0.004110926762223244,
0.027797264978289604,
-0.018266774713993073,
-0.07191188633441925,
0.033140115439891815,
0.0016888192621991038,
0.03591984137892723,
-0.06451131403446198,
-0.030595041811466217,
0.022508565336465836,
-0.02846512198448181,
0.0011924394639208913,
0.0019550593569874763,
0.01470186561346054,
-0.034656330943107605,
-0.06981806457042694,
0.003835661569610238,
0.023320822045207024,
0.004805858246982098,
-0.05750785022974014,
-0.023519374430179596,
0.07472771406173706,
-0.00451028672978282,
0.04797735810279846,
-0.030468691140413284,
-0.017571842297911644,
-0.02687670662999153,
-0.009038623422384262,
-0.030540890991687775,
0.004787808284163475,
0.003623572178184986,
-0.0019674687646329403,
0.014990667812526226,
-0.04837446287274361,
0.0766049325466156,
0.024331633001565933,
-0.05191229656338692,
-0.02920517884194851,
0.0005457357037812471,
0.0007755933329463005,
0.04534203186631203,
-0.020902099087834358,
0.016416631639003754,
0.026497652754187584,
0.030125737190246582,
-0.04570303484797478,
0.04111829400062561,
0.06476401537656784,
-0.015748774632811546,
0.008063914254307747,
0.017382316291332245,
0.029584232717752457,
-0.02730991132557392,
0.04393411800265312,
0.002829364500939846,
0.004519311711192131,
-0.04205690324306488,
0.004090620204806328,
-0.029096877202391624,
0.05371731147170067,
0.04465612769126892,
0.012030440382659435,
-0.008988985791802406,
-0.0875072330236435,
0.01348347868770361,
0.00708018010482192,
-0.01152503490447998,
0.06757984310388565,
0.058302056044340134,
-0.04873546585440636,
0.018077246844768524,
0.0318044051527977,
0.045775238424539566,
0.01587512716650963,
-0.021281152963638306,
-0.03043259121477604,
-0.03779705986380577,
-0.05230940133333206,
-0.0006639079074375331,
0.008032326586544514,
-0.08230878412723541,
0.015044818632304668,
0.0005553248338401318,
0.00048002178664319217,
-0.02499948814511299,
-0.01594732701778412,
0.06256189942359924,
-0.009747093543410301,
-0.0014519107062369585,
0.03158780187368393,
-0.020324494689702988,
-0.01455746404826641,
0.013898632489144802,
-0.013934733346104622,
-0.005266137886792421,
-0.01258097030222416,
0.02711135894060135,
-0.04942137375473976,
-0.005897894036024809,
0.007147868163883686,
-0.036316946148872375,
0.02637130208313465,
0.05555843189358711,
-0.0015071893576532602,
-0.0599987730383873,
0.02391647920012474,
0.010667651891708374,
0.004909646697342396,
-0.02377207763493061,
-0.02268906682729721,
-0.040287986397743225,
0.025270242244005203,
-0.000251574267167598,
0.013041249476373196,
-0.01402498409152031,
0.0007490821299143136,
-0.0001587851147633046,
-0.09292228519916534,
-0.0013605317799374461,
0.04249010607600212,
-0.015080919489264488,
0.08642422407865524,
-0.0054962774738669395,
-0.1257736086845398,
-0.023393023759126663,
-0.04656944423913956,
-0.004070314113050699,
0.02081184834241867,
0.013293951749801636,
-0.02658790349960327,
-0.014061084017157555,
-0.007766086608171463,
-0.06472791731357574,
-0.03496318310499191,
-0.029746683314442635,
-0.03447582945227623,
-0.05375341325998306,
0.042670607566833496,
0.02449408359825611,
-0.040215782821178436,
-0.003352819476276636,
0.0003911810927093029,
-0.02702110819518566,
-0.0017463541589677334,
0.034728530794382095,
0.0175357423722744,
0.03333866968750954,
-0.024403832852840424,
-0.010541300289332867,
-0.04660554602742195,
0.06757984310388565,
-0.08498021215200424,
0.03268886357545853,
0.00576251745223999,
0.02514388971030712,
0.013032224029302597,
-0.06931266188621521,
0.03880786895751953,
-0.027725065127015114,
0.024151131510734558,
-0.025270242244005203,
0.035306137055158615,
-0.0845470055937767,
-0.02689475752413273,
-0.0006176543538458645,
0.013239801861345768,
-0.004887084010988474,
0.008393330499529839,
0.021786557510495186,
0.020288392901420593,
0.011994339525699615,
0.07216458767652512,
-0.04812176153063774,
-0.042598407715559006,
0.010062971152365208,
0.08050376921892166,
-0.02333887293934822,
0.0027278324123471975,
-0.011516010388731956,
0.0007705167517997324,
0.0035897281486541033,
0.04032408446073532,
-0.02052304521203041,
-0.038988374173641205,
0.04039628431200981,
-0.023898428305983543,
0.01351957954466343,
-0.04826616123318672,
-0.046713847666978836,
0.021190902218222618,
-0.023970628157258034,
0.07552192360162735,
0.03866346925497055,
0.03418702632188797,
0.002966996980831027,
0.019187333062291145,
0.051298588514328,
0.004022932145744562,
-0.005758005194365978,
0.05667754262685776,
0.012265091761946678,
-0.02341107279062271,
0.021046500653028488,
0.059024062007665634,
-0.03496318310499191,
-0.037255555391311646,
-0.05324800685048103,
0.008005251176655293,
-0.044620025902986526,
-0.00972001813352108,
-0.005911431275308132,
-0.03463828191161156,
0.05884356051683426,
-0.02530634216964245,
-0.021136751398444176,
0.004250815603882074,
0.07609952986240387,
-0.011064755730330944,
-0.01944003626704216,
0.04884376749396324,
-0.015920251607894897,
0.02703915908932686,
0.006818452849984169,
0.024620434269309044,
0.0260102991014719,
0.04386191815137863,
-0.02102845162153244,
0.026858655735850334,
0.0038311490789055824,
0.07797674834728241,
0.02877197414636612,
-0.01091132964938879,
0.007188481278717518,
0.024620434269309044,
-0.003522039856761694,
-0.0024164668284356594,
-0.009882469661533833,
-0.014647714793682098,
0.04104609042406082,
0.04375361651182175,
-0.033140115439891815,
0.0542227178812027,
-0.0491325706243515,
-0.03409677743911743,
-0.005924968980252743,
0.012562920339405537,
-0.020107891410589218,
0.06877115368843079,
0.008776896633207798,
0.013474454171955585,
0.027057208120822906,
-0.04501713067293167,
0.03534223884344101,
0.030919944867491722,
0.05393391475081444,
-0.08209218084812164,
0.05270650237798691,
-0.010857178829610348,
-0.05313970893621445,
0.01730109006166458,
-0.027869466692209244,
0.02514388971030712,
0.04508933052420616,
-0.024331633001565933,
-0.05754394829273224,
-0.02124505303800106,
-0.015189220197498798,
-0.02666010521352291,
-0.023032020777463913,
-0.010234448127448559,
0.022382214665412903,
0.047002650797367096,
0.0411904938519001,
0.03326646611094475,
0.04198469966650009,
-0.05046828091144562,
0.02761676348745823,
-0.008988985791802406,
0.024602385237812996,
-0.039277173578739166,
-0.08303079009056091,
0.029223229736089706,
-0.04952967166900635,
-0.0009233791497536004,
0.02723770961165428,
0.08642422407865524,
0.02153385616838932,
0.05360901355743408,
-0.0267323050647974,
0.002901565283536911,
0.022707117721438408,
-0.04873546585440636,
-0.012138741090893745,
0.059529468417167664,
-0.010523250326514244,
-0.02472873590886593,
-0.018176523968577385,
-0.045486435294151306,
0.07270609587430954,
0.06039587780833244,
-0.028086068108677864,
-0.023230571299791336,
0.015811951830983162,
-0.06483621895313263,
-0.039421577006578445,
-0.04234570637345314,
-0.02030644379556179,
0.05317580699920654,
0.000644729589112103,
-0.017237914726138115,
-0.009620741941034794,
-0.017941871657967567,
0.02572149597108364,
-0.01166943646967411,
-0.0701429694890976,
0.029241278767585754,
0.02990913577377796,
-0.009620741941034794,
0.0022912437561899424,
-0.000052634586609201506,
0.057363446801900864,
-0.018898529931902885,
0.023826228454709053,
0.0274723619222641,
0.03604619577527046,
-0.015911227092146873,
-0.004295940976589918,
-0.015839025378227234,
0.03223760798573494,
0.017454516142606735,
-0.03330256789922714,
-0.0016222592676058412,
0.03676820173859596,
0.014521364122629166,
-0.04945747181773186,
0.007698398549109697,
-0.0046298690140247345,
0.017048388719558716,
0.01712961308658123,
-0.0069357785396277905,
0.0867130309343338,
0.05147909000515938,
0.03373577073216438,
-0.03050479106605053,
0.03295961394906044,
-0.03554078936576843,
-0.023735975846648216,
-0.0585186593234539,
0.005947531666606665,
-0.02992718666791916,
-0.0018997807055711746,
0.013636905699968338,
0.06924045830965042,
0.03996308147907257,
-0.047002650797367096,
0.02730991132557392,
-0.007969151251018047,
-0.020829899236559868,
-0.019674688577651978,
-0.05649704113602638,
-0.05245380103588104,
0.029602283611893654,
-0.014728941023349762,
0.029457882046699524,
0.06952926516532898,
0.004909646697342396,
-0.009927595034241676,
0.005667753983289003,
-0.007391545455902815,
-0.04610013961791992,
0.0001248705229954794,
0.008596394211053848,
-0.03510758653283119,
0.0321473553776741,
0.004038725979626179,
0.08079256862401962,
0.006628925912082195,
-0.05072098597884178,
-0.07202018797397614,
-0.03254446014761925,
-0.02182265929877758,
-0.09913154691457748,
-0.08642422407865524,
0.0055188401602208614,
0.0535007119178772,
-0.001970853190869093,
0.005451152101159096,
0.01232826802879572,
0.05075708404183388,
0.018609728664159775,
-0.0037882798351347446,
-0.05122638866305351,
0.05324800685048103,
-0.013474454171955585,
0.06895165890455246,
-0.0404684878885746,
0.010270548053085804,
-0.03837466612458229,
-0.0621647946536541,
-0.048302263021469116,
0.03729165717959404,
0.06743544340133667,
0.02160605601966381,
0.01850142702460289,
-0.02220171131193638,
0.05606383457779884,
-0.021930959075689316,
0.0031384737230837345,
-0.05743565037846565,
-0.030901895835995674,
-0.014268660917878151,
-0.05332021042704582,
-0.005825693253427744,
0.010640576481819153,
0.047363653779029846,
-0.06660513579845428,
0.08627982437610626,
-0.03456608206033707,
0.0852690115571022,
0.05194839462637901,
-0.010180297307670116,
-0.028790025040507317,
-0.00784279964864254,
0.028934426605701447,
-0.03375382348895073,
-0.03680429980158806,
-0.012851722538471222,
0.013645930215716362,
-0.009503415785729885,
0.03389822319149971,
0.01802309788763523,
-0.0903230607509613,
0.0585186593234539,
-0.04823005944490433,
-0.003993600606918335,
0.017689168453216553,
0.04184029996395111,
-0.012960024178028107,
-0.04151539504528046,
-0.03156975284218788,
-0.06895165890455246,
0.030956044793128967,
-0.005333825945854187,
0.002522511640563607,
0.04256230592727661,
-0.07256169617176056,
-0.001908805686980486,
-0.011597235687077045,
0.015956351533532143,
0.0012872029328718781,
0.011516010388731956,
-0.03960207849740982,
-0.03122679889202118,
-0.014972617849707603,
0.00008573832019465044,
-0.07256169617176056,
0.008952885866165161,
-0.016515906900167465,
-0.013420303352177143,
0.003815355245023966,
0.024187231436371803,
0.02398867905139923,
0.04068508744239807,
0.04646114259958267,
-0.0216963067650795,
-0.046786047518253326,
0.007806699723005295,
0.04061288759112358,
-0.019458085298538208,
0.04227350279688835,
0.017788445577025414,
0.05559452995657921,
-0.005961069371551275,
0.010992554947733879,
-0.04588354006409645,
-0.004232765641063452,
-0.026353251188993454,
0.0015139582101255655,
0.004756220616400242,
-0.011687486432492733,
-0.009774168021976948,
0.0339704230427742,
-0.010505200363695621,
-0.01672348566353321,
-0.03743605688214302,
0.015568274073302746,
0.0012014645617455244,
-0.04017968475818634,
0.034511931240558624,
0.040360186249017715,
0.06938486546278,
-0.047074850648641586,
0.022436363622546196,
0.01583000086247921,
-0.020938200876116753,
0.03223760798573494,
-0.0017226632917299867,
0.0028474146965891123,
0.04884376749396324,
-0.04610013961791992,
0.021010400727391243,
-0.03158780187368393,
0.0015534429112449288,
0.0077254739589989185,
0.0607207790017128,
-0.06256189942359924,
-0.07884315401315689,
0.010351774282753468,
-0.009900519624352455,
-0.002777470275759697,
-0.001982134534046054,
0.0278153158724308,
0.03483683243393898,
0.017219863831996918,
-0.029169078916311264,
0.0025698933750391006,
-0.019981540739536285,
-0.016200030222535133,
-0.0013548911083489656,
0.04754415526986122,
-0.010757902637124062,
-0.05415051802992821,
-0.05938506871461868,
-0.06859065592288971,
-0.036461349576711655,
-0.008136115036904812,
0.0004284095484763384,
0.024115029722452164,
-0.021479705348610878,
0.06108178198337555,
-0.010839128866791725,
0.014710890129208565,
-0.019259534776210785,
0.05656924098730087,
-0.04747195169329643,
0.03131704777479172,
0.005130761303007603,
-0.03844686597585678,
0.008826534263789654,
0.016678359359502792,
0.09653232246637344,
0.0006988801178522408,
-0.03707505390048027,
-0.02848317287862301,
0.015748774632811546,
-0.00007537357305409387,
-0.026281051337718964,
0.017382316291332245,
-0.021064551547169685,
0.03859126940369606,
0.01958443783223629,
-0.011407708749175072,
0.06992636620998383,
-0.0072065312415361404,
-0.003916887566447258,
-0.008700182661414146,
-0.026714256033301353,
-0.018411176279187202,
0.00320841814391315,
0.00907021202147007,
-0.02398867905139923,
0.04378971830010414,
-0.03649744763970375,
0.02543269284069538,
0.020053742453455925,
0.009065698832273483,
0.008970935828983784,
0.058951862156391144,
0.05021557956933975,
-0.0027797266375273466,
0.005406026728451252,
0.016922036185860634,
-0.09653232246637344,
0.0513346903026104,
0.030956044793128967,
0.002806801814585924,
-0.0030459666159003973,
0.02826656959950924,
-0.05180399492383003,
0.059962671250104904,
0.03615449368953705,
-0.06768814474344254,
0.0628868043422699,
0.002266424708068371,
-0.007797674275934696,
-0.04833836108446121,
0.011064755730330944,
0.014268660917878151,
0.04963797330856323,
-0.0032964127603918314,
-0.013330052606761456,
0.02001764066517353,
0.04638894274830818,
0.017364265397191048,
0.001530880224891007,
-0.04017968475818634,
0.028952477499842644,
0.006606363225728273,
-0.044475626200437546,
-0.042670607566833496,
0.010008820332586765,
0.016849836334586143,
-0.025829797610640526,
0.002734601031988859,
0.06115398555994034,
-0.016209054738283157,
0.0010147581342607737,
0.027508463710546494,
-0.015107993967831135,
-0.005085635930299759,
0.003346050623804331,
0.02182265929877758,
0.006434886250644922,
0.07992616295814514,
0.028880275785923004,
0.01583000086247921,
-0.01879023015499115,
-0.004801345989108086,
0.005067585967481136,
0.038194164633750916,
0.02942178025841713,
-0.026190800592303276,
-0.004264353308826685,
0.02326667308807373,
-0.02790556661784649,
-0.0064393989741802216,
-0.03189465403556824,
-0.0013639162061735988,
0.040071383118629456,
-0.03693065419793129,
0.010631551966071129,
-0.0419124998152256,
0.06905996054410934,
0.015171170234680176,
0.043681416660547256,
0.0010203988058492541,
-0.042742807418107986,
-0.06115398555994034,
0.002337497426196933,
-0.0065115997567772865,
0.009002523496747017,
0.0175176914781332,
0.0007784136687405407,
0.027273811399936676,
-0.0036303410306572914,
-0.0606846809387207,
0.019349785521626472,
-0.06115398555994034,
-0.0038198677357286215,
-0.001164236105978489,
-0.04126269370317459,
0.019133182242512703,
-0.03193075582385063,
-0.06328390538692474,
-0.08115357160568237,
0.01763501763343811,
-0.017093513160943985,
-0.007743523921817541,
0.0049006217159330845,
-0.042237404733896255,
-0.056713640689849854,
-0.024151131510734558,
-0.016922036185860634,
0.02545074373483658,
0.07245339453220367,
0.013059299439191818,
0.02030644379556179,
-0.02102845162153244,
0.045125432312488556
] |
20,921 | precession.precession | vectors_to_angles |
Convert cartesian vectors (L,S1,S2) into angles (theta1,theta2,deltaphi).
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta1,theta2,deltaphi = precession.vectors_to_angles(Lvec,S1vec,S2vec)``
| def vectors_to_angles(Lvec, S1vec, S2vec):
"""
Convert cartesian vectors (L,S1,S2) into angles (theta1,theta2,deltaphi).
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
Returns
-------
deltaphi: float
Angle between the projections of the two spins onto the orbital plane.
theta1: float
Angle between orbital angular momentum and primary spin.
theta2: float
Angle between orbital angular momentum and secondary spin.
Examples
--------
``theta1,theta2,deltaphi = precession.vectors_to_angles(Lvec,S1vec,S2vec)``
"""
Lvec = np.atleast_2d(Lvec).astype(float)
S1vec = np.atleast_2d(S1vec).astype(float)
S2vec = np.atleast_2d(S2vec).astype(float)
S1vec = normalize_nested(S1vec)
S2vec = normalize_nested(S2vec)
Lvec = normalize_nested(Lvec)
theta1 = np.arccos(dot_nested(S1vec, Lvec))
theta2 = np.arccos(dot_nested(S2vec, Lvec))
S1crL = np.cross(S1vec, Lvec)
S2crL = np.cross(S2vec, Lvec)
absdeltaphi = np.arccos(dot_nested(normalize_nested(S1crL), normalize_nested(S2crL)))
cyclesign = eval_cyclesign(Lvec=Lvec, S1vec=S1vec, S2vec=S2vec)
deltaphi = absdeltaphi*cyclesign
return np.stack([theta1, theta2, deltaphi])
| (Lvec, S1vec, S2vec) | [
-0.032074496150016785,
-0.02971387282013893,
0.010838257148861885,
0.008529155515134335,
-0.011447147466242313,
-0.010688375681638718,
-0.04612582176923752,
0.004501108545809984,
0.02890826389193535,
0.0852072462439537,
0.011194223538041115,
-0.018360400572419167,
0.04140457510948181,
0.028458621352910995,
-0.06976952403783798,
0.010744580999016762,
0.03441638499498367,
-0.020571142435073853,
-0.061151374131441116,
-0.04335302859544754,
0.01618712767958641,
0.019934149459004402,
0.013114571571350098,
0.008908540941774845,
-0.039193835109472275,
-0.004646305460482836,
0.008088880218565464,
-0.0018208178225904703,
-0.04211651161313057,
0.006679064128547907,
0.04616329073905945,
0.04462701454758644,
-0.04668787494301796,
-0.01246821042150259,
0.0015526716597378254,
0.010491657070815563,
0.04739980772137642,
0.011878054589033127,
-0.06032703071832657,
0.022763149812817574,
-0.006421456579118967,
-0.001512859482318163,
0.04226639121770859,
0.0006879295688122511,
-0.040580231696367264,
-0.01721755973994732,
-0.10139437764883041,
-0.018838144838809967,
-0.015803059563040733,
0.0331798680126667,
0.025985587388277054,
-0.0279527734965086,
0.04335302859544754,
-0.03141876682639122,
0.018510282039642334,
0.06358693540096283,
0.01326445210725069,
0.07670150697231293,
-0.004187295213341713,
-0.0065244995057582855,
0.018988026306033134,
0.003805567743256688,
0.007311373949050903,
0.03630862757563591,
0.04923585057258606,
0.01151272002607584,
0.02667878568172455,
-0.007826589047908783,
0.03653344884514809,
0.05822869762778282,
-0.0389690138399601,
-0.005920292343944311,
-0.029657667502760887,
-0.04455207288265228,
0.0552685521543026,
0.04844897612929344,
0.017395542934536934,
-0.009714150801301003,
0.037807438522577286,
-0.04983537271618843,
-0.03021972067654133,
-0.05245828628540039,
0.03782617300748825,
0.0023313493002206087,
0.061825837939977646,
0.053507450968027115,
-0.054706498980522156,
-0.00375872990116477,
-0.025517210364341736,
-0.03563416376709938,
-0.020308850333094597,
-0.02536732889711857,
-0.003601823467761278,
-0.0011832388117909431,
0.008135718293488026,
0.016290171071887016,
-0.005723573733121157,
-0.04934826120734215,
-0.042378801852464676,
-0.0006791474879719317,
0.017910758033394814,
0.024524249136447906,
-0.03467867523431778,
0.03361077234148979,
0.04016805812716484,
-0.009367551654577255,
-0.0415169857442379,
-0.029976163059473038,
0.06216306984424591,
-0.004372304771095514,
-0.0671091377735138,
0.044252313673496246,
0.06452368944883347,
-0.050135135650634766,
-0.08910414576530457,
-0.03555922582745552,
0.0006727072759531438,
-0.0038687987253069878,
-0.029957428574562073,
-0.033423423767089844,
0.04076758399605751,
0.025273652747273445,
0.06579767912626266,
0.02978881262242794,
0.03149370849132538,
-0.07254231721162796,
-0.0006100617465563118,
-0.004852391313761473,
-0.03881913051009178,
0.02649143524467945,
0.026191674172878265,
0.0017903732368722558,
0.018144946545362473,
0.03606507182121277,
0.033067457377910614,
-0.04204156994819641,
-0.007320741191506386,
0.01356421411037445,
0.0012575937435030937,
0.019156642258167267,
0.03021972067654133,
-0.007489357143640518,
0.004782135132700205,
-0.011100548319518566,
-0.043690260499715805,
0.10101967304944992,
0.032786428928375244,
-0.02791530266404152,
0.0004777451104018837,
-0.005264563951641321,
0.0005459525855258107,
-0.03803225979208946,
0.03762008622288704,
-0.0069600907154381275,
0.010931932367384434,
-0.05721700191497803,
-0.008412061259150505,
-0.04923585057258606,
0.030126044526696205,
0.032111965119838715,
-0.03138129785656929,
0.015156697481870651,
-0.015465826727449894,
0.020027823746204376,
0.03687068074941635,
0.01861332356929779,
0.03615874797105789,
0.016243332996964455,
-0.026978546753525734,
-0.01491314172744751,
0.009929603897035122,
0.013517376035451889,
-0.02546100504696369,
-0.04739980772137642,
0.009629842825233936,
-0.06156354770064354,
-0.011044343002140522,
0.028364945203065872,
-0.004161534830927849,
-0.06384922564029694,
0.008426112122833729,
-0.020271381363272667,
0.007873427122831345,
-0.01901612989604473,
0.01342370081692934,
0.08798003941774368,
0.029133085161447525,
-0.026716256514191628,
0.03790111094713211,
-0.027390720322728157,
-0.005564325489103794,
0.01836976781487465,
-0.01574685424566269,
0.06523562967777252,
0.041666869074106216,
0.022032480686903,
-0.03147497400641441,
0.014500969089567661,
-0.044252313673496246,
-0.02422448806464672,
0.005161520559340715,
0.04091746360063553,
-0.02426195703446865,
-0.02418701723217964,
0.027109693735837936,
-0.0021779555827379227,
-0.021170666441321373,
-0.019896678626537323,
0.021545367315411568,
-0.02759680524468422,
0.028140123933553696,
0.002583102323114872,
-0.03006983920931816,
-0.014322985894978046,
-0.010707111097872257,
0.07591463625431061,
0.011643866077065468,
-0.009236405603587627,
0.008679036051034927,
0.0037680973764508963,
0.09787217527627945,
-0.012018567882478237,
-0.04593846946954727,
-0.027465660125017166,
-0.016215231269598007,
-0.006997560616582632,
-0.008140401914715767,
0.04129216447472572,
0.006065489258617163,
0.005002272315323353,
0.03293630853295326,
-0.056692421436309814,
-0.012693031691014767,
0.015540767461061478,
-0.010922565124928951,
-0.034584999084472656,
0.005428495816886425,
0.014032592065632343,
-0.043128207325935364,
0.01984047330915928,
-0.04642558470368385,
-0.006632226053625345,
-0.017835818231105804,
0.037320323288440704,
-0.01849154569208622,
0.025086302310228348,
-0.0024051188956946135,
-0.005601795855909586,
-0.03758261725306511,
0.029919957742094994,
-0.054032035171985626,
0.007400365546345711,
0.03141876682639122,
-0.0007277416298165917,
-0.014322985894978046,
-0.08288409560918808,
0.010903829708695412,
0.02990122325718403,
0.02894573286175728,
-0.014688320457935333,
0.057404354214668274,
-0.05706712231040001,
-0.05530602112412453,
0.02128307707607746,
0.018004434183239937,
-0.009882766753435135,
0.015971675515174866,
0.010669641196727753,
-0.030613157898187637,
0.012871015816926956,
0.006243472918868065,
-0.05444420874118805,
-0.06725902110338211,
-0.0036954989191144705,
0.06842059642076492,
0.04859885573387146,
0.04230386018753052,
-0.02278188429772854,
-0.011006873100996017,
0.05257069692015648,
0.01519416831433773,
-0.027578070759773254,
-0.030032368376851082,
0.03066936321556568,
-0.031119005754590034,
0.0005040913238190114,
-0.004086594097316265,
-0.07868742942810059,
0.046313174068927765,
-0.006309045944362879,
0.06819577515125275,
0.054781440645456314,
0.0099015012383461,
0.006028019357472658,
0.07344160228967667,
0.06272512674331665,
-0.006763372104614973,
-0.04811174422502518,
0.03630862757563591,
-0.030912918969988823,
-0.020308850333094597,
0.016055982559919357,
0.052832987159490585,
-0.06261271238327026,
-0.018922453746199608,
-0.03949359431862831,
0.052195996046066284,
-0.0279527734965086,
0.029058143496513367,
-0.0038547473959624767,
-0.06276259571313858,
0.0016182444524019957,
0.02266947366297245,
0.044327251613140106,
-0.003025718964636326,
0.05189623311161995,
-0.026116732507944107,
-0.03038833662867546,
0.06523562967777252,
-0.015203535556793213,
-0.0020491518080234528,
0.072842076420784,
0.0523458756506443,
0.015643810853362083,
0.036008868366479874,
-0.022088686004281044,
0.007264535874128342,
0.05069718882441521,
0.12380155920982361,
0.0660974383354187,
-0.01933462545275688,
0.0075080920942127705,
-0.004210714250802994,
-0.008065461181104183,
0.018632059916853905,
-0.018669528886675835,
0.03687068074941635,
0.009601740166544914,
0.0169084295630455,
-0.02465539425611496,
0.031400032341480255,
-0.009451859630644321,
0.004866442643105984,
0.027503130957484245,
-0.017198823392391205,
-0.015137962996959686,
0.05358239263296127,
0.008224709890782833,
0.0025620253290981054,
0.02752186544239521,
-0.03638356924057007,
0.07344160228967667,
0.016992738470435143,
0.037132974714040756,
-0.07186785340309143,
0.05268310755491257,
-0.0389690138399601,
-0.03617748245596886,
0.03078177385032177,
-0.033348482102155685,
-0.019184745848178864,
0.043090734630823135,
0.0126087237149477,
-0.03591519221663475,
-0.03762008622288704,
-0.02182639390230179,
-0.019390830770134926,
-0.06474851071834564,
-0.002447272650897503,
0.015447092242538929,
0.00631372956559062,
0.040580231696367264,
0.03750767558813095,
-0.007976469583809376,
-0.027859097346663475,
0.07546499371528625,
0.027109693735837936,
0.018023168668150902,
-0.03653344884514809,
-0.06594756245613098,
-0.005597111769020557,
-0.05230840668082237,
-0.012234021909534931,
0.05643012747168541,
0.07733850181102753,
0.022013746201992035,
0.059315335005521774,
-0.04222892224788666,
0.024992626160383224,
0.05875328183174133,
-0.05815375968813896,
-0.01742364466190338,
0.07332918792963028,
-0.0155688701197505,
-0.025592150166630745,
-0.00781253818422556,
-0.016711711883544922,
0.03634610027074814,
0.009639210067689419,
0.007803170010447502,
-0.009273875504732132,
0.004531553015112877,
-0.022482123225927353,
-0.0383320190012455,
-0.040580231696367264,
-0.029339170083403587,
0.04541388899087906,
-0.03885660320520401,
0.007156809326261282,
0.034266501665115356,
-0.05624277889728546,
0.008604096248745918,
0.06017714738845825,
-0.028421150520443916,
-0.019297156482934952,
0.02182639390230179,
-0.06212560087442398,
-0.00992023665457964,
0.012936588376760483,
0.03647724539041519,
-0.019297156482934952,
0.0027470344211906195,
0.013376862742006779,
0.04912343993782997,
0.038519371300935745,
0.011025607585906982,
0.02355002425611019,
0.035765308886766434,
0.014407293871045113,
-0.04586353152990341,
0.01868826523423195,
0.07861249148845673,
-0.016599301248788834,
-0.07164303213357925,
0.000318203994538635,
0.041104815900325775,
0.03520325571298599,
0.0059811812825500965,
0.029657667502760887,
0.04548883065581322,
0.01437919121235609,
0.05504373088479042,
-0.035371873527765274,
0.033741921186447144,
-0.03288010507822037,
-0.03904395177960396,
-0.05714206397533417,
-0.03220564126968384,
-0.006159164942800999,
-0.056729890406131744,
0.01131600234657526,
0.03301125019788742,
0.03591519221663475,
-0.04908596724271774,
0.022575799375772476,
0.002028074814006686,
-0.0005638094735331833,
-0.023475082591176033,
-0.0839332565665245,
-0.05230840668082237,
0.046912696212530136,
0.01579369232058525,
0.025067567825317383,
0.05875328183174133,
0.011091181077063084,
-0.010070117190480232,
0.029807548969984055,
0.026079263538122177,
-0.01316140964627266,
0.015306578949093819,
0.04028046876192093,
-0.059989798814058304,
0.0335545688867569,
0.027765421196818352,
0.034622468054294586,
-0.006674380041658878,
-0.008575993590056896,
-0.03741399943828583,
-0.059352803975343704,
-0.05077212676405907,
-0.07936189323663712,
-0.03698309138417244,
-0.009789090603590012,
0.04365278780460358,
0.00874929316341877,
-0.0019753824453800917,
0.011597028002142906,
-0.00255499966442585,
0.011278531514108181,
-0.026472698897123337,
-0.017086412757635117,
0.00976098794490099,
-0.014650850556790829,
0.024880215525627136,
-0.008566625416278839,
-0.008974114432930946,
0.0009590030531398952,
-0.06516068428754807,
-0.03327354043722153,
0.022182362154126167,
0.049610551446676254,
0.021882599219679832,
0.018791308626532555,
-0.004543262533843517,
0.050847068428993225,
0.021807659417390823,
-0.03715170919895172,
-0.0331798680126667,
-0.07861249148845673,
0.010669641196727753,
-0.03503464162349701,
-0.004262235946953297,
0.07179291546344757,
0.043203145265579224,
-0.010491657070815563,
0.084307961165905,
-0.0158217940479517,
0.031437501311302185,
0.018285460770130157,
-0.005943711381405592,
-0.06770866364240646,
0.005011640023440123,
-0.05777905508875847,
-0.03964347764849663,
-0.07078121602535248,
0.013498641550540924,
-0.028926998376846313,
-0.03042580559849739,
0.033629510551691055,
-0.027690481394529343,
-0.07647668570280075,
-0.0010883923387154937,
-0.0568048320710659,
-0.034341443330049515,
-0.034341443330049515,
0.051371652632951736,
-0.011044343002140522,
-0.04994778335094452,
0.012130978517234325,
-0.010379246436059475,
0.014332353137433529,
-0.007765700109302998,
-0.010960035026073456,
0.024168282747268677,
-0.007531511131674051,
0.01818241737782955,
-0.0023219818249344826,
-0.03651471436023712,
-0.00003955594729632139,
0.05421938747167587,
-0.019934149459004402,
-0.04155445843935013,
-0.028702177107334137,
0.02465539425611496,
-0.04901102930307388,
0.018641427159309387,
-0.04159192740917206,
-0.05624277889728546,
-0.003730627242475748,
0.03953106701374054,
-0.005114682950079441,
-0.01197173073887825,
0.0030350866727530956,
-0.049498140811920166,
-0.061226315796375275,
0.033704448491334915,
0.060626789927482605,
-0.010697743855416775,
0.03218690678477287,
0.012383902445435524,
0.0003562596975825727,
-0.01586863212287426,
-0.03495969995856285,
-0.056729890406131744,
-0.03293630853295326,
-0.015184800140559673,
-0.012374535202980042,
-0.04623823240399361,
-0.004756374284625053,
-0.01793885976076126,
0.027016017585992813,
0.01777024380862713,
-0.021807659417390823,
-0.04473942518234253,
0.05260816961526871,
0.013058366253972054,
-0.03645851090550423,
0.033460892736911774,
0.0654604509472847,
0.02613546885550022,
-0.10027027130126953,
-0.03722664713859558,
0.0020995023660361767,
-0.03900648280978203,
-0.026978546753525734,
-0.012496313080191612,
0.014632115140557289,
0.04159192740917206,
-0.02536732889711857,
-0.02808391861617565,
-0.010388614609837532,
0.024449309334158897,
0.010266835801303387,
0.019896678626537323,
-0.03793858364224434,
-0.010810154490172863,
-0.00857130903750658,
-0.046313174068927765,
-0.0279527734965086,
0.007700127083808184,
0.017433013767004013,
0.010294938459992409,
0.017348704859614372,
-0.02843988500535488,
0.04676281660795212,
0.0013114571338519454,
-0.01697400212287903,
-0.0013582949759438634,
0.029732607305049896,
0.052121054381132126,
-0.0338730663061142,
-0.05260816961526871,
-0.03106280043721199,
-0.04488930478692055,
-0.05354492366313934,
0.011100548319518566,
0.018978659063577652,
-0.019390830770134926,
0.0568048320710659,
0.005545590538531542,
0.009714150801301003,
-0.05305780842900276,
0.04005564749240875,
-0.02982628345489502,
0.022407183423638344,
0.039231304079294205,
-0.011962362565100193,
-0.003587772138416767,
0.05092201009392738,
0.08835474401712418,
-0.0020339295733720064,
-0.05197117477655411,
-0.05777905508875847,
0.05391962453722954,
0.006599439773708582,
-0.031231416389346123,
-0.032318051904439926,
0.0033676347229629755,
0.0817599892616272,
0.03213069960474968,
0.004922647960484028,
0.061825837939977646,
0.00863219890743494,
-0.005709522403776646,
-0.0689077079296112,
-0.02557341568171978,
-0.03284263610839844,
-0.004168560262769461,
-0.00390626909211278,
-0.01865079440176487,
0.017798347398638725,
0.001749390154145658,
-0.005353555548936129,
0.04998525232076645,
-0.01825735718011856,
-0.032467931509017944,
0.028571031987667084,
0.03814467042684555,
-0.012524415738880634,
0.016252702102065086,
0.05054730549454689,
-0.039868298918008804,
0.04612582176923752,
0.06309982389211655,
-0.011306634172797203,
0.00833243690431118,
0.05789146572351456,
-0.02437436766922474,
0.055493373423814774,
0.06388670206069946,
-0.07400365173816681,
0.03870671987533569,
-0.009704782627522945,
-0.006693115457892418,
-0.04837403446435928,
-0.012917852960526943,
0.05939027667045593,
0.03359203785657883,
-0.00887107104063034,
-0.014248045161366463,
0.011222326196730137,
0.010313673876225948,
0.03250540420413017,
-0.013751565478742123,
0.033029984682798386,
-0.02323152683675289,
-0.0298637542873621,
-0.029320435598492622,
-0.061226315796375275,
0.01129726693034172,
0.047025106847286224,
-0.06650961190462112,
-0.024318162351846695,
0.06081414222717285,
-0.026154203340411186,
-0.015606340020895004,
0.01841660588979721,
-0.02266947366297245,
0.003983551170676947,
-0.006257524248212576,
0.01710514910519123,
0.02950778603553772,
0.0826592743396759,
-0.019877944141626358,
0.027053488418459892,
-0.01395765133202076,
0.009835928678512573,
0.0004221252747811377,
0.014407293871045113,
-0.02450551465153694,
-0.047025106847286224,
-0.03754514455795288,
0.04983537271618843,
-0.02004656009376049,
-0.006786790676414967,
-0.027540599927306175,
0.0344538539648056,
0.026079263538122177,
-0.01677728444337845,
0.0024144863709807396,
-0.08258432894945145,
0.04657546430826187,
0.011625130660831928,
0.01853838376700878,
-0.04593846946954727,
-0.03110026940703392,
-0.058003876358270645,
-0.032149434089660645,
-0.05324516072869301,
0.022332241758704185,
0.014650850556790829,
-0.001901612849906087,
-0.013048999011516571,
-0.015578237362205982,
-0.040467821061611176,
-0.013077101670205593,
-0.04739980772137642,
-0.02167651429772377,
0.005634582135826349,
-0.04620076343417168,
0.019952883943915367,
0.007648605387657881,
-0.0325428731739521,
-0.059240393340587616,
0.006140429992228746,
-0.016749180853366852,
0.014060694724321365,
-0.016683608293533325,
-0.043090734630823135,
-0.06707166880369186,
0.003716575913131237,
0.03389180079102516,
-0.01342370081692934,
0.08468266576528549,
0.040580231696367264,
0.03233678638935089,
-0.05174635350704193,
0.04612582176923752
] |
20,922 | precession.precession | vectors_to_conserved |
Convert vectors (L,S1,S2) to conserved quanties (deltachi,kappa,chieff).
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
q: float
Mass ratio: 0<=q<=1.
full_output: boolean, optional (default: False)
Return additional outputs.
Returns
-------
chieff: float
Effective spin.
cyclesign: integer, optional
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
Examples
--------
``deltachi,kappa,chieff = precession.vectors_to_conserved(Lvec,S1vec,S2vec,q)``
``deltachi,kappa,chieff,cyclesign = precession.vectors_to_conserved(Lvec,S1vec,S2vec,q,full_output=True)``
| def vectors_to_conserved(Lvec, S1vec, S2vec, q,full_output=False):
"""
Convert vectors (L,S1,S2) to conserved quanties (deltachi,kappa,chieff).
Parameters
----------
Lvec: array
Cartesian vector of the orbital angular momentum.
S1vec: array
Cartesian vector of the primary spin.
S2vec: array
Cartesian vector of the secondary spin.
q: float
Mass ratio: 0<=q<=1.
full_output: boolean, optional (default: False)
Return additional outputs.
Returns
-------
chieff: float
Effective spin.
cyclesign: integer, optional
Sign (either +1 or -1) to cover the two halves of a precesion cycle.
deltachi: float
Weighted spin difference.
kappa: float
Asymptotic angular momentum.
Examples
--------
``deltachi,kappa,chieff = precession.vectors_to_conserved(Lvec,S1vec,S2vec,q)``
``deltachi,kappa,chieff,cyclesign = precession.vectors_to_conserved(Lvec,S1vec,S2vec,q,full_output=True)``
"""
L = norm_nested(Lvec)
S1 = norm_nested(S1vec)
S2 = norm_nested(S2vec)
r = eval_r(L=L,q=q)
chi1 = eval_chi1(q,S1)
chi2 = eval_chi2(q,S2)
theta1,theta2,deltaphi = vectors_to_angles(Lvec, S1vec, S2vec)
deltachi, kappa, chieff, cyclesign= angles_to_conserved(theta1, theta2, deltaphi, r, q, chi1, chi2, full_output=True)
if full_output:
return np.stack([deltachi, kappa, chieff, cyclesign])
else:
return np.stack([deltachi, kappa, chieff])
| (Lvec, S1vec, S2vec, q, full_output=False) | [
-0.03299736976623535,
-0.04847295954823494,
-0.03176568076014519,
-0.05618095397949219,
0.005825694650411606,
0.009878352284431458,
-0.021375780925154686,
-0.02721637487411499,
0.06889517605304718,
0.043824322521686554,
-0.03651364520192146,
-0.00953566376119852,
0.002197672612965107,
0.009257540106773376,
-0.05260508134961128,
0.04132121056318283,
0.05614122375845909,
-0.06003495305776596,
-0.03663284331560135,
-0.010489230044186115,
0.049863576889038086,
0.021097656339406967,
0.018564745783805847,
0.047876980155706406,
-0.029004311189055443,
-0.012813548557460308,
-0.013558522798120975,
-0.033513884991407394,
-0.07266970723867416,
-0.01953817903995514,
0.01590270735323429,
0.06392867863178253,
-0.037844665348529816,
0.014293563552200794,
0.013399594463407993,
0.017044998705387115,
0.08574151247739792,
0.005324079189449549,
-0.05200910195708275,
0.013816779479384422,
-0.02044207975268364,
-0.029878413304686546,
0.003292784094810486,
-0.01536632515490055,
0.019111059606075287,
0.032778844237327576,
-0.06233940273523331,
0.057094790041446686,
0.028626857325434685,
0.030057208612561226,
0.05419435724616051,
-0.05200910195708275,
0.006049186922609806,
-0.03180541470646858,
-0.0006028079078532755,
0.0596773624420166,
0.02459406666457653,
0.08176831901073456,
-0.011601724661886692,
-0.03329535946249962,
-0.03200407326221466,
0.019746771082282066,
0.009361837059259415,
0.07294782996177673,
0.009654860012233257,
0.005820728372782469,
0.008711226284503937,
0.010787219740450382,
0.036116328090429306,
0.02215055376291275,
-0.041559603065252304,
-0.03228219598531723,
-0.045453332364559174,
-0.00694315554574132,
0.036652710288763046,
0.00445245997980237,
-0.00761859817430377,
-0.06730589270591736,
-0.000007546739198005525,
-0.033235762268304825,
-0.010280638001859188,
-0.06674964725971222,
0.006178315728902817,
-0.05633988231420517,
0.044539496302604675,
0.04672475531697273,
-0.06067066267132759,
-0.009788955561816692,
0.017789972946047783,
-0.006069052964448929,
-0.05459167808294296,
0.01338966190814972,
-0.03172595053911209,
0.06075012683868408,
0.02044207975268364,
0.02777262218296528,
-0.035421017557382584,
-0.07449737191200256,
-0.0180780291557312,
-0.016121232882142067,
-0.010975946672260761,
0.01954811066389084,
-0.030613454058766365,
0.03852010890841484,
0.018326355144381523,
-0.023640500381588936,
-0.050141699612140656,
0.006436573341488838,
0.028805652633309364,
-0.06500144302845001,
-0.041639067232608795,
0.043824322521686554,
0.0061187176033854485,
-0.06488224864006042,
-0.06774294376373291,
-0.0008722401107661426,
-0.005433341953903437,
0.02189229615032673,
-0.02892484702169895,
0.004415211267769337,
0.029957877472043037,
0.0072659775614738464,
0.04966491833329201,
-0.02884538471698761,
0.03065318614244461,
-0.013926043175160885,
-0.003367281286045909,
0.014025372453033924,
-0.00990318413823843,
0.015545118600130081,
0.022766398265957832,
0.003742251545190811,
-0.018495215103030205,
0.061624228954315186,
0.039573006331920624,
-0.03363308310508728,
-0.06289564818143845,
-0.0097243906930089,
0.009654860012233257,
0.037586409598588943,
0.03279871121048927,
0.0020424698013812304,
-0.01629009284079075,
0.023044520989060402,
-0.023461706936359406,
0.0551479235291481,
0.061266642063856125,
-0.05292293429374695,
-0.010389900766313076,
0.0180978961288929,
-0.03335495665669441,
0.012803616002202034,
-0.0005773546872660518,
-0.024752994999289513,
-0.005587303079664707,
-0.07735807448625565,
0.041917189955711365,
-0.058922458440065384,
0.004075006581842899,
0.0021331082098186016,
-0.029957877472043037,
-0.02894471399486065,
0.010737555101513863,
0.0470426082611084,
-0.0036752037703990936,
-0.018028365448117256,
0.03474557772278786,
0.007792425341904163,
0.010519029572606087,
0.021276449784636497,
0.03172595053911209,
-0.0037844667676836252,
0.002171598607674241,
-0.03496410325169563,
0.02133604884147644,
-0.02044207975268364,
-0.030613454058766365,
-0.0434270016849041,
-0.014969006180763245,
-0.09543610364198685,
0.024852324277162552,
-0.04243370518088341,
-0.016657613217830658,
-0.03852010890841484,
-0.009466133080422878,
0.0822451040148735,
0.04799617454409599,
-0.02370009757578373,
0.02522977814078331,
-0.008214577101171017,
0.005053405184298754,
0.0010044729569926858,
-0.021753232926130295,
0.05705505609512329,
0.0615050345659256,
-0.04030804708600044,
0.011770585551857948,
-0.013339996337890625,
0.01202884316444397,
-0.013419460505247116,
0.018425684422254562,
0.005130385980010033,
0.004273666068911552,
-0.02630254067480564,
0.043347541242837906,
0.018385952338576317,
-0.0030543922912329435,
0.007509335409849882,
0.038381047546863556,
-0.03130876272916794,
0.02342197485268116,
-0.012426162138581276,
0.019309720024466515,
-0.04664529114961624,
-0.002356600249186158,
0.08160939067602158,
0.01076735369861126,
-0.04080469533801079,
-0.016131164506077766,
-0.007414971943944693,
0.08892006427049637,
-0.045890383422374725,
-0.03850024193525314,
0.05657827481627464,
-0.07390139997005463,
0.029600290581583977,
-0.01581330969929695,
0.05673719942569733,
0.009704524651169777,
-0.049068938940763474,
0.0017680710880085826,
0.01690593734383583,
-0.01746218465268612,
-0.008274175226688385,
-0.04783724620938301,
-0.015406057238578796,
0.01592257246375084,
0.05673719942569733,
-0.029600290581583977,
0.028328869491815567,
-0.03226232901215553,
-0.031884875148534775,
-0.013101604767143726,
0.05371757596731186,
0.003421912668272853,
-0.017482051625847816,
-0.011929512955248356,
-0.0028631824534386396,
-0.006416707299649715,
0.07676209509372711,
-0.04775778576731682,
-0.04871135205030441,
-0.012356631457805634,
-0.028467930853366852,
0.031427960842847824,
-0.08192724734544754,
-0.012813548557460308,
-0.010280638001859188,
-0.008959551341831684,
-0.04132121056318283,
-0.016071567311882973,
-0.04096362367272377,
-0.003024593461304903,
0.03701029717922211,
-0.04275156185030937,
-0.008924786001443863,
-0.008472834713757038,
0.002940163016319275,
-0.0076881293207407,
0.006098852027207613,
-0.04747965931892395,
-0.012267234735190868,
-0.04140067473053932,
-0.021812831982970238,
-0.0035237257834523916,
0.025805890560150146,
0.01916072517633438,
-0.015028604306280613,
-0.011482528410851955,
0.03212326765060425,
-0.0014961556298658252,
-0.019955363124608994,
-0.01510806754231453,
0.004288565367460251,
-0.028467930853366852,
0.009242640808224678,
-0.026163477450609207,
-0.05947870388627052,
0.07636477798223495,
-0.03158688545227051,
0.04736046493053436,
0.036136195063591,
0.04537386819720268,
0.007290809880942106,
0.06647152453660965,
0.05590283125638962,
-0.00850263424217701,
-0.06174342334270477,
0.06122690811753273,
0.010747487656772137,
-0.014035305939614773,
-0.0023305262438952923,
-0.01315127033740282,
-0.051413122564554214,
0.0030618421733379364,
-0.028070611879229546,
0.09694591909646988,
-0.040466975420713425,
-0.006535903085023165,
-0.012485760264098644,
-0.03917568549513817,
0.005969723220914602,
-0.015982169657945633,
0.05419435724616051,
-0.01997523009777069,
0.050419822335243225,
-0.00334741547703743,
-0.003091641003265977,
0.04346673563122749,
0.014492223039269447,
-0.021236717700958252,
0.04422164335846901,
0.04855242371559143,
0.041718531399965286,
0.02207108959555626,
-0.03291790559887886,
0.015872906893491745,
0.028726188465952873,
0.09925036877393723,
0.0029451295267790556,
0.004258766770362854,
0.023759696632623672,
-0.004325814079493284,
0.011442797258496284,
0.016945669427514076,
-0.025567499920725822,
0.03055385686457157,
-0.04052657261490822,
0.02892484702169895,
-0.03752681240439415,
0.0660344734787941,
0.02830900251865387,
-0.022289615124464035,
0.02431594394147396,
-0.06980900466442108,
-0.01899186335504055,
0.07262997329235077,
0.0044350773096084595,
0.009764122776687145,
0.013637986034154892,
-0.06400814652442932,
0.04831403121352196,
0.05161178112030029,
0.09662806242704391,
-0.011482528410851955,
0.08470848202705383,
-0.03039492852985859,
-0.05181043967604637,
0.02532910741865635,
-0.06110771372914314,
-0.0034591613803058863,
0.030533991754055023,
0.0026968049351125956,
-0.02324318140745163,
-0.022488273680210114,
0.0041693695820868015,
-0.01699533499777317,
-0.01825682260096073,
-0.04926759749650955,
0.019031595438718796,
-0.04894974082708359,
0.0075738998129963875,
-0.018962064757943153,
-0.001900924718938768,
-0.038758501410484314,
0.050141699612140656,
-0.029361898079514503,
0.027097178623080254,
-0.018882600590586662,
-0.03484490513801575,
0.02532910741865635,
-0.034864772111177444,
-0.06587554514408112,
0.01718406192958355,
0.07084203511476517,
0.004509574268013239,
0.06706750392913818,
-0.013796914368867874,
0.03355361893773079,
0.04350646585226059,
-0.02667999267578125,
-0.015793442726135254,
0.04239397495985031,
-0.010146542452275753,
-0.025706561282277107,
-0.013926043175160885,
0.01708473078906536,
0.060909055173397064,
-0.011313668452203274,
0.02026328630745411,
0.019518312066793442,
-0.009634993970394135,
0.004112255293875933,
-0.02830900251865387,
-0.041639067232608795,
-0.07123935967683792,
0.037943996489048004,
-0.02973935194313526,
-0.007335508242249489,
0.01755158230662346,
-0.042195312678813934,
0.015495453961193562,
0.01039983332157135,
0.011442797258496284,
-0.06933222711086273,
0.03772547096014023,
-0.042552899569272995,
-0.04366539418697357,
0.02187242917716503,
0.10163428634405136,
0.024415273219347,
-0.02838846668601036,
0.08574151247739792,
0.035222359001636505,
0.026163477450609207,
-0.00637697521597147,
0.0253092423081398,
0.024017954245209694,
0.04473815858364105,
-0.026819055899977684,
-0.0180680975317955,
0.03629511967301369,
-0.06265725940465927,
-0.09877358376979828,
-0.009759156033396721,
0.04847295954823494,
0.05554524436593056,
0.02052154392004013,
0.03897702693939209,
0.046526093035936356,
-0.02785208635032177,
0.014303496107459068,
-0.014820011332631111,
0.00800598505884409,
-0.030136670917272568,
-0.015276928432285786,
-0.06130637228488922,
-0.02278626337647438,
-0.03637458384037018,
-0.026918385177850723,
-0.0036627876106649637,
0.024911921471357346,
-0.005905158817768097,
-0.023084253072738647,
0.08542365580797195,
-0.012932744808495045,
-0.0146908825263381,
0.015316660515964031,
-0.0623791366815567,
-0.08613882958889008,
0.04990330711007118,
0.006868658121675253,
0.03037506341934204,
0.059637632220983505,
0.013786980882287025,
-0.004161919932812452,
0.012734084390103817,
0.006898457184433937,
-0.04394351691007614,
-0.00371990236453712,
0.029878413304686546,
-0.02828913740813732,
0.032143134623765945,
0.024792727082967758,
0.08184778690338135,
-0.010310436598956585,
-0.04803590849041939,
0.010817019268870354,
-0.004817496985197067,
-0.03832145035266876,
-0.06726616621017456,
-0.02922283671796322,
-0.0013210867764428258,
0.016339758411049843,
0.006232947111129761,
-0.031666349619627,
0.013866445049643517,
-0.035401154309511185,
0.008825455792248249,
-0.02044207975268364,
-0.022845862433314323,
0.04275156185030937,
-0.005517772398889065,
-0.005006223451346159,
-0.017521781846880913,
0.030077073723077774,
-0.01126400288194418,
-0.06229967251420021,
0.012724151834845543,
0.05069794878363609,
0.07115989178419113,
0.032957639545202255,
-0.027971280738711357,
0.009704524651169777,
0.036593109369277954,
-0.008601963520050049,
-0.04966491833329201,
-0.043268077075481415,
-0.06392867863178253,
0.02270679920911789,
-0.019667306914925575,
-0.016598016023635864,
0.08478794991970062,
0.032957639545202255,
0.02451460249722004,
0.04720153659582138,
-0.029957877472043037,
0.04414217919111252,
0.02658066339790821,
-0.021375780925154686,
-0.05725371465086937,
0.0461287759244442,
-0.03226232901215553,
0.01963750831782818,
-0.05145285278558731,
0.01718406192958355,
-0.015336526557803154,
-0.06440546363592148,
0.010379967279732227,
0.0063124108128249645,
-0.08041743189096451,
0.015445789322257042,
-0.056300148367881775,
0.04477788880467415,
0.006714696995913982,
0.04084442928433418,
-0.027991147711873055,
-0.06094878539443016,
0.0036106393672525883,
-0.02956055849790573,
-0.002003979403525591,
0.022547872737050056,
0.03410986438393593,
0.015932505950331688,
0.0028408332727849483,
0.051413122564554214,
-0.0011038028169423342,
0.014959072694182396,
-0.00999754760414362,
0.0180780291557312,
-0.07620584964752197,
-0.03289804235100746,
0.0022175386548042297,
0.04477788880467415,
0.022746531292796135,
0.036771904677152634,
0.013479058630764484,
-0.03790426626801491,
-0.009078746661543846,
0.03850024193525314,
0.010081978514790535,
-0.011144807562232018,
0.003121440066024661,
-0.022210150957107544,
-0.043824322521686554,
0.033414557576179504,
0.06488224864006042,
0.014402826316654682,
0.046526093035936356,
0.008805589750409126,
0.002783718518912792,
0.013767114840447903,
-0.056379612535238266,
-0.027275972068309784,
-0.035222359001636505,
0.0011565717868506908,
0.04918813332915306,
-0.06798133999109268,
-0.0037348016630858183,
-0.003521242644637823,
-0.004002992529422045,
0.005661800503730774,
0.056657738983631134,
-0.03921541944146156,
0.06810053437948227,
0.022388944402337074,
-0.02822953835129738,
0.0035137927625328302,
0.06941168755292892,
0.057571571320295334,
-0.06563715636730194,
-0.024574201554059982,
-0.008229476399719715,
-0.038579706102609634,
0.0022721700370311737,
-0.02928243577480316,
-0.012624821625649929,
0.030434660613536835,
0.032242465764284134,
-0.014432624913752079,
-0.024375541135668755,
-0.00786692276597023,
-0.00219146441668272,
0.009416468441486359,
-0.057730499655008316,
-0.02495165355503559,
0.0008418203215114772,
-0.027554096654057503,
0.03653351217508316,
0.006923289503902197,
0.013896243646740913,
0.02015402354300022,
-0.008169879205524921,
-0.0044723255559802055,
0.003051909152418375,
0.015038536861538887,
-0.028726188465952873,
-0.009684658609330654,
0.014571686275303364,
0.045810919255018234,
-0.007598732132464647,
-0.02350143902003765,
-0.02515031397342682,
-0.0361759252846241,
-0.05268454551696777,
0.030096938833594322,
-0.008080481551587582,
-0.042195312678813934,
0.031785547733306885,
0.00018158735474571586,
0.03836118057370186,
-0.026183344423770905,
0.03637458384037018,
0.0054581742733716965,
-0.008333773352205753,
0.02044207975268364,
-0.025607232004404068,
0.03333509340882301,
-0.0010926282266154885,
0.09265486896038055,
0.014929274097084999,
0.008572164922952652,
-0.013608187437057495,
0.030514124780893326,
-0.013538656756281853,
-0.03228219598531723,
-0.01590270735323429,
-0.016697345301508904,
0.05689612776041031,
0.009694592095911503,
-0.014005506411194801,
0.051850173622369766,
0.005731331650167704,
0.04402298107743263,
-0.05494926497340202,
-0.05614122375845909,
-0.0008020884124562144,
-0.016141097992658615,
0.012843347154557705,
-0.007479536347091198,
0.021733367815613747,
0.029361898079514503,
0.03176568076014519,
-0.02161417156457901,
-0.012048709206283092,
-0.018336286768317223,
0.07314649224281311,
-0.014233965426683426,
-0.06480278074741364,
-0.0006773053319193423,
0.046446628868579865,
-0.05959790199995041,
0.005915091838687658,
-0.003086674492806196,
-0.01710459776222706,
-0.0008883812115527689,
0.020134156569838524,
0.018674008548259735,
0.03933461382985115,
0.00980882067233324,
0.020134156569838524,
0.03760627657175064,
0.03399066999554634,
-0.014353160746395588,
0.008299008011817932,
-0.031427960842847824,
0.021475110203027725,
-0.014551820233464241,
-0.03754667565226555,
-0.032520588487386703,
0.01773037575185299,
0.019756704568862915,
-0.01116467360407114,
-0.058644335716962814,
0.03464624658226967,
-0.00809041503816843,
-0.03931474685668945,
-0.044897083193063736,
-0.04473815858364105,
-0.0007635980728082359,
0.07803351432085037,
-0.014333294704556465,
-0.010230973362922668,
0.04442030191421509,
-0.022230016067624092,
0.033593349158763885,
0.006516037043184042,
-0.0425131693482399,
0.013498924672603607,
0.016439087688922882,
0.041281480342149734,
0.06011441722512245,
0.052048832178115845,
-0.024812592193484306,
-0.015535186044871807,
0.018028365448117256,
-0.00006844446033937857,
0.025845622643828392,
0.04195692017674446,
0.024355676025152206,
-0.04026831313967705,
-0.06158449873328209,
-0.000051721355703193694,
-0.023938490077853203,
-0.013349929824471474,
-0.0026545897126197815,
0.050340358167886734,
0.03426879271864891,
-0.005204883404076099,
0.025925086811184883,
-0.08069555461406708,
0.024931788444519043,
-0.00945123378187418,
0.03057372383773327,
0.0044450098648667336,
-0.04493681713938713,
-0.041718531399965286,
-0.021852564066648483,
0.0024757960345596075,
0.0065557691268622875,
-0.014969006180763245,
-0.021375780925154686,
0.05483006685972214,
-0.004981391131877899,
-0.03554021567106247,
-0.05220776051282883,
-0.027514364570379257,
0.0013496441533789039,
-0.006302477791905403,
-0.05228722468018532,
0.013181068934500217,
0.03790426626801491,
-0.01918059028685093,
-0.0814504623413086,
0.019865967333316803,
-0.03226232901215553,
-0.020094426348805428,
-0.0088155223056674,
-0.0524461530148983,
-0.040645767003297806,
0.009163177572190762,
0.03003734163939953,
0.05657827481627464,
0.09956822544336319,
0.02677932381629944,
0.07882815599441528,
-0.010409766808152199,
0.0280308797955513
] |
20,924 | precession.precession | widenutation_condition |
Conditions for wide nutation to take place. The returned flag which is
- `wide1` if wide nutation is allowed for the primary BH.
- `wide2` if wide nutation is allowed for the secondary BH.
- `nowide` if wide nutation is not allowed.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chieff: float
Effective spin.
kappa: float
Asymptotic angular momentum.
which: string
Select function behavior.
Examples
--------
``which,kappa,chieff = precession.widenutation_condition(r,q,chi1,chi2)``
| def widenutation_condition(r, q, chi1, chi2):
"""
Conditions for wide nutation to take place. The returned flag which is
- `wide1` if wide nutation is allowed for the primary BH.
- `wide2` if wide nutation is allowed for the secondary BH.
- `nowide` if wide nutation is not allowed.
Parameters
----------
r: float
Binary separation.
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
chieff: float
Effective spin.
kappa: float
Asymptotic angular momentum.
which: string
Select function behavior.
Examples
--------
``which,kappa,chieff = precession.widenutation_condition(r,q,chi1,chi2)``
"""
r = np.atleast_1d(r).astype(float)
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
rwide = widenutation_separation(q, chi1, chi2)
kappawide1 = (chi1**2 - 2*q*chi1**2 + q**4*chi2**2 - 2*q**2*(1-q)*r)/(2*q*(1+q)**2 * r**0.5)
chieffwide1 = -(1-q)*r**0.5/(1+q)
kappawide2 = (chi1**2 - 2*q**3*chi1**2 + q**4*chi2**2 + 2*q*(1-q)*r)/(2*q*(1+q)**2 * r**0.5)
chieffwide2 = (1-q)*r**0.5/(1+q)
which = np.where(r<=rwide, np.where(chi1<=chi2,"wide1","wide2"), "nowide")
kappa = np.where(r<=rwide, np.where(chi1<=chi2,kappawide1,kappawide2), np.nan)
chieff = np.where(r<=rwide, np.where(chi1<=chi2,chieffwide1,chieffwide2), np.nan)
return np.stack[(which, kappa, chieff)]
| (r, q, chi1, chi2) | [
-0.007028453983366489,
0.0021495958790183067,
0.010163482278585434,
0.01306181401014328,
0.010743148624897003,
-0.01591183990240097,
-0.008815757930278778,
-0.01175756473094225,
-0.04142681881785393,
-0.003760585095733404,
0.033697932958602905,
0.03350471332669258,
0.04606414958834648,
0.020211031660437584,
-0.08246719092130661,
-0.004642161075025797,
0.026181595399975777,
0.017042189836502075,
0.007772359065711498,
-0.013960297219455242,
0.0055937799625098705,
-0.012192314490675926,
0.009844666346907616,
0.08084412664175034,
0.00003081364047829993,
0.04355226084589958,
-0.051358435302972794,
-0.025505317375063896,
-0.05375438928604126,
-0.030490446835756302,
-0.03860577568411827,
0.026394138112664223,
0.02260698564350605,
0.006642009597271681,
0.04436379298567772,
-0.010559587739408016,
0.05943511798977852,
0.05908731743693352,
-0.08161701261997223,
0.009588646702468395,
-0.058314431458711624,
-0.047184836119413376,
0.03976510837674141,
-0.031533848494291306,
-0.03346606716513634,
0.005985054653137922,
0.006907690316438675,
0.032190803438425064,
0.01994052156805992,
0.05186081305146217,
0.06271989643573761,
-0.06828469038009644,
0.015506073832511902,
0.022877497598528862,
-0.02579515054821968,
0.01999848708510399,
-0.007125065196305513,
-0.019863231107592583,
0.0353403240442276,
-0.08045767992734909,
-0.012704352848231792,
0.0310507919639349,
0.03590066730976105,
0.03677016496658325,
-0.0009141820482909679,
0.025080228224396706,
-0.017602533102035522,
0.027109060436487198,
-0.019061360508203506,
0.03995833173394203,
-0.0319589339196682,
-0.0038306282367557287,
-0.00912974402308464,
-0.008038039319217205,
0.0014032755279913545,
-0.013960297219455242,
-0.049194347113370895,
-0.06472940742969513,
0.06005343049764633,
-0.030992824584245682,
0.02084866538643837,
0.0344708226621151,
0.016105061396956444,
-0.021293075755238533,
0.0037146948743611574,
0.042315639555454254,
0.03134062513709068,
0.0012378290994092822,
0.0556093193590641,
-0.08153972774744034,
-0.08354923874139786,
0.0036736351903527975,
0.05313607677817345,
0.04312717169523239,
0.08169430494308472,
0.0832400843501091,
-0.031765714287757874,
-0.00407940149307251,
-0.03385251387953758,
-0.03389115631580353,
-0.03675084188580513,
0.004758094437420368,
0.028403649106621742,
0.00790761411190033,
0.024848362430930138,
-0.020326964557170868,
-0.04714619368314743,
0.04714619368314743,
-0.04250886291265488,
-0.08710452169179916,
-0.08045767992734909,
-0.057155098766088486,
-0.09491069614887238,
0.007786850444972515,
-0.006052682176232338,
-0.02629752829670906,
-0.024500561878085136,
0.017389988526701927,
0.01692625693976879,
0.01935119368135929,
0.035630155354738235,
-0.03835458680987358,
0.02687719464302063,
-0.04362954944372177,
0.022722918540239334,
0.025273451581597328,
0.011284170672297478,
0.050199102610349655,
0.01503267977386713,
0.007926936261355877,
-0.041388172656297684,
0.007042945362627506,
-0.004236394539475441,
0.028094492852687836,
-0.03943663090467453,
0.002782398136332631,
-0.031108757480978966,
-0.012849269434809685,
0.07875733077526093,
0.011709258891642094,
0.027167027816176414,
0.015390140004456043,
-0.004405464045703411,
-0.003231639740988612,
0.04378412663936615,
0.010907387360930443,
0.017312699928879738,
0.005390896461904049,
0.04100172966718674,
0.01397961936891079,
-0.07265151292085648,
0.02017238736152649,
0.05499101057648659,
-0.019322210922837257,
0.01994052156805992,
-0.030104003846645355,
0.05850765109062195,
-0.024500561878085136,
0.0008701032493263483,
-0.060478515923023224,
0.004929578863084316,
-0.0728447288274765,
-0.02913789264857769,
0.074313223361969,
0.005308777093887329,
-0.0036422365810722113,
0.01649150624871254,
0.007424559444189072,
0.06326091289520264,
0.03905018791556358,
0.026355493813753128,
-0.003692957339808345,
-0.027727371081709862,
0.015931162983179092,
-0.0738881304860115,
0.037060000002384186,
-0.03951391950249672,
-0.06739586591720581,
-0.010250432416796684,
-0.046180080622434616,
0.024152763187885284,
-0.02587243914604187,
-0.049194347113370895,
-0.0033113437239080667,
-0.017554227262735367,
0.07419728487730026,
0.07508610934019089,
-0.009187710471451283,
0.03648033365607262,
0.03172706812620163,
-0.03315691277384758,
-0.04873061552643776,
0.0029997730161994696,
0.05850765109062195,
0.06770502775907516,
-0.00009849798516370356,
0.032867077738046646,
0.010588571429252625,
-0.013525547459721565,
-0.032113514840602875,
0.030239257961511612,
0.00452381232753396,
-0.012849269434809685,
0.047262124717235565,
0.02805584855377674,
0.0027775675989687443,
-0.01933187060058117,
0.0321328341960907,
0.017283717170357704,
-0.012511131353676319,
0.03593930974602699,
-0.02569853886961937,
0.0022558679338544607,
0.05131978914141655,
0.014597930014133453,
0.006390821188688278,
0.06055580824613571,
0.01816287823021412,
-0.0038596114609390497,
-0.015786245465278625,
0.03976510837674141,
0.024481240659952164,
0.02343784086406231,
0.048421457409858704,
0.01281062513589859,
0.037233900278806686,
-0.03893425315618515,
0.005415049381554127,
0.028867382556200027,
-0.00908143911510706,
-0.00283553428016603,
0.01347724162042141,
0.011883159168064594,
-0.058121208101511,
-0.05499101057648659,
0.004951316397637129,
-0.03240334615111351,
-0.013110119849443436,
0.0031833341345191,
0.04192919656634331,
-0.012240620329976082,
-0.010163482278585434,
-0.027650082483887672,
0.042818017303943634,
0.012665708549320698,
-0.09722936153411865,
0.013544869609177113,
0.007646764628589153,
0.010540265589952469,
0.0075936284847557545,
-0.07342439889907837,
-0.08617705851793289,
-0.019128987565636635,
-0.004678389988839626,
0.012530453503131866,
0.022085286676883698,
-0.009284322150051594,
-0.00567106856033206,
0.01976662129163742,
-0.03559150919318199,
0.06534771621227264,
0.0005063022836111486,
0.003427277086302638,
0.012868591584265232,
-0.07643866539001465,
-0.006183107383549213,
0.0023041735403239727,
0.03791017457842827,
0.0022763977758586407,
-0.06156056001782417,
-0.06859384477138519,
0.09266932308673859,
-0.05711645260453224,
-0.015795907005667686,
-0.049348924309015274,
0.022626308724284172,
0.05166758969426155,
-0.004956146702170372,
-0.043822772800922394,
-0.03174639120697975,
-0.015805568546056747,
-0.009612799622118473,
0.0030649856198579073,
0.07079657912254333,
-0.041658684611320496,
0.010347043164074421,
-0.04563906043767929,
-0.011776886880397797,
0.07071928679943085,
-0.01967000961303711,
-0.05031503364443779,
-0.029408404603600502,
0.0073134563863277435,
0.011081287637352943,
0.08664079010486603,
-0.00036410288885235786,
-0.041079018265008926,
-0.02879009209573269,
0.025737183168530464,
-0.06469076126813889,
0.047841791063547134,
-0.010752810165286064,
-0.019283564761281013,
-0.016762016341090202,
0.0059609017334878445,
-0.0019563736859709024,
0.06789824366569519,
-0.030780280008912086,
-0.02821042761206627,
-0.026007695123553276,
-0.0033258353359997272,
-0.02426869608461857,
-0.0015143782366067171,
0.005883613135665655,
0.03609388694167137,
-0.042238350957632065,
0.03439353406429291,
0.030355192720890045,
0.013013508170843124,
0.08022581785917282,
0.023901574313640594,
-0.029408404603600502,
0.04328174889087677,
0.008670841343700886,
-0.03661558777093887,
-0.07829359173774719,
-0.007212014868855476,
-0.03054841421544552,
-0.02637481689453125,
0.006936673540621996,
-0.0671253576874733,
0.05050825700163841,
0.00912974402308464,
-0.0008236091816797853,
0.013341985642910004,
0.006878706626594067,
0.03539828956127167,
-0.015931162983179092,
0.031939614564180374,
-0.011438748799264431,
0.006646840367466211,
0.012742997147142887,
-0.035456255078315735,
0.025350740179419518,
0.023302584886550903,
-0.027186349034309387,
-0.027070416137576103,
0.008269906044006348,
0.03539828956127167,
0.04992859065532684,
0.00997026078402996,
0.03599727898836136,
0.011718920432031155,
0.015235562808811665,
0.057734765112400055,
0.029620947316288948,
-0.04069257527589798,
0.01200875360518694,
0.01347724162042141,
-0.0018126647919416428,
0.02102256380021572,
0.0008900293032638729,
0.019901877269148827,
0.01029873825609684,
0.009854326955974102,
-0.020481543615460396,
-0.04169733077287674,
0.06731858104467392,
-0.08007124066352844,
-0.02620091661810875,
-0.022645629942417145,
-0.061753783375024796,
-0.006337685044854879,
-0.01567031256854534,
0.0274568609893322,
0.048189591616392136,
-0.044325150549411774,
-0.005791832692921162,
-0.04838281497359276,
-0.030355192720890045,
0.03677016496658325,
0.010414671152830124,
-0.060671739280223846,
0.019157972186803818,
-0.04007426276803017,
-0.048421457409858704,
-0.010791454464197159,
0.0002780586655717343,
-0.015419123694300652,
-0.0074100675992667675,
0.023051396012306213,
-0.01724507287144661,
0.01832711696624756,
0.026142951101064682,
-0.026355493813753128,
0.047378059476614,
-0.023824285715818405,
0.025273451581597328,
-0.030084680765867233,
-0.019805265590548515,
0.0033403271809220314,
-0.05298149958252907,
-0.027244316413998604,
0.0034417686983942986,
-0.005951240658760071,
-0.027070416137576103,
0.004881273489445448,
0.07098980247974396,
-0.026336172595620155,
-0.010405010543763638,
-0.049194347113370895,
0.028616193681955338,
0.012462825514376163,
0.019051698967814445,
-0.0664297565817833,
-0.0014600345166400075,
0.020790698006749153,
0.008622536435723305,
-0.008269906044006348,
0.03228741139173508,
0.047416701912879944,
-0.09529714286327362,
0.034374210983514786,
0.050701480358839035,
-0.01419216301292181,
-0.022974107414484024,
0.022587664425373077,
0.026181595399975777,
0.02805584855377674,
0.029079925268888474,
-0.031031468883156776,
0.031533848494291306,
-0.05046961456537247,
-0.05101063475012779,
-0.012530453503131866,
0.002091629197821021,
-0.0007330363732762635,
0.049348924309015274,
0.05259505659341812,
0.008318211883306503,
0.012192314490675926,
0.037716954946517944,
-0.0007740960572846234,
-0.02712838351726532,
-0.04490481689572334,
-0.01631760597229004,
-0.04390006139874458,
0.021660197526216507,
-0.06820739805698395,
-0.028828738257288933,
0.03792949765920639,
0.027070416137576103,
-0.00033451576018705964,
0.03709864243865013,
0.05089469999074936,
0.03903086483478546,
-0.06283582746982574,
-0.005767679773271084,
-0.010144160129129887,
-0.04757128283381462,
0.03184300288558006,
0.038644421845674515,
-0.04289530590176582,
0.047030258923769,
-0.018645932897925377,
0.06681620329618454,
-0.019322210922837257,
-0.07991666346788406,
-0.005434371531009674,
-0.014076230116188526,
0.029910780489444733,
-0.029350437223911285,
0.011631970293819904,
0.01502301823347807,
0.0746610164642334,
0.00988331064581871,
-0.051706235855817795,
0.039649173617362976,
0.03725321963429451,
-0.02938908152282238,
-0.010936371050775051,
0.034374210983514786,
-0.006835232023149729,
-0.01460759062319994,
0.021872742101550102,
-0.08594518899917603,
-0.05448863282799721,
-0.017051849514245987,
-0.03089621476829052,
-0.03350471332669258,
0.024500561878085136,
0.017525244504213333,
0.040306128561496735,
0.021969353780150414,
-0.03777492046356201,
0.02679990604519844,
0.005613102111965418,
-0.034200310707092285,
0.0696372464299202,
-0.02034628763794899,
0.025138195604085922,
0.05193810164928436,
-0.09444696456193924,
-0.009361610747873783,
0.00824092235416174,
-0.024461917579174042,
-0.018037283793091774,
-0.022626308724284172,
-0.027167027816176414,
0.002685787156224251,
0.01051128190010786,
-0.04950350150465965,
0.01876186579465866,
-0.01572827808558941,
0.018742544576525688,
-0.021119175478816032,
0.002538455417379737,
0.041890550404787064,
-0.012926558963954449,
-0.04548448324203491,
-0.0015638914192095399,
-0.019708653911948204,
0.011371120810508728,
0.062178872525691986,
0.002322288230061531,
0.026973804458975792,
0.03980375453829765,
-0.04803501442074776,
0.028326360508799553,
-0.007260320242494345,
-0.054295409470796585,
-0.019148310646414757,
0.005047927610576153,
0.04838281497359276,
-0.004832967650145292,
-0.015477090142667294,
-0.05703916400671005,
0.022297831252217293,
-0.03381386771798134,
0.00017888139700517058,
-0.0013815379934385419,
-0.00441754050552845,
0.03619049862027168,
-0.014056907966732979,
0.024635817855596542,
0.03277046978473663,
-0.018530000001192093,
-0.012163330800831318,
-0.014153518714010715,
0.001534908078610897,
-0.05193810164928436,
-0.035108454525470734,
0.017718465998768806,
0.029157215729355812,
0.04900112375617027,
0.007753036916255951,
0.03866374120116234,
-0.016762016341090202,
-0.01617269031703472,
0.021795453503727913,
-0.042818017303943634,
-0.04973536729812622,
0.06990775465965271,
-0.05676865205168724,
-0.061908360570669174,
0.020694086328148842,
0.023051396012306213,
0.017699144780635834,
-0.005767679773271084,
0.024848362430930138,
-0.00678209587931633,
0.08146243542432785,
-0.0033644798677414656,
-0.002550531644374132,
-0.07728884369134903,
-0.0021906555630266666,
0.05966698378324509,
-0.034528788179159164,
-0.023244619369506836,
-0.02913789264857769,
0.001945505035109818,
0.017873045057058334,
0.08007124066352844,
-0.07041013240814209,
-0.000534379854798317,
-0.00850177276879549,
-0.01248214766383171,
0.0638405829668045,
0.009554833173751831,
0.06527042388916016,
0.009443730115890503,
-0.0009419577545486391,
-0.015390140004456043,
-0.049194347113370895,
0.01968933269381523,
0.026104304939508438,
0.029176536947488785,
-0.025389384478330612,
0.06693213433027267,
0.0032920215744525194,
-0.031437236815690994,
-0.051358435302972794,
-0.04679839313030243,
-0.0324806347489357,
-0.02662600576877594,
-0.009641782380640507,
0.017283717170357704,
0.006743451114743948,
-0.02024967595934868,
-0.04320446029305458,
0.030181292444467545,
-0.02604633942246437,
0.04011290892958641,
0.0026906176935881376,
0.010453315451741219,
0.0351664237678051,
-0.05263369902968407,
-0.045677702873945236,
0.04621872678399086,
-0.026993127539753914,
-0.01975695975124836,
0.007975242100656033,
0.010347043164074421,
-0.02838432602584362,
0.02001781016588211,
-0.03079960308969021,
0.04745534807443619,
-0.04250886291265488,
-0.016974560916423798,
-0.013689786195755005,
0.033118266612291336,
0.010704504325985909,
0.056652721017599106,
-0.06751180440187454,
-0.06013071909546852,
0.06364735960960388,
0.008269906044006348,
0.0073134563863277435,
-0.03874102979898453,
0.010743148624897003,
-0.012250280939042568,
0.023418517783284187,
0.051706235855817795,
0.028287716209888458,
0.0066516706719994545,
-0.029427725821733475,
-0.009226355701684952,
-0.0011231034295633435,
-0.025640573352575302,
-0.018375420942902565,
-0.050546903163194656,
0.04536854848265648,
-0.002683372003957629,
-0.03199758008122444,
-0.022394441068172455,
-0.04502074792981148,
-0.0003444787871558219,
-0.00772405369207263,
-0.007980072870850563,
0.009434069506824017,
0.027070416137576103,
0.03928205370903015,
-0.018278811126947403,
-0.027244316413998604,
0.01883915439248085,
0.009322966448962688,
0.08092141896486282,
-0.0520540326833725,
0.0002196391869802028,
-0.040228839963674545,
0.03885696455836296,
-0.027611438184976578,
-0.004072155803442001,
-0.04552312567830086,
0.006043021101504564,
0.00472911074757576,
-0.01825948804616928,
-0.01782473921775818,
-0.008955844677984715,
-0.009240847080945969,
0.03081892430782318,
0.012453163973987103,
0.007526000961661339,
-0.02050086483359337,
0.0854041650891304,
-0.025350740179419518,
0.0011043851263821125,
-0.016182351857423782,
-0.04838281497359276,
-0.009095930494368076,
-0.011313154362142086,
-0.025563284754753113,
0.0023935388308018446,
-0.0068448930978775024,
0.0556093193590641,
-0.03182367980480194,
-0.04250886291265488,
0.036963388323783875,
0.0027365079149603844,
-0.014317757450044155,
0.056382209062576294,
-0.06248802691698074,
-0.011641631834208965,
-0.038064755499362946,
-0.04042206332087517,
0.03209419175982475,
0.01339029148221016,
-0.0199211984872818,
0.06287447363138199,
-0.013438597321510315,
-0.025814471766352654,
0.07176268845796585,
0.011902481317520142,
-0.03217148035764694,
-0.03391047939658165,
0.01214400865137577,
-0.04100172966718674,
0.06604331731796265,
0.05649814382195473,
-0.01092670951038599,
0.01724507287144661,
0.02243308536708355,
-0.014800813049077988,
-0.030123325064778328,
-0.05332930013537407,
0.050044525414705276,
0.0627971813082695,
-0.03491523489356041,
-0.03783288598060608,
-0.04536854848265648,
-0.0251188725233078,
0.012134348042309284,
-0.06306769698858261,
0.03905018791556358,
0.03081892430782318,
0.00485712056979537,
0.017196767032146454,
-0.007149217650294304,
0.0005917426897212863,
0.04355226084589958,
0.03549490123987198,
0.003335496410727501,
0.0433976836502552,
-0.07315389066934586,
-0.00609132694080472,
0.01700354553759098,
0.011293832212686539,
-0.011487053707242012,
0.02780465967953205,
0.00987847987562418,
0.06797553598880768,
0.024848362430930138,
0.028751447796821594,
-0.05661407485604286,
0.030992824584245682,
0.03642236441373825,
0.02486768364906311,
-0.00697048706933856,
-0.036712199449539185,
0.0007330363732762635,
-0.012037737295031548,
0.05499101057648659,
0.03379454463720322,
0.09035065770149231,
0.02921518124639988,
0.04907841235399246,
0.00038282127934508026,
0.027437537908554077
] |
20,925 | precession.precession | widenutation_separation |
The critical separation r_wide below which the binary component with
smaller dimensionless spin may undergo wide nutations.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
r_wide: float
Orbital separation where wide nutations becomes possible.
Examples
--------
``r_wide = precession.widenutation_separation(q,chi1,chi2)``
| def widenutation_separation(q, chi1, chi2):
"""
The critical separation r_wide below which the binary component with
smaller dimensionless spin may undergo wide nutations.
Parameters
----------
q: float
Mass ratio: 0<=q<=1.
chi1: float
Dimensionless spin of the primary (heavier) black hole: 0<=chi1<=1.
chi2: float
Dimensionless spin of the secondary (lighter) black hole: 0<=chi2<=1.
Returns
-------
r_wide: float
Orbital separation where wide nutations becomes possible.
Examples
--------
``r_wide = precession.widenutation_separation(q,chi1,chi2)``
"""
q = np.atleast_1d(q).astype(float)
chi1 = np.atleast_1d(chi1).astype(float)
chi2 = np.atleast_1d(chi2).astype(float)
rwide = ((chi1 - q*chi2) / (1-q))**2
return rwide
| (q, chi1, chi2) | [
-0.05320606380701065,
0.045944154262542725,
0.015197880566120148,
0.00504648732021451,
0.022846251726150513,
0.006205875892192125,
0.031150711700320244,
-0.01894567161798477,
-0.060000620782375336,
0.0674782320857048,
0.03965289518237114,
0.01676170714199543,
0.03230111300945282,
0.027843307703733444,
-0.049611058086156845,
0.02020392380654812,
0.0349973663687706,
-0.026585055515170097,
0.022432826459407806,
-0.021012799814343452,
0.005482381675392389,
0.006601326633244753,
0.050833359360694885,
0.05435646325349808,
-0.04810115694999695,
-0.027070382609963417,
-0.04781355708837509,
-0.0246976800262928,
-0.06877242773771286,
-0.04130659997463226,
-0.0096705611795187,
0.08390739560127258,
0.007154058199375868,
0.018568197265267372,
0.015934856608510017,
0.009580686688423157,
0.06445842236280441,
0.03451203927397728,
-0.05432051420211792,
0.008425790816545486,
-0.0699947327375412,
0.038107044994831085,
0.02985651046037674,
-0.020257849246263504,
0.011162487789988518,
0.031222611665725708,
0.00679455790668726,
0.0315641388297081,
-0.028562309220433235,
0.07758019119501114,
0.018891748040914536,
-0.028598258271813393,
-0.045584652572870255,
-0.003833173308521509,
-0.02654910646378994,
0.014946229755878448,
0.017705395817756653,
-0.044793751090765,
0.019179347902536392,
-0.0885809063911438,
-0.020167972892522812,
0.04137849807739258,
0.01528775505721569,
0.044829703867435455,
0.001923327217809856,
-0.002272716723382473,
-0.00267603131942451,
0.04903585836291313,
-0.008488703519105911,
0.009895249269902706,
-0.020833048969507217,
-0.008920104242861271,
-0.04515325278043747,
0.009607648476958275,
0.015880931168794632,
0.034547992050647736,
0.019880373030900955,
-0.05859857052564621,
0.060360122472047806,
0.0028602753300219774,
0.0009105471544899046,
0.023942727595567703,
-0.020275823771953583,
-0.040551647543907166,
0.006412588991224766,
0.05173211172223091,
0.011279325932264328,
-0.023043977096676826,
-0.0059766946360468864,
-0.02665695548057556,
-0.0638832226395607,
0.016177518293261528,
0.025866055861115456,
0.02996435947716236,
0.04342764988541603,
0.07154058665037155,
-0.03997644782066345,
-0.016303343698382378,
-0.048999909311532974,
-0.04180989786982536,
-0.030000310391187668,
0.0445421040058136,
0.022720426321029663,
0.014101403765380383,
-0.022199152037501335,
-0.07146868109703064,
-0.02591998130083084,
0.03316391259431839,
-0.039329346269369125,
-0.04022809863090515,
-0.05309821292757988,
-0.05820311978459358,
-0.10195431858301163,
0.01993429847061634,
-0.007998884655535221,
-0.02741190791130066,
-0.061582423746585846,
0.039473146200180054,
0.055363066494464874,
0.014451917260885239,
0.001983992988243699,
-0.021102674305438995,
0.006515945307910442,
-0.04145039990544319,
0.005500356666743755,
0.046555303037166595,
0.02937118522822857,
0.030431710183620453,
-0.0018390693003311753,
0.03289428725838661,
-0.015036105178296566,
0.023295627906918526,
-0.02397867850959301,
0.010551337152719498,
-0.006219357252120972,
0.017912108451128006,
-0.016231443732976913,
-0.007589952554553747,
0.10554932802915573,
0.02787925861775875,
0.009823349304497242,
0.005495862569659948,
-0.020509500056505203,
0.023313602432608604,
-0.0032197756227105856,
0.05187591165304184,
0.016707781702280045,
-0.008246040903031826,
0.01919732242822647,
0.0386822447180748,
-0.08239749819040298,
0.026638980954885483,
0.11877893656492233,
-0.04134254902601242,
0.004516223911195993,
-0.027933182194828987,
0.043751202523708344,
-0.02203737571835518,
0.02142622508108616,
-0.03940124809741974,
0.01340037863701582,
-0.05442836508154869,
0.027717482298612595,
0.05554281547665596,
-0.014586729928851128,
-0.007365264929831028,
0.04490160197019577,
-0.05025815963745117,
0.05126475915312767,
0.026513155549764633,
0.03950909525156021,
-0.0013155469205230474,
-0.009221185930073261,
0.01223200187087059,
-0.035536617040634155,
-0.0038870982825756073,
-0.03965289518237114,
-0.03961694613099098,
-0.02692658081650734,
-0.06920383125543594,
0.03803514316678047,
-0.025380730628967285,
-0.019880373030900955,
0.010506399907171726,
-0.03337961435317993,
0.04346360266208649,
0.026081755757331848,
0.0257042795419693,
0.03904174640774727,
0.0166179072111845,
0.025290854275226593,
-0.05604611709713936,
-0.02374500222504139,
0.01944897323846817,
0.06920383125543594,
-0.007104627322405577,
0.03147426247596741,
-0.036758918315172195,
-0.022684477269649506,
-0.0028423003386706114,
0.0025726750027388334,
0.028903834521770477,
-0.019161373376846313,
0.01052437536418438,
0.06219357252120972,
-0.003889345098286867,
-0.04932345822453499,
0.01677069440484047,
0.02164192497730255,
-0.01811882108449936,
0.0651414766907692,
-0.0014312610728666186,
0.010245761834084988,
0.058670468628406525,
0.019359096884727478,
0.014694579876959324,
0.021210525184869766,
-0.04648340493440628,
0.03560851514339447,
-0.024068553000688553,
0.03204946219921112,
0.0381789468228817,
0.013436328619718552,
0.04943130910396576,
-0.021677875891327858,
0.016662845388054848,
-0.04982675984501839,
-0.027969133108854294,
0.020473549142479897,
-0.02778938226401806,
-0.023439427837729454,
-0.010811975225806236,
-0.017552608624100685,
-0.05942542105913162,
0.0006914765690453351,
0.0019469194812700152,
-0.07179223746061325,
-0.0215160995721817,
0.018909722566604614,
0.031168686226010323,
-0.02374500222504139,
-0.012609477154910564,
-0.029694734141230583,
0.017417795956134796,
0.014128366485238075,
-0.07722069323062897,
-0.06967118382453918,
0.022486751899123192,
0.03044968657195568,
0.04148634895682335,
-0.04928750917315483,
-0.07053398340940475,
-0.021605975925922394,
-0.010335637256503105,
0.0381789468228817,
0.03255276381969452,
-0.05406886339187622,
-0.0035253509413450956,
-0.026872657239437103,
-0.027969133108854294,
0.030000310391187668,
0.00024280321667902172,
0.01388570386916399,
0.03728019446134567,
-0.04968295991420746,
-0.008592059835791588,
-0.015467505902051926,
0.03120463714003563,
0.021390276029706,
-0.05104906111955643,
-0.09512381255626678,
0.0900908038020134,
-0.008672947995364666,
-0.01970062404870987,
-0.05428456515073776,
0.010677162557840347,
0.03629156947135925,
-0.003628707490861416,
-0.009949173778295517,
0.02579415589570999,
-0.021228499710559845,
-0.03035981021821499,
-0.0017345895757898688,
0.00918074231594801,
0.009320048615336418,
0.022846251726150513,
0.001345879747532308,
-0.03453001752495766,
0.03559054061770439,
-0.0003903949982486665,
-0.044829703867435455,
-0.007369758561253548,
-0.007104627322405577,
0.014362041838467121,
0.050222210586071014,
0.040911149233579636,
-0.07053398340940475,
-0.01995227299630642,
0.013562153093516827,
-0.0006864211172796786,
0.012375801801681519,
0.03580624237656593,
-0.03314593806862831,
-0.005608206614851952,
-0.012456689961254597,
-0.020743174478411674,
0.05554281547665596,
-0.0290116835385561,
-0.011638825759291649,
0.0036264604423195124,
-0.04598010331392288,
0.002947903471067548,
-0.032858338207006454,
0.0552552156150341,
0.021318374201655388,
-0.04040784761309624,
0.04928750917315483,
0.05529116466641426,
-0.010155887342989445,
0.06834103167057037,
0.03526699170470238,
-0.03411658853292465,
0.05248706042766571,
0.0113242631778121,
-0.011782626621425152,
-0.035680416971445084,
-0.03979669511318207,
0.0008105611195787787,
0.01340037863701582,
0.00443758349865675,
-0.06384727358818054,
0.03359531611204147,
-0.02800508216023445,
-0.01786717027425766,
-0.0008251658291555941,
-0.04522515460848808,
0.05453621596097946,
-0.04285245016217232,
0.007922490127384663,
-0.027465831488370895,
0.0011453458573669195,
-0.007792171556502581,
-0.008776304312050343,
-0.009886262007057667,
-0.02165990136563778,
-0.02018594928085804,
-0.007158552296459675,
-0.021803701296448708,
0.01665385626256466,
0.040551647543907166,
0.0026895124465227127,
-0.005711562931537628,
0.01700437068939209,
-0.018640097230672836,
0.035410791635513306,
0.026998482644557953,
-0.04598010331392288,
-0.005756500642746687,
0.0035006352700293064,
-0.017211083322763443,
0.004754392895847559,
0.017462732270359993,
0.011144513264298439,
-0.005734031554311514,
-0.015314717777073383,
-0.020886974409222603,
-0.04198965057730675,
-0.0049790809862315655,
-0.10001301765441895,
0.006071063224226236,
-0.053385812789201736,
-0.01860414631664753,
-0.033343665301799774,
-0.007428177632391453,
0.01082995068281889,
0.06661542505025864,
-0.02924535982310772,
0.017417795956134796,
-0.06801748275756836,
0.007648371625691652,
0.003406266449019313,
-0.022810302674770355,
-0.05237921327352524,
0.02275637723505497,
-0.03771159425377846,
-0.01810983382165432,
-0.025650355964899063,
-0.012726315297186375,
-0.03853844478726387,
0.016321320086717606,
0.0010049160337075591,
-0.012169089168310165,
0.025488579645752907,
0.07714878767728806,
-0.03900579735636711,
0.05198376253247261,
-0.021713824942708015,
-0.0047274306416511536,
-0.024176403880119324,
0.005972201004624367,
0.011710726656019688,
-0.06143862381577492,
-0.008075278252363205,
0.0222710520029068,
-0.015018130652606487,
-0.02751975692808628,
-0.014559767208993435,
0.08541730046272278,
-0.012888089753687382,
-0.011036663316190243,
-0.02899370901286602,
-0.01847832091152668,
0.007805652916431427,
0.024625778198242188,
-0.038718193769454956,
-0.024769579991698265,
-0.0030872100032866,
0.0013526203110814095,
-0.017912108451128006,
0.06133077293634415,
0.01579105667769909,
-0.10109151899814606,
0.01885579712688923,
0.043355751782655716,
-0.013696965761482716,
-0.02924535982310772,
0.04310410097241402,
-0.00020699360175058246,
0.08793380111455917,
-0.025776179507374763,
-0.022109275683760643,
0.046159856021404266,
-0.03512319177389145,
-0.06618402898311615,
-0.028903834521770477,
0.005823906976729631,
0.02606378123164177,
0.08635199815034866,
0.03368518874049187,
0.0007571977912448347,
0.017525644972920418,
0.031006911769509315,
0.02322372794151306,
-0.04806520789861679,
-0.00843927264213562,
-0.012070226483047009,
-0.012169089168310165,
0.016231443732976913,
-0.0516602098941803,
-0.023295627906918526,
0.023673102259635925,
0.018406420946121216,
-0.025991881266236305,
0.012007313780486584,
0.07103728502988815,
0.010811975225806236,
-0.024895403534173965,
-0.04051569849252701,
0.014730529859662056,
-0.01314872782677412,
0.04468590393662453,
0.026710880920290947,
0.004487014841288328,
0.06179812178015709,
-0.024032603949308395,
0.04882015660405159,
-0.008812254294753075,
-0.05033005774021149,
0.030377786606550217,
-0.03965289518237114,
0.05281061306595802,
0.03375709056854248,
0.01700437068939209,
-0.0000019309104573039804,
0.08031239360570908,
0.014847367070615292,
-0.031240586191415787,
0.0318157859146595,
0.0641348734498024,
-0.019898347556591034,
-0.00996714923530817,
-0.00159865349996835,
0.0023367528337985277,
-0.00605308823287487,
-0.01480242982506752,
-0.06888028234243393,
-0.06140267103910446,
-0.027447856962680817,
0.00020404458336997777,
0.000826289237011224,
0.05590231716632843,
0.04871230572462082,
0.0035860168281942606,
-0.02665695548057556,
-0.04393095150589943,
0.024320203810930252,
-0.0039208014495670795,
-0.062481172382831573,
0.029766635969281197,
-0.000951552705373615,
0.01883782260119915,
0.025254905223846436,
-0.04306815192103386,
-0.010722099803388119,
0.009126816876232624,
0.046303655952215195,
0.0027681533247232437,
0.006754114292562008,
-0.032714538276195526,
-0.024068553000688553,
-0.04198965057730675,
-0.01735488325357437,
-0.0025726750027388334,
0.000871226831804961,
0.011863513849675655,
-0.01946694776415825,
-0.03339758887887001,
0.04047974944114685,
0.015701180323958397,
-0.010856912471354008,
-0.008497691713273525,
0.006367651280015707,
0.02690860629081726,
0.05148046091198921,
-0.009320048615336418,
-0.007248427253216505,
-0.004107292275875807,
-0.03034183569252491,
0.023924753069877625,
0.04076734930276871,
-0.030557535588741302,
-0.014964205212891102,
-0.0027726469561457634,
0.03659714385867119,
0.04022809863090515,
0.020976848900318146,
-0.07348188757896423,
0.013202653266489506,
0.01010196190327406,
0.021677875891327858,
-0.024769579991698265,
-0.04490160197019577,
0.0127892279997468,
0.023205751553177834,
0.028598258271813393,
0.03659714385867119,
-0.01943099871277809,
-0.0014031750615686178,
-0.039832647889852524,
-0.00036933051887899637,
-0.06298447400331497,
-0.02911953441798687,
-0.0012627452379092574,
0.034296341240406036,
0.04770570620894432,
0.013696965761482716,
0.04486565291881561,
-0.029550934210419655,
-0.007549508940428495,
0.010074999183416367,
0.0041904267854988575,
-0.033109989017248154,
0.07330213487148285,
-0.01898162253201008,
-0.018397433683276176,
0.005823906976729631,
0.00007267244654940441,
0.04267270117998123,
-0.003781495150178671,
0.013939629308879375,
-0.016797658056020737,
0.07614219188690186,
0.04260079935193062,
0.04012024775147438,
-0.08376359939575195,
0.007639383897185326,
0.05935351923108101,
-0.044218551367521286,
-0.03451203927397728,
-0.03391886502504349,
0.000772364204749465,
0.02924535982310772,
0.03503331542015076,
-0.0361657440662384,
-0.01210617646574974,
-0.029299285262823105,
-0.013723928481340408,
0.009553723968565464,
0.02703443169593811,
0.05356556177139282,
0.01898162253201008,
-0.04623175412416458,
0.008259521797299385,
0.012258964590728283,
0.02654910646378994,
-0.001923327217809856,
0.0020873493049293756,
-0.0371723435819149,
0.04206154868006706,
-0.021462175995111465,
-0.00953574851155281,
-0.03354138880968094,
-0.016195494681596756,
0.04083924740552902,
0.027609633281826973,
0.01650106906890869,
0.04155825078487396,
-0.014146341942250729,
-0.0193411223590374,
-0.06071962043642998,
0.02690860629081726,
0.014784455299377441,
0.02140825055539608,
0.005729537922888994,
-0.005477887578308582,
0.03586016595363617,
-0.020958874374628067,
-0.13373415172100067,
0.004167958162724972,
-0.022972077131271362,
0.014254191890358925,
-0.012951002456247807,
0.03059348650276661,
-0.061582423746585846,
-0.002687265630811453,
-0.005823906976729631,
0.03048563562333584,
-0.03756779432296753,
-0.023888804018497467,
-0.051947809755802155,
0.017076270654797554,
0.023691078647971153,
0.0435355007648468,
-0.07021043449640274,
-0.08570490032434464,
0.10116341710090637,
-0.01894567161798477,
-0.023673102259635925,
-0.03070133551955223,
0.0021603729110211134,
0.02286422625184059,
0.04896395653486252,
0.01144110132008791,
0.007891034707427025,
-0.012249977327883244,
-0.04993460699915886,
0.0024468498304486275,
-0.0226485263556242,
-0.04975485801696777,
-0.01567421853542328,
-0.07858679443597794,
0.05151640996336937,
0.020761149004101753,
-0.03839464485645294,
0.023762978613376617,
-0.056585367769002914,
-0.028041033074259758,
-0.03118666261434555,
-0.014290141873061657,
0.031006911769509315,
0.06596832722425461,
0.01130628865212202,
-0.0034826602786779404,
0.005702575668692589,
0.040803298354148865,
0.023097902536392212,
0.07549508661031723,
-0.05942542105913162,
-0.008385347202420235,
-0.0725112333893776,
0.04346360266208649,
-0.0086235161870718,
0.04001239687204361,
-0.06812532991170883,
-0.02701645717024803,
0.029928410425782204,
-0.008466235361993313,
-0.006075557321310043,
0.021444199606776237,
0.0018109834054484963,
-0.03386494144797325,
0.023547276854515076,
0.04407475143671036,
-0.03300213813781738,
0.04731025546789169,
-0.019844423979520798,
-0.027340007945895195,
-0.03875414654612541,
-0.035788267850875854,
0.03612979128956795,
0.010191837325692177,
-0.00535655627027154,
-0.03986859694123268,
-0.02094089984893799,
0.02949701063334942,
-0.019125422462821007,
0.015737131237983704,
-0.02372702769935131,
-0.009994111955165863,
0.010003099218010902,
0.061366721987724304,
-0.03451203927397728,
0.019844423979520798,
-0.0290116835385561,
-0.04098304733633995,
0.022684477269649506,
0.04414665326476097,
-0.022307001054286957,
0.07136083394289017,
0.00149192672688514,
-0.011701738461852074,
0.042385101318359375,
0.038969844579696655,
-0.01075804978609085,
-0.007032726891338825,
0.02383487857878208,
-0.02029379829764366,
0.07499178498983383,
0.07930579036474228,
-0.002723215613514185,
0.018271608278155327,
-0.022684477269649506,
0.022792326286435127,
-0.027501782402396202,
-0.06679517775774002,
0.05273871123790741,
0.07010257989168167,
0.004736417904496193,
-0.053781263530254364,
-0.04195369780063629,
-0.05209160968661308,
0.0005412166356109083,
-0.06988688558340073,
0.048856109380722046,
0.04784950613975525,
0.028436483815312386,
0.006295751314610243,
0.0009919964941218495,
0.06442247331142426,
0.003925295080989599,
-0.0038219387643039227,
-0.003415253944694996,
0.07092943042516708,
-0.059748969972133636,
-0.0315641388297081,
-0.02130039967596531,
0.019233273342251778,
0.02726810798048973,
0.03246288746595383,
0.0005538553232327104,
0.048280905932188034,
-0.006237332243472338,
-0.005307124927639961,
-0.0926792100071907,
-0.018154771998524666,
0.018801871687173843,
0.026746831834316254,
-0.00709114596247673,
-0.0315641388297081,
-0.0013818297302350402,
0.02397867850959301,
0.052055660635232925,
0.027951158583164215,
0.0982155129313469,
0.04723835736513138,
0.03979669511318207,
0.047418106347322464,
0.014290141873061657
] |
20,926 | precession.precession | wraproots |
Find roots of a polynomial given coefficients, ordered according to their real part. Complex roots are masked with nans. This is essentially a wrapper of numpy.roots.
Parameters
----------
coefficientfunction: callable
Function returning the polynomial coefficients ordered from highest to lowest degree.
*args, **kwargs:
Parameters of `coefficientfunction`.
Returns
-------
sols: array
Roots of the polynomial.
Examples
--------
``sols = precession.wraproots(coefficientfunction, *args, **kwargs)``
| def wraproots(coefficientfunction, *args, **kwargs):
"""
Find roots of a polynomial given coefficients, ordered according to their real part. Complex roots are masked with nans. This is essentially a wrapper of numpy.roots.
Parameters
----------
coefficientfunction: callable
Function returning the polynomial coefficients ordered from highest to lowest degree.
*args, **kwargs:
Parameters of `coefficientfunction`.
Returns
-------
sols: array
Roots of the polynomial.
Examples
--------
``sols = precession.wraproots(coefficientfunction, *args, **kwargs)``
"""
coeffs = coefficientfunction(*args, **kwargs)
sols = np.sort_complex(roots_vec(coeffs.T))
sols = np.real(np.where(np.isreal(sols), sols, np.nan))
return sols
| (coefficientfunction, *args, **kwargs) | [
0.005155231337994337,
-0.007795173209160566,
0.03693247213959694,
0.0055469935759902,
0.016062241047620773,
0.04526631534099579,
-0.06510371714830399,
-0.019677136093378067,
0.07151436805725098,
0.016427291557192802,
-0.02480565570294857,
-0.02209893800318241,
-0.010791261680424213,
-0.044411562383174896,
-0.048863403499126434,
0.0013388911029323936,
0.009233118034899235,
-0.028438357636332512,
-0.05473983287811279,
0.013026085682213306,
-0.005253172013908625,
0.02124418318271637,
0.04138430953025818,
0.04583615064620972,
0.0065397541038692,
0.02719184197485447,
0.04501701146364212,
0.002348345937207341,
0.01303498912602663,
-0.024627583101391792,
0.010871394537389278,
0.0515345074236393,
-0.04063640162348747,
-0.004137985873967409,
-0.04312943294644356,
0.007670521270483732,
0.04341435059905052,
0.014450674876570702,
0.006860286463052034,
0.034831199795007706,
-0.018840190023183823,
0.024200206622481346,
-0.0364694781601429,
-0.0003194195742253214,
0.027298687025904655,
-0.004271541256457567,
-0.0011257592123001814,
0.06314490735530853,
0.018519656732678413,
0.033477842807769775,
-0.025233032181859016,
-0.026337089017033577,
0.019516870379447937,
-0.04491017013788223,
0.010533055290579796,
0.031982023268938065,
0.01478011067956686,
0.028117826208472252,
0.017193008214235306,
-0.05110713094472885,
-0.01795872487127781,
0.027156228199601173,
0.0036304760724306107,
-0.0021769499871879816,
-0.01860869489610195,
-0.02046065963804722,
-0.0018831286579370499,
-0.003719512838870287,
0.002846952062100172,
0.006927064154297113,
-0.03971041738986969,
-0.020959265530109406,
0.004387288819998503,
-0.06919941306114197,
0.03160806745290756,
-0.0028625335544347763,
0.028153439983725548,
0.006076762452721596,
-0.014771207235753536,
0.02076338417828083,
-0.0467621348798275,
0.017103971913456917,
0.009286539629101753,
0.05367138981819153,
-0.009161887690424919,
-0.03686124086380005,
0.017264237627387047,
0.035312000662088394,
0.057589009404182434,
0.033638108521699905,
-0.010711128823459148,
-0.021903056651353836,
-0.03914058208465576,
0.04697582125663757,
-0.0352763868868351,
0.007243144791573286,
0.04206098988652229,
-0.03892689570784569,
-0.02393309585750103,
-0.014521904289722443,
0.041491154581308365,
0.03509831055998802,
0.008267068304121494,
0.03075331635773182,
0.06695568561553955,
0.0459429956972599,
0.014717785641551018,
-0.04548000544309616,
0.05684110149741173,
0.11845457553863525,
-0.05926290154457092,
0.02140445075929165,
0.011485748924314976,
-0.00958926510065794,
-0.06196962296962738,
-0.0022904719226062298,
-0.05117836222052574,
0.0388556644320488,
-0.02441389486193657,
-0.07126506417989731,
0.056306879967451096,
-0.008667733520269394,
-0.029684873297810555,
0.028990386053919792,
0.036024294793605804,
0.03828582912683487,
0.036505091935396194,
0.04946885257959366,
-0.014913666062057018,
-0.022170167416334152,
0.06214769557118416,
0.056235652416944504,
0.043628036975860596,
-0.012928145006299019,
-0.021920863538980484,
0.00004156210707151331,
-0.005115164909511805,
-0.024057747796177864,
-0.01681015081703663,
-0.011272060684859753,
0.03509831055998802,
0.061684705317020416,
-0.02544672042131424,
0.014388348907232285,
-0.03454628214240074,
0.01017690822482109,
0.05459737405180931,
-0.04669090360403061,
0.003080673748627305,
0.005230912938714027,
0.022472891956567764,
-0.028331514447927475,
0.02758360467851162,
-0.007425670046359301,
-0.022882461547851562,
0.010283752344548702,
0.08227001875638962,
-0.07140752673149109,
-0.004763469565659761,
0.02749456837773323,
0.012848012149333954,
0.07664288580417633,
0.034991469234228134,
-0.06670638173818588,
-0.03814337030053139,
-0.013462366536259651,
-0.02202770859003067,
-0.057802699506282806,
-0.014521904289722443,
0.0071452041156589985,
0.026906924322247505,
0.013960972428321838,
-0.025482336059212685,
0.03700369969010353,
0.02544672042131424,
-0.036896854639053345,
-0.006682212930172682,
-0.00578294089064002,
-0.015234198421239853,
0.030610855668783188,
0.002898148261010647,
-0.00834720116108656,
-0.011779570020735264,
0.06948433071374893,
0.03303265944123268,
0.034991469234228134,
0.01061318814754486,
-0.024431701749563217,
0.013640440069139004,
-0.05431245639920235,
-0.04398418590426445,
0.020336007699370384,
0.046868979930877686,
0.006214769557118416,
-0.02526864781975746,
-0.030112249776721,
0.005636030342429876,
0.0007723943563178182,
-0.04629914462566376,
0.005969918332993984,
-0.06756113469600677,
-0.007550321985036135,
0.03378056734800339,
-0.01478011067956686,
0.011138505302369595,
0.02576725371181965,
-0.000640508602373302,
-0.0261590164154768,
-0.004736758302897215,
0.023024920374155045,
0.010826876387000084,
-0.01482462976127863,
-0.046797748655080795,
0.00804892834275961,
-0.019908631220459938,
0.01366715133190155,
0.00978514552116394,
-0.047830577939748764,
-0.017566964030265808,
-0.027369916439056396,
-0.05684110149741173,
-0.020870229229331017,
0.027850715443491936,
-0.029364341869950294,
-0.021760597825050354,
0.047047052532434464,
0.05014553293585777,
0.050750982016325,
0.0578739270567894,
-0.0289369635283947,
0.014495193026959896,
-0.014664363116025925,
-0.03589964285492897,
-0.10021983832120895,
0.013987683691084385,
-0.12308449298143387,
0.009206406772136688,
-0.010533055290579796,
0.03686124086380005,
-0.05082221329212189,
-0.004919284023344517,
-0.039995335042476654,
0.046797748655080795,
0.008943747729063034,
-0.005640482064336538,
0.052424874156713486,
-0.0049816095270216465,
0.005177490878850222,
0.012171332724392414,
-0.02234824001789093,
-0.007977698929607868,
-0.008890326134860516,
0.030575241893529892,
0.024342665448784828,
0.05851499363780022,
-0.06157786026597023,
0.0075369663536548615,
0.035312000662088394,
0.027637027204036713,
0.03191079571843147,
-0.015528020448982716,
0.026087787002325058,
0.0289369635283947,
-0.027227457612752914,
-0.012420635670423508,
-0.03346003592014313,
-0.059797123074531555,
0.0033989802468568087,
0.04697582125663757,
0.05381384864449501,
-0.023327644914388657,
-0.009722820483148098,
0.01846623606979847,
0.0010812408290803432,
-0.016783438622951508,
0.0649612620472908,
0.0030250258278101683,
0.01860869489610195,
0.04352119565010071,
0.011120698414742947,
-0.02014012634754181,
0.014272601343691349,
-0.03992410749197006,
0.008632118813693523,
-0.030717700719833374,
0.008133512921631336,
-0.007572581060230732,
-0.014005490578711033,
0.05039483681321144,
-0.008191387169063091,
-0.025411106646060944,
0.04141992703080177,
0.005502474959939718,
-0.02014012634754181,
-0.024520738050341606,
-0.020068896934390068,
-0.019214143976569176,
-0.08063174039125443,
0.02519741840660572,
-0.023950902745127678,
-0.01752244494855404,
-0.03566814586520195,
0.05879991129040718,
-0.02361256256699562,
0.018751153722405434,
-0.0084184305742383,
-0.0052976906299591064,
-0.029684873297810555,
-0.002733430126681924,
0.031269729137420654,
-0.017816266044974327,
0.011102890595793724,
-0.02790413796901703,
-0.02053188905119896,
0.022063322365283966,
0.008747867308557034,
0.047118280082941055,
-0.02306053414940834,
0.04761688783764839,
0.013177448883652687,
0.04305820167064667,
0.008551985956728458,
0.011067275889217854,
0.03146560862660408,
0.013569210655987263,
0.016551943495869637,
0.04391295835375786,
-0.02671104483306408,
0.018679924309253693,
0.0032342623453587294,
0.011583689600229263,
-0.0037551275454461575,
-0.012741168029606342,
0.00034334821975789964,
-0.044269103556871414,
0.019748365506529808,
0.05684110149741173,
-0.020246971398591995,
0.001598210772499442,
0.0022626479621976614,
0.04134869575500488,
-0.02544672042131424,
-0.034831199795007706,
-0.04768811911344528,
-0.08155772089958191,
0.032534051686525345,
0.0515345074236393,
-0.013845224864780903,
0.03312169387936592,
-0.016658788546919823,
0.011316578835248947,
-0.018822383135557175,
0.04191853106021881,
0.008204742334783077,
-0.0011563656153157353,
0.05260295048356056,
-0.012064488604664803,
0.02804659679532051,
-0.017584770917892456,
-0.005564800929278135,
0.014459578320384026,
-0.02891915664076805,
-0.020425045862793922,
-0.0547042191028595,
-0.002092365175485611,
0.010319367051124573,
0.026835694909095764,
-0.003997752908617258,
0.01676563173532486,
0.009357769042253494,
-0.014628748409450054,
-0.006210317835211754,
-0.027797292917966843,
-0.028794504702091217,
0.007692780811339617,
-0.00649968720972538,
-0.011512460187077522,
-0.004398418590426445,
-0.01153026707470417,
-0.0022782294545322657,
-0.003216454992070794,
-0.07699903845787048,
0.009188598953187466,
-0.07813870906829834,
-0.07204858958721161,
0.0634298250079155,
0.002613230375573039,
0.006797960493713617,
0.02623024582862854,
0.019374411553144455,
-0.036505091935396194,
-0.03228474780917168,
0.06464072316884995,
0.017166297882795334,
0.003897586604580283,
0.04141992703080177,
0.09288320690393448,
0.00025264197029173374,
-0.009322154335677624,
-0.004781276918947697,
-0.006700020283460617,
-0.02473442628979683,
-0.010764550417661667,
-0.01924975961446762,
0.044340334832668304,
-0.029898561537265778,
-0.00752806244418025,
-0.03566814586520195,
0.04651283100247383,
-0.009028333239257336,
-0.04982500150799751,
-0.010737840086221695,
0.04263082519173622,
-0.03228474780917168,
-0.0005300472839735448,
0.04975377023220062,
-0.11232884228229523,
0.0080177653580904,
-0.008743414655327797,
-0.057731468230485916,
0.054561760276556015,
-0.08269739151000977,
-0.04163361340761185,
0.04398418590426445,
-0.005925399716943502,
0.04049394279718399,
0.09794049710035324,
-0.013524691574275494,
-0.007585936691612005,
0.0491483211517334,
-0.030860159546136856,
-0.038570746779441833,
-0.05595073476433754,
-0.02947118505835533,
-0.049183934926986694,
0.007332181558012962,
-0.012028873898088932,
0.011022757738828659,
-0.03679000958800316,
0.008600955829024315,
0.013497981242835522,
0.09224213659763336,
0.0034034322015941143,
0.0024062199518084526,
0.03191079571843147,
0.06015327200293541,
0.07657165825366974,
-0.011120698414742947,
-0.04658406227827072,
-0.0024774493649601936,
-0.010372788645327091,
-0.08440689742565155,
0.03693247213959694,
0.0027223005890846252,
-0.05402753874659538,
-0.012972664088010788,
-0.060509417206048965,
-0.026497356593608856,
-0.03739546239376068,
-0.0007506916299462318,
0.0070650712586939335,
-0.00045074886293150485,
0.06250384449958801,
-0.05367138981819153,
-0.03778722509741783,
0.0148602444678545,
-0.04134869575500488,
0.032534051686525345,
-0.002060089260339737,
-0.002326086862012744,
0.02932872623205185,
0.005284334998577833,
-0.08255493640899658,
-0.01653413660824299,
0.06435580551624298,
0.047581274062395096,
-0.05516720935702324,
0.02678227424621582,
0.021422257646918297,
-0.023238608613610268,
-0.11361097544431686,
-0.015599249862134457,
0.032213520258665085,
-0.03155464679002762,
0.0014390575233846903,
-0.051463279873132706,
0.011138505302369595,
-0.04366365447640419,
-0.02188524790108204,
-0.032925814390182495,
-0.05167696624994278,
0.07301018387079239,
0.029043808579444885,
0.04270205646753311,
0.026087787002325058,
-0.0030227997340261936,
-0.010639899410307407,
0.024235820397734642,
-0.0037017054855823517,
0.023024920374155045,
0.009304347448050976,
0.004803535994142294,
-0.030967004597187042,
0.025482336059212685,
0.04344996437430382,
0.03714615851640701,
-0.05673425644636154,
-0.0018208028050139546,
-0.0206031184643507,
0.003312169574201107,
-0.007047263905405998,
0.021440064534544945,
0.005480215884745121,
0.0028313705697655678,
-0.026265859603881836,
0.06453388184309006,
0.03004102036356926,
-0.004409548360854387,
-0.027832908555865288,
0.012278176844120026,
-0.012367213144898415,
0.039888493716716766,
-0.003741772146895528,
0.0070027452893555164,
0.04601422697305679,
-0.01263432390987873,
-0.05128520354628563,
-0.03985287621617317,
-0.001006672508083284,
0.03707493096590042,
-0.003944330848753452,
-0.010657706297934055,
-0.02907942421734333,
0.057980772107839584,
-0.043556809425354004,
0.006655501667410135,
-0.01996205374598503,
-0.030219094827771187,
0.04302258789539337,
0.038072142750024796,
-0.06407088786363602,
0.07856608182191849,
0.05356454849243164,
-0.032534051686525345,
0.06079433485865593,
0.002357249613851309,
-0.007924276404082775,
0.002515289932489395,
-0.08269739151000977,
-0.013168544508516788,
0.060117658227682114,
-0.016026627272367477,
0.12422416359186172,
-0.010880298912525177,
0.005355564411729574,
-0.06838027387857437,
-0.008471853099763393,
-0.04487455263733864,
-0.06428457796573639,
-0.01598210819065571,
0.030130058526992798,
0.039176199585199356,
0.01379180233925581,
-0.015812939032912254,
-0.014530807733535767,
-0.006619886960834265,
0.036416057497262955,
0.05270979553461075,
0.02266877330839634,
0.05260295048356056,
0.007519159000366926,
0.017264237627387047,
-0.020175741985440254,
-0.030058829113841057,
-0.030219094827771187,
-0.016177989542484283,
0.0024329309817403555,
-0.08896558731794357,
-0.05213995650410652,
-0.011975451372563839,
-0.011085083708167076,
-0.11546293646097183,
-0.03050401248037815,
-0.03757353499531746,
0.037609148770570755,
0.06214769557118416,
0.006308258045464754,
0.05587950348854065,
-0.07564567774534225,
0.0008898116648197174,
-0.012937049381434917,
0.05445491522550583,
-0.0316971056163311,
-0.027476761490106583,
0.03075331635773182,
-0.05000307410955429,
-0.08768345415592194,
0.03556130453944206,
0.07393617182970047,
-0.025072766467928886,
-0.053386472165584564,
-0.009152984246611595,
-0.06923502683639526,
0.02647954784333706,
-0.049326393753290176,
-0.009268732741475105,
-0.013248678296804428,
-0.056235652416944504,
0.010283752344548702,
-0.01161040086299181,
-0.028901349753141403,
0.04341435059905052,
0.02820686250925064,
-0.022686580196022987,
-0.007817432284355164,
0.04067201539874077,
0.024235820397734642,
0.005061742849647999,
0.01033717393875122,
-0.000979961478151381,
-0.011352193541824818,
0.027619220316410065,
0.033317577093839645,
-0.0015948719810694456,
-0.014717785641551018,
-0.010835779830813408,
0.0633585974574089,
0.008302683010697365,
0.022455085068941116,
0.010711128823459148,
0.02963145077228546,
0.08383706212043762,
-0.018911419436335564,
0.0021914185490459204,
-0.022383855655789375,
-0.018448427319526672,
-0.02124418318271637,
-0.034688740968704224,
-0.008338297717273235,
0.022633157670497894,
-0.03433259576559067,
-0.02694253996014595,
-0.038072142750024796,
-0.041882917284965515,
0.04669090360403061,
0.013257581740617752,
0.01591978222131729,
-0.015554731711745262,
0.04131308197975159,
-0.02363036945462227,
-0.022472891956567764,
0.02592751942574978,
-0.028402743861079216,
0.04694020748138428,
0.058372534811496735,
-0.017994340509176254,
0.02046065963804722,
-0.003577054012566805,
0.002969377674162388,
0.01263432390987873,
0.019214143976569176,
-0.01544788759201765,
-0.02138664200901985,
0.021279798820614815,
-0.01973055861890316,
-0.019392218440771103,
0.014486289583146572,
0.009820760227739811,
-0.05181942507624626,
0.07557445019483566,
0.03283677622675896,
-0.028153439983725548,
-0.005475764162838459,
-0.0030895774252712727,
0.04391295835375786,
0.017299853265285492,
-0.08127280324697495,
0.05509598180651665,
-0.029115037992596626,
0.009776242077350616,
0.015430079773068428,
0.017451215535402298,
0.008391719311475754,
0.022366046905517578,
-0.013889743015170097,
-0.06556671112775803,
-0.005101809278130531,
0.06984047591686249,
-0.019392218440771103,
-0.01493147388100624,
-0.020781192928552628,
-0.009874182753264904,
0.020709963515400887,
-0.03075331635773182,
-0.06211208179593086,
0.015002703294157982,
-0.028082210570573807,
0.05413438379764557,
0.03867759183049202,
-0.035685956478118896,
0.06464072316884995,
0.02243727631866932,
-0.028082210570573807,
0.02402213215827942,
0.023950902745127678,
-0.04138430953025818,
0.013969875872135162,
-0.08340968936681747,
0.0049727060832083225,
0.013248678296804428,
-0.006183606572449207,
0.0011574785457924008,
0.036896854639053345,
-0.08027558773756027,
0.0010728936176747084,
0.011423422954976559,
0.025785060599446297,
0.006949323229491711,
0.035312000662088394,
0.004705595783889294,
-0.008774577639997005,
-0.020425045862793922,
0.04476771131157875,
0.0245741605758667,
0.044803325086832047,
0.026283666491508484,
0.05897798389196396,
0.003481339430436492,
-0.046797748655080795,
0.03043278306722641,
0.016525233164429665,
0.0194278322160244,
-0.023078342899680138,
0.003554794704541564,
0.023434489965438843,
0.0012431765208020806,
-0.029720488935709,
-0.00743012223392725,
-0.0483647957444191,
-0.05983274057507515,
0.02266877330839634,
-0.054098766297101974,
0.008721156045794487,
-0.04056517407298088,
0.11510679125785828,
0.011174120008945465,
-0.015234198421239853,
0.02384405955672264,
0.017210816964507103,
-0.05723286420106888,
-0.047118280082941055,
0.020496275275945663,
0.0004003874200861901,
-0.043556809425354004,
-0.037929683923721313,
-0.006610983517020941,
-0.06695568561553955,
0.056947946548461914,
-0.005613771267235279,
0.029987599700689316,
-0.04740319773554802,
-0.030130058526992798,
-0.0035859576892107725,
0.0777113288640976,
0.008600955829024315,
0.02464538998901844,
-0.03520515561103821,
0.00798215065151453
] |
20,928 | pproxy.server | proxies_by_uri | null | def proxies_by_uri(uri_jumps):
jump = DIRECT
for uri in reversed(uri_jumps.split('__')):
jump = proxy_by_uri(uri, jump)
return jump
| (uri_jumps) | [
-0.016001833602786064,
-0.053929124027490616,
-0.049926433712244034,
0.0010939276544377208,
-0.08048269897699356,
0.08527163416147232,
-0.028322618454694748,
0.010489196516573429,
0.01812826283276081,
0.0006321215187199414,
0.018959179520606995,
0.06615162640810013,
0.006066579837352037,
0.026928823441267014,
-0.00008878739026840776,
-0.07019005715847015,
-0.005043570417910814,
0.08377062529325485,
-0.02675013244152069,
-0.04120628163218498,
0.0074469721876084805,
0.08419948071241379,
0.048496898263692856,
-0.029359029605984688,
-0.03407648950815201,
0.04213548079133034,
0.012017009779810905,
0.020478056743741035,
-0.010944860056042671,
-0.004909551702439785,
-0.05685966834425926,
-0.06665197014808655,
-0.026231925934553146,
0.02010280452668667,
0.07998236268758774,
-0.014545496553182602,
0.008362767286598682,
0.10006729513406754,
-0.04742475226521492,
-0.01636815071105957,
-0.018146131187677383,
-0.0038932431489229202,
-0.04549488052725792,
-0.04813951626420021,
0.004547701217234135,
0.014429346658289433,
-0.07158385217189789,
-0.02244366519153118,
0.04263581708073616,
-0.019620338454842567,
0.0026446357369422913,
-0.024391403421759605,
0.01796744018793106,
0.0011815981706604362,
0.05403633788228035,
0.027357684448361397,
-0.03146759048104286,
0.10542804002761841,
-0.012356524355709553,
0.05714557319879532,
-0.020478056743741035,
-0.03877607733011246,
-0.003124869428575039,
-0.024856001138687134,
0.04263581708073616,
0.009073065593838692,
0.009917384013533592,
-0.020067065954208374,
0.009926318190991879,
-0.02465943992137909,
-0.007161065936088562,
-0.015555103309452534,
0.009028392843902111,
-0.05517996475100517,
0.03991970419883728,
0.005852149799466133,
0.030592001974582672,
-0.010033532977104187,
0.02035297267138958,
0.003808364737778902,
-0.05603768676519394,
-0.02499895542860031,
-0.04084889963269234,
-0.013678842224180698,
-0.015572972595691681,
-0.0178780946880579,
0.03018101118505001,
-0.024141235277056694,
0.020656749606132507,
-0.05550161004066467,
-0.04031282663345337,
-0.003585000289604068,
-0.02675013244152069,
-0.01906639337539673,
-0.04020560905337334,
0.040991853922605515,
-0.019852636381983757,
0.022336449474096298,
0.003553729271516204,
-0.013687776401638985,
0.00519099086523056,
0.033647626638412476,
-0.05442946031689644,
0.040277086198329926,
-0.008608467876911163,
-0.003124869428575039,
0.009041794575750828,
0.006785813253372908,
-0.04560209438204765,
-0.04599521681666374,
-0.051213011145591736,
-0.022229235619306564,
0.03246826305985451,
-0.024713048711419106,
0.018262282013893127,
0.044029608368873596,
0.01571592688560486,
0.004395813215523958,
0.03902624547481537,
-0.0059236264787614346,
-0.025427814573049545,
-0.010230094194412231,
-0.035005684942007065,
0.014697384089231491,
0.008545925840735435,
0.0375252366065979,
0.028715740889310837,
0.07626557350158691,
-0.003835168434306979,
0.012329719960689545,
0.06622310727834702,
-0.016734467819333076,
-0.07397831976413727,
0.03345106914639473,
0.029090993106365204,
0.05675245076417923,
-0.08956023305654526,
0.034290917217731476,
-0.005722598638385534,
-0.033183030784130096,
-0.0344696082174778,
-0.006826018914580345,
-0.028304750099778175,
0.03395140543580055,
-0.04327910393476486,
0.03246826305985451,
-0.004482925403863192,
0.05407207831740379,
0.03304007649421692,
-0.020138543099164963,
0.008612935431301594,
0.014893944375216961,
-0.011355850845575333,
0.04263581708073616,
-0.05993316322565079,
0.01906639337539673,
-0.06918938457965851,
0.04413682594895363,
-0.027893759310245514,
0.01931656152009964,
0.025016823783516884,
-0.0482109934091568,
-0.07998236268758774,
-0.05307140573859215,
-0.01611798256635666,
-0.05514422804117203,
-0.030395440757274628,
-0.05042677000164986,
0.048425424844026566,
0.07354946434497833,
0.0014172476949170232,
0.028519179672002792,
-0.0005173680256120861,
0.016984635964035988,
0.08391357213258743,
-0.004063000436872244,
-0.01122183259576559,
0.005633252672851086,
-0.030860038474202156,
0.019745422527194023,
-0.025928150862455368,
-0.016698729246854782,
-0.021103477105498314,
-0.05085562914609909,
0.0037234860938042402,
0.0360778346657753,
0.007634598761796951,
-0.00568686006590724,
0.020728224888443947,
0.055751778185367584,
-0.022961869835853577,
0.018780486658215523,
0.005744935013353825,
0.017913833260536194,
0.0404200404882431,
-0.015858879312872887,
0.012356524355709553,
0.01225824374705553,
-0.010516000911593437,
0.021371515467762947,
-0.10578542947769165,
0.08941727876663208,
-0.027429159730672836,
0.025803066790103912,
-0.026642916724085808,
0.05003364756703377,
0.037632450461387634,
0.047210320830345154,
-0.018709009513258934,
-0.0178780946880579,
0.010319439694285393,
0.03486273065209389,
-0.03216448798775673,
-0.01811932772397995,
-0.011445197276771069,
0.035398807376623154,
-0.026607180014252663,
0.038919031620025635,
0.018977047875523567,
0.018887702375650406,
-0.015555103309452534,
-0.022372188046574593,
-0.005972766783088446,
-0.02739342302083969,
-0.00941704772412777,
-0.007451439741998911,
0.003549261949956417,
0.004398046992719173,
-0.006164859980344772,
-0.029966581612825394,
0.003995990846306086,
-0.009408112615346909,
0.04731753468513489,
0.010230094194412231,
0.12236800789833069,
-0.012320785783231258,
-0.024570094421505928,
0.03439813107252121,
0.0925622507929802,
0.04406534880399704,
-0.05961151793599129,
0.04142071306705475,
0.029752152040600777,
0.01851245015859604,
0.04592373967170715,
0.06314960867166519,
0.008170673623681068,
-0.026357010006904602,
-0.03250400349497795,
-0.017288412898778915,
0.05085562914609909,
0.0171543937176466,
0.00704491650685668,
-0.004279663786292076,
-0.008912243880331516,
0.062077462673187256,
-0.0014172476949170232,
0.0009247290436178446,
-0.0000804810188128613,
-0.04581652581691742,
-0.027161123231053352,
0.027357684448361397,
0.0018896636320278049,
-0.06865331530570984,
-0.07204845547676086,
0.0047219255939126015,
0.021603815257549286,
-0.013053420931100845,
-0.029573459178209305,
0.012624561786651611,
0.07526490092277527,
0.023086953908205032,
-0.047782134264707565,
0.025749459862709045,
0.008653140626847744,
0.0351128987967968,
0.03999118134379387,
-0.010721496306359768,
-0.013803926296532154,
-0.039490845054388046,
0.001629444072023034,
0.017127590253949165,
-0.009046262130141258,
-0.028000973165035248,
0.019209347665309906,
-0.03009166568517685,
0.02753637544810772,
0.07705181837081909,
-0.010087140835821629,
-0.05660950019955635,
0.03287925571203232,
0.007080654613673687,
0.020728224888443947,
-0.036042094230651855,
-0.0009085350902751088,
0.03781114146113396,
-0.023819589987397194,
-0.008251084946095943,
-0.0093008978292346,
0.030306095257401466,
-0.06818871200084686,
-0.06457914412021637,
0.006124654784798622,
-0.009729757905006409,
-0.05071267485618591,
-0.03066347911953926,
0.011337981559336185,
-0.025963889434933662,
0.026446357369422913,
-0.023497944697737694,
0.013124898076057434,
-0.032932862639427185,
-0.04556635767221451,
-0.018726879730820656,
-0.02276531048119068,
0.011927664279937744,
-0.0233013853430748,
0.058146245777606964,
0.02331925369799137,
0.049783479422330856,
0.005731532815843821,
0.06257779896259308,
-0.032361049205064774,
0.017342019826173782,
-0.006946635898202658,
0.02610684186220169,
-0.024302057921886444,
-0.0007281682919710875,
-0.020138543099164963,
-0.027250468730926514,
0.017261607572436333,
-0.0404200404882431,
-0.011078879237174988,
-0.008429775945842266,
0.003562663681805134,
-0.012159963138401508,
0.04367222636938095,
0.016475364565849304,
0.00620506564155221,
-0.007648000493645668,
0.011748972348868847,
-0.028876561671495438,
0.006062112282961607,
-0.011025271378457546,
0.03991970419883728,
0.022175626829266548,
-0.047067366540431976,
0.037882618606090546,
0.0014127804897725582,
-0.036042094230651855,
0.02435566484928131,
-0.00993525329977274,
0.02019215002655983,
0.011838318780064583,
0.018798356875777245,
0.03218235820531845,
-0.002163285156711936,
-0.06232763081789017,
0.014911813661456108,
-0.009229420684278011,
0.0341479629278183,
-0.024570094421505928,
-0.00898818764835596,
0.0018282383680343628,
0.06572277098894119,
-0.028233272954821587,
0.0795534998178482,
0.006053178105503321,
0.014259589836001396,
-0.051606133580207825,
-0.052642546594142914,
0.003299093572422862,
0.009792299941182137,
-0.014045159332454205,
-0.011588150635361671,
-0.06347125768661499,
0.05828920006752014,
-0.04109906777739525,
0.015117309056222439,
0.011409458704292774,
-0.01101633720099926,
-0.02921607717871666,
0.023765983060002327,
0.046030957251787186,
0.038597386330366135,
-0.03153906762599945,
0.01580527238547802,
0.04663850739598274,
0.03791835904121399,
0.05514422804117203,
0.07769510895013809,
-0.03920493647456169,
-0.02106774039566517,
0.03713211417198181,
-0.047389011830091476,
-0.055215705186128616,
-0.03450534865260124,
0.03952658176422119,
-0.0203708428889513,
-0.021282169967889786,
0.027161123231053352,
0.035237982869148254,
0.004739794880151749,
0.06379289925098419,
0.004116607829928398,
0.006964505184441805,
0.01273177657276392,
0.04549488052725792,
-0.008845234289765358,
-0.00553050497546792,
-0.0756937637925148,
-0.025892412289977074,
0.026928823441267014,
-0.04906871169805527,
-0.036667514592409134,
0.02825114130973816,
0.00704491650685668,
0.010998467914760113,
-0.015608711168169975,
0.008956916630268097,
0.008487851358950138,
-0.07287043333053589,
0.03781114146113396,
0.008501253090798855,
-0.007116392720490694,
-0.038597386330366135,
0.03748949617147446,
-0.040991853922605515,
-0.03927641361951828,
0.08620082587003708,
-0.03214661777019501,
-0.05435798317193985,
0.026964562013745308,
-0.08241256326436996,
0.07301338762044907,
-0.02053166553378105,
-0.0020069300662726164,
0.012401197105646133,
0.026142580434679985,
-0.03734654560685158,
0.0005969416233710945,
-0.0036363741382956505,
-0.041956786066293716,
-0.009238355793058872,
-0.001660715090110898,
-0.010953795164823532,
-0.030002320185303688,
-0.035577498376369476,
-0.012838991358876228,
-0.01636815071105957,
-0.06586572527885437,
-0.05585899204015732,
0.027875889092683792,
-0.011802580207586288,
0.06772411614656448,
0.003495654324069619,
-0.06332830339670181,
0.04974774271249771,
-0.02435566484928131,
0.030931515619158745,
0.07783806324005127,
-0.05460815131664276,
0.0449945442378521,
-0.018146131187677383,
-0.07998236268758774,
0.047210320830345154,
-0.006410561036318541,
0.024927478283643723,
0.0032499535009264946,
-0.03877607733011246,
-0.0378468818962574,
0.008362767286598682,
0.0032856918405741453,
-0.03178923577070236,
-0.06036202237010002,
0.023247776553034782,
0.009836972691118717,
0.03813278675079346,
0.059361349791288376,
-0.025999628007411957,
-0.08462834358215332,
-0.07076187431812286,
0.011150355450809002,
-0.022229235619306564,
-0.032521869987249374,
-0.017833421006798744,
0.018476711586117744,
-0.00006299577216850594,
-0.01979902945458889,
-0.0181997399777174,
0.03586340323090553,
0.007455906830728054,
-0.03304007649421692,
0.009890579618513584,
0.0068930285051465034,
-0.01464377623051405,
0.015224523842334747,
0.0034130094572901726,
0.013107028789818287,
-0.021425122395157814,
0.02090691775083542,
-0.03152119740843773,
0.0021297805942595005,
0.02689308486878872,
0.0410633310675621,
0.009694019332528114,
0.018494579941034317,
0.004659383557736874,
-0.05950430408120155,
-0.022926131263375282,
0.020245758816599846,
-0.012767515145242214,
0.008398504927754402,
0.02553503029048443,
-0.023730244487524033,
-0.011409458704292774,
0.031646281480789185,
0.010444523766636848,
0.016412822529673576,
0.02339073084294796,
0.04227843135595322,
-0.009064131416380405,
-0.013696711510419846,
0.02028149738907814,
0.0019912945572286844,
-0.025731589645147324,
0.000622070103418082,
0.05135596543550491,
-0.025517160072922707,
0.034684039652347565,
0.0391334593296051,
-0.023426469415426254,
-0.03727506846189499,
0.0011101216077804565,
0.03759671375155449,
0.08419948071241379,
0.041885312646627426,
-0.06347125768661499,
0.047138843685388565,
0.06186303123831749,
0.0397767499089241,
0.021585945039987564,
-0.02449861913919449,
-0.018887702375650406,
-0.010105010122060776,
-0.012946206144988537,
-0.01956672966480255,
-0.0009800117695704103,
0.0404200404882431,
0.012678168714046478,
0.0360778346657753,
-0.0014708552043884993,
-0.034451741725206375,
-0.029591329395771027,
0.01376818772405386,
-0.009542131796479225,
-0.007393364794552326,
0.028358357027173042,
-0.04006265476346016,
0.020656749606132507,
0.03080643154680729,
-0.048425424844026566,
-0.0030489254277199507,
0.01708291657269001,
-0.019441645592451096,
0.00981910340487957,
0.04109906777739525,
-0.05074841529130936,
0.006843888200819492,
0.012142093852162361,
-0.014929682947695255,
0.02172889932990074,
0.0175564493983984,
0.022139888256788254,
0.03246826305985451,
-0.0008711215341463685,
0.061755817383527756,
-0.10142534971237183,
0.0688677430152893,
-0.03791835904121399,
0.010935925878584385,
0.034362394362688065,
-0.02746489830315113,
-0.015188786201179028,
0.05006938427686691,
0.04252859950065613,
0.014304262585937977,
0.05864658206701279,
0.02219349704682827,
-0.057931818068027496,
-0.02171102911233902,
0.004375710617750883,
-0.06429323554039001,
-0.008898841217160225,
-0.040348563343286514,
0.002615598263218999,
-0.030860038474202156,
0.013428674079477787,
-0.01117715984582901,
0.0721556693315506,
-0.0034777852706611156,
0.0024748786818236113,
-0.01065895427018404,
-0.029090993106365204,
-0.012472673319280148,
0.011713234707713127,
-0.005883420817553997,
-0.024641571566462517,
-0.016189459711313248,
-0.020871179178357124,
0.015769533812999725,
-0.0067009348422288895,
0.03902624547481537,
0.0015858879778534174,
-0.10121092200279236,
-0.010426654480397701,
0.005338411312550306,
0.02746489830315113,
-0.05635933205485344,
0.0040116263553500175,
-0.04524471238255501,
-0.08184075355529785,
-0.02163955196738243,
0.003287925384938717,
0.005749402102082968,
-0.008630803786218166,
0.05707409605383873,
0.03654243052005768,
0.02171102911233902,
0.05961151793599129,
-0.0014261823380365968,
0.03791835904121399,
0.046424075961112976,
-0.02163955196738243,
-0.00866207480430603,
-0.013258916325867176,
0.033075813204050064,
0.004536532796919346,
-0.02019215002655983,
-0.04077742248773575,
-0.053285833448171616,
0.05031955614686012,
0.03450534865260124,
0.013553758151829243,
-0.02290826290845871,
-0.027607852593064308,
0.0404200404882431,
0.016332412138581276,
0.029895104467868805,
0.016394954174757004,
0.0015624347142875195,
0.06593719869852066,
0.027572114020586014,
0.05221368372440338,
0.005141850560903549,
0.0640430673956871,
-0.044815853238105774,
-0.0360778346657753,
0.07051170617341995,
-0.024319926276803017,
-0.01412557065486908,
-0.004496327135711908,
0.01827121526002884,
-0.04813951626420021,
-0.05378616973757744,
0.030234618112444878,
0.04931887984275818,
-0.0769803375005722,
0.001390443998388946,
0.025517160072922707,
-0.015617645345628262,
-0.015787402167916298,
-0.04613817110657692,
-0.038919031620025635,
0.046424075961112976,
-0.03770392760634422,
0.062148939818143845,
-0.013946879655122757,
-0.024212712422013283,
-0.029716413468122482,
-0.06261353939771652,
-0.009872711263597012,
-0.016234131529927254,
0.03216448798775673,
-0.004842542111873627,
0.04360074922442436,
0.028858693316578865,
-0.010962729342281818,
0.0666162297129631,
0.05821772292256355,
-0.0028032243717461824,
0.05214221030473709,
0.04699588939547539,
0.07426422834396362,
-0.04142071306705475,
0.045780789107084274,
0.025016823783516884,
-0.07576523721218109,
0.01693102903664112,
-0.009001589380204678,
0.03409435600042343,
-0.006794747896492481,
-0.0038485703989863396,
-0.04227843135595322,
0.031574804335832596,
-0.02539207600057125,
0.025284862145781517,
-0.003075729124248028,
-0.015072636306285858,
0.028394095599651337,
-0.0330222062766552,
-0.04342205822467804,
0.07483603805303574,
0.014974355697631836,
-0.005186523776501417,
-0.07555080950260162,
-0.038275741040706635,
0.02801884338259697,
-0.047389011830091476,
0.032682694494724274,
0.06189877167344093,
-0.011865122243762016,
0.027161123231053352,
0.025928150862455368,
-0.006196130998432636,
-0.05117727443575859,
0.005199925508350134,
-0.017520710825920105,
-0.03502355515956879,
0.04438699409365654,
-0.031163815408945084,
0.005374149885028601,
0.01200807560235262,
-0.05071267485618591,
-0.05628785490989685,
-0.08598639816045761,
0.05614490061998367,
-0.04127775877714157,
-0.018235478550195694,
0.013750318437814713,
-0.012070617638528347,
-0.061505649238824844,
-0.01408983301371336,
0.00688409386202693,
-0.027589982375502586,
-0.03257547691464424,
0.03777540475130081,
0.008720150217413902,
-0.013232112862169743,
-0.0051284488290548325,
0.029162468388676643,
0.037560973316431046,
-0.02026362717151642,
-0.009283028542995453,
0.005043570417910814,
-0.0341479629278183,
-0.0005575736286118627,
-0.042421385645866394,
-0.027589982375502586,
-0.023212037980556488,
-0.04381518065929413,
0.0372035913169384,
-0.04302893579006195,
-0.010524935089051723,
0.00041350352694280446,
-0.0258745439350605,
-0.013267851434648037,
-0.024873871356248856
] |
20,929 | pproxy.server | compile_rule | null | def compile_rule(filename):
if filename.startswith("{") and filename.endswith("}"):
return re.compile(filename[1:-1]).match
with open(filename) as f:
return re.compile('(:?'+''.join('|'.join(i.strip() for i in f if i.strip() and not i.startswith('#')))+')$').match
| (filename) | [
-0.027866706252098083,
0.012681015767157078,
0.05184503644704819,
0.0023952056653797626,
-0.01475656870752573,
-0.051459699869155884,
0.05114442855119705,
-0.01545717753469944,
0.03762268275022507,
-0.04298233613371849,
0.024433724582195282,
0.06266944110393524,
-0.02252456732094288,
0.009843550622463226,
0.03874365612864494,
-0.03296363353729248,
0.05009351298213005,
0.06095294654369354,
-0.03434733673930168,
0.00952827651053667,
-0.00556983845308423,
0.022874871268868446,
0.0064105684868991375,
0.03811310604214668,
0.008608727715909481,
0.05555826053023338,
0.0063930535688996315,
0.003695710329338908,
-0.004394129384309053,
-0.04645035043358803,
-0.030423928052186966,
0.011113404296338558,
0.006931646261364222,
0.03566097840666771,
0.010798130184412003,
-0.04053020849823952,
-0.015842512249946594,
0.014248627237975597,
-0.06372035294771194,
-0.03961941599845886,
0.07678670436143875,
0.08014962077140808,
0.0038161275442689657,
0.004361288622021675,
-0.042386818677186966,
-0.016998516395688057,
-0.013583049178123474,
-0.012864924967288971,
-0.0009222855442203581,
-0.013653109781444073,
0.01325901784002781,
-0.003693521022796631,
-0.031387265771627426,
-0.004394129384309053,
0.005709960125386715,
-0.01013255212455988,
-0.03615140542387962,
0.0755956694483757,
0.06421077996492386,
-0.00525018572807312,
-0.03058156557381153,
-0.034610066562891006,
-0.0011527200695127249,
-0.06449101865291595,
0.013013804331421852,
-0.027078522369265556,
0.03124714270234108,
-0.01853109709918499,
-0.015159418806433678,
-0.030879324302077293,
0.028689922764897346,
-0.009440700523555279,
0.05867597088217735,
-0.06561199575662613,
0.02637791447341442,
-0.05839572846889496,
-0.027971798554062843,
-0.04662550240755081,
0.030966900289058685,
-0.001431868877261877,
-0.02035268023610115,
-0.0124883484095335,
0.06046252325177193,
-0.014572658576071262,
0.016411757096648216,
-0.0039825220592319965,
0.06480629742145538,
-0.01727875880897045,
-0.1300329566001892,
-0.01786551997065544,
0.01681460626423359,
0.026237791404128075,
-0.01679709181189537,
-0.0142748998478055,
-0.023768147453665733,
0.014143535867333412,
0.06932522356510162,
0.02888258919119835,
0.002857169369235635,
-0.004223356023430824,
0.01886388659477234,
0.04406828060746193,
-0.021911533549427986,
-0.021736381575465202,
0.03695710375905037,
0.03800801560282707,
-0.0038993246853351593,
0.012724803760647774,
-0.06126822158694267,
-0.017856761813163757,
-0.009353124536573887,
-0.0882766842842102,
0.03783286362886429,
-0.02823452651500702,
0.07209262251853943,
-0.006428083870559931,
-0.03762268275022507,
-0.025940032675862312,
-0.042071547359228134,
0.004019741900265217,
0.04511919245123863,
-0.025694821029901505,
-0.055523231625556946,
0.00964212603867054,
0.002885631751269102,
-0.03741249814629555,
-0.05352649837732315,
-0.04354282468557358,
0.10908475518226624,
-0.0015927898930385709,
-0.011551284231245518,
0.04252694174647331,
-0.005539186764508486,
-0.053071100264787674,
-0.044663798063993454,
-0.0018982114270329475,
0.02317262999713421,
-0.014134778641164303,
0.004387561231851578,
0.009931126609444618,
0.07335372269153595,
0.03713225573301315,
-0.036781951785087585,
-0.05737984552979469,
-0.02424105815589428,
-0.03566097840666771,
-0.02767403982579708,
0.00943194329738617,
0.01755024492740631,
0.032035328447818756,
0.014038444496691227,
-0.05072406306862831,
0.0193017665296793,
0.047781504690647125,
0.07156717032194138,
0.004479516297578812,
0.024976696819067,
-0.023295236751437187,
-0.018916431814432144,
-0.04333264008164406,
0.03306872770190239,
0.03277096897363663,
-0.09850557148456573,
0.000009724023584567476,
0.03448745980858803,
-0.03112453781068325,
-0.03149235621094704,
-0.0004904260276816785,
-0.028830043971538544,
-0.023435357958078384,
-0.016989758238196373,
-0.01819830760359764,
-0.02112334966659546,
0.09023838490247726,
0.05492771416902542,
-0.011603830382227898,
-0.01767285168170929,
0.07566572725772858,
-0.0028111920692026615,
0.044768888503313065,
-0.00659885723143816,
0.005429716780781746,
0.04364791512489319,
0.01725248619914055,
0.04862223565578461,
0.03511800616979599,
0.01937182806432247,
0.0004515641485340893,
0.048412054777145386,
-0.042702093720436096,
0.023733116686344147,
-0.02336529642343521,
-0.010097521357238293,
0.004324068780988455,
-0.03392697125673294,
-0.08449339866638184,
0.020230073481798172,
0.10053733736276627,
-0.017199940979480743,
-0.05871099978685379,
-0.049077633768320084,
0.021298501640558243,
-0.031194597482681274,
0.005530429072678089,
-0.03186017647385597,
-0.00713744992390275,
0.016534363850951195,
0.03439988195896149,
-0.012689772993326187,
0.07041116058826447,
0.015930088236927986,
-0.028637375682592392,
-0.0020755529403686523,
0.048867449164390564,
0.003041079267859459,
0.005534808151423931,
-0.0400397814810276,
0.0577651783823967,
-0.0294080451130867,
0.030879324302077293,
0.005355277098715305,
0.03650170937180519,
0.023190144449472427,
0.028830043971538544,
0.0338919423520565,
-0.015693632885813713,
0.06795903295278549,
0.07167226076126099,
-0.007667285390198231,
-0.004396318923681974,
0.0206854697316885,
-0.0840730294585228,
0.04750126227736473,
0.030406413599848747,
0.014905448071658611,
-0.0215437151491642,
0.0174451544880867,
0.025467121973633766,
0.002555032027885318,
0.025029242038726807,
-0.022331899031996727,
0.017375092953443527,
0.020089952275156975,
-0.008556182496249676,
0.024363664910197258,
0.009869823232293129,
-0.01212052907794714,
0.031194597482681274,
-0.044873978942632675,
0.050373759120702744,
-0.02336529642343521,
0.03567849472165108,
0.039479292929172516,
0.053491465747356415,
-0.06000712513923645,
-0.006550690624862909,
-0.06704824417829514,
-0.0896078422665596,
0.029915986582636833,
0.03164999186992645,
0.03326139226555824,
0.05464747175574303,
0.05443728715181351,
-0.052930980920791626,
0.011919103562831879,
-0.020089952275156975,
-0.041721243411302567,
0.05482262372970581,
-0.03986462950706482,
-0.0049392906948924065,
0.028164464980363846,
-0.028952650725841522,
0.03681698068976402,
0.038498442620038986,
-0.06799406558275223,
-0.014064718037843704,
0.025379545986652374,
0.04634525999426842,
0.015001781284809113,
-0.006467493250966072,
-0.015159418806433678,
0.05202018842101097,
-0.005035624373704195,
-0.0008609822834841907,
0.014957993291318417,
0.014747810550034046,
0.02122844010591507,
-0.010193855501711369,
-0.054997775703668594,
0.042491912841796875,
-0.009572065435349941,
-0.0386035330593586,
0.0430874302983284,
-0.04231676086783409,
0.008560561574995518,
0.012243134900927544,
0.03986462950706482,
-0.0622490756213665,
-0.010272673331201077,
-0.009291821159422398,
-0.03275345265865326,
0.017637820914387703,
0.051319580525159836,
-0.013942111283540726,
-0.08120054006576538,
0.03674691915512085,
-0.0933210626244545,
-0.03499539941549301,
-0.0014417211059480906,
-0.013758201152086258,
0.052300430834293365,
0.006204764824360609,
-0.03219296410679817,
-0.021403592079877853,
0.03427727520465851,
0.020089952275156975,
-0.031842660158872604,
-0.02196407876908779,
0.07769749313592911,
-0.028900105506181717,
0.038813717663288116,
0.004361288622021675,
0.03961941599845886,
-0.019529465585947037,
-0.0064368415623903275,
-0.037237346172332764,
-0.0032403147779405117,
-0.043157488107681274,
0.0012348226737231016,
-0.0005944226286374032,
0.015133146196603775,
-0.013775716535747051,
-0.009353124536573887,
-0.011507496237754822,
-0.03944426402449608,
-0.018478551879525185,
0.027183612808585167,
-0.0033038074616342783,
-0.030966900289058685,
-0.002535327337682247,
0.06736351549625397,
-0.019476918503642082,
0.015334570780396461,
-0.02574736624956131,
-0.03471515700221062,
-0.011043342761695385,
-0.06736351549625397,
-0.01595636084675789,
-0.03748255968093872,
-0.061233192682266235,
0.038078077137470245,
-0.04452367499470711,
0.004043825436383486,
0.01706857606768608,
0.02616773173213005,
0.005836945492774248,
-0.0325082391500473,
-0.0031133294105529785,
0.003437360981479287,
0.009782247245311737,
0.044208403676748276,
0.026675673201680183,
-0.05461243912577629,
-0.05223036929965019,
0.046590473502874374,
0.02509930357336998,
0.026202762499451637,
-0.02756894752383232,
-0.01335535105317831,
-0.03163247928023338,
-0.03772777318954468,
0.06116313114762306,
0.017480185255408287,
-0.06305477023124695,
-0.01178773958235979,
-0.06025233864784241,
0.028847558423876762,
-0.028900105506181717,
0.0072775715962052345,
0.020212557166814804,
-0.023120082914829254,
0.07002583146095276,
0.011052100919187069,
-0.014572658576071262,
-0.06508653610944748,
-0.01896897703409195,
-0.0601472482085228,
-0.016656968742609024,
-0.021473653614521027,
0.02802434377372265,
0.06368532031774521,
-0.012199346907436848,
-0.005464747082442045,
-0.04715095832943916,
-0.024188511073589325,
0.003154928097501397,
-0.005276458337903023,
0.021053288131952286,
-0.053911831229925156,
0.006191628519445658,
-0.06172361597418785,
-0.03256078436970711,
0.01625411957502365,
0.0307917483150959,
0.0030936249531805515,
0.0034986641258001328,
0.08134065568447113,
0.06196882948279381,
-0.011095888912677765,
0.008740092627704144,
-0.03189520537853241,
-0.002769593382254243,
-0.008827668614685535,
-0.046695563942193985,
-0.006791524589061737,
0.004663425963371992,
0.060917917639017105,
-0.052615705877542496,
-0.004996214993298054,
-0.01696348562836647,
-0.008888971991837025,
-0.05051387846469879,
0.01970461755990982,
0.027096036821603775,
0.0006809039623476565,
0.0022003487683832645,
0.03639661520719528,
-0.034645095467567444,
0.010666766203939915,
-0.0006540837930515409,
-0.1025690957903862,
-0.022542081773281097,
0.048096779733896255,
-0.029565682634711266,
0.01405595988035202,
-0.0512845478951931,
0.019354311749339104,
-0.011095888912677765,
0.05082915350794792,
-0.013477957807481289,
-0.016578150913119316,
0.029915986582636833,
-0.016762061044573784,
0.013801989145576954,
-0.05839572846889496,
-0.015676116570830345,
-0.006804660893976688,
-0.017243729904294014,
-0.074544757604599,
-0.046800654381513596,
-0.041300877928733826,
0.02823452651500702,
-0.009072881191968918,
-0.01895146258175373,
0.050794124603271484,
0.004921775311231613,
-0.055207956582307816,
0.010666766203939915,
0.011113404296338558,
-0.012321953661739826,
0.045399438589811325,
0.05443728715181351,
0.06326495856046677,
-0.016175301745533943,
-0.0540519542992115,
-0.034329820424318314,
-0.01346920058131218,
0.0708315297961235,
-0.015930088236927986,
-0.029968533664941788,
-0.025694821029901505,
-0.035170551389455795,
-0.03587115928530693,
-0.018898917362093925,
-0.009703429415822029,
0.04813181236386299,
0.016893424093723297,
0.04984830319881439,
0.038533471524715424,
0.04049517586827278,
-0.03394448757171631,
-0.03124714270234108,
-0.07832804322242737,
0.010439068078994751,
0.046905744820833206,
0.03674691915512085,
-0.019757162779569626,
-0.05356152728199959,
-0.08547425270080566,
-0.024398693814873695,
0.0009250222938135266,
0.04382306709885597,
0.016884667798876762,
-0.0038489685393869877,
0.025046756491065025,
0.006839691661298275,
0.029653258621692657,
0.05363158881664276,
0.007951907813549042,
-0.0054822624661028385,
0.016017664223909378,
-0.07041116058826447,
-0.03478521853685379,
0.03863856568932533,
-0.02156122960150242,
0.025589728727936745,
-0.02368057146668434,
-0.019984859973192215,
-0.0043503413908183575,
-0.014029687270522118,
0.026097670197486877,
0.01454638596624136,
-0.003154928097501397,
0.0734938383102417,
0.027814161032438278,
0.05356152728199959,
0.021929049864411354,
0.005907006096094847,
-0.04049517586827278,
0.03147483989596367,
-0.016455544158816338,
-0.07916877418756485,
0.0224019605666399,
-0.0015741799725219607,
0.003625649493187666,
0.0141085060313344,
0.013048835098743439,
-0.008245287463068962,
0.01475656870752573,
-0.045609619468450546,
0.043893128633499146,
-0.02177141234278679,
-0.02777913026511669,
-0.05534807965159416,
-0.04200148582458496,
0.014852901920676231,
0.004074476659297943,
-0.02974083460867405,
-0.06620751321315765,
-0.024311117827892303,
0.019529465585947037,
0.03499539941549301,
0.060042157769203186,
-0.004948048386722803,
-0.05829063430428505,
0.04511919245123863,
-0.03804304823279381,
-0.035398248583078384,
-0.01872376538813114,
-0.009747217409312725,
0.0048736087046563625,
0.052195340394973755,
-0.05138964205980301,
-0.03996971994638443,
0.04631022736430168,
-0.026868339627981186,
0.012593439780175686,
-0.013828262686729431,
-0.05205521732568741,
0.00103011354804039,
0.018250854685902596,
0.007951907813549042,
-0.003559967502951622,
-0.01340789720416069,
-0.07650645822286606,
-0.019546980038285255,
0.01895146258175373,
-0.002215674612671137,
-0.00621790112927556,
0.04074038937687874,
-0.027621494606137276,
0.03933917358517647,
0.08232150971889496,
0.0176115483045578,
-0.026150215417146683,
0.006156598217785358,
0.050899215042591095,
0.011043342761695385,
0.008547425270080566,
-0.015255752019584179,
0.04364791512489319,
-0.005701202433556318,
-0.011831527575850487,
0.025922518223524094,
-0.029232893139123917,
-0.013854535296559334,
-0.0124883484095335,
0.04063529893755913,
0.021263470873236656,
-0.02919786423444748,
0.03101944550871849,
0.012365741655230522,
-0.008985305204987526,
-0.01184028573334217,
-0.010167581960558891,
0.040004752576351166,
0.010535402223467827,
0.05254564434289932,
0.01637672632932663,
0.05587353557348251,
-0.00646311417222023,
-0.018285883590579033,
0.014239870011806488,
0.019441887736320496,
0.014362475834786892,
0.0002037512167589739,
0.04753629490733147,
-0.020615408197045326,
-0.049708180129528046,
-0.014143535867333412,
-0.006226658821105957,
0.005298352334648371,
-0.0024477513507008553,
-0.06981565058231354,
0.015868784859776497,
0.05958675965666771,
-0.008407303132116795,
0.035625945776700974,
-0.04914769157767296,
-0.04266706481575966,
0.006581341847777367,
0.024276087060570717,
-0.0017296274891123176,
0.028181981295347214,
0.09135936200618744,
0.06407065689563751,
0.04119578376412392,
-0.016998516395688057,
-0.05345643684267998,
0.02059789188206196,
-0.013714413158595562,
0.03758765012025833,
-0.011682648211717606,
-0.013075107708573341,
0.034837763756513596,
0.00440288707613945,
0.04084547981619835,
0.009808520786464214,
-0.026202762499451637,
-0.029898472130298615,
-0.026903370395302773,
-0.09458216279745102,
-0.015387116000056267,
-0.014082232490181923,
-0.013749443925917149,
0.005963930860161781,
-0.005893869791179895,
-0.05429716780781746,
0.05440225824713707,
-0.03264836221933365,
0.052615705877542496,
0.022699719294905663,
-0.003724172478541732,
0.04277215525507927,
0.07986938208341599,
0.05156479403376579,
-0.009230518713593483,
-0.011017070151865482,
0.034942854195833206,
-0.0045889862813055515,
-0.004965563304722309,
-0.009826035238802433,
0.002000018721446395,
0.017602790147066116,
-0.05555826053023338,
-0.03706219419836998,
0.09563307464122772,
-0.10908475518226624,
-0.06238919496536255,
0.06449101865291595,
-0.011814012192189693,
0.039269112050533295,
-0.029758350923657417,
0.004532061982899904,
0.049708180129528046,
-0.028269557282328606,
0.004602122586220503,
-0.010325219482183456,
0.040775422006845474,
-0.023032506927847862,
0.009502003900706768,
-0.03017871454358101,
0.036781951785087585,
-0.005753748118877411,
0.019091583788394928,
0.04683568328619003,
0.010570432059466839,
-0.01669199950993061,
0.05482262372970581,
-0.0022813568357378244,
-0.059726882725954056,
0.07009588927030563,
0.0013826072681695223,
0.020072435960173607,
-0.08631497621536255,
0.04252694174647331,
0.002574736485257745,
0.02551966905593872,
-0.004987457301467657,
-0.020545346662402153,
-0.026990946382284164,
0.01725248619914055,
0.05464747175574303,
-0.03762268275022507,
-0.020230073481798172,
-0.01842600665986538,
0.02059789188206196,
-0.023400327190756798,
-0.03445242717862129,
-0.0002802434319164604,
-0.03930414095520973,
-0.0026053881738334894,
0.0009868729393929243,
0.02651803568005562,
0.023295236751437187,
-0.07496511936187744,
-0.04792162775993347,
-0.015763692557811737,
0.042386818677186966,
-0.04844708368182182,
0.03347157686948776,
0.041370939463377,
-0.016157785430550575,
0.028164464980363846,
0.011279798112809658,
0.011595072224736214,
-0.005613626446574926,
-0.029548168182373047,
0.0008062472334131598,
-0.009878581389784813,
0.03149235621094704,
0.03175508603453636,
-0.009966157376766205,
0.01872376538813114,
0.004324068780988455,
0.01546593476086855,
-0.005674929823726416,
-0.0564340241253376,
0.004348152317106724,
-0.015571026131510735,
-0.02306753769516945,
0.015597298741340637,
-0.02812943607568741,
0.018461037427186966,
-0.0008631717064417899,
0.04781653732061386,
0.01643802970647812,
0.04406828060746193,
0.008779501542448997,
0.027428826317191124,
-0.037657711654901505,
0.000520530273206532,
-0.011673890985548496,
0.018811341375112534,
-0.012243134900927544,
-0.0396544449031353,
0.000047482652007602155,
-0.0051757460460066795,
-0.016297906637191772,
-0.024626392871141434,
0.0015325812855735421,
0.013907080516219139,
0.01717366836965084,
0.006458735559135675,
-0.01750645786523819,
-0.05415704473853111,
0.026097670197486877,
0.004514546599239111
] |
20,934 | qt_api | example_function | null | def example_function():
return 1 + 1
| () | [
-0.005788065027445555,
-0.024176841601729393,
0.00810990110039711,
0.04537908732891083,
0.009403022937476635,
0.01940096542239189,
-0.0737038403749466,
-0.01322868186980486,
-0.009799635969102383,
-0.07264620065689087,
0.013757498934864998,
0.008345389738678932,
0.019450541585683823,
0.014435045421123505,
-0.026688721030950546,
-0.014806869439780712,
0.02710185945034027,
0.014468096196651459,
-0.013055164366960526,
-0.003860775614157319,
-0.028291696682572365,
0.05648424103856087,
0.06986991316080093,
0.022408610209822655,
-0.016285903751850128,
0.032142143696546555,
0.03982651233673096,
-0.04782486706972122,
0.03134891763329506,
-0.01958274655044079,
-0.01454246137291193,
-0.09009715914726257,
-0.061607152223587036,
0.0344061404466629,
0.019367914646863937,
-0.006911800242960453,
-0.04812232777476311,
0.05251811444759369,
-0.08897341787815094,
-0.03343113511800766,
0.010799430310726166,
0.0024623030330985785,
0.01052675861865282,
0.010196248069405556,
-0.04227229207754135,
-0.007903331890702248,
0.007085318211466074,
-0.05641813948750496,
0.02159886062145233,
-0.014872971922159195,
0.06230122596025467,
-0.023879382759332657,
0.03012602962553501,
0.0022268143948167562,
0.019120031967759132,
0.03671971336007118,
0.04458586499094963,
-0.017004763707518578,
0.011790961027145386,
0.01468292810022831,
0.040388379245996475,
-0.004565176088362932,
0.010601123794913292,
0.004664329346269369,
0.025581510737538338,
0.044123150408267975,
-0.015533993020653725,
0.0035757103469222784,
-0.02551540918648243,
0.005474079865962267,
-0.016451159492135048,
0.015955394133925438,
0.0020574277732521296,
-0.037645142525434494,
0.009303869679570198,
0.003687257645651698,
-0.07648012787103653,
0.004693248774856329,
0.033844273537397385,
0.01793019287288189,
-0.03359638899564743,
-0.0351993665099144,
0.022458186373114586,
0.011501764878630638,
0.00646147970110178,
-0.034505292773246765,
-0.0071348948404192924,
-0.03701717406511307,
-0.009386497549712658,
0.08269372582435608,
-0.022722596302628517,
0.02100394107401371,
-0.046767234802246094,
0.013625294901430607,
0.040057871490716934,
-0.020260293036699295,
0.056616444140672684,
-0.04504857957363129,
0.052253708243370056,
-0.015633145347237587,
0.028770936653017998,
0.05790543556213379,
-0.0008247269433923066,
-0.07139026373624802,
0.060450367629528046,
-0.017136968672275543,
-0.013790549710392952,
-0.01840943470597267,
0.017236120998859406,
0.014211950823664665,
-0.07026652991771698,
-0.06934110075235367,
-0.06451564282178879,
-0.05575711652636528,
-0.014484621584415436,
0.0034600317012518644,
0.002869244199246168,
0.011468714103102684,
-0.04650282487273216,
0.01650073565542698,
0.042536698281764984,
-0.009047724306583405,
-0.0258954968303442,
-0.04604011029005051,
0.0845445841550827,
0.04960962384939194,
0.042206186801195145,
0.05129522830247879,
-0.00541624054312706,
-0.01612064801156521,
0.007225785404443741,
-0.010956422425806522,
0.028688309714198112,
0.03453834354877472,
-0.01352614164352417,
0.018392907455563545,
0.05192319676280022,
0.05139438062906265,
0.018706893548369408,
0.0393637977540493,
-0.027895085513591766,
0.009642642922699451,
0.029018819332122803,
0.011196042411029339,
0.03239002823829651,
-0.014509409666061401,
-0.020524701103568077,
0.062102917581796646,
-0.03833921626210213,
0.013129528611898422,
0.06520971655845642,
0.051824044436216354,
0.035827334970235825,
0.02710185945034027,
0.017054341733455658,
0.03343113511800766,
0.028308222070336342,
-0.060681723058223724,
0.03291884437203407,
-0.05826899781823158,
-0.010791167616844177,
0.02539972960948944,
0.04418925195932388,
-0.035992592573165894,
0.02908492274582386,
0.036653611809015274,
-0.04075194150209427,
0.03638920560479164,
-0.041710421442985535,
-0.0004226919263601303,
-0.012063632719218731,
-0.020111562684178352,
0.010617649182677269,
0.0034641630481928587,
0.061772409826517105,
0.05992155149579048,
-0.03371207043528557,
0.06319360435009003,
0.022243354469537735,
0.02463955618441105,
-0.02490396425127983,
-0.011443925090134144,
-0.06359021365642548,
0.005449291784316301,
0.031150612980127335,
0.022739121690392494,
0.04081804305315018,
-0.0017258843872696161,
0.04141296446323395,
-0.006878749467432499,
0.007465405389666557,
0.01793019287288189,
0.07562080025672913,
0.0325387567281723,
-0.0006212564185261726,
-0.06613514572381973,
-0.0033030391205102205,
-0.0141871627420187,
0.030919255688786507,
-0.017417902126908302,
0.011344771832227707,
0.018706893548369408,
0.02606075070798397,
0.009766584262251854,
0.02617643028497696,
0.0356290303170681,
-0.048353683203458786,
0.0333319827914238,
-0.12460245192050934,
-0.02225988171994686,
-0.02695312909781933,
-0.039562106132507324,
0.016087597236037254,
0.08176829665899277,
-0.006593684200197458,
-0.04789096862077713,
0.027316691353917122,
0.015988444909453392,
0.020111562684178352,
0.016318954527378082,
0.05436897277832031,
-0.048089273273944855,
0.004125183913856745,
-0.07251399755477905,
0.09551753103733063,
-0.009502176195383072,
0.009122089482843876,
-0.0017134902300313115,
-0.032307401299476624,
-0.07727335393428802,
0.024606505408883095,
-0.037479888647794724,
0.018326805904507637,
-0.06620124727487564,
0.037579040974378586,
-0.06914279609918594,
0.02001241035759449,
0.011675282381474972,
0.014963862486183643,
-0.013807075098156929,
-0.04332992434501648,
0.011972742155194283,
0.12076853215694427,
0.027680253610014915,
-0.023879382759332657,
0.020772583782672882,
0.005668254569172859,
0.06071477383375168,
-0.05476558580994606,
0.012757704593241215,
-0.013922753743827343,
-0.03078705072402954,
-0.018293755128979683,
0.01753358170390129,
0.022028524428606033,
0.09247682988643646,
0.034273937344551086,
0.03420783579349518,
0.03731463477015495,
0.027845507487654686,
0.02787855826318264,
-0.032406553626060486,
-0.05469948425889015,
0.004689117427915335,
-0.03929769620299339,
-0.014939073473215103,
-0.03942989930510521,
0.03995871543884277,
0.06121054291725159,
-0.000467878911877051,
0.0451807826757431,
0.040157023817300797,
-0.014145848341286182,
-0.044288404285907745,
-0.044023994356393814,
-0.01776493899524212,
0.04564349725842476,
0.042470596730709076,
-0.00791572593152523,
-0.04451976343989372,
0.02915102429687977,
0.0248543880879879,
-0.041049402207136154,
-0.018459010869264603,
-0.06848177313804626,
-0.008233842439949512,
0.04052058607339859,
0.025118796154856682,
0.019334863871335983,
-0.008275155909359455,
-0.014046695083379745,
0.01819460280239582,
0.01736832596361637,
0.013823600485920906,
0.06468090415000916,
0.01060938648879528,
-0.03817396238446236,
-0.016732092946767807,
0.013162580318748951,
0.02199547179043293,
-0.022673018276691437,
-0.019367914646863937,
-0.016029758378863335,
-0.009113826788961887,
-0.02149970643222332,
0.029068397358059883,
0.028440427035093307,
-0.040718890726566315,
-0.046271465718746185,
-0.02743236906826496,
-0.015856239944696426,
0.015376999974250793,
-0.028291696682572365,
-0.005850035697221756,
0.02116919681429863,
-0.048750296235084534,
0.0012858923291787505,
0.027349742129445076,
0.02849000319838524,
0.030324336141347885,
0.001746541354805231,
0.0021545151248574257,
0.04865114390850067,
0.055129148066043854,
0.012856857851147652,
-0.048750296235084534,
0.022854799404740334,
0.01141087431460619,
0.03095230646431446,
0.0010137376375496387,
-0.044850271195173264,
-0.05020454153418541,
0.016459422186017036,
0.015971919521689415,
-0.035992592573165894,
-0.04118160530924797,
0.006449085660278797,
-0.0034393747337162495,
-0.021962421014904976,
-0.024507353082299232,
0.05433592200279236,
-0.03336503356695175,
-0.020144613459706306,
-0.005912006366997957,
0.059128325432538986,
0.02463955618441105,
0.02645736373960972,
0.010592861101031303,
0.0854039117693901,
-0.04881639778614044,
-0.004449497442692518,
0.03128281608223915,
-0.02797771245241165,
0.03138196840882301,
0.034769702702760696,
0.038240063935518265,
0.021036991849541664,
-0.06755634397268295,
-0.0117083340883255,
-0.02100394107401371,
-0.0034972140565514565,
-0.05288167670369148,
-0.0025862446054816246,
0.050733357667922974,
0.02787855826318264,
0.0033980607986450195,
-0.013129528611898422,
0.0016040087211877108,
0.02523447573184967,
-0.009122089482843876,
-0.0213344506919384,
-0.026159904897212982,
-0.025598036125302315,
0.016360267996788025,
0.02121877297759056,
-0.00825036782771349,
0.01676514372229576,
-0.01338567491620779,
-0.05496389418840408,
0.04141296446323395,
0.017401376739144325,
0.00393307488411665,
-0.03453834354877472,
-0.018954776227474213,
-0.006002896465361118,
0.031134087592363358,
-0.005337744485586882,
0.012518084608018398,
-0.08375135809183121,
0.02287132479250431,
0.0033567470964044333,
0.0006336505757644773,
0.04316467046737671,
-0.0005644499324262142,
-0.05502999573945999,
0.0003367075405549258,
-0.009196453727781773,
-0.046767234802246094,
-0.0629291981458664,
-0.0005768440896645188,
0.01693866215646267,
0.04904775694012642,
-0.01753358170390129,
-0.009188191033899784,
-0.02216072753071785,
0.0023796753957867622,
-0.004722168669104576,
-0.01272465381771326,
-0.00038499306538142264,
0.00024439700064249337,
-0.04521383345127106,
-0.047692663967609406,
-0.06468090415000916,
-0.0321090929210186,
0.00132617331109941,
0.006593684200197458,
0.007750470656901598,
-0.006292093079537153,
0.011336509138345718,
-0.007126632146537304,
0.06058257073163986,
-0.03184468671679497,
0.04894860088825226,
0.12321430444717407,
0.008708951063454151,
-0.04822148010134697,
0.028341272845864296,
0.017351800575852394,
-0.013451776467263699,
-0.0023652156814932823,
-0.028242120519280434,
-0.0385044701397419,
-0.004108658526092768,
-0.04409009963274002,
0.015310898423194885,
-0.03118366375565529,
0.0035777760203927755,
-0.045346036553382874,
0.08057845383882523,
0.06276393681764603,
0.06302835047245026,
0.03324935585260391,
-0.011229093186557293,
-0.029812045395374298,
-0.0308531541377306,
-0.012038844637572765,
-0.002451974665746093,
-0.028407376259565353,
0.024441249668598175,
-0.04680028557777405,
-0.008766790851950645,
0.003530265064910054,
0.016418108716607094,
0.012551135383546352,
0.017682310193777084,
-0.0501384399831295,
-0.11957868933677673,
-0.030059928074479103,
-0.0002525306772440672,
-0.0238132793456316,
0.004879160784184933,
0.07330722361803055,
-0.014963862486183643,
0.01840943470597267,
0.005721962545067072,
0.03787650167942047,
0.007804178632795811,
-0.0013592243194580078,
-0.03420783579349518,
-0.0035013454034924507,
0.03529851883649826,
-0.02974594384431839,
-0.07383604347705841,
-0.010964685119688511,
0.08811409771442413,
0.01374097354710102,
-0.09419548511505127,
-0.03283621743321419,
0.03933074697852135,
-0.019153082743287086,
0.004174760542809963,
-0.00290642655454576,
0.033464185893535614,
0.06686227023601532,
-0.024342097342014313,
0.007870281115174294,
0.02913449890911579,
-0.006837435532361269,
0.04091719910502434,
-0.027812456712126732,
-0.032076042145490646,
0.01104731298983097,
0.0567486509680748,
-0.05063420534133911,
-0.043131615966558456,
-0.06071477383375168,
0.03095230646431446,
0.010204510763287544,
-0.01736832596361637,
-0.023400142788887024,
-0.0065812901593744755,
0.038570571690797806,
-0.08335474133491516,
0.013947542756795883,
0.034009527415037155,
0.053972359746694565,
0.01489776000380516,
-0.025912022218108177,
-0.06868007779121399,
0.005866561084985733,
-0.012518084608018398,
0.031150612980127335,
-0.013377411291003227,
0.027184486389160156,
0.00301797385327518,
-0.004445366095751524,
0.02320183627307415,
0.016922136768698692,
-0.005878955125808716,
-0.029018819332122803,
0.015294372104108334,
-0.04653587564826012,
0.010295401327311993,
0.01060938648879528,
0.03369554504752159,
-0.0015368737513199449,
-0.03866972774267197,
-0.012600712478160858,
-0.017913667485117912,
0.08837850391864777,
-0.041809577494859695,
-0.001527578104287386,
0.012757704593241215,
0.05417066812515259,
-0.040652789175510406,
0.020243767648935318,
-0.03364596515893936,
-0.05668254569172859,
-0.042867209762334824,
0.0009977285517379642,
-0.00027861000853590667,
-0.0344061404466629,
-0.00019094726303592324,
-0.001626731245778501,
-0.00011987460311502218,
-0.010295401327311993,
-0.014947336167097092,
0.031266290694475174,
-0.018227653577923775,
0.006267304997891188,
-0.030274759978055954,
-0.04617231339216232,
0.00577153917402029,
-0.012914696708321571,
0.07350552827119827,
0.0131460539996624,
0.004238796886056662,
0.012063632719218731,
-0.010154934599995613,
0.01025408785790205,
-0.004523862153291702,
0.019004352390766144,
0.002726711565628648,
-0.06216902285814285,
-0.025267526507377625,
0.026093803346157074,
-0.02055775187909603,
-0.0117083340883255,
0.008708951063454151,
-0.06560633331537247,
0.013344360515475273,
-0.0165585745126009,
0.13564150035381317,
-0.020375970751047134,
-0.10067348927259445,
0.018277229741215706,
0.006812647450715303,
-0.06283004581928253,
0.0008278254535980523,
-0.0238132793456316,
-0.06157410144805908,
-0.02815949358046055,
-0.014203688129782677,
-0.01736832596361637,
0.0073208073154091835,
0.010287138633430004,
-0.033398084342479706,
0.04653587564826012,
0.02209462597966194,
0.004098330158740282,
-0.03804175555706024,
-0.0064821369014680386,
-0.05949188768863678,
-0.01720307022333145,
0.011435662396252155,
-0.0050609419122338295,
-0.034009527415037155,
0.011435662396252155,
0.036984123289585114,
0.01228672731667757,
-0.046436723321676254,
0.03946295008063316,
0.010270613245666027,
-0.015459627844393253,
0.00794464536011219,
0.03159680217504501,
0.01892172545194626,
-0.0471968948841095,
0.013460039161145687,
-0.013311309739947319,
-0.04141296446323395,
-0.031001882627606392,
-0.03711632639169693,
-0.05020454153418541,
0.016352005302906036,
0.011997530236840248,
-0.019483592361211777,
0.004928737413138151,
0.019483592361211777,
0.014930810779333115,
-0.031861212104558945,
0.04491637274622917,
-0.02617643028497696,
-0.03480275347828865,
0.037579040974378586,
0.003643878037109971,
0.030753999948501587,
-0.08480899035930634,
0.019615797325968742,
-0.026259057223796844,
-0.05010538920760155,
0.04207398369908333,
0.05367490276694298,
-0.09155140072107315,
0.06927499920129776,
-0.06329275667667389,
0.02573024109005928,
0.033398084342479706,
-0.02374717779457569,
-0.011559603735804558,
-0.03949600085616112,
0.07264620065689087,
-0.03101840801537037,
-0.01951664313673973,
0.03326588124036789,
-0.0042801108211278915,
-0.044949427247047424,
-0.023664550855755806,
0.07965302467346191,
-0.05350964516401291,
-0.007200997322797775,
0.04997318610548973,
0.009931840002536774,
0.062433429062366486,
0.012096683494746685,
0.018492061644792557,
0.001843628822825849,
-0.006230122409760952,
-0.001324107637628913,
-0.06071477383375168,
-0.024672606959939003,
-0.0005081598646938801,
-0.05985544994473457,
0.05750882253050804,
0.0032328057568520308,
-0.00884941779077053,
0.008444542996585369,
-0.04551129415631294,
0.02611032873392105,
-0.052253708243370056,
0.040553636848926544,
0.004879160784184933,
0.027085334062576294,
-0.002261931076645851,
0.01272465381771326,
-0.042470596730709076,
0.006928326096385717,
0.06316055357456207,
-0.05615372955799103,
0.011468714103102684,
-0.005945057142525911,
-0.006197071634232998,
0.001361289992928505,
-0.07449705898761749,
0.008824629709124565,
-0.0005073852371424437,
-0.06663091480731964,
0.023069631308317184,
0.026308633387088776,
-0.0044371034018695354,
-0.06454869359731674,
-0.018822571262717247,
-0.03073747456073761,
-0.015542255714535713,
-0.025366678833961487,
0.04957657307386398,
-0.08328863978385925,
0.018872149288654327,
0.015269584022462368,
-0.01503822673112154,
0.02513532154262066,
0.02374717779457569,
0.02348276972770691,
0.008328864350914955,
0.024937015026807785,
-0.010766378603875637,
-0.026754822582006454,
-0.054302871227264404,
-0.010138409212231636,
-0.0267217718064785,
0.014699453487992287,
0.029266703873872757,
-0.034340038895606995,
0.023135732859373093,
-0.007440617308020592,
-0.006114443764090538,
-0.0754224881529808,
0.05205539986491203,
-0.009659169241786003,
0.02596159838140011,
-0.021020466461777687,
0.0049452632665634155,
0.01683124713599682,
-0.05311303585767746,
-0.015930606052279472,
0.010948159731924534,
0.026490414515137672,
-0.03486885502934456,
-0.0010689948685467243,
0.014211950823664665,
-0.0021896320395171642,
0.025118796154856682,
-0.011757910251617432,
0.013617032207548618,
0.024259468540549278,
-0.017070867121219635,
-0.020772583782672882,
0.00029668479692190886,
0.010121883824467659,
-0.09122089296579361,
0.014996913261711597,
-0.014311104081571102,
0.012460244819521904,
-0.0646478533744812,
0.0393637977540493,
0.014641614630818367,
0.033464185893535614,
0.008684162981808186,
0.024937015026807785,
0.03014255501329899,
0.00270812027156353,
0.03645530715584755,
0.020243767648935318,
0.004259453620761633,
0.0385044701397419,
0.010568073019385338,
0.01162570621818304,
0.03480275347828865,
0.007754602003842592,
0.0011092758504673839,
-0.07006822526454926,
0.0038070676382631063,
0.014881234616041183,
0.04002482071518898,
0.03267095983028412,
0.014773818664252758,
0.015707511454820633,
0.08884121477603912
] |
20,935 | argufy.formatter | ArgufyHelpFormatter | Provide formatting for Argufy. | class ArgufyHelpFormatter(HelpFormatter):
"""Provide formatting for Argufy."""
# argparse.HelpFormatter(prog, max_help_position=80, width=130)
def add_usage(
self,
usage: Optional[str],
actions: Iterable[Action],
# groups: Iterable['ArgumentGroup'],
groups: Iterable['MutuallyExclusiveGroup'],
prefix: Optional[str] = 'usage: ',
) -> None:
"""Format usage message."""
if prefix is not None:
prefix = self.font(prefix)
super().add_usage(usage, actions, groups, prefix)
@staticmethod
def font(text: str, width: str = 'BRIGHT') -> str:
"""Set the string thickness."""
return getattr(Style, width) + text + Style.RESET_ALL
@staticmethod
def shade(text: str, color: str = 'CYAN') -> str:
"""Set the string color."""
return getattr(Fore, color.upper()) + text + Style.RESET_ALL
# def _format_action_invocation(self, action: Action) -> str:
# """Format arguments summary."""
# # TODO: find alternative that does not modify action
# if isinstance(action, argparse._SubParsersAction):
# if action.choices is not None:
# for choice in list(action.choices):
# parser = action.choices.pop(choice)
# choice = self.shade(choice)
# action.choices[choice] = parser
# return super(
# ArgufyHelpFormatter, self
# )._format_action_invocation(action)
def _expand_help(self, action: Action) -> str:
"""Format help message."""
if action.help:
return self.shade(
super()._expand_help(action).rstrip('.').lower(),
'YELLOW',
)
return ''
def _format_action(self, action: Action) -> str:
"""Format arguments."""
if isinstance(action, argparse._SubParsersAction._ChoicesPseudoAction):
subcommand = self.shade(
self.font(self._format_action_invocation(action))
)
help_text = self._expand_help(action)
# TODO: calculate correct spacing
return f" {subcommand.ljust(37)}{help_text}\n"
# action.option_strings = [
# self.font(self.shade(option))
# for option in action.option_strings
# ]
return super()._format_action(action)
| (prog, indent_increment=2, max_help_position=24, width=None) | [
0.002199997426941991,
-0.028533708304166794,
0.002643590560182929,
-0.027994658797979355,
0.04556768760085106,
-0.03820067271590233,
0.00468524219468236,
0.017186708748340607,
-0.024670518934726715,
-0.031013337895274162,
-0.012038781307637691,
0.030078984797000885,
-0.006661758758127689,
0.004548233933746815,
-0.03741006553173065,
0.042441196739673615,
0.03866784647107124,
-0.007524238433688879,
0.03917096182703972,
0.05501902848482132,
0.07446075975894928,
-0.032846108078956604,
-0.0077039217576384544,
-0.03072584606707096,
-0.002248287433758378,
0.019765162840485573,
0.020214371383190155,
-0.04456146061420441,
-0.028659487143158913,
-0.05422842130064964,
-0.01956751197576523,
-0.042728688567876816,
-0.004435931798070669,
0.07269986718893051,
-0.014141076244413853,
-0.056204937398433685,
-0.03503824397921562,
0.024239277467131615,
0.0037216905038803816,
-0.0031826405320316553,
0.01945970207452774,
-0.04477708041667938,
0.05350968986749649,
-0.0431239940226078,
0.006365281064063311,
0.015821116045117378,
0.003991215489804745,
0.07029210776090622,
-0.09171035885810852,
-0.0836605504155159,
0.0825105756521225,
-0.06989680975675583,
-0.004476360511034727,
0.027455609291791916,
0.0034049986861646175,
0.060517337173223495,
0.03663742542266846,
-0.013745772652328014,
0.02003468945622444,
-0.014015298336744308,
0.012883293442428112,
0.055522140115499496,
0.017573026940226555,
-0.002114647999405861,
-0.02697046473622322,
-0.03442732244729996,
0.03401404991745949,
-0.021292472258210182,
-0.00507605355232954,
0.042728688567876816,
0.004339351784437895,
0.005808263085782528,
0.010969665832817554,
-0.034535132348537445,
0.04517238214612007,
-0.016755469143390656,
-0.057318974286317825,
-0.0026233762037009,
0.039817821234464645,
0.003905865829437971,
-0.0009085237397812307,
0.015542605891823769,
0.015264096669852734,
-0.010089217685163021,
0.01875893771648407,
-0.03820067271590233,
0.0063428208231925964,
-0.017599979415535927,
0.027617324143648148,
-0.00705706188455224,
-0.03762568533420563,
-0.051065996289253235,
0.01549768541008234,
0.03672726824879646,
-0.017537090927362442,
-0.010331789962947369,
-0.0305461622774601,
-0.05943923816084862,
-0.028102468699216843,
-0.0014509427128359675,
-0.05598931759595871,
0.030348511412739754,
0.04873011261224747,
0.014644189737737179,
0.01402428187429905,
-0.03487652912735939,
-0.045064572244882584,
0.025766586884856224,
0.013269612565636635,
0.00445165392011404,
-0.007924034260213375,
-0.041506845504045486,
-0.0020461436361074448,
-0.01118528563529253,
-0.02350257709622383,
-0.031606294214725494,
-0.007407444529235363,
-0.03733818978071213,
0.048981670290231705,
-0.03372655808925629,
-0.00392608018592,
-0.013575074262917042,
0.0162793081253767,
-0.05031132698059082,
0.0073984600603580475,
0.03072584606707096,
-0.0813606008887291,
0.001824908540584147,
-0.028300121426582336,
0.025263473391532898,
-0.024562707170844078,
0.05099412426352501,
-0.04765201359987259,
-0.032450806349515915,
0.05505496636033058,
-0.010295853018760681,
0.018291760236024857,
0.04337555170059204,
-0.027868879958987236,
0.106228768825531,
0.028533708304166794,
-0.020807327702641487,
-0.003023171564564109,
-0.06324852257966995,
-0.0819355845451355,
-0.04502863809466362,
0.03787723928689957,
-0.005094021558761597,
0.0287672970443964,
0.021040914580225945,
-0.01333250105381012,
0.043016184121370316,
0.014347712509334087,
0.02542518824338913,
0.09113537520170212,
0.007667985279113054,
-0.021346377208828926,
-0.07180144637823105,
0.02127450332045555,
-0.001298211864195764,
-0.0021977515425533056,
-0.07359828054904938,
0.028533708304166794,
-0.0034499194007366896,
0.027042336761951447,
0.046322356909513474,
0.017123818397521973,
0.025730649009346962,
0.0031714104115962982,
0.007789271418005228,
-0.05573775991797447,
-0.024077562615275383,
-0.018031219020485878,
0.012101670727133751,
0.0143117755651474,
0.08272619545459747,
-0.08466677367687225,
0.02668297104537487,
0.0305461622774601,
-0.0739576518535614,
-0.04528019204735756,
-0.028551677241921425,
-0.017716774716973305,
-0.05447997897863388,
0.045819241553545,
-0.046897344291210175,
0.06827965378761292,
0.03430154174566269,
-0.008737101219594479,
-0.005417451728135347,
0.0021517076529562473,
-0.028839170932769775,
0.005884628277271986,
0.04010531306266785,
-0.04614267498254776,
-0.016432037577033043,
-0.05462372675538063,
-0.05476747080683708,
0.10371320694684982,
-0.07090303301811218,
-0.027024369686841965,
-0.00003983213900937699,
-0.016045719385147095,
0.01861518993973732,
0.06479380279779434,
0.05307845026254654,
0.06626719981431961,
-0.013521168380975723,
-0.10802560299634933,
-0.00009068391955224797,
-0.03985375910997391,
-0.02916260063648224,
0.01989094167947769,
-0.0006721278768964112,
-0.012541894800961018,
-0.029701650142669678,
0.0907760038971901,
0.04251306876540184,
-0.021436218172311783,
0.03960220143198967,
0.058576758950948715,
0.004595400765538216,
0.023933816701173782,
0.01669257879257202,
0.028803234919905663,
0.020178435370326042,
0.05850488319993019,
0.03917096182703972,
-0.023125242441892624,
-0.0040159220807254314,
-0.013314533047378063,
-0.09228534996509552,
-0.012973134405910969,
0.03417576476931572,
-0.08301369100809097,
0.0280485637485981,
0.045639559626579285,
-0.0022696247324347496,
-0.00583970732986927,
-0.006796521134674549,
-0.0014778951881453395,
0.029072759672999382,
0.025676744058728218,
-0.0233408622443676,
-0.03573900833725929,
-0.07604197412729263,
0.0305461622774601,
-0.029288379475474358,
-0.005282689351588488,
-0.03917096182703972,
-0.04535206779837608,
0.04492082819342613,
-0.0063293445855379105,
0.018597222864627838,
-0.023987721651792526,
-0.03683507815003395,
-0.03866784647107124,
-0.012748531065881252,
-0.0073580313473939896,
-0.03545151650905609,
-0.03207347169518471,
0.005156910978257656,
0.019657352939248085,
0.01486879400908947,
0.02515566349029541,
0.015884004533290863,
0.039278771728277206,
-0.04103966802358627,
-0.0054803406819701195,
0.0006805505254305899,
0.03708663582801819,
0.023951785638928413,
-0.0663750171661377,
0.03891940414905548,
-0.03539761155843735,
0.04308805614709854,
0.033151570707559586,
-0.004712194669991732,
-0.0233408622443676,
-0.0014969866024330258,
-0.006248487159609795,
-0.024221310392022133,
-0.019064398482441902,
0.049664467573165894,
0.03430154174566269,
0.03110318072140217,
-0.006190089974552393,
0.034121859818696976,
-0.02127450332045555,
0.03866784647107124,
0.02752748318016529,
0.04585517942905426,
0.054803408682346344,
-0.04567549750208855,
0.03741006553173065,
0.05239565297961235,
-0.011311064474284649,
0.03457106649875641,
-0.0004770030209328979,
-0.0478316955268383,
0.0046762581914663315,
-0.03072584606707096,
-0.011993860825896263,
-0.04556768760085106,
-0.024400992318987846,
-0.016450006514787674,
0.04373491555452347,
-0.021993236616253853,
0.05228784307837486,
-0.00650004344061017,
0.012470021843910217,
0.015183239243924618,
0.025227535516023636,
-0.013089928776025772,
-0.04068030044436455,
0.05447997897863388,
-0.004375288728624582,
0.008216018788516521,
0.028875106945633888,
0.043842725455760956,
-0.05947517603635788,
0.0028659487143158913,
0.008750577457249165,
-0.009478294290602207,
0.025047853589057922,
-0.050922248512506485,
-0.04333961382508278,
0.03421170264482498,
0.016306260600686073,
-0.011086460202932358,
-0.027617324143648148,
-0.0015374153153970838,
-0.052036285400390625,
-0.011275127530097961,
-0.04211776703596115,
-0.008058796636760235,
-0.003321895143017173,
-0.00352853094227612,
-0.045783307403326035,
-0.023556482046842575,
0.04032093286514282,
0.08013875782489777,
-0.025820491835474968,
0.02652125619351864,
-0.009747819043695927,
0.002616638084873557,
0.01929798722267151,
0.03110318072140217,
0.022550255060195923,
-0.04129122570157051,
0.027437640354037285,
-0.011490747332572937,
0.0017451741732656956,
0.00500867236405611,
0.04657391458749771,
-0.02542518824338913,
-0.013134850189089775,
-0.06436256319284439,
-0.00031697258236818016,
0.025209568440914154,
-0.02375413291156292,
-0.09487278759479523,
-0.009738835506141186,
0.026323605328798294,
-0.05512683838605881,
-0.03809286281466484,
0.020483896136283875,
-0.015731273218989372,
0.03769755735993385,
-0.029953207820653915,
0.039530325680971146,
0.001942825736477971,
0.04136309772729874,
-0.06256572902202606,
-0.028120437636971474,
0.048837922513484955,
0.010538426227867603,
0.01118528563529253,
-0.0469692163169384,
-0.10033515840768814,
0.09199785441160202,
0.06439849734306335,
-0.006055327598005533,
0.02222682535648346,
-0.04010531306266785,
-0.07762318849563599,
-0.012829388491809368,
0.03478669002652168,
-0.01790544204413891,
0.02294555865228176,
0.011158333159983158,
-0.02193933166563511,
0.008418163284659386,
-0.012281353585422039,
-0.03440935164690018,
-0.020645612850785255,
-0.02195730060338974,
0.008314845152199268,
-0.04625048488378525,
0.0028434882406145334,
0.03183988109230995,
-0.04851449280977249,
0.019549543038010597,
-0.04068030044436455,
0.013673899695277214,
-0.0073849838227033615,
0.03367265313863754,
0.07237643748521805,
-0.04441771283745766,
0.07244830578565598,
0.000019758144844672643,
-0.03561323136091232,
-0.003517300821840763,
0.04919729009270668,
-0.006441646721214056,
-0.029647745192050934,
-0.0019596710335463285,
-0.00517937121912837,
-0.052755020558834076,
0.008130669593811035,
0.0005817246856167912,
0.007380492053925991,
0.002883917186409235,
0.07237643748521805,
0.0753951147198677,
-0.03491246700286865,
-0.07776693254709244,
0.002650328679010272,
0.02779700793325901,
-0.08013875782489777,
-0.022819779813289642,
0.012487989850342274,
0.01223643310368061,
-0.05005976930260658,
-0.02905479073524475,
-0.016710547730326653,
0.007600604090839624,
0.005574674811214209,
0.04423803091049194,
-0.0015542606124654412,
0.04211776703596115,
-0.03449919447302818,
0.028174342587590218,
0.024706454947590828,
0.016899215057492256,
-0.02111278846859932,
-0.0054938169196248055,
0.051497235894203186,
0.02140028215944767,
-0.026197826489806175,
0.012685641646385193,
0.08430740982294083,
-0.04269275441765785,
-0.03780536726117134,
0.004231541883200407,
-0.05749865993857384,
0.0669500008225441,
0.011329032480716705,
-0.03712256997823715,
0.004069827031344175,
0.04650203883647919,
0.03013288974761963,
0.008027351461350918,
0.0372663177549839,
-0.00910545140504837,
-0.024490835145115852,
0.106803759932518,
0.0066842189989984035,
-0.09020102024078369,
-0.025353314355015755,
0.014796920120716095,
-0.011221222579479218,
0.021076852455735207,
0.035900723189115524,
0.011823161505162716,
0.0143836485221982,
0.030204763635993004,
-0.0011746796080842614,
-0.07805442810058594,
-0.009487278759479523,
0.02833605743944645,
-0.03766161948442459,
-0.004918830469250679,
0.041183412075042725,
-0.01750115491449833,
0.02472442388534546,
0.055809635668992996,
-0.05764240399003029,
-0.011832145974040031,
-0.024975979700684547,
-0.01264072023332119,
-0.03083365596830845,
-0.016216417774558067,
0.022891653701663017,
0.060373589396476746,
-0.015425811521708965,
0.04463333263993263,
0.014096155762672424,
-0.03985375910997391,
-0.02975555509328842,
0.038560036569833755,
-0.03723037987947464,
-0.007066045887768269,
-0.021885426715016365,
0.03586478903889656,
-0.007362523581832647,
0.0008327198447659612,
-0.009505246765911579,
0.005013164132833481,
0.005444404203444719,
-0.05235971510410309,
-0.024760359898209572,
0.06443443149328232,
-0.025515029206871986,
-0.0011993860825896263,
-0.010960681363940239,
-0.028551677241921425,
0.00930759496986866,
0.10666000843048096,
0.020052656531333923,
-0.04143496975302696,
0.006131692789494991,
-0.042872436344623566,
-0.051461298018693924,
-0.023664291948080063,
0.0162793081253767,
-0.00888084713369608,
0.03498433902859688,
0.003517300821840763,
-0.0073849838227033615,
0.009159356355667114,
0.03225315362215042,
0.02874932996928692,
-0.001621641800738871,
-0.00026727892691269517,
0.06669844686985016,
-0.04808325320482254,
0.03848816454410553,
-0.015389875508844852,
-0.002297700382769108,
0.03322344273328781,
0.05239565297961235,
-0.05005976930260658,
-0.05059881880879402,
0.008993149735033512,
0.011697383597493172,
0.004465130157768726,
-0.02891104482114315,
0.046214547008275986,
-0.000574425095692277,
-0.06418287754058838,
0.049808211624622345,
-0.0019877466838806868,
0.06554847210645676,
-0.04391460120677948,
0.038128796964883804,
0.0017316978191956878,
-0.03527183458209038,
0.043950535356998444,
0.00026784042711369693,
-0.00511199003085494,
0.03602650389075279,
-0.0402490608394146,
-0.02738373540341854,
-0.00867870356887579,
0.0528268925845623,
0.033564843237400055,
0.036188218742609024,
-0.019639385864138603,
0.005138942506164312,
-0.019765162840485573,
-0.03440935164690018,
-0.02891104482114315,
-0.014527395367622375,
-0.0742451399564743,
0.009074007160961628,
0.029414156451821327,
-0.001809186302125454,
0.05792989954352379,
0.02666500210762024,
0.0027671228162944317,
0.012452052906155586,
-0.029917269945144653,
-0.06256572902202606,
0.007367015350610018,
0.03209143877029419,
0.02375413291156292,
-0.0019574249163269997,
0.043159931898117065,
-0.006270947400480509,
-0.029252441599965096,
-0.03194769099354744,
0.022568223997950554,
-0.04775982350111008,
-0.01388951949775219,
0.004631337244063616,
0.011688399128615856,
-0.034660909324884415,
0.043950535356998444,
0.031875818967819214,
0.0004129908629693091,
-0.03891940414905548,
-0.01766286976635456,
0.001445327652618289,
0.062457919120788574,
0.051497235894203186,
0.04664578661322594,
-0.03945845365524292,
-0.05749865993857384,
0.020627643913030624,
-0.054695598781108856,
-0.046753596514463425,
-0.0038182702846825123,
-0.021058883517980576,
-0.04614267498254776,
0.014078186824917793,
-0.015443780459463596,
-0.028407931327819824,
0.05279095470905304,
0.0306899081915617,
-0.04193808510899544,
0.03809286281466484,
-0.06357195228338242,
0.013053991831839085,
-0.017312485724687576,
0.006908823270350695,
-0.034085921943187714,
0.03568510338664055,
-0.03663742542266846,
-0.030096953734755516,
0.03302579000592232,
-0.023790068924427032,
0.016315244138240814,
-0.035361673682928085,
0.004213573411107063,
-0.025676744058728218,
-0.019208146259188652,
0.04014125093817711,
-0.013736789114773273,
-0.009150372818112373,
0.013907487504184246,
-0.030204763635993004,
-0.04499270021915436,
0.04251306876540184,
-0.01138293743133545,
0.0422615148127079,
-0.07431701570749283,
-0.02693452686071396,
0.003854206996038556,
-0.009541183710098267,
0.0378413051366806,
0.054695598781108856,
-0.06242198124527931,
0.03083365596830845,
-0.019351892173290253,
-0.016854293644428253,
-0.01549768541008234,
0.000011853132491523866,
-0.03043835237622261,
0.02294555865228176,
-0.009006625972688198,
0.02082529477775097,
0.05444404110312462,
0.05185660347342491,
0.03236096352338791,
-0.052036285400390625,
0.0065943775698542595,
-0.027976691722869873,
0.04614267498254776,
0.019837036728858948,
0.012838372029364109,
-0.0006973958224989474,
-0.009015609510242939,
0.045639559626579285,
-0.03268439322710037,
0.021472156047821045,
0.04959259182214737,
0.04366304352879524,
0.012595799751579762,
-0.026161888614296913,
0.0419740192592144,
-0.014437553472816944,
-0.027275925502181053,
-0.008871863596141338,
0.05350968986749649,
0.005606119055300951,
0.010996618308126926,
0.020501865074038506,
-0.012937198393046856,
-0.0845230296254158,
0.0017114834627136588,
-0.025946268811821938,
-0.025263473391532898,
-0.0022516564931720495,
0.011391921900212765,
0.026844685897231102,
-0.06662657111883163,
-0.04193808510899544,
0.040392808616161346,
-0.03552338853478432,
0.08100123703479767,
-0.006845933850854635,
0.011257159523665905,
0.02641344629228115,
-0.016081655398011208,
0.0425490066409111,
-0.04154277965426445,
-0.0005907088634558022,
-0.009244706481695175,
-0.008319336920976639,
0.028713392093777657,
0.07597009837627411,
-0.0006120462785474956,
0.04125528782606125,
0.034822624176740646,
-0.04779576137661934,
0.021436218172311783,
0.017150770872831345,
0.024904105812311172,
-0.012173543684184551,
-0.015237144194543362,
0.04046468064188957,
0.02041202411055565,
-0.011868081986904144,
-0.0034858561120927334,
0.007429904770106077,
-0.055629950016736984,
-0.0035397610627114773,
0.01902846246957779,
-0.054695598781108856,
-0.04711296409368515,
-0.011212238110601902,
-0.03388827294111252,
0.010906776413321495,
0.013170786201953888,
0.03351093828678131,
0.01710585132241249,
0.006827965844422579,
0.061236072331666946,
0.007492793723940849,
0.0017294518183916807,
0.02723998948931694,
-0.03809286281466484,
0.03780536726117134,
0.029539935290813446,
0.057462722063064575,
-0.012119638733565807,
0.013745772652328014,
-0.012685641646385193,
0.018453475087881088,
0.020519834011793137,
-0.024922074750065804,
-0.011239190585911274,
0.04183027520775795,
0.05832520127296448,
-0.04136309772729874,
0.030402416363358498,
-0.0016935152234509587,
-0.021723711863160133,
-0.024508802220225334,
-0.0014778951881453395,
-0.02821027860045433,
0.020106561481952667,
0.012649704702198505,
0.06030171737074852,
0.011643478646874428,
-0.020376086235046387,
0.021148724481463432
] |
20,936 | argparse | __init__ | null | def __init__(self,
prog,
indent_increment=2,
max_help_position=24,
width=None):
# default setting for width
if width is None:
import shutil
width = shutil.get_terminal_size().columns
width -= 2
self._prog = prog
self._indent_increment = indent_increment
self._max_help_position = min(max_help_position,
max(width - 20, indent_increment * 2))
self._width = width
self._current_indent = 0
self._level = 0
self._action_max_length = 0
self._root_section = self._Section(self, None)
self._current_section = self._root_section
self._whitespace_matcher = _re.compile(r'\s+', _re.ASCII)
self._long_break_matcher = _re.compile(r'\n\n\n+')
| (self, prog, indent_increment=2, max_help_position=24, width=None) | [
0.01987326703965664,
0.05887432396411896,
-0.0056137884967029095,
-0.037928301841020584,
-0.006677453871816397,
-0.006782002281397581,
0.008886604569852352,
-0.02270970679819584,
-0.07760210335254669,
-0.0070092808455228806,
0.023382453247904778,
0.014609487727284431,
0.00016094186867121607,
-0.015691334381699562,
-0.03056446649134159,
0.015009498223662376,
0.03974653407931328,
-0.08734782785177231,
-0.016682270914316177,
0.028364405035972595,
0.06552904844284058,
-0.0062956251204013824,
-0.008291133679449558,
0.046146705746650696,
0.0009375254157930613,
0.018227767199277878,
-0.02400065027177334,
-0.011918504722416401,
0.02680072747170925,
-0.06858368217945099,
-0.0046137613244354725,
-0.01240942720323801,
-0.013109446503221989,
0.04378300532698631,
-0.009427528828382492,
-0.05149230733513832,
-0.030018996447324753,
-0.00993663351982832,
-0.007159285247325897,
-0.021309668198227882,
0.030237184837460518,
-0.026637086644768715,
-0.04272843152284622,
-0.003366000484675169,
0.009772992692887783,
0.021382398903369904,
0.09694808721542358,
-0.023873375728726387,
-0.012173057533800602,
-0.07956579327583313,
0.004731946624815464,
-0.032619066536426544,
0.026946185156702995,
-0.01429129671305418,
-0.02790984883904457,
0.05807430297136307,
0.021709680557250977,
-0.010191185399889946,
0.02752801962196827,
-0.032309968024492264,
-0.08305680006742477,
0.04720127955079079,
0.04320117086172104,
-0.005663789808750153,
-0.034346386790275574,
-0.017664115875959396,
0.01848232001066208,
-0.028346223756670952,
0.014409481547772884,
0.0006272897589951754,
0.016327716410160065,
0.007372927386313677,
0.0007045645616017282,
-0.02376428060233593,
0.04789220914244652,
-0.04094656556844711,
-0.11643952131271362,
-0.00462058000266552,
0.028655322268605232,
0.030819017440080643,
-0.0332554467022419,
0.03467366844415665,
0.0032228147611021996,
0.025455236434936523,
0.03811012580990791,
-0.0027682569343596697,
0.07723846286535263,
-0.02505522593855858,
0.04029200226068497,
0.05363781750202179,
-0.03190995752811432,
0.004325117450207472,
-0.01345491036772728,
-0.023964285850524902,
0.0034500935580581427,
-0.001607998157851398,
0.030091725289821625,
-0.021327851340174675,
-0.0023705188650637865,
0.010118456557393074,
-0.0317099504172802,
-0.0036569174844771624,
-0.019727807492017746,
0.010673017241060734,
-0.005350145045667887,
0.009891177527606487,
-0.02740074321627617,
0.011591223999857903,
0.023382453247904778,
0.0035364595241844654,
0.020891476422548294,
-0.03043719008564949,
-0.01840049959719181,
0.034291841089725494,
0.0033773642498999834,
0.0561833418905735,
-0.029000787064433098,
-0.02376428060233593,
0.022418789565563202,
-0.06094710901379585,
-0.0039319247007369995,
-0.04283752664923668,
-0.0554196871817112,
-0.017082281410694122,
0.006045618560165167,
0.01206396333873272,
-0.05512876808643341,
-0.02523704804480076,
0.027800753712654114,
0.040764741599559784,
0.012463974766433239,
0.0020489192102104425,
0.014445846900343895,
-0.05018318071961403,
0.05127411708235741,
-0.04389210045337677,
-0.046764906495809555,
0.04894678294658661,
-0.07949306815862656,
0.009800265543162823,
0.02438247948884964,
0.03767374902963638,
-0.039528343826532364,
-0.019418708980083466,
-0.07636570930480957,
-0.005104683805257082,
0.01981871947646141,
-0.011236668564379215,
0.009059336967766285,
0.038364678621292114,
-0.0031069025862962008,
-0.03192814067006111,
0.05185595154762268,
0.020818745717406273,
0.09731172770261765,
0.04418301582336426,
-0.046946726739406586,
-0.08923878520727158,
0.06898368895053864,
-0.061274390667676926,
0.0017091372283175588,
-0.06018345057964325,
0.0319645032286644,
-0.007659298833459616,
-0.03278270736336708,
0.007050191052258015,
-0.03301907703280449,
-0.042619336396455765,
-0.03043719008564949,
0.010082092136144638,
-0.027509836480021477,
-0.05723791569471359,
-0.016454992815852165,
0.016300441697239876,
-0.03618279844522476,
0.0711292028427124,
0.024473391473293304,
-0.023036988452076912,
-0.009263888001441956,
-0.059237971901893616,
-0.05741973966360092,
0.021527856588363647,
0.014700398780405521,
0.018291404470801353,
0.01283671148121357,
0.0002215969143435359,
0.04611034318804741,
0.03989199176430702,
0.030528100207448006,
-0.0006642225780524313,
-0.05621970817446709,
-0.043855734169483185,
-0.02556432969868183,
0.033309996128082275,
-0.02407338097691536,
0.021036934107542038,
0.04440120607614517,
-0.004959225654602051,
0.0989845022559166,
-0.043746642768383026,
0.00981844775378704,
0.07116556912660599,
0.009259342215955257,
-0.002522795693948865,
-0.0072501967661082745,
0.09738446027040482,
-0.0036296439357101917,
0.02801894210278988,
-0.04912860691547394,
0.03807375952601433,
-0.004977407865226269,
-0.08007489889860153,
0.027146190404891968,
0.016918640583753586,
0.02198241464793682,
-0.005031954497098923,
0.07192922383546829,
0.05847431346774101,
-0.020527830347418785,
0.026564357802271843,
0.06952916085720062,
0.02760074846446514,
0.015664061531424522,
-0.02210969105362892,
-0.021564221009612083,
-0.020091453567147255,
0.020855112001299858,
-0.010100274346768856,
-0.0029068971052765846,
0.032691795378923416,
-0.0013534458121284842,
-0.08778420090675354,
-0.055528778582811356,
0.016636814922094345,
-0.04600124806165695,
0.00931843463331461,
-0.009077519178390503,
0.010527558624744415,
-0.03149176388978958,
-0.07382018119096756,
-0.006818366702646017,
-0.008591142483055592,
0.027237102389335632,
-0.0039228335954248905,
-0.012391244992613792,
0.007832030765712261,
0.01662772335112095,
-0.012245786376297474,
0.0027068916242569685,
0.0027250738348811865,
-0.02734619565308094,
-0.007650207728147507,
0.000048971498472383246,
0.01595497876405716,
0.006581996567547321,
0.08909332752227783,
-0.026255257427692413,
-0.026837091892957687,
-0.0062138051725924015,
0.0017193647800013423,
-0.033055443316698074,
-0.016145892441272736,
0.012691253796219826,
0.02523704804480076,
0.07134739309549332,
0.00972753670066595,
0.04451029747724533,
-0.025909794494509697,
0.02283698320388794,
-0.016227712854743004,
0.04832858219742775,
0.07774756103754044,
0.001114803017117083,
0.03418274596333504,
-0.05011045187711716,
-0.014409481547772884,
0.023473363369703293,
-0.029546255245804787,
0.016945913434028625,
-0.028800781816244125,
0.005722882691770792,
0.005772884003818035,
-0.006418355740606785,
0.027237102389335632,
0.005713791586458683,
-0.002868259558454156,
-0.021273303776979446,
0.03190995752811432,
0.008086582645773888,
0.014818583615124226,
0.0010767338098958135,
0.06221986934542656,
0.04938315972685814,
-0.009772992692887783,
0.10647561401128769,
0.026327986270189285,
-0.04752856120467186,
0.051819588989019394,
-0.046583082526922226,
-0.07498385012149811,
0.016918640583753586,
-0.09745719283819199,
-0.03807375952601433,
-0.03278270736336708,
-0.03296453133225441,
0.04312844201922417,
0.0059137968346476555,
-0.018564140424132347,
0.10058454424142838,
-0.02981899119913578,
0.051637765020132065,
0.0368555448949337,
0.028164399787783623,
0.03683736175298691,
-0.08603870123624802,
0.052692338824272156,
0.032382696866989136,
-0.03847377002239227,
0.0004474553279578686,
0.06156530603766441,
-0.013373089954257011,
0.008641143329441547,
0.009491167031228542,
-0.05043773353099823,
0.0021193756256252527,
-0.012363972142338753,
0.023509729653596878,
-0.02105511724948883,
-0.006718364078551531,
-0.01943689025938511,
-0.008409319445490837,
0.008650234900414944,
-0.01981871947646141,
-0.03501913323998451,
-0.058183398097753525,
-0.015809519216418266,
-0.0017068644519895315,
-0.018255040049552917,
-0.04967407509684563,
-0.04825585335493088,
0.07803848385810852,
-0.0033796371426433325,
0.004827403929084539,
-0.012891259044408798,
0.060219816863536835,
-0.08087491989135742,
0.015654969960451126,
-0.027764389291405678,
-0.011873049661517143,
-0.059419792145490646,
0.024727944284677505,
0.023073352873325348,
-0.021946050226688385,
-0.0277098435908556,
-0.0161095280200243,
-0.07098374515771866,
0.026818908751010895,
-0.07571114599704742,
-0.027691660448908806,
0.024600667878985405,
-0.01827322319149971,
-0.0010807111393660307,
-0.015782246366143227,
0.04912860691547394,
-0.043310265988111496,
-0.021073298528790474,
0.017491383478045464,
-0.050837744027376175,
0.020909657701849937,
0.054037827998399734,
0.06672908365726471,
-0.042255692183971405,
0.02414610981941223,
-0.02389155700802803,
-0.0012341244146227837,
0.018618686124682426,
-0.029909903183579445,
-0.0031796316616237164,
-0.0474194698035717,
-0.10589378327131271,
0.03309180587530136,
0.0363464392721653,
0.02821894735097885,
-0.0003801239363383502,
-0.07225650548934937,
-0.053419630974531174,
-0.009800265543162823,
0.010854840278625488,
0.028655322268605232,
0.03667372092604637,
-0.01613680087029934,
0.018800510093569756,
-0.005200141109526157,
0.024037016555666924,
-0.008145675994455814,
0.022055143490433693,
-0.022546065971255302,
-0.015764063224196434,
-0.045092131942510605,
0.008036581799387932,
0.05512876808643341,
-0.03209178149700165,
0.027146190404891968,
0.02036418952047825,
0.0014864039840176702,
-0.0350554957985878,
0.04538305103778839,
0.015482238493859768,
-0.02901896834373474,
0.08516594767570496,
0.0497468039393425,
0.014854948036372662,
0.002652344759553671,
0.05767429247498512,
0.002434156835079193,
-0.04087383672595024,
0.0038364676292985678,
0.005181958898901939,
0.0026955276262015104,
-0.013827648013830185,
-0.020836928859353065,
0.024037016555666924,
0.03567369654774666,
0.01073665451258421,
0.02394610457122326,
-0.006318353116512299,
-0.027746208012104034,
-0.030273549258708954,
0.03887378051877022,
-0.08269315212965012,
-0.062074411660432816,
0.05141957849264145,
0.02852804586291313,
0.017609568312764168,
-0.04014654457569122,
-0.01590043120086193,
-0.027073461562395096,
0.02147330902516842,
0.03125539422035217,
0.008409319445490837,
0.057565197348594666,
-0.05112865939736366,
0.03821921721100807,
0.07789301872253418,
-0.005491057876497507,
0.004713764414191246,
-0.03771011531352997,
0.03116448223590851,
-0.04294661805033684,
-0.007104738149791956,
0.058292489498853683,
0.054037827998399734,
-0.03456457331776619,
0.019000515341758728,
0.001870505278930068,
-0.030200818553566933,
-0.013754918240010738,
0.03258270397782326,
-0.02618252858519554,
-0.005104683805257082,
-0.021036934107542038,
0.060583461076021194,
0.059856168925762177,
-0.043673913925886154,
-0.06331080943346024,
0.015245867893099785,
0.0293826162815094,
0.044473934918642044,
-0.04778311401605606,
-0.020709652453660965,
-0.0324736088514328,
0.01462766993790865,
-0.016845911741256714,
0.04276479780673981,
0.012991261668503284,
-0.03316453471779823,
0.02147330902516842,
-0.04971044138073921,
-0.031273577362298965,
-0.0034750942140817642,
0.009291160851716995,
-0.03443729877471924,
0.019727807492017746,
0.021509675309062004,
-0.02523704804480076,
0.010700290091335773,
0.018818693235516548,
-0.05680154263973236,
-0.016818638890981674,
-0.0010676425881683826,
-0.025546148419380188,
0.01693682372570038,
-0.030764471739530563,
0.026073435321450233,
0.05549241602420807,
0.02345518209040165,
0.027455290779471397,
0.023837009444832802,
-0.04789220914244652,
-0.008718417957425117,
0.009682080708444118,
-0.0052319602109491825,
0.009527531452476978,
-0.0876387432217598,
0.02809167094528675,
0.03981926292181015,
-0.05454693362116814,
-0.005627425387501717,
-0.015500420704483986,
0.004300116561353207,
-0.007745664566755295,
-0.023491546511650085,
0.011473038233816624,
-0.021564221009612083,
-0.018309587612748146,
0.026073435321450233,
-0.049855899065732956,
0.005441056564450264,
0.10414828360080719,
0.03400092199444771,
0.02870986983180046,
-0.00300917262211442,
-0.02320062927901745,
-0.06782002002000809,
-0.019891448318958282,
0.01435493491590023,
0.01943689025938511,
-0.013682189397513866,
0.02000054344534874,
0.022746071219444275,
0.020091453567147255,
0.003772829659283161,
0.04338299483060837,
0.03561914712190628,
-0.05480148643255234,
0.03934652358293533,
-0.009645716287195683,
0.017664115875959396,
0.020636923611164093,
-0.011627588421106339,
0.025837063789367676,
0.04160112887620926,
0.018109582364559174,
-0.010318461805582047,
0.04752856120467186,
0.014391299337148666,
0.02118239365518093,
0.016409536823630333,
-0.007554750423878431,
0.019182339310646057,
-0.02561887726187706,
-0.00860932469367981,
-0.04469212144613266,
-0.006050164345651865,
-0.0056046973913908005,
0.031691767275333405,
0.048910416662693024,
-0.02512795478105545,
0.07796575129032135,
0.01747320219874382,
-0.007750210352241993,
-0.008518412709236145,
-0.09040245413780212,
-0.06258351355791092,
0.04069201275706291,
0.024273386225104332,
0.0206187404692173,
-0.05640152841806412,
-0.008682053536176682,
0.04043745994567871,
-0.024964313954114914,
0.01613680087029934,
-0.013609460555016994,
0.02623707614839077,
-0.02118239365518093,
-0.004159203730523586,
0.0047683110460639,
0.09418437629938126,
0.014109473675489426,
-0.00008522958523826674,
-0.03214632719755173,
0.04152840003371239,
0.003772829659283161,
-0.024982495233416557,
-0.028491681441664696,
0.02987353689968586,
-0.03227360174059868,
-0.043237537145614624,
0.018164129927754402,
-0.039782896637916565,
0.034728214144706726,
-0.013900376856327057,
-0.04971044138073921,
-0.03234633058309555,
0.03172813355922699,
0.052619609981775284,
-0.022055143490433693,
-0.047128550708293915,
0.034855492413043976,
0.027018913999199867,
-0.07949306815862656,
0.003772829659283161,
-0.06272897124290466,
0.060656189918518066,
0.05560150742530823,
0.023382453247904778,
0.06116529554128647,
0.01500040665268898,
-0.06552904844284058,
-0.005041046068072319,
-0.009213886223733425,
-0.05389237031340599,
0.0009767310693860054,
-0.005663789808750153,
-0.06167440116405487,
0.014800401404500008,
0.01252761296927929,
-0.022018779069185257,
0.0693473368883133,
-0.016145892441272736,
-0.007050191052258015,
0.021927867084741592,
-0.016636814922094345,
0.019600531086325645,
-0.06116529554128647,
0.003847831627354026,
0.009132065810263157,
0.0001558280928293243,
-0.027055280283093452,
-0.0018466409528627992,
0.034964583814144135,
-0.023691551759839058,
0.008682053536176682,
-0.024037016555666924,
0.009268432855606079,
-0.040764741599559784,
0.04451029747724533,
-0.0025296141393482685,
0.03043719008564949,
0.024291567504405975,
-0.05203777551651001,
-0.03538277745246887,
-0.01028209738433361,
-0.0023500637616962194,
-0.03209178149700165,
-0.03007354401051998,
-0.014054927043616772,
0.05432874709367752,
-0.0024432481732219458,
0.00168186379596591,
0.013700371608138084,
-0.025164319202303886,
-0.04647398740053177,
-0.01240942720323801,
-0.051637765020132065,
-0.02438247948884964,
0.03561914712190628,
-0.039601072669029236,
-0.024237021803855896,
0.03494640439748764,
-0.059237971901893616,
0.02007327228784561,
0.05498331040143967,
0.005104683805257082,
0.07222013920545578,
-0.0072320145554840565,
-0.02474612556397915,
-0.019218703731894493,
0.029728079214692116,
-0.024455208331346512,
0.014373117126524448,
0.011518494226038456,
-0.002189832041040063,
0.0471649169921875,
-0.042073868215084076,
0.00040029495721682906,
0.04301935061812401,
0.03371000662446022,
0.01801867038011551,
-0.0556742362678051,
0.022018779069185257,
0.02258243039250374,
0.020327825099229813,
-0.10393009334802628,
0.02018236555159092,
0.03912833333015442,
0.008613870479166508,
0.0069229151122272015,
0.017145920544862747,
-0.06352899968624115,
-0.05036500096321106,
0.016636814922094345,
0.006477448623627424,
-0.003352363593876362,
-0.025164319202303886,
-0.01058210525661707,
-0.0474194698035717,
-0.055019672960042953,
0.05291052535176277,
-0.015218595042824745,
0.054292380809783936,
0.004304662346839905,
-0.008441138081252575,
0.018927786499261856,
-0.0028341677971184254,
-0.02129148691892624,
-0.0032819071784615517,
-0.034346386790275574,
-0.033364541828632355,
-0.0010358236031606793,
0.07127466052770615,
0.06796547770500183,
0.04094656556844711,
-0.002586433896794915,
0.06480176001787186,
0.0027887120377272367,
-0.001628453261218965,
-0.016373172402381897,
0.015054954215884209,
-0.03592824563384056,
0.018800510093569756,
0.026928003877401352,
-0.017300469800829887,
-0.003552369074895978,
0.0027591658290475607,
-0.004972862079739571,
-0.03469185158610344,
-0.0028114398010075092,
0.016791364178061485,
-0.04963770881295204,
-0.0414920337498188,
-0.027055280283093452,
-0.05647426098585129,
-0.03949198126792908,
-0.0035069133155047894,
0.010073000565171242,
0.029309885576367378,
0.005454693455249071,
0.0613471195101738,
0.031891774386167526,
-0.025291595607995987,
0.03405546769499779,
-0.038801051676273346,
0.028855327516794205,
-0.02340063452720642,
0.019545985385775566,
0.015254959464073181,
0.03403728827834129,
0.007477475795894861,
0.047674018889665604,
-0.01639135368168354,
-0.011454856023192406,
0.03778284415602684,
0.02716437354683876,
0.006786547601222992,
-0.03532823175191879,
0.02043691836297512,
-0.009882085956633091,
0.02523704804480076,
0.017482291907072067,
-0.013318543322384357,
-0.057565197348594666,
0.025964340195059776,
0.04596488177776337,
0.01734592579305172,
0.01716410182416439,
0.01650044694542885,
0.03616461902856827
] |
20,939 | argufy.formatter | _expand_help | Format help message. | def _expand_help(self, action: Action) -> str:
"""Format help message."""
if action.help:
return self.shade(
super()._expand_help(action).rstrip('.').lower(),
'YELLOW',
)
return ''
| (self, action: argparse.Action) -> str | [
-0.016663523390889168,
-0.07428895682096481,
0.109657883644104,
0.002233862178400159,
0.05301788076758385,
-0.03749958798289299,
0.029030218720436096,
0.03476523980498314,
0.01995716616511345,
-0.037002433091402054,
0.007412915583699942,
-0.003686482785269618,
0.031231900677084923,
-0.0022682633716613054,
-0.02033003233373165,
0.013547435402870178,
0.005650683306157589,
-0.026864049956202507,
0.031214144080877304,
0.010253793559968472,
0.06910435110330582,
-0.030539436265826225,
0.001538068987429142,
-0.100211963057518,
-0.015083285048604012,
0.09339385479688644,
0.035475462675094604,
-0.0014126708265393972,
-0.013503046706318855,
-0.05298237130045891,
-0.04623528569936752,
-0.04311031848192215,
-0.009046420454978943,
0.07570939511060715,
0.0007374075357802212,
-0.010253793559968472,
-0.04200948029756546,
0.017631197348237038,
0.007998846471309662,
-0.04264867678284645,
0.007683686446398497,
-0.015376251190900803,
-0.008531510829925537,
-0.0310721006244421,
0.0037663825787603855,
0.004643059801310301,
0.04332338646054268,
0.0647365003824234,
-0.049395762383937836,
-0.07926049083471298,
0.04097966104745865,
-0.035084839910268784,
-0.02038329839706421,
0.021963536739349365,
-0.002494645770639181,
-0.006050182040780783,
0.017453642562031746,
-0.01448847632855177,
0.007670369930565357,
0.00847824476659298,
0.03490728512406349,
0.05301788076758385,
0.004436652176082134,
0.02210558019578457,
-0.019797366112470627,
0.01598881557583809,
0.02919001877307892,
-0.0047584702260792255,
0.007515009492635727,
0.01307691540569067,
0.028586331754922867,
0.003524464089423418,
-0.03277662768959999,
-0.01040471438318491,
-0.0017311598639935255,
-0.032457027584314346,
-0.044708315283060074,
-0.03425033390522003,
0.026260362938046455,
-0.0510292686522007,
-0.02872837707400322,
-0.0007673699292354286,
0.005393228959292173,
0.0012473228853195906,
0.021945780143141747,
-0.05074517801403999,
0.05823799595236778,
-0.008602532558143139,
-0.016672400757670403,
-0.006112325936555862,
-0.023721329867839813,
-0.06537570059299469,
-0.0406600646674633,
-0.005268940702080727,
-0.008669115602970123,
-0.013298858888447285,
-0.0003523354243952781,
-0.03192436322569847,
-0.005766094196587801,
0.026473429054021835,
-0.02721915952861309,
0.010005216114223003,
0.030752502381801605,
0.023685818538069725,
0.020276764407753944,
-0.06782595813274384,
-0.024076439440250397,
0.02576320990920067,
-0.006156714633107185,
-0.0036221190821379423,
-0.012437717989087105,
-0.06083029508590698,
0.0265799630433321,
-0.046625904738903046,
0.03199538588523865,
-0.00771475862711668,
0.016468213871121407,
0.012304551899433136,
0.030131060630083084,
-0.044282183051109314,
0.02359704114496708,
-0.04666141793131828,
-0.03938166797161102,
-0.10347897559404373,
0.036114659160375595,
0.055432628840208054,
-0.0767747238278389,
0.006010232027620077,
-0.008553705178201199,
-0.03385971114039421,
-0.0613984689116478,
0.04353645071387291,
-0.0415833480656147,
-0.03126741200685501,
0.02485768124461174,
0.00789675209671259,
-0.013227837160229683,
0.04353645071387291,
0.016912100836634636,
0.0789053812623024,
-0.00805211253464222,
-0.040198419243097305,
-0.023668061941862106,
-0.038920026272535324,
-0.028355510905385017,
-0.06985007971525192,
0.016033204272389412,
0.0028209027368575335,
0.031125366687774658,
0.049857404083013535,
0.009872050024569035,
0.03425033390522003,
0.01490573026239872,
-0.05845106020569801,
0.07070234417915344,
0.02851531095802784,
-0.005854871589690447,
-0.053301967680454254,
0.033770933747291565,
-0.008531510829925537,
0.060546208173036575,
-0.08480019867420197,
0.0017422570381313562,
0.013929178938269615,
-0.01684107817709446,
0.016255147755146027,
0.022371912375092506,
0.0018088400829583406,
0.007239799480885267,
0.0030739184003323317,
-0.04023393243551254,
-0.015243085101246834,
0.02468012645840645,
0.019886143505573273,
0.030521679669618607,
0.12414635717868805,
-0.06597938388586044,
0.02274477668106556,
-0.00631651422008872,
-0.05486445128917694,
-0.09516940265893936,
0.009827661328017712,
-0.02295784279704094,
0.006986783817410469,
0.031640276312828064,
-0.04673244059085846,
0.06132744997739792,
0.030042283236980438,
-0.030113304033875465,
0.03235049545764923,
-0.03235049545764923,
-0.013911423273384571,
-0.002554570557549596,
0.029314307495951653,
-0.0368603877723217,
-0.027148138731718063,
-0.052627261728048325,
-0.053479522466659546,
0.07024070620536804,
-0.05340850353240967,
-0.05216561630368233,
0.036096904426813126,
-0.02998901531100273,
0.02121780626475811,
0.06882026046514511,
0.06814555823802948,
0.06782595813274384,
-0.00369536061771214,
-0.0749281495809555,
-0.02743222564458847,
-0.032883159816265106,
-0.012588639743626118,
-0.0012029341887682676,
0.024058682844042778,
0.007994407787919044,
-0.003648752346634865,
0.04861452057957649,
0.03884900361299515,
-0.10177444666624069,
0.06310299783945084,
-0.021058006212115288,
-0.03135618939995766,
0.0008838903158903122,
0.005051435902714729,
0.0056373667903244495,
0.04097966104745865,
0.04165437072515488,
-0.005162407644093037,
-0.021075762808322906,
-0.0687137320637703,
-0.024981968104839325,
-0.064274862408638,
-0.055823247879743576,
0.051739487797021866,
-0.07407588511705399,
0.01843019388616085,
-0.008962081745266914,
0.006693818140774965,
0.03062821365892887,
-0.010422470048069954,
-0.026917316019535065,
0.014683786779642105,
0.03771265223622322,
0.01974410004913807,
0.018146106973290443,
-0.10220057517290115,
0.02230088971555233,
-0.01637943647801876,
-0.02057860791683197,
0.018030695617198944,
-0.05635591223835945,
-0.010431348346173763,
0.021342094987630844,
-0.026455674320459366,
-0.03488953039050102,
-0.022354157641530037,
-0.03265233710408211,
-0.002583423163741827,
-0.0600135438144207,
-0.0616825595498085,
-0.052378684282302856,
0.005002608057111502,
0.009215096943080425,
-0.006684940308332443,
0.022194357588887215,
0.018128350377082825,
0.011913930997252464,
-0.01328998152166605,
-0.027130382135510445,
-0.024981968104839325,
0.12528270483016968,
0.02033003233373165,
-0.0479753240942955,
0.00985429435968399,
-0.016361679881811142,
0.02998901531100273,
0.024733392521739006,
-0.012277918867766857,
-0.017817629501223564,
-0.03220845013856888,
0.011168200522661209,
-0.02938533015549183,
-0.007732514292001724,
0.06413281708955765,
-0.01993941143155098,
0.025869743898510933,
0.0005543041042983532,
0.034818507730960846,
-0.011745253577828407,
0.037002433091402054,
0.034392375499010086,
0.07286851108074188,
0.03062821365892887,
-0.03916860371828079,
0.012402206659317017,
0.0270416047424078,
0.02489319071173668,
0.04893412068486214,
-0.02079167403280735,
-0.037215497344732285,
0.00832288432866335,
-0.051561933010816574,
-0.05205908417701721,
-0.0569595992565155,
-0.032279472798109055,
-0.02998901531100273,
0.010688802227377892,
-0.03923962265253067,
0.05919678881764412,
-0.028675109148025513,
-0.02549687772989273,
0.029722683131694794,
-0.007488375995308161,
-0.015820138156414032,
-0.008975397795438766,
0.02231864631175995,
-0.00632983073592186,
0.026650983840227127,
0.034623198211193085,
0.06857168674468994,
-0.03725101053714752,
-0.0270416047424078,
0.03151598945260048,
0.005539711564779282,
-0.017213944345712662,
-0.09403305500745773,
-0.037641629576683044,
-0.010529003106057644,
0.03771265223622322,
-0.03350460156798363,
-0.021146783605217934,
-0.017355987802147865,
0.03142721205949783,
-0.07261993736028671,
-0.07009866088628769,
0.002641128608956933,
0.01187842059880495,
0.0008006614516489208,
-0.07052478939294815,
0.003364664502441883,
0.017844263464212418,
0.04612875357270241,
-0.01532298419624567,
0.020702896639704704,
0.050034958869218826,
-0.009481429122388363,
0.049218207597732544,
-0.0023792351130396128,
0.0010187210282310843,
-0.0385294035077095,
0.027077116072177887,
-0.025887498632073402,
0.03799673914909363,
-0.014479598961770535,
0.07400486618280411,
0.022141091525554657,
-0.03469422087073326,
-0.03817429393529892,
-0.020631873980164528,
0.04208050295710564,
-0.013014771044254303,
-0.04580915346741676,
0.00541098415851593,
0.04946678504347801,
-0.05553916096687317,
0.012162507511675358,
0.02615383081138134,
-0.010608903132379055,
0.04822390154004097,
-0.02162618190050125,
0.013511925004422665,
-0.02597627602517605,
-0.01220689620822668,
-0.031640276312828064,
-0.03577730432152748,
0.003937278874218464,
-0.0048028589226305485,
0.017551297321915627,
-0.016175247728824615,
-0.07006315141916275,
0.06324504315853119,
0.03831633925437927,
0.0037486269138753414,
0.01041359268128872,
-0.04094415158033371,
-0.026935072615742683,
0.006325392052531242,
0.056675512343645096,
-0.011842909269034863,
0.010351448319852352,
0.005837115924805403,
-0.025869743898510933,
-0.011470044031739235,
0.011532188393175602,
-0.02851531095802784,
0.004869441967457533,
0.001973078353330493,
-0.02404092811048031,
-0.06782595813274384,
0.007417354267090559,
0.06672511994838715,
-0.034197065979242325,
0.011336877942085266,
-0.04165437072515488,
-0.021732714027166367,
0.0060235485434532166,
-0.020045943558216095,
0.02764529176056385,
-0.026917316019535065,
0.07080888003110886,
-0.0005365486140362918,
-0.03126741200685501,
-0.026313630864024162,
0.06171806901693344,
0.03242151811718941,
-0.03559974953532219,
-0.019673079252243042,
0.04208050295710564,
-0.030077792704105377,
0.0135208023712039,
-0.005712827667593956,
-0.04353645071387291,
0.04314583167433739,
0.06729329377412796,
0.01670791208744049,
-0.02425399422645569,
-0.043216854333877563,
-0.014017956331372261,
0.07024070620536804,
-0.060546208173036575,
-0.04431769251823425,
0.050709668546915054,
0.019815122708678246,
-0.02205231413245201,
0.0021473041269928217,
-0.02872837707400322,
0.027325693517923355,
-0.0105112474411726,
-0.010901868343353271,
0.011470044031739235,
0.0673288032412529,
-0.019584301859140396,
0.01825263909995556,
0.014080100692808628,
0.04999944940209389,
0.01597105897963047,
0.0023992101196199656,
0.016565868631005287,
0.014026833698153496,
-0.0026544451247900724,
0.04975087195634842,
0.0708443894982338,
0.0018931786762550473,
-0.004785103257745504,
0.024058682844042778,
-0.05720817670226097,
0.04779776930809021,
0.025905253365635872,
-0.0038595988880842924,
-0.01532298419624567,
0.004472163040190935,
0.057563286274671555,
-0.05429627746343613,
0.0105112474411726,
0.025390345603227615,
-0.03366440162062645,
0.04804634675383568,
-0.004647498484700918,
-0.038706958293914795,
-0.03368215635418892,
0.034392375499010086,
-0.026935072615742683,
0.015607072040438652,
0.03810327127575874,
0.03487177565693855,
0.013645091094076633,
-0.00760822556912899,
0.0514909103512764,
-0.014426331967115402,
0.005442056339234114,
-0.029225530102849007,
-0.07627756893634796,
0.008695749565958977,
-0.011674231849610806,
-0.010662169195711613,
0.01190505363047123,
0.01779099740087986,
-0.029953503981232643,
0.002057416830211878,
-0.028426533564925194,
0.01242884062230587,
0.01593554951250553,
-0.015189818106591702,
-0.0166457686573267,
0.04431769251823425,
-0.030326370149850845,
0.026100564748048782,
0.02531932294368744,
-0.015163185074925423,
0.013645091094076633,
0.0278761126101017,
0.004554281942546368,
-0.005344401113688946,
-0.005819360725581646,
0.025780966505408287,
-0.024396037682890892,
0.026100564748048782,
-0.02570994384586811,
0.021963536739349365,
0.015278595499694347,
0.004172539338469505,
0.002587862079963088,
0.04719408228993416,
0.004516551736742258,
-0.01177188754081726,
-0.015979938209056854,
-0.01790640689432621,
0.10525452345609665,
0.1416177600622177,
-0.013130181469023228,
-0.030788011848926544,
0.019850634038448334,
-0.04648386314511299,
-0.04882758483290672,
-0.047300614416599274,
-0.014506231993436813,
0.01448847632855177,
0.06125642731785774,
-0.031373944133520126,
0.05227215215563774,
-0.01006736047565937,
0.0030095549300312996,
0.01839468441903591,
-0.019832877442240715,
-0.041902948170900345,
0.0834507867693901,
-0.06644102931022644,
0.04783327877521515,
-0.04119272902607918,
-0.006041304208338261,
0.025887498632073402,
-0.0030694797169417143,
-0.013920300640165806,
-0.0819593220949173,
-0.009179586544632912,
0.05014149099588394,
0.01177188754081726,
0.0008883291739039123,
-0.003173793200403452,
0.0003820203710347414,
-0.026278119534254074,
0.022780288010835648,
-0.051988061517477036,
0.025869743898510933,
-0.009499184787273407,
0.03435686603188515,
0.0017400375800207257,
-0.03678936883807182,
0.02549687772989273,
0.006618357263505459,
-0.0306992344558239,
0.004860564135015011,
0.011434532701969147,
-0.012411084957420826,
0.0016579185612499714,
0.057598795741796494,
0.013298858888447285,
0.03025534749031067,
-0.03277662768959999,
-0.03132067620754242,
-0.024555837735533714,
0.01600657030940056,
0.03108985535800457,
0.03835184872150421,
-0.03410828858613968,
0.006724890321493149,
0.04825941100716591,
0.02189251407980919,
0.03646976873278618,
0.02162618190050125,
-0.02333070896565914,
-0.012988138012588024,
0.004643059801310301,
-0.017648953944444656,
0.012562006711959839,
-0.01095513440668583,
0.0005640141316689551,
-0.04410462826490402,
0.05923230201005936,
-0.008695749565958977,
-0.03966575488448143,
-0.07499917596578598,
0.008278495632112026,
-0.010795335285365582,
0.015917792916297913,
0.007368526887148619,
0.015207573771476746,
-0.02998901531100273,
0.03274111449718475,
0.07997070997953415,
0.005082508083432913,
0.0037197743076831102,
0.004487698897719383,
-0.011709743179380894,
0.019761856645345688,
0.04531199857592583,
0.04303929954767227,
-0.020028188824653625,
-0.060155585408210754,
-0.0032492538448423147,
-0.038067761808633804,
-0.043856050819158554,
-0.009015347808599472,
-0.009259485639631748,
-0.05646244436502457,
0.017453642562031746,
0.026491185650229454,
-0.039133090525865555,
0.04282623156905174,
0.013103548437356949,
-0.04996393620967865,
0.0510292686522007,
-0.05486445128917694,
-0.0019342382438480854,
0.024289505556225777,
0.04424666985869408,
-0.004345654975622892,
0.021395361050963402,
-0.053728099912405014,
-0.03220845013856888,
-0.01009399350732565,
-0.0007296394906006753,
0.00041531192255206406,
-0.0415833480656147,
0.0013882570201531053,
0.0001972523459699005,
0.012890483252704144,
0.032457027584314346,
-0.03320275992155075,
0.0007584921550005674,
-0.019655322656035423,
-0.0197263453155756,
-0.04396258294582367,
-0.005446495488286018,
-0.0432523638010025,
0.07357873767614365,
-0.046199776232242584,
-0.027716314420104027,
-0.036753855645656586,
-0.01949552446603775,
0.00622329767793417,
0.022602733224630356,
-0.04719408228993416,
0.05252072587609291,
0.05571671575307846,
0.007914507761597633,
-0.043429918587207794,
-0.02120004966855049,
-0.012393329292535782,
-0.005535272881388664,
-0.003604363650083542,
-0.01040471438318491,
0.042329080402851105,
0.03302520513534546,
0.03586608171463013,
-0.005433178506791592,
0.02011696621775627,
-0.05053211376070976,
0.05078069120645523,
-0.002578984247520566,
-0.023241931572556496,
0.003169354284182191,
-0.03021983802318573,
0.03087679110467434,
-0.0065695298835635185,
0.03643425554037094,
0.05184601992368698,
0.020241254940629005,
-0.018083961680531502,
-0.01639719121158123,
0.06665409356355667,
-0.0406600646674633,
-0.01384040154516697,
0.015500538982450962,
0.05138437822461128,
0.0647365003824234,
-0.020951474085450172,
0.027609780430793762,
-0.02697058394551277,
-0.04950229451060295,
-0.05418974161148071,
-0.017329353839159012,
-0.01970858871936798,
-0.00579272722825408,
0.033557869493961334,
0.01992165483534336,
-0.061433982104063034,
-0.05898372456431389,
0.05596529319882393,
-0.0493602529168129,
0.07024070620536804,
0.033770933747291565,
-0.000805655203294009,
0.027911623939871788,
0.010875235311686993,
-0.0010764263570308685,
0.011274733580648899,
-0.01905163563787937,
-0.03251029551029205,
0.029491862282156944,
0.028035912662744522,
0.04172539338469505,
-0.007661492098122835,
0.04076659679412842,
-0.003413492115214467,
-0.11754132062196732,
-0.008176401257514954,
-0.02958063967525959,
0.033575624227523804,
0.002514620777219534,
0.027059361338615417,
0.037428565323352814,
0.02785835787653923,
-0.001954213250428438,
0.014932363294064999,
0.031143123283982277,
-0.05592978000640869,
-0.012304551899433136,
0.045951198786497116,
-0.026686495169997215,
-0.0463063083589077,
-0.024751147255301476,
-0.031249655410647392,
0.04133477061986923,
0.047052036970853806,
0.03517361730337143,
0.002403648803010583,
0.03796122968196869,
0.04659039527177811,
-0.016113104298710823,
0.014603887684643269,
0.0406600646674633,
-0.02400541678071022,
0.00837171170860529,
0.05110028758645058,
0.014719298109412193,
0.003111648838967085,
0.015092163346707821,
-0.010742069222033024,
-0.013032526709139347,
-0.006010232027620077,
0.004634181968867779,
-0.00510026328265667,
0.025408100336790085,
0.07244238257408142,
-0.038280826061964035,
-0.015704726800322533,
0.0065606520511209965,
0.016601379960775375,
0.013751624152064323,
0.023099888116121292,
-0.0220878254622221,
0.009410407394170761,
0.03401951119303703,
0.01825263909995556,
0.029314307495951653,
-0.012153630144894123,
0.01692097820341587
] |
20,940 | argparse | _fill_text | null | def _fill_text(self, text, width, indent):
text = self._whitespace_matcher.sub(' ', text).strip()
import textwrap
return textwrap.fill(text, width,
initial_indent=indent,
subsequent_indent=indent)
| (self, text, width, indent) | [
0.032691590487957,
-0.008781194686889648,
0.029389411211013794,
0.05120118707418442,
0.00205408688634634,
-0.035541895776987076,
-0.025617972016334534,
-0.087177574634552,
0.045570097863674164,
0.04153795912861824,
-0.02188129350543022,
-0.03830530121922493,
0.009993442334234715,
-0.007399492431432009,
-0.011097066104412079,
0.004138588905334473,
0.032465651631355286,
-0.005487703252583742,
0.02514871582388878,
0.006500082556158304,
0.07278702408075333,
-0.023097887635231018,
0.028416136279702187,
0.020299723371863365,
0.008277177810668945,
-0.009098378010094166,
0.015946058556437492,
-0.001208989298902452,
0.007959994487464428,
0.00610469002276659,
0.03882669657468796,
-0.04570913687348366,
0.02973700873553753,
0.038652896881103516,
0.04883752018213272,
-0.01744941994547844,
0.001714092679321766,
-0.10177669674158096,
0.0031110020354390144,
-0.06517462432384491,
-0.01181833166629076,
0.011566323228180408,
0.02719954401254654,
-0.029146092012524605,
0.013573701493442059,
-0.020178064703941345,
0.112413190305233,
-0.015754878520965576,
-0.022785048931837082,
-0.0321875736117363,
0.016528284177184105,
0.010984096676111221,
0.02248959057033062,
0.035454995930194855,
0.008976718410849571,
0.04268503561615944,
0.008559600450098515,
0.017397280782461166,
0.08557862788438797,
-0.08828989416360855,
0.01130562461912632,
-0.008755124174058437,
0.011157895438373089,
0.024801116436719894,
-0.05606755614280701,
0.003877890296280384,
-0.004397114738821983,
0.004160313401371241,
0.056762754917144775,
0.0029176506213843822,
0.042997874319553375,
0.03920905292034149,
-0.015224792063236237,
-0.0356287956237793,
0.015276932157576084,
0.04654337093234062,
-0.018075095489621162,
-0.010245450772345066,
0.06830300390720367,
-0.05832694470882416,
0.02076897956430912,
0.051965899765491486,
0.017345139756798744,
0.0071692089550197124,
0.04543105885386467,
-0.0321180559694767,
-0.016128547489643097,
0.011340384371578693,
0.040495168417692184,
-0.011479424312710762,
0.03128381818532944,
-0.002615674864500761,
0.021794393658638,
-0.03347368910908699,
0.012565667741000652,
0.016649944707751274,
0.06406231224536896,
-0.07313461601734161,
-0.02744286134839058,
0.04522249847650528,
-0.04056468605995178,
0.014147238805890083,
0.004805542528629303,
0.021898673847317696,
-0.021898673847317696,
-0.08293688297271729,
-0.00015954204718582332,
-0.013982129283249378,
0.06350615620613098,
0.0528348945081234,
0.015998197719454765,
-0.10003870725631714,
0.013669291511178017,
-0.028450896963477135,
0.01986522600054741,
-0.01349549274891615,
-0.07146614789962769,
0.02499229647219181,
0.044840142130851746,
-0.0562065951526165,
0.007942614145576954,
-0.05248729884624481,
0.0008874611230567098,
-0.005839646328240633,
0.004497048910707235,
0.09211347252130508,
-0.05339105427265167,
0.037957701832056046,
0.08550910651683807,
-0.02387998253107071,
-0.018944090232253075,
0.005379078909754753,
0.051062144339084625,
-0.021933434531092644,
0.0083336615934968,
-0.02056042104959488,
-0.03290015086531639,
0.04334546998143196,
-0.009411215782165527,
0.027547141537070274,
0.0074255624786019325,
-0.017649289220571518,
0.02858993597328663,
0.004121208563446999,
0.018040336668491364,
0.050123631954193115,
0.0021257789339870214,
0.030797183513641357,
0.012548287399113178,
0.0643751472234726,
0.014121168293058872,
0.03601115196943283,
0.04640433192253113,
0.056797511875629425,
-0.0004176607180852443,
0.012278899550437927,
-0.011948681436479092,
-0.039139535278081894,
0.07869618386030197,
0.0022811118979007006,
-0.02040400169789791,
-0.0539819709956646,
-0.010914577171206474,
-0.013417283073067665,
-0.00456656888127327,
0.057006072252988815,
-0.033369407057762146,
-0.033247750252485275,
-0.008446631021797657,
-0.03185735642910004,
-0.030692903324961662,
-0.04230267554521561,
0.02949368953704834,
-0.013365142978727818,
-0.0057353670708835125,
0.024158060550689697,
-0.06096868962049484,
0.007160518784075975,
0.02306312695145607,
-0.026347927749156952,
-0.04956747591495514,
-0.03542023524641991,
0.009767503477633,
0.031144781038165092,
-0.0010732088703662157,
-0.03608067333698273,
-0.01823151484131813,
0.0018140270840376616,
-0.019569767639040947,
-0.004036481957882643,
-0.019691426306962967,
-0.02363666333258152,
0.015589769929647446,
-0.0366368293762207,
-0.011575013399124146,
0.007642811164259911,
-0.0009553513955324888,
0.01654566451907158,
-0.02589605003595352,
-0.0023180441930890083,
-0.007690605707466602,
0.014407937414944172,
-0.0006099258898757398,
-0.011296935379505157,
0.06715593487024307,
-0.022593870759010315,
-0.02170749567449093,
-0.010549599304795265,
-0.12207641452550888,
0.00037638345384038985,
-0.01605033688247204,
-0.02257649041712284,
0.04146844148635864,
-0.017970817163586617,
-0.007316937670111656,
-0.06312379986047745,
0.04793376475572586,
0.02883325330913067,
0.01823151484131813,
-0.004536153748631477,
0.001349114696495235,
0.004727332852780819,
0.010123792104423046,
-0.028746355324983597,
-0.022906707599759102,
-0.0064827026799321175,
-0.01366060134023428,
-0.038479097187519073,
-0.00630890391767025,
0.019569767639040947,
0.016641253605484962,
-0.06663453578948975,
-0.04821184277534485,
-0.02245482988655567,
0.00043395438115112484,
-0.11873947829008102,
-0.020699460059404373,
-0.05940449982881546,
0.02436661906540394,
-0.0709795132279396,
-0.015129202976822853,
-0.017232170328497887,
-0.011557633057236671,
0.015311691910028458,
-0.026851944625377655,
-0.0071692089550197124,
-0.06037777289748192,
0.017310380935668945,
0.028033778071403503,
0.007099688984453678,
-0.07515069097280502,
0.03260469064116478,
-0.028815874829888344,
0.029302511364221573,
-0.011192655190825462,
0.005253074690699577,
-0.001765146036632359,
0.005683227442204952,
-0.009080997668206692,
0.01847483403980732,
0.03834005817770958,
-0.0333346463739872,
-0.04355403035879135,
0.026938844472169876,
0.040251847356557846,
0.01986522600054741,
-0.03973045200109482,
-0.009437285363674164,
-0.0083336615934968,
-0.04331070929765701,
0.029093952849507332,
0.03604591265320778,
0.06458371132612228,
0.0037996806204319,
0.00630890391767025,
0.06586982309818268,
0.03124905936419964,
0.06670405715703964,
0.022141993045806885,
-0.07369077950716019,
0.010080342181026936,
0.02028234302997589,
-0.03538547456264496,
-0.03896573558449745,
-0.020699460059404373,
0.00039892300264909863,
-0.013043615035712719,
0.012939335778355598,
-0.015355141833424568,
-0.0303974449634552,
-0.002359321340918541,
0.046195775270462036,
0.06298475712537766,
0.039139535278081894,
0.037297263741493225,
0.008407526649534702,
0.0020073784980922937,
0.07730579376220703,
-0.028659455478191376,
-0.0664607360959053,
-0.026521727442741394,
0.01423413772135973,
-0.03514215722680092,
-0.01227020937949419,
0.042789313942193985,
-0.028607314452528954,
-0.075706847012043,
0.03031054511666298,
0.0562761165201664,
-0.03719298541545868,
-0.05165306106209755,
-0.004996721167117357,
0.011366454884409904,
0.019517628476023674,
0.03621971234679222,
-0.007612396031618118,
-0.017883917316794395,
0.01671946421265602,
0.040078047662973404,
0.007933923974633217,
0.026799805462360382,
-0.07953042536973953,
-0.004744712729007006,
0.006304558832198381,
0.002513567917048931,
0.008559600450098515,
0.04477062076330185,
0.005713642109185457,
-0.042997874319553375,
0.010801607742905617,
0.017110511660575867,
0.034273162484169006,
0.017623217776417732,
-0.03363010659813881,
-0.059995416551828384,
-0.009159207344055176,
0.009567635133862495,
-0.01847483403980732,
0.01386915985494852,
-0.009515495039522648,
0.04848992079496384,
0.016241516917943954,
-0.025426793843507767,
-0.03251779451966286,
0.06211576238274574,
-0.020421382039785385,
0.051305465400218964,
0.008229382336139679,
0.04223315790295601,
-0.014842434786260128,
0.004740367643535137,
-0.007851369678974152,
0.06399279087781906,
-0.05252205953001976,
0.04501394182443619,
-0.059334978461265564,
-0.010966717265546322,
0.022020332515239716,
-0.06378423422574997,
-0.03924381360411644,
-0.05234825983643532,
0.019482867792248726,
-0.021394656971096992,
0.004583948757499456,
0.03368224576115608,
0.013565012253820896,
-0.05686703324317932,
0.049463193863630295,
-0.03482931852340698,
0.08384063839912415,
0.05936973914504051,
-0.05526808276772499,
-0.01724955067038536,
-0.03128381818532944,
0.01814461499452591,
0.01314789429306984,
-0.03990425169467926,
-0.033942945301532745,
-0.06976291537284851,
-0.022541729733347893,
-0.009124447591602802,
0.01171405240893364,
-0.006743401288986206,
-0.0017738360911607742,
-0.034846700727939606,
-0.02285456843674183,
-0.021412037312984467,
-0.03368224576115608,
0.02182915434241295,
-0.00647401250898838,
-0.02511395514011383,
-0.028868013992905617,
0.040738485753536224,
0.08898508548736572,
-0.00013897131429985166,
-0.006691261660307646,
-0.010619118809700012,
-0.01359977200627327,
0.03486407920718193,
0.02158583514392376,
0.020751601085066795,
-0.027929499745368958,
0.05825742334127426,
0.008529186248779297,
-0.0025048779789358377,
0.016641253605484962,
0.020334482192993164,
-0.007316937670111656,
0.023358585312962532,
0.07765339314937592,
-0.0009200484491884708,
0.017953436821699142,
0.035333335399627686,
0.002822061302140355,
0.04428398609161377,
-0.05293917655944824,
0.03802721947431564,
0.04108608514070511,
-0.014616495929658413,
0.021533695980906487,
-0.029406791552901268,
-0.04490965977311134,
-0.021742254495620728,
0.04918511584401131,
-0.026817185804247856,
-0.0172408614307642,
-0.0016739015700295568,
-0.0015424661105498672,
0.013504181988537312,
-0.05943925678730011,
0.0027416793163865805,
-0.030206266790628433,
-0.009011478163301945,
-0.005222660023719072,
-0.048316121101379395,
0.003408632939681411,
0.023810463026165962,
0.04424922540783882,
0.03112740069627762,
-0.007403837516903877,
0.04198983684182167,
-0.033195607364177704,
0.02892015315592289,
0.05603279918432236,
0.01683243364095688,
-0.014573046006262302,
-0.023097887635231018,
0.024158060550689697,
-0.03830530121922493,
0.010862437076866627,
0.014095098711550236,
0.07445549219846725,
-0.052209220826625824,
0.03342154622077942,
-0.0447358638048172,
-0.023897362872958183,
0.027634041383862495,
-0.04202459752559662,
0.03352582827210426,
0.0676773339509964,
-0.006586981937289238,
0.027130024507641792,
-0.02167273499071598,
-0.006330628413707018,
-0.02511395514011383,
-0.006378423422574997,
-0.024957535788416862,
-0.03015412576496601,
-0.028694214299321175,
-0.009028857573866844,
-0.007638466078788042,
0.0027525415644049644,
-0.005526808090507984,
0.008885473944246769,
0.03482931852340698,
-0.04779472574591637,
-0.02822495810687542,
0.022141993045806885,
0.007899164222180843,
0.02118609845638275,
-0.0036171916872262955,
-0.03834005817770958,
-0.016415314748883247,
-0.007382112555205822,
-0.024262340739369392,
0.00913313776254654,
0.0458829365670681,
-0.00985440332442522,
0.013269553892314434,
0.01700623147189617,
-0.04195507988333702,
0.03363010659813881,
0.003328250953927636,
-0.008159862831234932,
-0.05019314959645271,
-0.03263945132493973,
0.020629940554499626,
-0.010714707896113396,
0.0015533285913988948,
-0.0504017099738121,
-0.02137727662920952,
-0.006130759604275227,
-0.04112084209918976,
0.019343828782439232,
0.032048534601926804,
0.006417528260499239,
-0.035246435552835464,
0.002891580807045102,
0.028972292318940163,
0.01937858760356903,
-0.039139535278081894,
0.02043876238167286,
-0.07459452748298645,
-0.03239613398909569,
-0.02834661677479744,
-0.05443384498357773,
-0.014651255682110786,
-0.05186162143945694,
0.00615682965144515,
-0.061142489314079285,
-0.03993900865316391,
0.075706847012043,
0.0011981268180534244,
-0.06892868131399155,
0.002967617940157652,
-0.011314314790070057,
0.08057321608066559,
0.016580425202846527,
0.016788983717560768,
-0.026573866605758667,
-0.008107723668217659,
0.07250894606113434,
0.007933923974633217,
-0.00780357513576746,
0.05394721031188965,
-0.03359534591436386,
-0.023202165961265564,
-0.019552387297153473,
-0.02593081071972847,
0.03265683352947235,
0.01720610074698925,
0.02481849677860737,
-0.046647652983665466,
-0.0356287956237793,
-0.023341204971075058,
0.04650861397385597,
0.010149861685931683,
-0.041398920118808746,
-0.010992786847054958,
0.02122085727751255,
-0.09426857531070709,
-0.026121988892555237,
-0.019204789772629738,
0.011731432750821114,
-0.03535071760416031,
-0.0065218075178563595,
-0.02825971692800522,
-0.006773815955966711,
0.0642361119389534,
0.03986949101090431,
0.0436583086848259,
0.01638055592775345,
0.07779243588447571,
-0.04748188704252243,
-0.011279555037617683,
-0.03526381775736809,
-0.06600885838270187,
0.03088408149778843,
-0.04977603256702423,
0.03072766400873661,
0.0562065951526165,
-0.041642241179943085,
-0.0027938189450651407,
-0.01962190680205822,
-0.08745566010475159,
-0.047412365674972534,
-0.059752095490694046,
0.013964749872684479,
-0.01503361389040947,
0.03371700644493103,
-0.02846827544271946,
0.032708972692489624,
0.017188720405101776,
-0.05533760040998459,
-0.02556583285331726,
-0.06395803391933441,
-0.011905231513082981,
0.012096410617232323,
-0.010480079799890518,
-0.00044454526505433023,
0.016111167147755623,
0.021394656971096992,
0.00970667414367199,
0.0076645356602966785,
0.008468355983495712,
0.04918511584401131,
-0.007212658412754536,
-0.002136641414836049,
-0.0126178078353405,
-0.07994753867387772,
-0.02695622481405735,
0.048524681478738785,
-0.10038629919290543,
0.0802951380610466,
0.023497624322772026,
0.058883100748062134,
0.029754389077425003,
0.008842024020850658,
-0.02228103205561638,
-0.038235779851675034,
0.03747106343507767,
0.026486966758966446,
0.025218235328793526,
-0.01554632093757391,
-0.020143304020166397,
0.030015086755156517,
-0.01515527255833149,
-0.04848992079496384,
0.050123631954193115,
-0.04789900407195091,
0.030084606260061264,
0.030049847438931465,
-0.0652441456913948,
0.0011231760727241635,
0.007173553574830294,
0.05210493877530098,
-0.023827843368053436,
-0.00852049607783556,
0.010914577171206474,
-0.06555698066949844,
0.004284145310521126,
0.050471231341362,
-0.010679948143661022,
-0.0065913270227611065,
-0.0653136670589447,
0.0356287956237793,
-0.049219876527786255,
-0.01432103756815195,
-0.003960444591939449,
-0.022559110075235367,
0.03802721947431564,
0.013486802577972412,
-0.0026830220595002174,
0.000847813265863806,
-0.016337106004357338,
-0.06972815841436386,
-0.019795706495642662,
-0.03263945132493973,
-0.09753599762916565,
-0.024140680208802223,
-0.03608067333698273,
-0.04821184277534485,
0.02716478332877159,
-0.0367063470184803,
0.05808362737298012,
0.03701918572187424,
0.011835712008178234,
-0.04275455325841904,
-0.023236926645040512,
0.011392524465918541,
0.019065750762820244,
0.05099262669682503,
-0.025513693690299988,
0.04334546998143196,
0.026452207937836647,
-0.034186262637376785,
0.015085753053426743,
-0.020039023831486702,
0.042789313942193985,
-0.027025744318962097,
0.025531072169542313,
0.05165306106209755,
0.008915889076888561,
0.032500412315130234,
-0.028294477611780167,
-0.006456632632762194,
0.027373341843485832,
-0.014042959548532963,
0.048281360417604446,
0.013321693055331707,
0.007986064068973064,
-0.035333335399627686,
-0.0057353670708835125,
-0.05394721031188965,
-0.0029328581877052784,
0.025044435635209084,
-0.03173569589853287,
-0.04372783005237579,
-0.0033412857446819544,
-0.02052566222846508,
-0.015398591756820679,
-0.05022791028022766,
0.024227580055594444,
-0.03378652408719063,
-0.039765212684869766,
-0.010593049228191376,
-0.011010166257619858,
-0.017831778153777122,
0.06917200237512589,
-0.026573866605758667,
0.04306739196181297,
0.046473853290081024,
-0.03879193589091301,
-0.007442942354828119,
0.012461388483643532,
0.010740778408944607,
0.013339073397219181,
0.03298705071210861,
-0.04789900407195091,
0.018492214381694794,
0.0412946417927742,
0.040912285447120667,
-0.024349240586161613,
0.02707788348197937,
0.07751435041427612,
0.05293917655944824,
0.005991720594465733,
-0.0919049084186554,
0.016736844554543495,
0.022298412397503853,
0.0001292630040552467,
0.05808362737298012,
0.0004323250032030046,
-0.06493130326271057,
-0.042337436228990555,
0.08210264891386032,
-0.04522249847650528,
0.01901360973715782,
0.01094064675271511,
0.0042645931243896484,
0.004766437690705061,
0.04240695759654045,
0.03969569131731987,
0.026452207937836647,
-0.0008532444480806589,
0.05015839263796806,
0.020125923678278923,
0.0379229411482811,
0.017432039603590965,
-0.0027481967117637396,
-0.05349533259868622,
0.014929333701729774,
-0.04445778578519821,
0.060238733887672424,
0.02514871582388878,
0.020925398916006088,
0.01868339255452156,
0.0505407489836216,
-0.046265292912721634,
0.03642826899886131,
0.05293917655944824,
0.015224792063236237,
-0.037957701832056046,
0.01032366044819355,
0.01998688466846943,
0.0013599771773442626,
-0.004171175882220268,
0.02535727433860302,
0.04550057649612427,
0.03510739654302597,
0.0033673555590212345,
-0.03531595692038536,
-0.02195081301033497,
0.05558092147111893,
-0.00794695969671011,
0.05238301679491997,
0.020994918420910835,
0.06618265807628632
] |
20,941 | argufy.formatter | _format_action | Format arguments. | def _format_action(self, action: Action) -> str:
"""Format arguments."""
if isinstance(action, argparse._SubParsersAction._ChoicesPseudoAction):
subcommand = self.shade(
self.font(self._format_action_invocation(action))
)
help_text = self._expand_help(action)
# TODO: calculate correct spacing
return f" {subcommand.ljust(37)}{help_text}\n"
# action.option_strings = [
# self.font(self.shade(option))
# for option in action.option_strings
# ]
return super()._format_action(action)
| (self, action: argparse.Action) -> str | [
-0.030029229819774628,
-0.05099031701683998,
0.06793911010026932,
0.0017924878047779202,
0.03276406601071358,
-0.03047903999686241,
0.020313361659646034,
0.019251814112067223,
0.02301221527159214,
-0.0715375766158104,
0.02196865901350975,
0.02274232916533947,
-0.0014157729456201196,
-0.0057845404371619225,
-0.010966336354613304,
0.04821949452161789,
0.04929903522133827,
-0.019107874482870102,
0.03323186933994293,
0.03359171748161316,
0.0868670642375946,
-0.020043477416038513,
-0.0122258011251688,
-0.08398828655481339,
0.0016654167557135224,
0.019665637984871864,
0.03882749006152153,
-0.024019785225391388,
-0.00008841553062666208,
-0.04386534541845322,
-0.008645324036478996,
-0.019791584461927414,
0.02677261456847191,
0.057323623448610306,
-0.04678010568022728,
0.020565254613757133,
-0.044872917234897614,
0.027906132861971855,
0.0039965505711734295,
-0.0201154462993145,
0.0010890993289649487,
-0.0648084431886673,
0.006099406164139509,
-0.019575675949454308,
-0.00883424375206232,
-0.016076164320111275,
0.013107426464557648,
0.05645999312400818,
-0.09240870177745819,
-0.10737834125757217,
0.04472897946834564,
-0.06718343496322632,
-0.014915657229721546,
0.02259838953614235,
-0.0028158025816082954,
0.04742783308029175,
0.04472897946834564,
-0.020997071638703346,
0.017767444252967834,
0.027546286582946777,
0.04832744970917702,
0.07758300751447678,
0.024937395006418228,
-0.003841366618871689,
-0.013422292657196522,
-0.04771570861339569,
0.020043477416038513,
0.006760625168681145,
-0.03485117852687836,
0.03254815936088562,
0.0501626692712307,
-0.013737158849835396,
0.010705447755753994,
-0.00666166702285409,
-0.01962965354323387,
0.00303845782764256,
-0.016705896705389023,
-0.005204286891967058,
0.03675837069749832,
-0.02117699570953846,
-0.01962965354323387,
0.015698324888944626,
-0.012270782142877579,
0.021518848836421967,
0.03799984231591225,
-0.05257364362478256,
0.0006696527125313878,
0.019665637984871864,
-0.04404526948928833,
0.019521698355674744,
-0.02497338131070137,
-0.07614362239837646,
-0.0011942421551793814,
0.024001793935894966,
-0.052717581391334534,
0.04221004992723465,
-0.031324680894613266,
-0.05894293636083603,
-0.023444030433893204,
0.011883946135640144,
-0.056280069053173065,
0.013035456649959087,
0.04926305264234543,
0.013044453226029873,
0.02115900255739689,
-0.09024962037801743,
-0.03294399008154869,
0.00584751321002841,
-0.019179843366146088,
0.018397176638245583,
0.011874950490891933,
-0.002559411572292447,
0.02144687995314598,
-0.03638052940368652,
0.02848188765347004,
-0.03663242235779762,
-0.024937395006418228,
-0.03323186933994293,
0.02365993894636631,
-0.042821791023015976,
0.005982456263154745,
-0.04534072056412697,
0.033123914152383804,
-0.037460070103406906,
-0.0031216726638376713,
0.06013043224811554,
-0.0759996846318245,
0.018460150808095932,
-0.027420340105891228,
-0.02760026417672634,
-0.03778393194079399,
0.0039695617742836475,
-0.04026687890291214,
-0.03738810122013092,
0.0625414028763771,
-0.029957260936498642,
0.02115900255739689,
0.028014088049530983,
-0.007017015945166349,
0.0819011703133583,
0.016831843182444572,
-0.012009892612695694,
-0.017767444252967834,
-0.06534821540117264,
-0.040302861481904984,
-0.07020614296197891,
0.0241997092962265,
0.030281122773885727,
0.05998649075627327,
0.05138614773750305,
-0.03240422159433365,
0.06344102323055267,
0.02130294218659401,
-0.0759996846318245,
0.06257738918066025,
0.01825323887169361,
0.000509408360812813,
-0.06027437001466751,
0.011605065315961838,
-0.0031756495591253042,
0.017947368323802948,
-0.09104128926992416,
-0.0021242217626422644,
-0.0022220551036298275,
0.0009575303411111236,
0.024343648925423622,
0.007975108921527863,
0.018891965970396996,
0.007462326902896166,
-0.005820524878799915,
-0.013440284878015518,
-0.029201582074165344,
0.03515705093741417,
-0.010156680829823017,
-0.0026583694852888584,
0.07787088304758072,
-0.057827409356832504,
0.021518848836421967,
0.0045340717770159245,
-0.0749921128153801,
-0.03951120004057884,
-0.02966938354074955,
-0.0008810628205537796,
0.014357894659042358,
0.02222055196762085,
-0.09607914090156555,
0.03864756599068642,
0.04976683855056763,
-0.03254815936088562,
0.012981479987502098,
0.00734987435862422,
-0.04440511763095856,
-0.009266059845685959,
0.015590370632708073,
-0.0665716901421547,
-0.027348371222615242,
-0.06585199385881424,
-0.0789504274725914,
0.07351674139499664,
-0.020475292578339577,
-0.06883873045444489,
-0.01587824709713459,
-0.03781991824507713,
0.0451967790722847,
0.06207360327243805,
0.046600185334682465,
0.06290125101804733,
-0.0012403475120663643,
-0.06682358682155609,
-0.024019785225391388,
-0.04364943876862526,
-0.035498905926942825,
0.019683629274368286,
-0.006877575535327196,
-0.0134672736749053,
-0.016409022733569145,
0.05516454204916954,
0.023947816342115402,
-0.05620810016989708,
0.05160205811262131,
0.010156680829823017,
0.0031846456695348024,
0.023480014875531197,
-0.012387732043862343,
0.0198635533452034,
0.013053448870778084,
0.031288694590330124,
0.019413745030760765,
-0.026052922010421753,
-0.0015214780578389764,
-0.013260360807180405,
-0.05977058410644531,
-0.0017463823314756155,
0.05570431426167488,
-0.051314178854227066,
-0.001990403514355421,
0.01005772314965725,
-0.05145811662077904,
-0.018891965970396996,
-0.012171824462711811,
-0.02088911645114422,
0.03427542373538017,
0.030407069250941277,
-0.024667510762810707,
-0.016247091814875603,
-0.08801857382059097,
0.02981332316994667,
-0.010075715370476246,
-0.010021738708019257,
-0.004475596826523542,
-0.03184645622968674,
0.03344777598977089,
0.0027933120727539062,
-0.010804405435919762,
-0.04929903522133827,
-0.0489032045006752,
-0.01592322811484337,
0.03596670553088188,
-0.0297953300178051,
-0.017290648072957993,
-0.018873974680900574,
0.04091460257768631,
-0.004351899493485689,
-0.0196116603910923,
0.010894367471337318,
0.017056746408343315,
-0.005977957975119352,
-0.01802833378314972,
-0.030299115926027298,
0.012171824462711811,
0.0722212865948677,
0.013152407482266426,
-0.042533911764621735,
0.027618255466222763,
-0.016471995040774345,
0.023839863017201424,
0.04066270962357521,
0.007655744440853596,
-0.03150460496544838,
-0.044369131326675415,
0.05304144322872162,
-0.026718638837337494,
-0.016579950228333473,
0.042821791023015976,
-0.024379633367061615,
0.0075028096325695515,
0.005276256240904331,
0.03904339671134949,
0.003387059783563018,
0.06545616686344147,
0.007471323013305664,
0.05897891893982887,
0.03799984231591225,
-0.009329033084213734,
-0.007507307454943657,
0.030622977763414383,
0.043721407651901245,
-0.002620135899633169,
-0.0074038514867424965,
-0.06113800033926964,
-0.005766547750681639,
-0.023192137479782104,
-0.03154058754444122,
-0.012855533510446548,
-0.01583326794207096,
-0.005276256240904331,
0.01555438619107008,
-0.030928848311305046,
0.06117398664355278,
-0.029993245378136635,
-0.01744358241558075,
0.000053449926781468093,
0.01739860139787197,
-0.0030069714412093163,
0.02117699570953846,
0.036668408662080765,
-0.03753203898668289,
-0.013890093192458153,
0.03882749006152153,
0.06743532419204712,
-0.02572905831038952,
-0.011919931508600712,
0.013971058651804924,
0.023839863017201424,
0.014879672788083553,
-0.04350550100207329,
-0.03943922743201256,
0.040302861481904984,
0.02628682181239128,
0.020691201090812683,
-0.03368167579174042,
0.007921131327748299,
-0.011029309593141079,
-0.018010340631008148,
-0.05764748528599739,
0.012045877985656261,
-0.011668038554489613,
0.007786189205944538,
-0.06088610738515854,
0.004023538902401924,
0.04875926673412323,
0.06916259229183197,
-0.027996094897389412,
0.03799984231591225,
0.03611064329743385,
0.028589842841029167,
0.048687297850847244,
-0.008703798986971378,
0.018658066168427467,
-0.06394480913877487,
0.017164701595902443,
0.006256839260458946,
0.019143858924508095,
-0.012117846868932247,
0.05491264909505844,
0.005402202717959881,
-0.04613238200545311,
-0.0749921128153801,
-0.0457005649805069,
0.03423944115638733,
0.05480469390749931,
-0.04793161898851395,
0.03218831121921539,
0.01677786558866501,
0.00418771943077445,
-0.01662493124604225,
0.021788734942674637,
-0.036416515707969666,
0.0593387670814991,
-0.03467125818133354,
0.022814298048615456,
-0.027258409187197685,
0.01742558926343918,
-0.04321762174367905,
-0.030407069250941277,
0.06362094730138779,
-0.0196116603910923,
-0.0006117398734204471,
-0.017182692885398865,
-0.09147310256958008,
0.03303395211696625,
0.014546814374625683,
-0.0016732884105294943,
0.03344777598977089,
-0.046600185334682465,
-0.04911911115050316,
-0.0018644571537151933,
-0.004171975888311863,
0.015995198860764503,
0.01587824709713459,
-0.021482864394783974,
0.0030699444469064474,
0.007291399408131838,
-0.004821949638426304,
-0.005834019277244806,
-0.011856958270072937,
0.007201437838375568,
-0.019305789843201637,
-0.03623659163713455,
0.005190792493522167,
0.0496588833630085,
-0.06527624279260635,
0.008442909456789494,
-0.03512106463313103,
-0.02299422211945057,
-0.019305789843201637,
-0.013161403127014637,
0.05322136729955673,
-0.04091460257768631,
0.04206611216068268,
0.0024986874777823687,
-0.04256989806890488,
-0.02132093347609043,
0.03177448734641075,
0.03368167579174042,
-0.04026687890291214,
-0.07142962515354156,
0.06074216961860657,
-0.052105844020843506,
-0.011668038554489613,
0.0014618783025071025,
0.00777719309553504,
0.017245667055249214,
0.06578002870082855,
0.06919857114553452,
-0.014681756496429443,
-0.05552439019083977,
0.016121145337820053,
0.06603191792964935,
-0.03177448734641075,
-0.03699227049946785,
0.04015892371535301,
0.0049478961154818535,
0.012774568051099777,
0.005118823144584894,
0.016597941517829895,
0.039799075573682785,
-0.018999921157956123,
0.0441892109811306,
0.03961915150284767,
0.029543437063694,
-0.02051127701997757,
0.009841814637184143,
0.032854028046131134,
0.04105854034423828,
-0.01064247451722622,
-0.012450705282390118,
-0.02355198562145233,
0.02263437584042549,
-0.005519153084605932,
0.04911911115050316,
0.07974208891391754,
0.026844585314393044,
-0.04778767749667168,
-0.008114549331367016,
-0.05491264909505844,
0.056280069053173065,
0.015725312754511833,
-0.03420345485210419,
0.00929304864257574,
0.008937699720263481,
0.013386307284235954,
0.002440212294459343,
0.01666991226375103,
0.012954491190612316,
-0.06038232520222664,
0.035372957587242126,
0.020043477416038513,
-0.028949689120054245,
-0.012432713061571121,
0.016993774101138115,
0.009868803434073925,
0.01143413782119751,
0.03427542373538017,
0.0068910694681108,
0.021105024963617325,
0.008060572668910027,
0.020187415182590485,
-0.07614362239837646,
0.02547716535627842,
-0.013422292657196522,
-0.04760775715112686,
-0.010867378674447536,
0.024235693737864494,
-0.05160205811262131,
0.037711963057518005,
0.016427014023065567,
-0.017011765390634537,
-0.008330457843840122,
-0.030676955357193947,
-0.004718493670225143,
-0.03774794936180115,
-0.0011025936109945178,
-0.03781991824507713,
0.05160205811262131,
-0.0392233207821846,
0.0033623201306909323,
0.019395751878619194,
-0.03159456327557564,
0.006252341438084841,
0.00532123725861311,
0.023210130631923676,
0.036920301616191864,
-0.0173176359385252,
-0.008352948352694511,
-0.02088911645114422,
0.010066719725728035,
-0.005456179846078157,
-0.006841590628027916,
0.015464424155652523,
-0.00106042402330786,
-0.01867605745792389,
-0.0030676955357193947,
-0.02076316997408867,
-0.023569976910948753,
-0.01984556019306183,
-0.01725466363132,
0.05545242130756378,
0.09147310256958008,
0.008775767870247364,
-0.04012293741106987,
-0.010228650644421577,
-0.05937475338578224,
-0.029903283342719078,
-0.036146629601716995,
-0.009239071048796177,
0.023605961352586746,
0.04847138747572899,
-0.027348371222615242,
-0.026862576603889465,
0.013215380720794201,
0.03531898185610771,
0.04077066108584404,
0.005923980847001076,
-0.04505284130573273,
0.07542392611503601,
-0.07124970108270645,
0.06693153828382492,
0.0026583694852888584,
0.031072786077857018,
0.040842633694410324,
0.06049027666449547,
-0.04051877185702324,
-0.06988228112459183,
-0.02353399246931076,
0.015680331736803055,
0.04573655128479004,
-0.04066270962357521,
0.05502060428261757,
0.025837013497948647,
-0.060598231852054596,
0.05307742953300476,
-0.01831621117889881,
0.06437662243843079,
-0.01573430933058262,
0.01796535961329937,
0.029903283342719078,
-0.029903283342719078,
0.04051877185702324,
-0.01831621117889881,
-0.01733562909066677,
0.007232924457639456,
0.004428367130458355,
-0.03227827325463295,
-0.000594309763982892,
0.061497848480939865,
0.024397624656558037,
0.05372515320777893,
-0.04440511763095856,
-0.009027660824358463,
0.017074739560484886,
-0.030515024438500404,
-0.030802901834249496,
-0.010822397656738758,
-0.04386534541845322,
-0.05415697023272514,
0.04433314874768257,
0.028841735795140266,
0.03047903999686241,
0.05987853929400444,
0.006850586738437414,
-0.023084184154868126,
-0.013890093192458153,
-0.008496887050569057,
0.011901939287781715,
0.06369291245937347,
0.05397704616189003,
-0.05649597570300102,
0.02679060772061348,
-0.02851787395775318,
-0.07204136252403259,
-0.03199039772152901,
0.030011238530278206,
-0.018181268125772476,
-0.00259764539077878,
0.00009424898598808795,
0.025819020345807076,
-0.03096483275294304,
-0.009320036508142948,
0.01530249323695898,
0.01581527478992939,
0.01677786558866501,
-0.010291623882949352,
0.046852078288793564,
0.04271383583545685,
0.014636775478720665,
0.04210209846496582,
0.005735061131417751,
-0.05541643500328064,
0.008020089939236641,
-0.03215232864022255,
-0.029831314459443092,
0.01300846878439188,
-0.03137865662574768,
-0.06369291245937347,
0.026322806254029274,
0.019665637984871864,
-0.032602135092020035,
0.06387283653020859,
0.0002624352928251028,
-0.050126682966947556,
0.07384060323238373,
-0.09003371745347977,
0.027114469558000565,
-0.005658593960106373,
0.04080664739012718,
-0.04458504170179367,
0.02977733686566353,
-0.03785590082406998,
-0.10608288645744324,
0.005217781290411949,
-0.007673736661672592,
-0.0035085079725831747,
-0.05034259334206581,
-0.0038301213644444942,
-0.007768196519464254,
-0.024631526321172714,
0.03699227049946785,
-0.07384060323238373,
-0.01614813320338726,
0.08031784743070602,
-0.0384676419198513,
-0.048039570450782776,
0.04339754581451416,
-0.007079989183694124,
0.05606415867805481,
-0.06534821540117264,
0.00797061063349247,
-0.04688806086778641,
0.026430761441588402,
0.01856810413300991,
0.01869405061006546,
-0.08549964427947998,
0.026304814964532852,
0.02706049382686615,
-0.0006679659709334373,
-0.009886795654892921,
-0.03236823529005051,
-0.0332498624920845,
-0.006877575535327196,
0.018891965970396996,
0.041238464415073395,
0.01779443398118019,
0.03724416345357895,
0.019035905599594116,
-0.0648084431886673,
-0.01750655472278595,
-0.034707240760326385,
0.035750798881053925,
0.043721407651901245,
-0.013386307284235954,
-0.03684832900762558,
-0.03717219457030296,
0.04861532524228096,
-0.028553858399391174,
0.012657617218792439,
0.08067769557237625,
0.03546291962265968,
0.03368167579174042,
-0.007471323013305664,
0.0052627623081207275,
-0.06412473320960999,
-0.02130294218659401,
-0.022976228967308998,
0.04566458240151405,
-0.013053448870778084,
-0.015779290348291397,
0.020871125161647797,
-0.010939348489046097,
-0.0444411039352417,
-0.026322806254029274,
-0.03598469868302345,
-0.03127070143818855,
-0.014960638247430325,
0.04526875168085098,
0.03188244253396988,
-0.05264561250805855,
-0.01528450008481741,
0.06563609093427658,
-0.00918959267437458,
0.059014905244112015,
-2.1963316498840868e-7,
-0.0014877424109727144,
0.030155176296830177,
-0.011488114483654499,
-0.019521698355674744,
-0.0077187176793813705,
0.00985980685800314,
0.05088236182928085,
0.02864382043480873,
0.03503110259771347,
0.032206304371356964,
-0.015311488881707191,
0.05998649075627327,
-0.002037633443251252,
-0.04440511763095856,
-0.016094155609607697,
0.017092730849981308,
0.02572905831038952,
0.007682733237743378,
-0.018784012645483017,
0.05617211386561394,
0.038899458944797516,
-0.02182471938431263,
-0.010282627306878567,
0.026610683649778366,
-0.007601767312735319,
0.018181268125772476,
0.04354148358106613,
-0.030802901834249496,
-0.038215748965740204,
-0.012693602591753006,
-0.02340804599225521,
0.006720142439007759,
0.045304734259843826,
0.040194906294345856,
0.019773591309785843,
0.015041603706777096,
0.051817964762449265,
0.0033938067499548197,
-0.001468625501729548,
0.06171375885605812,
-0.000014320082300400827,
0.013899089768528938,
0.06707547605037689,
0.04969486966729164,
-0.03371766209602356,
-0.006328808609396219,
-0.014474844560027122,
0.008613836951553822,
0.011704022996127605,
0.005010869354009628,
0.0025436682626605034,
0.03531898185610771,
0.05491264909505844,
-0.029075635597109795,
0.008006595075130463,
0.01059749349951744,
0.0009991376427933574,
-0.01633705385029316,
-0.015545389614999294,
-0.039655137807130814,
0.0193597674369812,
0.01169502642005682,
0.06639176607131958,
-0.008451906032860279,
-0.0062433453276753426,
-0.02862582728266716
] |
20,958 | argufy.formatter | add_usage | Format usage message. | def add_usage(
self,
usage: Optional[str],
actions: Iterable[Action],
# groups: Iterable['ArgumentGroup'],
groups: Iterable['MutuallyExclusiveGroup'],
prefix: Optional[str] = 'usage: ',
) -> None:
"""Format usage message."""
if prefix is not None:
prefix = self.font(prefix)
super().add_usage(usage, actions, groups, prefix)
| (self, usage: Optional[str], actions: Iterable[argparse.Action], groups: Iterable[ForwardRef('MutuallyExclusiveGroup')], prefix: Optional[str] = 'usage: ') -> None | [
-0.04493142291903496,
0.001368644181638956,
0.06869152933359146,
-0.009548370726406574,
0.05815906450152397,
-0.0011713821440935135,
-0.005643025040626526,
0.02026701532304287,
0.0026242504827678204,
-0.06315932422876358,
0.02028474770486355,
0.03170378506183624,
0.02301538549363613,
0.007894915528595448,
0.0023737940937280655,
0.042590875178575516,
0.018422948196530342,
-0.055534813553094864,
-0.0012578227324411273,
0.02301538549363613,
0.024504825472831726,
0.010293090716004372,
-0.002834811108186841,
-0.0016279661795124412,
0.0034288137685507536,
0.0932672843337059,
0.052307695150375366,
-0.036633118987083435,
0.008019035682082176,
-0.0492224283516407,
-0.009566102176904678,
-0.02641982026398182,
-0.031863365322351456,
0.0038255543913692236,
0.014229466207325459,
-0.01570117473602295,
-0.03634941577911377,
0.02381329983472824,
-0.0005363755044527352,
0.004760887008160353,
0.03897366672754288,
-0.005111082457005978,
0.021135855466127396,
0.006777836009860039,
-0.00426662340760231,
0.041810695081949234,
0.037838853895664215,
0.07872751355171204,
-0.08057158440351486,
-0.04205893352627754,
0.03865450248122215,
-0.009982790797948837,
0.001133148674853146,
0.02638435736298561,
-0.043016429990530014,
0.04514420032501221,
0.058868322521448135,
0.021543677896261215,
0.03954107314348221,
0.017766885459423065,
0.040604956448078156,
0.08773507922887802,
0.03833533450961113,
-0.0240615401417017,
-0.04262633994221687,
-0.03322868421673775,
0.011356975883245468,
-0.03727145120501518,
-0.01588735356926918,
0.03319322317838669,
0.040214866399765015,
0.017164016142487526,
0.004293220583349466,
-0.018742114305496216,
0.04326467216014862,
0.010257627815008163,
-0.039434682577848434,
0.0030076925177127123,
0.022341592237353325,
-0.01340495515614748,
0.042590875178575516,
-0.009056324139237404,
0.02762555703520775,
0.016410430893301964,
0.05723703280091286,
-0.004149152897298336,
0.0021000653505325317,
-0.03571108356118202,
0.024114735424518585,
0.02003650739789009,
-0.01728813722729683,
-0.04482503607869148,
0.014273795299232006,
0.02062164433300495,
0.0182456336915493,
-0.03519687429070473,
-0.03847718611359596,
-0.07957862317562103,
-0.02501903660595417,
0.012713429518043995,
-0.0019172100583091378,
-0.06308840215206146,
0.0481230802834034,
-0.03681043162941933,
0.04046310484409332,
-0.062485530972480774,
0.0004998044460080564,
0.006822164636105299,
-0.002723989775404334,
0.027465973049402237,
0.016596611589193344,
-0.04255541414022446,
0.011605216190218925,
-0.008311604149639606,
0.009690222330391407,
0.01123285572975874,
-0.01132151298224926,
-0.061031557619571686,
0.005678487941622734,
0.014823469333350658,
-0.016773926094174385,
-0.029505087062716484,
0.014646154828369617,
-0.030728554353117943,
0.0248239915817976,
-0.01031968742609024,
-0.04822947084903717,
-0.016534551978111267,
0.06071238964796066,
-0.03095906414091587,
-0.01627744548022747,
-0.009362190961837769,
-0.004102607723325491,
-0.03787431865930557,
0.04514420032501221,
-0.01061225589364767,
0.044399481266736984,
0.040817733854055405,
-0.0113303791731596,
0.08298305422067642,
-0.0009502934408374131,
0.02241251803934574,
-0.0017576272366568446,
-0.026348894461989403,
0.0065517607145011425,
-0.034044332802295685,
0.017828945070505142,
0.016392700374126434,
-0.0014428944559767842,
-0.04244902357459068,
0.015727771446108818,
0.011764798313379288,
0.010160105302929878,
0.012509518302977085,
0.03337053582072258,
0.039044592529535294,
-0.014655021019279957,
-0.03773246705532074,
0.009105085395276546,
0.02540912851691246,
0.02539139613509178,
-0.05596036836504936,
0.015275620855391026,
0.027075881138443947,
0.02402607724070549,
0.025267276912927628,
0.015754368156194687,
0.06979087740182877,
-0.020692570134997368,
0.009113951586186886,
-0.018954889848828316,
-0.0003695893392432481,
0.07011004537343979,
0.05535750091075897,
0.0243984367698431,
0.04542790353298187,
-0.02539139613509178,
0.003863233607262373,
-0.0067911348305642605,
-0.07245059311389923,
-0.03925736993551254,
0.011552021838724613,
0.0014041069662198424,
-0.03358331322669983,
-0.004654498305171728,
-0.028281617909669876,
0.08255749940872192,
0.022199740633368492,
0.027519168332219124,
-0.01948683336377144,
0.04333559796214104,
0.03058670274913311,
0.0036770536098629236,
0.038051631301641464,
-0.01808605156838894,
-0.029061801731586456,
-0.042980968952178955,
-0.05475463345646858,
0.053300656378269196,
-0.05578305572271347,
-0.04202347248792648,
0.03118957206606865,
-0.0025400263257324696,
0.009264668449759483,
0.06667014956474304,
0.05081825703382492,
0.05858461931347847,
0.01646362617611885,
-0.06606727838516235,
-0.017749153077602386,
0.011800261214375496,
-0.03509048372507095,
0.012482921592891216,
0.04468318447470665,
-0.041385140269994736,
0.015222426503896713,
0.05475463345646858,
0.03310456499457359,
-0.06326571851968765,
0.0243984367698431,
0.027891527861356735,
-0.005009126849472523,
0.03074628673493862,
-0.009982790797948837,
0.012553847394883633,
0.007296480238437653,
0.09461487084627151,
0.0008677314617671072,
-0.040002088993787766,
0.001655671512708068,
0.03574654832482338,
-0.05447093024849892,
0.027306390926241875,
0.0628046989440918,
-0.07117392867803574,
0.01449543796479702,
-0.007637810427695513,
-0.011747067794203758,
0.03360104560852051,
-0.00891890563070774,
-0.037413302809000015,
0.006259192246943712,
0.03968292474746704,
0.02618931047618389,
-0.002985528204590082,
-0.037235986441373825,
-0.03471812605857849,
-0.007283181883394718,
-0.01132151298224926,
-0.02145502157509327,
-0.03514368087053299,
0.07702530175447464,
-0.033069103956222534,
-0.014965320937335491,
-0.0690816193819046,
0.003346805926412344,
-0.027448242530226707,
-0.052520472556352615,
0.014433377422392368,
-0.03794524446129799,
-0.03333507478237152,
0.005177575163543224,
0.00026320081087760627,
-0.009433116763830185,
0.030515778809785843,
0.033246416598558426,
0.028547590598464012,
-0.0036770536098629236,
-0.054329078644514084,
0.000371528702089563,
0.08000417798757553,
0.04939974471926689,
0.016543416306376457,
0.009344459511339664,
-0.038051631301641464,
-0.009176011197268963,
0.04585345834493637,
0.01003598514944315,
-0.017181748524308205,
-0.02102946676313877,
0.04908057674765587,
-0.03812255710363388,
-0.013254238292574883,
0.03996662795543671,
0.039044592529535294,
0.024753065779805183,
0.036845896393060684,
0.0591520257294178,
-0.03478905186057091,
0.026490744203329086,
-0.0021998046431690454,
0.00779296038672328,
0.0031584096141159534,
-0.034434422850608826,
-0.03567562252283096,
0.03911551833152771,
-0.012438592500984669,
0.03310456499457359,
-0.011888918466866016,
-0.0008483377168886364,
-0.04872594773769379,
-0.05457731708884239,
0.007225554436445236,
-0.005891264881938696,
-0.0012833117507398129,
-0.02243024855852127,
0.05039270222187042,
-0.06496793031692505,
0.03677497059106827,
-0.04624354839324951,
0.017412256449460983,
0.0030542374588549137,
0.03351238742470741,
0.023671448230743408,
-0.03794524446129799,
0.07475567609071732,
-0.023370014503598213,
0.009113951586186886,
0.018901696428656578,
0.033086832612752914,
-0.02182738110423088,
-0.010958018712699413,
0.0005172588280402124,
-0.02523181401193142,
0.0005934485234320164,
0.01032855361700058,
-0.020568450912833214,
0.02326362580060959,
0.03617210313677788,
-0.013387223705649376,
-0.02721773274242878,
-0.039221905171871185,
-0.00541251664981246,
-0.05305241420865059,
-0.09979244321584702,
-0.0026419819332659245,
-0.006370013579726219,
-0.05486102029681206,
-0.011888918466866016,
0.011658410541713238,
-0.013679792173206806,
0.07220235466957092,
-0.051350198686122894,
0.03748422861099243,
0.026153847575187683,
-0.030515778809785843,
0.019983313977718353,
-0.008001304231584072,
0.03730691224336624,
-0.05443546548485756,
0.0012799870455637574,
0.05227223411202431,
-0.00953950546681881,
-0.024682139977812767,
0.08163546770811081,
-0.0004574152990244329,
-0.00525293406099081,
-0.003878748742863536,
-0.0010345176560804248,
-0.017802348360419273,
-0.01745658554136753,
-0.07475567609071732,
0.04074680805206299,
0.0007247718749567866,
-0.035870667546987534,
-0.01461069192737341,
0.02461121417582035,
0.006112908013164997,
0.02604745887219906,
-0.006130639463663101,
0.02383103221654892,
0.00974341668188572,
0.03610117733478546,
0.013484747149050236,
-0.04691734537482262,
0.01968187838792801,
0.01844067871570587,
0.028689442202448845,
-0.1053246483206749,
-0.09234524518251419,
0.027306390926241875,
0.04982529580593109,
-0.05539296194911003,
0.05713064223527908,
-0.016241982579231262,
0.010958018712699413,
-0.01508057489991188,
0.010949153453111649,
-0.015009649097919464,
-0.004889439791440964,
0.03118957206606865,
-0.04333559796214104,
0.033476926386356354,
-0.01771369017660618,
-0.06635098159313202,
-0.01668526791036129,
-0.020728033035993576,
-0.0309767946600914,
-0.08823155611753464,
0.006529596168547869,
0.035870667546987534,
-0.08106806129217148,
-0.040392179042100906,
-0.015178097411990166,
0.004698826931416988,
0.034434422850608826,
0.0006704694242216647,
0.0030741854570806026,
-0.03175697848200798,
0.07262790948152542,
-0.05801721289753914,
-0.053336117416620255,
-0.061244331300258636,
0.041207823902368546,
0.0035418516490608454,
0.006591656245291233,
-0.07894029468297958,
-0.051953066140413284,
-0.0453215166926384,
-0.006321252323687077,
0.004184615798294544,
-0.018759844824671745,
-0.017181748524308205,
0.06457784026861191,
0.07305345684289932,
-0.04780391603708267,
-0.033246416598558426,
-0.05138566344976425,
0.06730847805738449,
-0.0243984367698431,
-0.05386806279420853,
0.03670404478907585,
0.006644850596785545,
0.008457888849079609,
0.022501174360513687,
-0.05993220955133438,
-0.005505606532096863,
-0.024540288373827934,
-0.009078488685190678,
0.012669101357460022,
0.0076555414125323296,
-0.013662060722708702,
0.03212933614850044,
0.036845896393060684,
-0.0353032611310482,
-0.005350456573069096,
-0.05184667930006981,
-0.021295437589287758,
-0.008462321013212204,
-0.010771838948130608,
0.07418826967477798,
0.056705087423324585,
-0.0007896024035289884,
-0.00491603696718812,
-0.0026730119716376066,
-0.0897919237613678,
-0.002255215309560299,
-0.03815802186727524,
-0.03925736993551254,
-0.003863233607262373,
-0.008067796938121319,
0.05361982062458992,
-0.04904511570930481,
0.04514420032501221,
-0.027075881138443947,
-0.0168448518961668,
0.07844381034374237,
0.006977314595133066,
-0.0628046989440918,
0.007615645881742239,
0.014814603142440319,
-0.02127770707011223,
-0.01311238668859005,
0.05064094066619873,
-0.03418618068099022,
-0.016614342108368874,
-0.004689961206167936,
0.004689961206167936,
-0.06440052390098572,
-0.007708735764026642,
0.04748474806547165,
-0.03826440870761871,
0.03599478676915169,
0.0595775805413723,
-0.0062458934262394905,
0.03172151371836662,
0.04315828159451485,
-0.04390300065279007,
-0.014123077504336834,
-0.02221747301518917,
-0.008714994415640831,
-0.05064094066619873,
-0.02517862059175968,
-0.008386963047087193,
0.011489961296319962,
0.013546806760132313,
0.01420286949723959,
0.013458149507641792,
-0.07135124504566193,
0.00924693699926138,
0.026490744203329086,
0.005722816567867994,
0.01665867120027542,
-0.023104043677449226,
0.045534294098615646,
0.010789570398628712,
0.04046310484409332,
-0.0029146026354283094,
-0.0006017601699568331,
0.0012822034768760204,
-0.03709413483738899,
0.022962192073464394,
0.038619037717580795,
0.01809491589665413,
0.034647200256586075,
-0.005257366690784693,
-0.023192699998617172,
0.00852881371974945,
0.0658545047044754,
-0.014938723295927048,
0.011676141992211342,
0.028051109984517097,
-0.047981228679418564,
-0.023086311295628548,
0.006108474917709827,
-0.03709413483738899,
0.02718226984143257,
0.014433377422392368,
-0.017119688913226128,
-0.005603129509836435,
-0.015984877943992615,
0.03766154125332832,
-0.005292829591780901,
-0.0388672761619091,
0.018387485295534134,
0.028724905103445053,
-0.04191708192229271,
0.01727927103638649,
-0.0440448522567749,
0.01629517786204815,
0.009087353944778442,
0.019220862537622452,
-0.0005654661217704415,
-0.08241564780473709,
0.01868891902267933,
0.007775228936225176,
0.037448763847351074,
-0.05705971643328667,
0.0658545047044754,
-0.01786440797150135,
-0.06503885984420776,
-0.038619037717580795,
-0.03847718611359596,
0.08312490582466125,
0.025941070169210434,
0.02897314354777336,
-0.002821512520313263,
0.010231031104922295,
0.03432803228497505,
0.013626597821712494,
-0.026934031397104263,
0.015754368156194687,
-0.026455283164978027,
-0.011099870316684246,
-0.021508214995265007,
0.014415645971894264,
0.014468840323388577,
-0.043973926454782486,
-0.045002348721027374,
0.01111760176718235,
-0.058265455067157745,
0.0104172108694911,
-0.01419400330632925,
-0.003892047330737114,
-0.10106910765171051,
-0.03274993598461151,
0.030817212536931038,
0.08106806129217148,
0.03677497059106827,
0.017820078879594803,
-0.08142269402742386,
0.025462321937084198,
-0.01558592077344656,
0.0027661018539220095,
0.0623791441321373,
0.057095181196928024,
0.0042001307010650635,
-0.034239377826452255,
0.02977105788886547,
0.003865450154989958,
0.001542633748613298,
-0.10461539030075073,
0.024185659363865852,
-0.0154883973300457,
-0.00018521024321671575,
0.042200785130262375,
0.0008810300496406853,
-0.06496793031692505,
0.02503676898777485,
0.06869152933359146,
-0.013396089896559715,
0.03851265087723732,
0.013298566453158855,
0.003377835964784026,
0.07053560018539429,
0.06762764602899551,
0.004769752733409405,
-0.022164277732372284,
-0.059435728937387466,
0.041420601308345795,
-0.02562190592288971,
0.04248448833823204,
-0.04283911734819412,
0.018174707889556885,
-0.030320731922984123,
-0.024362973868846893,
0.00044051502482034266,
-0.02459348365664482,
0.03314002975821495,
0.00902972649782896,
-0.06074785441160202,
0.06826597452163696,
-0.0759614109992981,
0.011356975883245468,
0.020302478224039078,
-0.0023937420919537544,
-0.04645632579922676,
-0.002296219114214182,
-0.010186702013015747,
-0.016986703500151634,
-0.017793482169508934,
-0.02936323545873165,
0.020994003862142563,
-0.01966414786875248,
0.03381382301449776,
-0.06979087740182877,
-0.031455542892217636,
0.018600262701511383,
-0.03436349704861641,
-0.02861851640045643,
-0.024504825472831726,
-0.07234420627355576,
-0.02182738110423088,
0.01847614161670208,
-0.026508476585149765,
0.04822947084903717,
-0.07234420627355576,
-0.053336117416620255,
0.012881878763437271,
-0.008927770890295506,
0.04670456796884537,
0.03751968964934349,
-0.020603911951184273,
0.031863365322351456,
0.03968292474746704,
0.04184615612030029,
-0.06702477484941483,
0.008001304231584072,
-0.023990614339709282,
-0.030888138338923454,
-0.03303363919258118,
-0.026348894461989403,
0.06702477484941483,
0.04890326410531998,
-0.002333898562937975,
-0.012252412736415863,
0.018334290012717247,
-0.04939974471926689,
-0.0057582794688642025,
0.043016429990530014,
-0.04681095480918884,
0.021579140797257423,
0.020337941125035286,
0.05067640542984009,
-0.025160888209939003,
0.016720730811357498,
0.056279536336660385,
0.01927405595779419,
-0.0492224283516407,
-0.01847614161670208,
-0.012181486934423447,
-0.03897366672754288,
0.006143937818706036,
-0.02978879027068615,
0.012474055401980877,
0.06369126588106155,
-0.015532726421952248,
0.006667014677077532,
-0.02737731672823429,
-0.06241460517048836,
-0.00541251664981246,
-0.011773664504289627,
-0.029646938666701317,
-0.003120730398222804,
0.004969231318682432,
0.03755515441298485,
-0.024912647902965546,
-0.006272490601986647,
0.043619297444820404,
-0.05844276770949364,
0.058088138699531555,
0.030693091452121735,
0.020692570134997368,
0.004144719801843166,
-0.024770796298980713,
0.011667275801301003,
-0.040604956448078156,
-0.028529858216643333,
-0.020142896100878716,
0.017571840435266495,
0.04315828159451485,
0.031100915744900703,
0.002451369073241949,
0.04028579220175743,
-0.031029989942908287,
-0.07872751355171204,
0.05794628709554672,
0.01269569806754589,
-0.0008029009914025664,
-0.013475880958139896,
-0.011179661378264427,
0.058903783559799194,
0.043583836406469345,
-0.05815906450152397,
-0.0007884941878728569,
-0.0021322034299373627,
-0.0369168221950531,
-0.029558280482888222,
0.02143728919327259,
-0.03766154125332832,
-0.008014602586627007,
0.054080840200185776,
-0.05259139835834503,
0.026916299015283585,
0.012660235166549683,
0.013068058528006077,
-0.016809388995170593,
0.03278540074825287,
0.047555673867464066,
0.00432646693661809,
-0.0012788788881152868,
0.02563963644206524,
-0.036030251532793045,
-0.023352283984422684,
-0.014211734756827354,
-0.0021776403300464153,
-0.030817212536931038,
0.026490744203329086,
-0.02028474770486355,
0.022784877568483353,
-0.012731160968542099,
-0.0186711885035038,
-0.0388672761619091,
0.06940078735351562,
0.07617419213056564,
-0.0528751015663147,
0.04184615612030029,
-0.0063123865984380245,
0.034842245280742645,
-0.03599478676915169,
-0.04886779934167862,
-0.0029190354980528355,
0.04830039292573929,
0.008488918654620647,
0.04851317033171654,
0.017164016142487526,
-0.053300656378269196,
0.027324121445417404
] |
20,960 | argufy.formatter | font | Set the string thickness. | @staticmethod
def font(text: str, width: str = 'BRIGHT') -> str:
"""Set the string thickness."""
return getattr(Style, width) + text + Style.RESET_ALL
| (text: str, width: str = 'BRIGHT') -> str | [
0.04683949798345566,
-0.05428192764520645,
0.00030752288876101375,
0.020005792379379272,
0.004030603915452957,
-0.054008807986974716,
-0.013689969666302204,
0.005091064143925905,
0.07961349189281464,
0.028933290392160416,
0.025348635390400887,
-0.011231920681893826,
0.004320790059864521,
-0.021815190091729164,
-0.04625912755727768,
0.021542072296142578,
0.04130888730287552,
-0.012469479814171791,
0.05636443942785263,
-0.034993067383766174,
0.05656927824020386,
0.038202185183763504,
0.03577827662229538,
-0.03676832467317581,
-0.000902565021533519,
0.03748525306582451,
0.006742566358298063,
0.00984926801174879,
0.01916937157511711,
-0.057593464851379395,
0.015934647992253304,
-0.04154786467552185,
-0.018964534625411034,
0.07756511867046356,
0.012478015385568142,
-0.013937481679022312,
-0.037451114505529404,
-0.03485650569200516,
-0.0009164342773146927,
-0.0035697193816304207,
0.013647295534610748,
0.04311828315258026,
0.0621340274810791,
-0.04632740467786789,
-0.019561978057026863,
-0.0351979024708271,
0.05773002281785011,
0.04431317001581192,
-0.08022800087928772,
-0.023778215050697327,
0.059914957731962204,
0.0024879216216504574,
-0.012998643331229687,
-0.015610321424901485,
-0.023334400728344917,
0.02731166034936905,
-0.028557755053043365,
0.01264871284365654,
-0.011752549558877945,
-0.03127185255289078,
0.03980674594640732,
-0.01261457335203886,
0.04994620010256767,
-0.013911877758800983,
-0.042469631880521774,
-0.029906269162893295,
0.02321491204202175,
0.03420785441994667,
0.044347308576107025,
0.04663466289639473,
0.0628850981593132,
0.06336305290460587,
-0.03526618331670761,
-0.03106701374053955,
-0.04919512942433357,
0.0033798180520534515,
-0.03792906925082207,
-0.018503651022911072,
0.0621340274810791,
-0.006738299038261175,
0.026526451110839844,
0.040011584758758545,
0.005214820150285959,
0.018879186362028122,
0.04800024256110191,
-0.04994620010256767,
-0.008470882661640644,
-0.025911938399076462,
0.015695670619606972,
0.005415390245616436,
-0.028404127806425095,
0.007378416135907173,
-0.001860606949776411,
0.02679956704378128,
-0.01819639466702938,
-0.019852163270115852,
0.06001737341284752,
-0.07162483036518097,
0.03550516068935394,
0.008351393975317478,
-0.03186929598450661,
-0.01073689665645361,
0.053326018154621124,
-0.02164449170231819,
0.02942831441760063,
-0.07845274358987808,
-0.03676832467317581,
-0.007677137386053801,
0.05336015671491623,
0.04694191738963127,
-0.005854937247931957,
-0.060734305530786514,
0.023078354075551033,
-0.04851233959197998,
0.03299590200185776,
0.0038172313943505287,
-0.058412816375494,
-0.012674317695200443,
0.02051788568496704,
-0.018725557252764702,
0.009909012354910374,
0.018298812210559845,
0.009439593181014061,
-0.018725557252764702,
0.04468870535492897,
0.08425647765398026,
-0.07073720544576645,
0.024887751787900925,
0.07599470019340515,
0.022941796109080315,
0.015618856064975262,
0.06087086349725723,
0.012938898988068104,
-0.011658665724098682,
0.06281682103872299,
0.01623336784541607,
-0.023095423355698586,
0.07811135053634644,
0.011539177037775517,
0.08029628545045853,
0.031920503824949265,
-0.005688507109880447,
0.014381296932697296,
-0.03980674594640732,
-0.0333031564950943,
0.05735448747873306,
0.0389191173017025,
-0.05127764493227005,
-0.02478533238172531,
0.08398335427045822,
0.026287473738193512,
0.06865468621253967,
-0.021576212719082832,
0.029103988781571388,
0.007570451125502586,
-0.025997286662459373,
0.00038780426257289946,
-0.04683949798345566,
0.07060064375400543,
-0.004312255419790745,
0.009627360850572586,
0.013391248881816864,
0.0022980202920734882,
-0.06759636104106903,
-0.0006833249353803694,
0.0703958049416542,
-0.01687348634004593,
0.01676253229379654,
0.05264322832226753,
-0.032586224377155304,
-0.0010876655578613281,
-0.06507003307342529,
0.010455245152115822,
0.038884978741407394,
0.048546478152275085,
0.05817383900284767,
-0.05209699273109436,
0.03040129318833351,
0.027140963822603226,
-0.012870620004832745,
-0.007835032418370247,
-0.043152425438165665,
-0.06162193417549133,
-0.004941703751683235,
0.06404584646224976,
-0.02627040445804596,
0.009285965003073215,
0.04550805687904358,
-0.035744138062000275,
-0.045917730778455734,
0.020483745262026787,
0.018162254244089127,
0.0220883060246706,
0.013800923712551594,
-0.0008790940628387034,
-0.014893390238285065,
0.023095423355698586,
-0.08514410257339478,
-0.05441848561167717,
-0.011615990661084652,
-0.010199198499321938,
0.03195464238524437,
-0.04124060645699501,
0.02702147513628006,
0.06189505010843277,
-0.057593464851379395,
0.015934647992253304,
-0.015891972929239273,
-0.14324966073036194,
-0.008859219960868359,
-0.043527960777282715,
-0.04305000603199005,
0.04366451874375343,
0.07305869460105896,
0.022037096321582794,
-0.04431317001581192,
0.00478807557374239,
0.04916099086403847,
-0.020603233948349953,
0.025126727297902107,
0.0680743157863617,
-0.026628868654370308,
0.043903496116399765,
0.012281712144613266,
0.012153688818216324,
-0.008650114759802818,
-0.009610290639102459,
-0.02965022251009941,
-0.016190694645047188,
-0.020193560048937798,
-0.010412571020424366,
-0.021234815940260887,
-0.022037096321582794,
0.043220702558755875,
-0.0284553375095129,
-0.08145702630281448,
-0.006379833444952965,
-0.03174980729818344,
0.018059836700558662,
-0.07312697172164917,
0.006887659430503845,
0.04977550357580185,
0.018059836700558662,
0.036870744079351425,
0.015234786085784435,
-0.0030554921831935644,
-0.006349961273372173,
0.014082575216889381,
-0.048239219933748245,
-0.03212534263730049,
-0.06257784366607666,
0.003283800557255745,
-0.010574733838438988,
0.012588968500494957,
-0.025690030306577682,
0.034395623952150345,
-0.06612835824489594,
-0.003883376717567444,
-0.007062624674290419,
0.02702147513628006,
-0.030196454375982285,
0.016071205958724022,
0.0016973770689219236,
0.054316066205501556,
0.08241293579339981,
-0.008065475150942802,
-0.04168442264199257,
0.04701019823551178,
-0.06302165985107422,
-0.017547741532325745,
-0.004015667829662561,
0.03629036992788315,
0.0224467720836401,
0.004175696987658739,
-0.025997286662459373,
0.03577827662229538,
-0.008773870766162872,
0.07503879070281982,
0.03864600136876106,
-0.036563485860824585,
0.03134012967348099,
-0.019852163270115852,
-0.03224483132362366,
-0.02191760763525963,
-0.004766738507896662,
0.02379528433084488,
0.045917730778455734,
0.0008678920567035675,
0.0011074024951085448,
0.005658634938299656,
0.023675795644521713,
-0.0006550531252287328,
0.043084144592285156,
0.01578955352306366,
0.0027439685072749853,
-0.007724079303443432,
0.06011979281902313,
0.01459466852247715,
0.011334339156746864,
-0.040830932557582855,
0.004154359921813011,
-0.02708975411951542,
0.01171840913593769,
0.0032112537883222103,
-0.013963086530566216,
-0.016933230683207512,
0.022924724966287613,
-0.041206467896699905,
0.044654566794633865,
0.0048051453195512295,
-0.029018640518188477,
-0.00658467086032033,
0.009891942143440247,
0.046156708151102066,
0.0554085336625576,
0.0026650207582861185,
-0.005308703985065222,
0.004015667829662561,
0.006870589684695005,
0.059095606207847595,
0.004711261484771967,
-0.07640437036752701,
-0.019101092591881752,
-0.021234815940260887,
0.018759697675704956,
-0.010660083033144474,
-0.0017261822940781713,
0.03495892509818077,
0.03710971772670746,
0.006631612777709961,
-0.03495892509818077,
0.006076844409108162,
0.01711246185004711,
-0.010907595045864582,
-0.05045829340815544,
-0.02290765568614006,
0.002961608348414302,
0.00833859108388424,
-0.030350083485245705,
-0.016591833904385567,
0.06189505010843277,
0.004051940981298685,
-0.049058571457862854,
-0.0013677168171852827,
0.033047109842300415,
0.023675795644521713,
0.018810907378792763,
0.009550546295940876,
0.04400591552257538,
0.03803148865699768,
0.01665157824754715,
-0.02341974899172783,
0.0291893370449543,
0.004069010727107525,
0.045542195439338684,
-0.019476627930998802,
-0.0053599136881530285,
-0.028404127806425095,
-0.025416914373636246,
-0.000059744259488070384,
-0.051380060613155365,
0.0179744865745306,
-0.0005473000928759575,
0.052131131291389465,
-0.011906176805496216,
0.003665737109258771,
0.018537789583206177,
0.008564766496419907,
-0.0010119184153154492,
0.02777254581451416,
0.03680246323347092,
0.0011031350586563349,
-0.039704326540231705,
-0.049809642136096954,
0.02965022251009941,
0.043903496116399765,
-0.02755063772201538,
-0.0020441070664674044,
0.012034201063215733,
-0.04919512942433357,
-0.028626034036278725,
-0.006371298339217901,
0.0043485285714268684,
0.0183329526335001,
0.02237849310040474,
-0.010378431528806686,
-0.034088365733623505,
-0.04683949798345566,
0.0028762593865394592,
-0.007916114293038845,
-0.015439623035490513,
-0.029616082087159157,
0.06414826214313507,
0.011948851868510246,
-0.009943151846528053,
-0.001092466409318149,
-0.011248989962041378,
-0.004634447395801544,
0.013681435026228428,
0.03663176670670509,
0.005812262650579214,
-0.04243549332022667,
-0.0005040921969339252,
0.013203481212258339,
-0.0516531802713871,
0.0235904473811388,
0.014688552357256413,
0.05404295027256012,
-0.03347385302186012,
0.05448676273226738,
-0.028984500095248222,
-0.001411458128131926,
-0.06151951476931572,
-0.01598585583269596,
0.04881959408521652,
-0.06650389730930328,
0.0336957611143589,
-0.005731181241571903,
0.00632435642182827,
0.0032539283856749535,
-0.030179385095834732,
-0.04656638205051422,
0.05039001628756523,
0.06070016697049141,
0.034259065985679626,
0.005355645902454853,
0.0024196424055844545,
0.006857787258923054,
0.048683036118745804,
-0.008833615109324455,
-0.030128175392746925,
-0.034088365733623505,
-0.04305000603199005,
-0.05267736688256264,
0.0007147973519749939,
-0.010514989495277405,
-0.007958788424730301,
-0.04619084671139717,
0.0026116776280105114,
-0.04110404849052429,
0.08377852290868759,
-0.0018766098655760288,
-0.001229024725034833,
0.07087375968694687,
0.009823663160204887,
-0.03840702399611473,
-0.019101092591881752,
0.02051788568496704,
0.014321552589535713,
-0.0546574629843235,
-0.01780378818511963,
0.05346257612109184,
-0.020483745262026787,
-0.0035931903403252363,
0.05994909629225731,
-0.055203694850206375,
-0.0046216449700295925,
-0.06189505010843277,
-0.026065565645694733,
0.014031365513801575,
-0.02364165708422661,
0.05383811146020889,
-0.05039001628756523,
-0.022429700940847397,
-0.04769298806786537,
-0.0138521334156394,
0.05172145739197731,
-0.021286025643348694,
-0.007578985765576363,
-0.035675857216119766,
0.01930592954158783,
-0.03456632047891617,
-0.01713806763291359,
-0.02949659340083599,
0.06315821409225464,
0.012537759728729725,
-0.035163763910532,
0.0340542271733284,
-0.05059485137462616,
-0.02297593466937542,
-0.006153658498078585,
-0.006802310701459646,
-0.025109658017754555,
0.004416807554662228,
-0.01563592627644539,
0.0359148345887661,
0.0029232013039290905,
0.02229314297437668,
0.024682912975549698,
0.023761145770549774,
-0.030298873782157898,
0.07749684154987335,
-0.003204852808266878,
-0.00750217167660594,
-0.017701370641589165,
0.013997226022183895,
0.024341518059372902,
0.017530672252178192,
-0.0389191173017025,
-0.014022830873727798,
0.005347111262381077,
-0.029445383697748184,
-0.035812415182590485,
0.0022809505462646484,
0.030879246070981026,
-0.017581881955266,
0.006947403773665428,
0.01501287892460823,
0.045166660100221634,
-0.02947952412068844,
-0.05107280611991882,
0.011283130384981632,
-0.01238413155078888,
-0.019288860261440277,
0.0441424734890461,
-0.07640437036752701,
-0.041138190776109695,
-0.013561946339905262,
0.02246384136378765,
-0.04086507111787796,
-0.0026820905040949583,
0.01152210682630539,
-0.056842394173145294,
-0.09292792528867722,
0.009661500342190266,
0.006145123858004808,
0.024973100051283836,
-0.014833645895123482,
0.043015867471694946,
0.024682912975549698,
-0.008748266845941544,
0.06298752129077911,
0.008411138318479061,
-0.005325773730874062,
0.05223355069756508,
-0.0015608187532052398,
-0.041274748742580414,
-0.001491472707130015,
0.005227622576057911,
-0.017940348014235497,
0.008291649632155895,
-0.04451800882816315,
0.03755353391170502,
-0.05807141959667206,
0.006499321665614843,
0.003930318634957075,
0.005957356188446283,
-0.02582659013569355,
0.009243289940059185,
-0.012170759029686451,
-0.06947404146194458,
-0.024307377636432648,
-0.030196454375982285,
0.005304436665028334,
-0.03943121060729027,
0.03809976577758789,
-0.02423909865319729,
-0.039704326540231705,
0.035436879843473434,
0.027362870052456856,
-0.011377014219760895,
-0.013937481679022312,
0.057969000190496445,
-0.01574688032269478,
-0.040762655436992645,
0.0001492272858740762,
-0.04632740467786789,
0.05120936408638954,
-0.0359148345887661,
-0.06244128569960594,
0.02956487238407135,
0.022241933271288872,
0.05155076086521149,
-0.040455397218465805,
-0.059914957731962204,
0.04970722272992134,
-0.024717053398489952,
-0.014167924411594868,
0.009977291338145733,
0.015320135280489922,
-0.019561978057026863,
0.044279031455516815,
-0.02582659013569355,
-0.034839436411857605,
0.02237849310040474,
-0.03714386001229286,
-0.05073140934109688,
-0.019596116617321968,
-0.02246384136378765,
0.016327252611517906,
-0.024973100051283836,
-0.02859189547598362,
0.03584655374288559,
-0.027004403993487358,
-0.005667169578373432,
0.02184932865202427,
0.01923765055835247,
0.006644415203481913,
-0.034259065985679626,
-0.019425418227910995,
0.008065475150942802,
0.04701019823551178,
-0.022924724966287613,
0.08377852290868759,
0.03060613013803959,
0.050492431968450546,
0.07169310748577118,
0.02065444365143776,
-0.0013026382075622678,
-0.011769618839025497,
-0.044347308576107025,
-0.001553350710310042,
-0.02034718729555607,
-0.049809642136096954,
0.034088365733623505,
0.014978739432990551,
-0.037690091878175735,
-0.04103577136993408,
0.013083992525935173,
-0.036187950521707535,
-0.035744138062000275,
0.07073720544576645,
-0.03557343780994415,
-0.0012567631201818585,
0.016352856531739235,
0.03512962535023689,
-0.038372885435819626,
-0.04752229154109955,
-0.037451114505529404,
-0.1250874102115631,
0.018759697675704956,
0.03557343780994415,
0.01500434335321188,
-0.05506713688373566,
-0.03987502679228783,
0.06486519426107407,
-0.03704144060611725,
0.015499367378652096,
-0.004822215065360069,
-0.0032112537883222103,
0.05861765146255493,
0.056023046374320984,
-0.04482526332139969,
0.01901574432849884,
-0.014398366212844849,
0.008978708647191525,
-0.05598890408873558,
-0.03946534916758537,
-0.007702741771936417,
-0.030828038230538368,
-0.06083672493696213,
-0.02522914670407772,
0.03635864704847336,
0.005116668995469809,
0.03683660179376602,
-0.0002564468886703253,
0.034020088613033295,
-0.0606318861246109,
-0.01093319896608591,
-0.025877797976136208,
-0.020927559584379196,
0.02440979704260826,
-0.01070275716483593,
0.0666063129901886,
0.007689939346164465,
-0.0980488657951355,
0.030128175392746925,
-0.05097038671374321,
0.012768201529979706,
-0.07968176901340485,
0.009695639833807945,
0.0404212586581707,
-0.02401719242334366,
-0.06414826214313507,
-0.038748420774936676,
0.059539422392845154,
0.008709859102964401,
-0.0050142500549554825,
0.09798058122396469,
0.001474402961321175,
0.034327343106269836,
-0.021286025643348694,
-0.05291634425520897,
-0.024734122678637505,
0.039499491453170776,
0.05472574010491371,
-0.02312956377863884,
0.025655891746282578,
-0.01264871284365654,
-0.008667184971272945,
-0.07490222901105881,
-0.07551674544811249,
-0.002124121878296137,
0.002323624910786748,
0.016352856531739235,
-0.05059485137462616,
-0.019954582676291466,
-0.0284553375095129,
0.033798180520534515,
0.004971575923264027,
0.024341518059372902,
0.012230503372848034,
-0.06496761739253998,
-0.015029948204755783,
0.0006161126657389104,
-0.00009435058746021241,
0.027038544416427612,
-0.027158033102750778,
-0.005872006993740797,
0.018588999286293983,
0.012964503839612007,
0.03243259713053703,
0.057969000190496445,
0.03489064797759056,
-0.020313048735260963,
0.002901864005252719,
-0.003411823883652687,
-0.00862451083958149,
-0.038441162556409836,
0.01537987869232893,
0.008961638435721397,
0.04079679399728775,
0.030179385095834732,
-0.00769420713186264,
-0.0396701879799366,
0.04137716814875603,
-0.04496182128787041,
0.008180695585906506,
-0.018588999286293983,
-0.0269531961530447,
0.025468124076724052,
-0.015294530428946018,
-0.02186639793217182,
0.021047048270702362,
-0.024153750389814377,
0.016335787251591682,
0.03584655374288559,
-0.022941796109080315,
0.02536570467054844,
-0.02806273102760315,
-0.055579230189323425,
0.02379528433084488,
-0.06930334120988846,
0.003926051314920187,
-0.017197811976075172,
0.04663466289639473,
0.0029274686239659786,
0.04455214738845825,
0.019186442717909813,
0.05028759688138962,
0.07025925070047379,
0.02290765568614006,
-0.035744138062000275,
-0.003234724747017026,
0.11184125393629074,
-0.03646106645464897,
-0.00875680148601532,
-0.04759056866168976,
-0.0011511438060551882,
0.018725557252764702,
0.006187797989696264,
-0.006320089101791382,
0.020825142040848732,
0.04294758662581444,
0.052438389509916306,
0.030589060857892036,
0.006422507576644421,
0.03053785115480423
] |
20,962 | argufy.formatter | shade | Set the string color. | @staticmethod
def shade(text: str, color: str = 'CYAN') -> str:
"""Set the string color."""
return getattr(Fore, color.upper()) + text + Style.RESET_ALL
| (text: str, color: str = 'CYAN') -> str | [
0.008883653208613396,
-0.06162445247173309,
-0.008515558205544949,
0.03424179181456566,
0.009714110754430294,
-0.0704946368932724,
-0.011689253151416779,
0.03968241065740585,
0.07922117412090302,
-0.010890218429267406,
-0.01254215557128191,
0.02361193299293518,
0.018386783078312874,
-0.03702494874596596,
-0.051964208483695984,
-0.013790086843073368,
0.01400555670261383,
0.043165843933820724,
0.04137026146054268,
-0.05056365206837654,
0.056165874004364014,
0.011734142899513245,
0.05289791151881218,
-0.023737624287605286,
0.0033016304951161146,
0.006908510345965624,
0.008398844860494137,
0.0069893114268779755,
0.01890750229358673,
-0.03767135739326477,
0.027993157505989075,
-0.07056646049022675,
-0.052107855677604675,
0.08309964090585709,
0.04722386598587036,
-0.02973487414419651,
-0.03874870762228966,
0.01256908942013979,
0.02766995318233967,
-0.0061768097802996635,
0.013107764534652233,
0.03438543900847435,
0.040580205619335175,
-0.02472519502043724,
0.0026641981676220894,
-0.019338442012667656,
0.06912999600172043,
0.054585762321949005,
-0.04162164404988289,
-0.03720450401306152,
0.03165614977478981,
-0.008708583191037178,
-0.009135034866631031,
-0.014580143615603447,
0.037096768617630005,
0.023019390180706978,
-0.03752771019935608,
0.0069129993207752705,
-0.018638163805007935,
0.02856774441897869,
0.04485369473695755,
-0.04345313832163811,
0.013107764534652233,
0.009624331258237362,
-0.03131498768925667,
-0.011994502507150173,
0.021277673542499542,
0.020308056846261024,
0.048121657222509384,
0.012398509308695793,
0.027490394189953804,
0.06647253036499023,
-0.02407878451049328,
-0.024779062718153,
-0.02993238903582096,
-0.002198468428105116,
-0.039215561002492905,
-0.008793873712420464,
0.04600286856293678,
-0.038605060428380966,
0.028495922684669495,
-0.00009202369255945086,
-0.009453751146793365,
0.02077491022646427,
0.012461354956030846,
-0.08712174743413925,
-0.01706702820956707,
-0.030884047970175743,
0.0033308088313788176,
-0.007020734250545502,
-0.026161663234233856,
0.0021771457977592945,
-0.06812446564435959,
0.029824653640389442,
0.012955140322446823,
-0.030614711344242096,
0.04338131472468376,
-0.03925147280097008,
0.03474455326795578,
0.009283170104026794,
-0.0014836015179753304,
-0.004524872172623873,
0.03821003437042236,
-0.038102298974990845,
0.016223102807998657,
-0.07634824514389038,
-0.038353677839040756,
0.02021827921271324,
0.03585781902074814,
0.01595376618206501,
-0.00015009961498435587,
-0.0443868413567543,
0.031171342357993126,
-0.0704946368932724,
0.011698231101036072,
-0.030165815725922585,
-0.0001973739854292944,
-0.00620823260396719,
0.008636760525405407,
-0.03434952720999718,
0.02194203995168209,
-0.006028674077242613,
0.011725164949893951,
0.023989005014300346,
0.038964178413152695,
0.06683164834976196,
-0.0862598642706871,
0.008039728738367558,
0.04262717068195343,
-0.006158853881061077,
-0.0026597091928124428,
0.06895043700933456,
-0.004390203393995762,
-0.043058108538389206,
0.04815756902098656,
0.023540109395980835,
-0.027939289808273315,
0.08446428179740906,
0.005229638889431953,
0.08712174743413925,
0.0628095343708992,
-0.038820531219244,
-0.034618865698575974,
-0.047870274633169174,
-0.009054233320057392,
0.02508431114256382,
0.021529054269194603,
-0.03165614977478981,
0.00016062062059063464,
0.08302781730890274,
0.025371605530381203,
0.05426255613565445,
-0.012434421107172966,
0.029034597799181938,
0.005355330184102058,
-0.03194344416260719,
-0.022121597081422806,
-0.012344641610980034,
0.03770726919174194,
0.0022343802265822887,
0.024401990696787834,
-0.012317707762122154,
0.032087091356515884,
-0.04521281272172928,
0.008982409723103046,
0.06266588717699051,
0.006302500609308481,
-0.004735853523015976,
0.027346748858690262,
-0.07042281329631805,
-0.04686474800109863,
-0.0714283436536789,
-0.04377634450793266,
0.06941728293895721,
0.03849732503294945,
0.04295037314295769,
-0.06277362257242203,
0.05275426432490349,
0.025910280644893646,
0.006073563825339079,
-0.04165755584836006,
-0.012147127650678158,
-0.06575429439544678,
-0.002345481887459755,
0.08367422223091125,
-0.04679292440414429,
0.007110513746738434,
0.0023589488118886948,
-0.00168784917332232,
-0.06180400773882866,
0.013574616983532906,
0.0055752890184521675,
0.008098084479570389,
0.03332604467868805,
0.020595351234078407,
-0.05031226947903633,
-0.010513145476579666,
-0.0931549072265625,
0.004345313645899296,
-0.0033667203970253468,
-0.036486271768808365,
0.013655418530106544,
-0.06841176003217697,
0.05318520590662956,
0.07642006874084473,
-0.008919565007090569,
0.045643750578165054,
-0.019895073026418686,
-0.13466881215572357,
-0.01912297122180462,
-0.05042000487446785,
-0.019787337630987167,
0.0324641615152359,
0.07577365636825562,
0.034924112260341644,
-0.055196259170770645,
0.030076036229729652,
0.04126252606511116,
-0.009588419459760189,
0.05961339548230171,
0.00045899621909484267,
-0.038856443017721176,
0.049989067018032074,
0.010782483033835888,
0.01201245840638876,
-0.01962573640048504,
0.002551974030211568,
-0.020343968644738197,
-0.016079457476735115,
-0.04686474800109863,
0.013799064792692661,
-0.020559439435601234,
-0.0131526542827487,
0.04445866495370865,
-0.05429846793413162,
-0.024294255301356316,
0.014508320949971676,
-0.008277643471956253,
0.004726875573396683,
-0.03702494874596596,
-0.013062875717878342,
0.055555377155542374,
0.024006960913538933,
0.05860786885023117,
0.04374043270945549,
0.003907639998942614,
0.00988469086587429,
0.030363328754901886,
-0.060295719653367996,
-0.006396768614649773,
-0.05885925143957138,
0.03460090979933739,
0.005642623640596867,
0.018135400488972664,
-0.042052581906318665,
0.030506975948810577,
-0.02801111340522766,
0.02199590764939785,
0.01329630147665739,
-0.006392280105501413,
-0.04463822394609451,
-0.0443868413567543,
0.04402772709727287,
0.03619897738099098,
0.06104986369609833,
0.011267291381955147,
-0.00829559937119484,
0.059182457625865936,
-0.04140617325901985,
-0.026484867557883263,
0.04363269731402397,
0.009830824099481106,
0.00938192754983902,
0.009426817297935486,
0.0011502961860969663,
0.059182457625865936,
-0.013763152994215488,
0.020918555557727814,
0.02052352763712406,
-0.011536628939211369,
0.055555377155542374,
-0.0020918557420372963,
-0.028747303411364555,
0.0023881271481513977,
0.016079457476735115,
0.013781108893454075,
0.06162445247173309,
-0.03540892153978348,
0.0018999525345861912,
-0.008524536155164242,
0.007752434816211462,
-0.02002076432108879,
0.02291165478527546,
0.01256908942013979,
-0.006082541774958372,
0.015289399772882462,
0.04830121621489525,
0.017605703324079514,
-0.020236235111951828,
-0.03821003437042236,
0.04593104496598244,
-0.06575429439544678,
0.014194093644618988,
-0.04409955069422722,
-0.044063638895750046,
-0.047870274633169174,
0.01425693929195404,
-0.00449569383636117,
0.017228631302714348,
-0.028603656217455864,
-0.05027635768055916,
0.0010969897266477346,
-0.0401492640376091,
0.02433016709983349,
-0.026987630873918533,
-0.025515252724289894,
-0.024797018617391586,
-0.03434952720999718,
0.017246587201952934,
0.07498359680175781,
-0.010701682418584824,
-0.09430408477783203,
-0.032087091356515884,
0.01185983419418335,
0.05447802692651749,
-0.012964118272066116,
-0.031889576464891434,
0.04830121621489525,
0.03838958963751793,
0.008273154497146606,
-0.06794490665197372,
-0.01681564562022686,
0.026215529069304466,
0.0033375422935932875,
-0.038353677839040756,
-0.03463682159781456,
-0.0001998990192078054,
0.0005176332779228687,
-0.02842409908771515,
-0.030076036229729652,
0.0030457598622888327,
-0.012380553409457207,
-0.038461413234472275,
0.00840782281011343,
0.05404708534479141,
0.0474393367767334,
-0.011195467785000801,
0.003256740979850292,
0.06043936684727669,
0.030147859826683998,
0.036181021481752396,
-0.024006960913538933,
0.020146455615758896,
0.011069776490330696,
0.06851949542760849,
0.033200353384017944,
0.005400219466537237,
-0.044422753155231476,
-0.005543866194784641,
0.0036383026745170355,
-0.019392309710383415,
-0.021780436858534813,
0.030812226235866547,
0.05056365206837654,
-0.04413545876741409,
0.013044919818639755,
-0.03023763932287693,
0.036683786660432816,
0.007361895404756069,
-0.018270069733262062,
0.04808574542403221,
0.005211683455854654,
0.012084282003343105,
-0.06410235911607742,
-0.024653371423482895,
0.013035941869020462,
0.030578799545764923,
0.006800775416195393,
0.0679808184504509,
-0.036989036947488785,
0.004533850122243166,
-0.002661953680217266,
0.007330472581088543,
0.01648346334695816,
0.01122240163385868,
0.001580114127136767,
-0.02386331371963024,
-0.016833601519465446,
-0.003997419495135546,
-0.001252420013770461,
-0.016519375145435333,
-0.03442135080695152,
0.08180681616067886,
-0.031979355961084366,
0.012560111470520496,
-0.023037346079945564,
-0.0029357802122831345,
-0.03664787486195564,
0.007397807203233242,
0.027131278067827225,
-0.024006960913538933,
-0.0414779968559742,
0.027777688577771187,
-0.03266167640686035,
-0.03979014605283737,
-0.0314047671854496,
0.023145081475377083,
0.023342594504356384,
0.010207896120846272,
0.04025699943304062,
-0.005121903959661722,
-0.022839831188321114,
-0.06119351089000702,
-0.0032589854672551155,
0.046290162950754166,
-0.07150016725063324,
0.05972113087773323,
-0.020415792241692543,
-0.009337037801742554,
-0.0030794269405305386,
-0.037599533796310425,
-0.04708021879196167,
0.04216031730175018,
0.062378596514463425,
0.005534888245165348,
-0.00925623718649149,
-0.019446177408099174,
0.003683192189782858,
0.028962774202227592,
-0.03528323024511337,
-0.008165419101715088,
-0.03187162056565285,
-0.027993157505989075,
-0.04420728236436844,
0.046505630016326904,
0.01812642253935337,
-0.01552282553166151,
-0.027023542672395706,
0.02124176174402237,
-0.03194344416260719,
0.0551244355738163,
-0.0298785213381052,
-0.04151390865445137,
0.06848358362913132,
-0.014894370920956135,
-0.03533709794282913,
-0.0036001463886350393,
0.01446343120187521,
0.026843983680009842,
-0.02513817884027958,
-0.008546981029212475,
0.0633482113480568,
-0.06482058763504028,
-0.005184749606996775,
0.04844486340880394,
-0.03671969845890999,
0.0418730229139328,
-0.0026709316298365593,
-0.002677665092051029,
0.015971722081303596,
-0.011626407504081726,
0.06474876403808594,
-0.07642006874084473,
-0.0025474850554019213,
-0.03169206157326698,
-0.008021772839128971,
0.04025699943304062,
-0.014768680557608604,
-0.03639649227261543,
-0.06579020619392395,
-0.00618129875510931,
-0.06345594674348831,
-0.04772662743926048,
-0.027436526492238045,
0.027939289808273315,
0.017632637172937393,
-0.03382880613207817,
0.017049072310328484,
-0.05562720075249672,
0.015253487974405289,
-0.0008484135614708066,
0.01915888302028179,
-0.014903348870575428,
-0.004825632553547621,
0.01092613022774458,
0.0718233659863472,
0.02346828579902649,
0.01581011898815632,
0.048516687005758286,
0.016303904354572296,
-0.002884157234802842,
0.013439947739243507,
-0.012200995348393917,
0.02745448239147663,
-0.03925147280097008,
0.015486913733184338,
0.028029069304466248,
0.014553210698068142,
-0.040472470223903656,
-0.017803218215703964,
0.04241169989109039,
-0.014651967212557793,
-0.043058108538389206,
0.020056676119565964,
0.02957327291369438,
-0.07986758649349213,
0.03377493843436241,
0.018979325890541077,
0.05311338230967522,
-0.049378566443920135,
-0.003732570679858327,
0.03169206157326698,
0.013062875717878342,
-0.03540892153978348,
0.034313615411520004,
-0.04420728236436844,
-0.029106421396136284,
-0.005840137600898743,
0.003898662282153964,
-0.03968241065740585,
-0.03104565106332302,
0.022426847368478775,
-0.05677637457847595,
-0.02002076432108879,
-0.036486271768808365,
0.03129703179001808,
0.022642318159341812,
0.02655669115483761,
-0.005050080828368664,
0.03104565106332302,
-0.04848077520728111,
0.038820531219244,
-0.018054598942399025,
-0.004022108856588602,
0.030453108251094818,
0.010755549184978008,
-0.034062232822179794,
-0.04596695676445961,
0.00620823260396719,
-0.02887299470603466,
0.025712765753269196,
-0.028855038806796074,
0.009435795247554779,
-0.04075976088643074,
-0.020038720220327377,
-0.019176838919520378,
-0.02099037915468216,
0.0022231577895581722,
-0.044171370565891266,
0.006787308491766453,
-0.046038780361413956,
-0.04298628494143486,
-0.037743180990219116,
-0.01496619451791048,
-0.04733160138130188,
0.03205117955803871,
-0.08345875889062881,
-0.022121597081422806,
-0.02522795833647251,
0.052574705332517624,
-0.0043655140325427055,
0.03311057388782501,
0.07462447881698608,
0.040472470223903656,
-0.032446205615997314,
-0.003411610145121813,
-0.02447381243109703,
0.00393906282261014,
-0.021780436858534813,
-0.08942009508609772,
0.025497296825051308,
-0.04804983362555504,
0.031081562861800194,
0.01130320318043232,
-0.04198075830936432,
0.06920181959867477,
0.0025227959267795086,
-0.05153326690196991,
0.043668609112501144,
0.010531101375818253,
-0.019841205328702927,
0.01564851589500904,
-0.03043515235185623,
-0.03496002405881882,
0.013655418530106544,
0.019733469933271408,
-0.030147859826683998,
0.033703114837408066,
-0.01084532868117094,
-0.009794912301003933,
-0.02508431114256382,
-0.032176870852708817,
0.016555286943912506,
-0.032338473945856094,
-0.020343968644738197,
-0.01701316051185131,
0.06679573655128479,
0.005665068048983812,
-0.03434952720999718,
-0.015558737330138683,
-0.012631935067474842,
0.034977979958057404,
0.010064249858260155,
0.0482293926179409,
0.011967568658292294,
0.03838958963751793,
0.07577365636825562,
-0.013834976591169834,
-0.008892631158232689,
-0.016725867986679077,
-0.04643381014466286,
0.018476562574505806,
-0.045284636318683624,
0.0027921334840357304,
0.051856473088264465,
-0.011626407504081726,
-0.03806638717651367,
-0.0028235563077032566,
-0.012775582261383533,
0.013870888389647007,
-0.016294926404953003,
0.04212440550327301,
-0.05200012028217316,
0.042698994278907776,
0.04420728236436844,
0.04542827978730202,
-0.0019874873105436563,
-0.05490896478295326,
-0.014319784007966518,
-0.09875713288784027,
-0.014876415021717548,
0.05361614376306534,
-0.015235532075166702,
-0.0418730229139328,
-0.018027665093541145,
0.036683786660432816,
0.02012849971652031,
0.02355806529521942,
-0.008080129511654377,
-0.030722446739673615,
0.02249867096543312,
0.04524872452020645,
-0.018692031502723694,
0.03377493843436241,
-0.019087061285972595,
0.05483714118599892,
-0.03384676203131676,
-0.06324047595262527,
-0.009992426261305809,
-0.05232332646846771,
-0.022642318159341812,
0.031584326177835464,
0.014867437072098255,
0.02831636369228363,
0.021924084052443504,
-0.020056676119565964,
0.033038750290870667,
-0.058643780648708344,
0.014750724658370018,
0.0026597091928124428,
-0.02463541552424431,
0.03874870762228966,
0.008856719359755516,
0.047762539237737656,
0.03578599542379379,
-0.05042000487446785,
0.05311338230967522,
-0.025299781933426857,
0.046649277210235596,
-0.055052611976861954,
-0.012685802765190601,
0.03054288774728775,
-0.023288726806640625,
-0.07297254353761673,
0.0039659966714680195,
0.01347585953772068,
0.06826811283826828,
-0.00618129875510931,
0.08841456472873688,
-0.03424179181456566,
0.05957748368382454,
-0.027777688577771187,
-0.05314929410815239,
0.020595351234078407,
0.08360239863395691,
0.0983261913061142,
-0.03447521850466728,
-0.0023701712489128113,
0.0009314593044109643,
-0.035121627151966095,
-0.06561064720153809,
-0.07850294560194016,
-0.01443649735301733,
0.007689589634537697,
0.033344000577926636,
0.004713408648967743,
-0.03738406300544739,
-0.04208849370479584,
0.007070112973451614,
0.016411639750003815,
0.014723790809512138,
0.02578458935022354,
-0.023145081475377083,
0.019230706617236137,
0.02386331371963024,
-0.016330838203430176,
0.04514098912477493,
0.004399181343615055,
0.018314959481358528,
-0.02842409908771515,
-0.015217576175928116,
0.023145081475377083,
0.004405914805829525,
0.04287855327129364,
-0.0052969735115766525,
-0.020846733823418617,
-0.01926661841571331,
-0.016977248713374138,
-0.07139243185520172,
0.012928206473588943,
-0.009597397409379482,
0.01127626933157444,
0.013565639033913612,
-0.02411469630897045,
0.002803355921059847,
-0.007231715600937605,
-0.01876385509967804,
0.00243975012563169,
-0.006805264391005039,
-0.015971722081303596,
0.002560951979830861,
0.00025853607803583145,
0.005445109214633703,
0.0661134123802185,
-0.012470332905650139,
0.0017495723441243172,
0.02411469630897045,
0.019356397911906242,
-0.008156441152095795,
-0.03646831586956978,
-0.03680947795510292,
-0.002560951979830861,
-0.06349185854196548,
-0.021511098369956017,
-0.009480684995651245,
0.07081784307956696,
0.02002076432108879,
0.026736250147223473,
-0.022462759166955948,
0.041693467646837234,
0.03874870762228966,
0.06525152921676636,
-0.04402772709727287,
0.05138961970806122,
0.08245322853326797,
-0.04201667010784149,
-0.0027764220722019672,
-0.01782117411494255,
0.0298785213381052,
0.00009118200978264213,
0.004163511097431183,
0.01721067540347576,
-0.0027943779714405537,
0.01309878658503294,
0.08870185911655426,
0.05081503465771675,
-0.009417839348316193,
0.018027665093541145
] |
20,964 | argufy.argument | Argument | Represent argparse arguments. | class Argument: # pylint: disable=too-many-instance-attributes
"""Represent argparse arguments."""
__short_flags: List[str] = ['-h']
def __init__(
self,
docstring: Optional[DocstringParam] = None,
parameters: Optional[Parameter] = None,
) -> None:
"""Initialize argparse argument."""
# self.attributes: Dict[Any, Any] = {}
# set parameter default
if parameters:
self.default = parameters.default
self.name = parameters # type: ignore
else:
self.default = None
# set parameter type
if parameters and parameters.annotation != empty:
self.__parse_parameters(parameters)
elif docstring and docstring.type_name:
self.__parse_docstring(docstring)
elif self.default is not None:
self.type = type(self.default)
# if hasattr(self, 'type'):
# self.metavar = (self.type.__name__)
# set parameter help message
if docstring and docstring.description:
self.help = docstring.description
def __parse_parameters(self, parameters: Parameter) -> None:
"""Get parameter types from type inspection."""
# if typing.get_origin(parameters.annotation) is Union:
# XXX need to handle types from typing
# print(
# '---', parameters.annotation,
# typing.get_origin(parameters.annotation),
# )
if hasattr(parameters.annotation, '__origin__'):
annotation = typing.get_args(parameters.annotation)
# print('annotation', annotation, parameters.annotation)
# check if annotation is optional
if type(None) in annotation:
self.nargs = '?'
else:
# self.type = annotation
self.type = typing.get_origin(parameters.annotation)
else:
self.type = parameters.annotation
def __parse_docstring(self, docstring: DocstringParam) -> None:
"""Get parameter types from docstring."""
# Parse docstring for parameter types and defaults
if docstring.type_name and ',' in docstring.type_name:
for arg in docstring.type_name.split(',', 1):
if not hasattr(self, 'type'):
# NOTE: Limit input that eval will parse
if arg.__class__.__module__ == 'builtins':
self.type = literal_eval(arg) if arg != 'str' else str
if arg.lower() == 'optional' and not hasattr(self, 'default'):
# XXX: should optional not exist instead of 'None'
self.default = None
# TODO: tighten regex
if re.search(r'^\s*\{.*\}\s*$', arg):
self.choices = literal_eval(arg.strip())
if not hasattr(self, 'type'):
# NOTE: Limit input that eval will parse
if docstring.type_name in (
('float', 'int', 'str', 'list', 'dict', 'tuple')
):
self.type = locate(docstring.type_name)
@property
def name(self) -> List[str]:
"""Get argparse command/argument name."""
return self.__name
@name.setter
def name(self, parameters: Parameter) -> None:
"""Set argparse command/argument name."""
name = parameters.name.replace('_', '-')
# parse positional argument
if not hasattr(self, 'default') and not str(parameters).startswith(
'**'
):
self.__name = [name]
if str(parameters).startswith('*'):
self.nargs = '*'
# parse optional argument
else:
if str(parameters).startswith('**'):
self.nargs = '*'
flags = [f"--{name}"]
# NOTE: check for conflicting flags
if '-' not in name:
# TODO: check if common short flag (ex: version)
n = name[:1]
if n not in Argument.__short_flags:
Argument.__short_flags.append(n)
flags.insert(0, f"-{n}")
elif n.upper() not in Argument.__short_flags:
Argument.__short_flags.append(n.upper())
flags.insert(0, f"-{n.upper()}")
self.__name = flags
@property
def type(self) -> Any:
"""Get argparse argument type."""
return self.__type # type: ignore
@type.setter
def type(self, annotation: Any) -> None:
"""Set argparse argument type."""
# log.debug('prematched annotation:', annotation)
# print(annotation)
if annotation == bool:
# NOTE: these store bool type internally
if self.default or not hasattr(self, 'default'):
self.action = 'store_false'
else:
self.action = 'store_true'
elif annotation == int:
self.__type = annotation
self.action = 'append'
elif annotation == list:
self.__type = lambda v: int(v) if v.isdigit() else v
self.action = 'append'
elif annotation == tuple:
self.__type = annotation
self.nargs = '+'
elif annotation == set:
self.__type = annotation
self.nargs = '+'
else:
# log.debug('unmatched annotation:', annotation)
self.__type = annotation
# self.nargs = 1
@property
def metavar(self) -> str:
"""Get argparse argument metavar."""
return self.__metavar
@metavar.setter
def metavar(self, metavar: str) -> None:
"""Set argparse argument metavar."""
# NOTE: Only positional arguments use metavars
if not hasattr(self, 'default'):
self.__metavar = metavar
# @property
# def const(self) -> str:
# """Get argparse argument const."""
# return self.__const
# @const.setter
# def const(self, const: str) -> None:
# """Set argparse argument const."""
# self.__const = const
# @property
# def dest(self) -> str:
# """Get argparse command/argument dest."""
# return self.__dest
# @dest.setter
# def dest(self, dest: str) -> None:
# """Set argparse command/argument dest."""
# self.__dest = dest
# @property
# def required(self) -> bool:
# """Get argparse required argument."""
# return self.__required
# @required.setter
# def required(self, required: bool) -> None:
# """Set argparse required argument."""
# self.__required = required
@property
def action(self) -> str:
"""Get argparse argument action."""
return self.__action
@action.setter
def action(self, action: str) -> None:
"""Set argparse argument action."""
self.__action = action
@property
def choices(self) -> List[str]:
"""Get argparse argument choices."""
return self.__choices
@choices.setter
def choices(self, choices: set) -> None:
"""Set argparse argument choices."""
self.__choices = list(choices)
@property
def nargs(self) -> Union[int, str]:
"""Get argparse argument nargs."""
return self.__nargs
@nargs.setter
def nargs(self, nargs: Union[int, str]) -> None:
"""Set argparse argument nargs."""
# TODO: map nargs to argparse with typing
# 1: set number of values
# ?: a single optional value
# *: a flexible list of values
# +: like * requiring at least one value
# REMAINDER: unused args
self.__nargs = nargs
@property
def default(self) -> Any:
"""Get argparse argument default."""
return self.__default
@default.setter
def default(self, default: Any) -> None:
"""Set argparse argument default."""
if default != empty:
self.__default = default
# XXX: this keeps conflicting with positional arguments
# else:
# self.__default = None
@property
def help(s | (docstring: Optional[docstring_parser.common.DocstringParam] = None, parameters: Optional[inspect.Parameter] = None) -> None | [
0.03528454527258873,
0.009060072712600231,
0.012531963177025318,
-0.013731520622968674,
0.05750074237585068,
-0.00997193157672882,
0.023464515805244446,
0.014726275578141212,
-0.010093837976455688,
-0.06393739581108093,
-0.009503811597824097,
0.04599279165267944,
-0.029647601768374443,
0.02287936583161354,
-0.01726192608475685,
0.05352172255516052,
0.024693330749869347,
0.05851500481367111,
0.01733994670212269,
0.044003281742334366,
0.0499718114733696,
-0.011956566013395786,
-0.021572532132267952,
0.00035200431011617184,
0.0023564479779452085,
-0.006441526580601931,
0.06385937333106995,
-0.030076712369918823,
-0.03109097108244896,
-0.04419833421707153,
-0.029745126143097878,
-0.07560138404369354,
0.016930341720581055,
0.024946896359324455,
0.0391855463385582,
-0.05219538137316704,
-0.022664811462163925,
0.10743355005979538,
-0.05008884146809578,
-0.02633175067603588,
-0.01393632311373949,
-0.03101295232772827,
-0.011420178227126598,
-0.04767022281885147,
0.01215161569416523,
-0.0034962715581059456,
-0.02170906588435173,
0.04053139314055443,
-0.08348140865564346,
-0.07056909054517746,
0.0567595548927784,
-0.06085560470819473,
0.016306180506944656,
-0.0038473615422844887,
-0.025454025715589523,
0.07489920407533646,
0.04700705409049988,
0.05414588376879692,
0.008299377746880054,
0.009401410818099976,
0.0064951651729643345,
0.05691559240221977,
0.027541061863303185,
-0.04981577396392822,
-0.009547698311507702,
-0.01622816175222397,
-0.01303909346461296,
-0.036981482058763504,
-0.00965497549623251,
0.053872812539339066,
-0.061089664697647095,
-0.04786527156829834,
0.007641084026545286,
-0.026487791910767555,
0.06935978680849075,
-0.031129982322454453,
-0.06421046704053879,
-0.005198082886636257,
0.04170169308781624,
-0.008455418050289154,
0.025941651314496994,
0.016530487686395645,
-0.04415932297706604,
-0.021865107119083405,
0.011186118237674236,
0.016471972689032555,
-0.05437994375824928,
-0.006846255622804165,
0.02763858623802662,
-0.03163711354136467,
-0.05071300268173218,
-0.008231110870838165,
0.020324211567640305,
0.056954603642225266,
-0.0021516454871743917,
-0.0074899205937981606,
-0.02442026138305664,
-0.08535388857126236,
-0.04248189181089401,
0.003303659614175558,
-0.040297333151102066,
0.03585019335150719,
0.032846421003341675,
0.008972300216555595,
-0.00008777250332059339,
-0.00437887292355299,
-0.02990116737782955,
0.01822742447257042,
0.008133585564792156,
0.004327672068029642,
-0.053872812539339066,
-0.0530536025762558,
-0.031305525451898575,
0.001977319596335292,
-0.027482546865940094,
0.00721685029566288,
-0.0314420610666275,
-0.04884052276611328,
0.014511721208691597,
0.024225210770964622,
0.013975333422422409,
0.038073763251304626,
0.01948549598455429,
0.016735291108489037,
0.04669497162103653,
0.032729391008615494,
-0.04759220406413078,
0.019690299406647682,
-0.01298057846724987,
-0.011624980717897415,
-0.014950583688914776,
-0.0006363506545312703,
-0.04712408408522606,
0.04720210283994675,
0.027053436264395714,
-0.005890510510653257,
-0.0019224616698920727,
0.050166863948106766,
-0.05711064487695694,
0.03442632779479027,
0.014814048074185848,
-0.002540526445955038,
0.04638289287686348,
-0.09323390573263168,
-0.06920374184846878,
-0.04821636155247688,
0.03040829673409462,
0.005880757700651884,
-0.024693330749869347,
0.03077889233827591,
-0.034582365304231644,
-0.022918377071619034,
-0.00003403851223993115,
0.005788109265267849,
0.0388539619743824,
0.027970172464847565,
-0.03224176540970802,
-0.07064711302518845,
-0.002129702363163233,
0.0022833042312413454,
-0.042598921805620193,
-0.06916473060846329,
0.019407475367188454,
-0.043262094259262085,
0.04529061168432236,
0.03957564756274223,
0.03801524639129639,
-0.0073826429434120655,
-0.016881577670574188,
0.026409771293401718,
-0.021240945905447006,
0.009518440812826157,
0.021611541509628296,
0.026429276913404465,
0.01794460043311119,
0.10509294271469116,
-0.021240945905447006,
0.03945861756801605,
0.037839703261852264,
-0.03267087787389755,
0.004244775976985693,
-0.003979020286351442,
-0.04837240278720856,
-0.052273403853178024,
0.06124570220708847,
-0.01205409038811922,
0.00834326446056366,
0.048255372792482376,
-0.001573809771798551,
0.027287496253848076,
0.023523030802607536,
-0.03311949223279953,
0.04322308301925659,
0.016306180506944656,
-0.06085560470819473,
-0.0029038069769740105,
-0.05933421477675438,
-0.021787086501717567,
0.07926832139492035,
-0.007475291844457388,
-0.005929520353674889,
-0.008557818830013275,
0.015438208356499672,
0.043379124253988266,
0.015994101762771606,
0.010318145155906677,
0.040375351905822754,
0.007338756695389748,
-0.0348554365336895,
-0.03329503536224365,
-0.03979020193219185,
-0.04174070432782173,
0.036298807710409164,
-0.0009612308349460363,
0.02170906588435173,
-0.08348140865564346,
0.03208572790026665,
-0.008655344136059284,
-0.009367276914417744,
0.026234226301312447,
0.1350526213645935,
0.03873693197965622,
0.024010656401515007,
0.03569415211677551,
0.055589254945516586,
-0.025824621319770813,
0.05457499250769615,
-0.007480167783796787,
0.03175414353609085,
0.037527620792388916,
-0.0030671614222228527,
-0.05847599357366562,
0.0004592818149831146,
0.04232585430145264,
-0.027853142470121384,
-0.0056954603642225266,
0.03998525068163872,
0.0030452182982116938,
-0.03608425334095955,
-0.022216197103261948,
-0.01498959306627512,
0.027092447504401207,
-0.018646780401468277,
0.0023223143070936203,
-0.053560733795166016,
-0.015028603374958038,
0.02053876593708992,
0.012570973485708237,
0.02319144643843174,
-0.019963368773460388,
0.002584412693977356,
0.03231978788971901,
-0.03782019764184952,
0.013058598153293133,
-0.04053139314055443,
-0.008733363822102547,
-0.03928307071328163,
-0.03522603213787079,
0.01260998286306858,
-0.05633044242858887,
0.024283725768327713,
-0.0071144490502774715,
0.055979352444410324,
0.06452254205942154,
-0.011898051016032696,
-0.021006885915994644,
0.06186986342072487,
-0.06050451472401619,
-0.009825644083321095,
-0.010191363282501698,
0.06401541084051132,
0.009211236611008644,
-0.02330847643315792,
0.02676086127758026,
-0.03782019764184952,
0.02399115078151226,
0.0249859057366848,
0.007260736543685198,
-0.01846148446202278,
0.002006577095016837,
0.02955007739365101,
-0.01566251553595066,
0.016442716121673584,
0.029374532401561737,
-0.0014287413796409965,
0.011615227907896042,
0.0009039348806254566,
0.042598921805620193,
-0.03317800536751747,
0.03497246652841568,
0.06389838457107544,
0.04216981306672096,
0.034991972148418427,
-0.016647517681121826,
0.08215506374835968,
0.059178173542022705,
-0.030174236744642258,
0.01298057846724987,
-0.004576360806822777,
-0.06869661062955856,
0.051727261394262314,
-0.005315112881362438,
0.0061001889407634735,
-0.033509593456983566,
-0.010084085166454315,
-0.0008417626959271729,
0.040804460644721985,
-0.008850393816828728,
0.053755782544612885,
0.008333511650562286,
0.03212473541498184,
0.002163836034014821,
-0.05348271504044533,
0.02873086743056774,
-0.0008344483212567866,
0.021006885915994644,
0.029023442417383194,
-0.028399281203746796,
-0.001470189425162971,
0.06323521584272385,
-0.03397771343588829,
0.0019529382698237896,
0.018929604440927505,
-0.05718866363167763,
0.0017274116398766637,
-0.00834326446056366,
-0.002024862915277481,
0.034270286560058594,
-0.005100557580590248,
0.0055686780251562595,
-0.0024527539499104023,
-0.00715345935896039,
-0.02769710123538971,
0.02336699143052101,
-0.006402516737580299,
-0.016442716121673584,
-0.019963368773460388,
0.008850393816828728,
-0.03200770542025566,
-0.022801347076892853,
0.060660552233457565,
0.09151746332645416,
-0.014677513390779495,
0.021982137113809586,
0.008518809452652931,
-0.02461531199514866,
0.06194788217544556,
0.007411900442093611,
0.08348140865564346,
-0.035128507763147354,
0.00981101579964161,
0.03224176540970802,
-0.03292444348335266,
-0.017642272636294365,
0.0696718618273735,
-0.06643403321504593,
-0.014345928095281124,
-0.046109821647405624,
0.0042764716781675816,
-0.06233798339962959,
0.01588682271540165,
-0.0323978066444397,
-0.019075891003012657,
0.014053353108465672,
-0.02276233583688736,
-0.027248486876487732,
-0.0014689704403281212,
-0.027033932507038116,
0.08550992608070374,
-0.02492739073932171,
0.06261105090379715,
-0.041662681847810745,
-0.01769103668630123,
-0.08441764861345291,
0.0018529751105234027,
0.031071467325091362,
-0.005753975361585617,
0.01292206346988678,
-0.1005677878856659,
-0.039127033203840256,
0.03089592233300209,
0.019865844398736954,
-0.011351910419762135,
0.01831519603729248,
-0.04638289287686348,
-0.05235142260789871,
-0.010747255757451057,
0.0022698945831507444,
-0.012395428493618965,
0.04731913283467293,
0.0005760070635005832,
-0.021104412153363228,
0.015350435860455036,
-0.014550730586051941,
0.019563516601920128,
-0.03335355222225189,
-0.006036798004060984,
0.034991972148418427,
-0.05835896357893944,
0.01236617099493742,
0.03347058221697807,
-0.04915260151028633,
0.05519915372133255,
0.011117850430309772,
0.019817080348730087,
-0.0018639466725289822,
0.05625242367386818,
0.02707294188439846,
-0.06257204711437225,
0.06311818212270737,
0.020441241562366486,
-0.030915426090359688,
-0.022586790844798088,
0.004590989556163549,
-0.0023125617299228907,
-0.016735291108489037,
0.035499103367328644,
0.027287496253848076,
-0.005003032740205526,
-0.01580880396068096,
-0.003986334428191185,
0.020616786554455757,
0.0342312753200531,
0.08340338617563248,
0.030934931710362434,
0.03386068344116211,
-0.05395083501935005,
0.027658091858029366,
-0.019836585968732834,
-0.04649992287158966,
-0.013370678760111332,
0.04618784412741661,
-0.02256728708744049,
-0.07107622176408768,
-0.02923799678683281,
-0.01566251553595066,
-0.010669236071407795,
-0.08597804605960846,
0.06089461222290993,
0.017954353243112564,
-0.020948370918631554,
-0.024712836369872093,
0.04525160416960716,
0.04755319282412529,
0.012336913496255875,
-0.010776513256132603,
-0.020343715324997902,
0.05008884146809578,
0.028769876807928085,
-0.05527717247605324,
-0.014979841187596321,
0.03337305784225464,
0.05219538137316704,
-0.05293657258152962,
-0.0289844311773777,
-0.09916342794895172,
-0.06385937333106995,
0.029530571773648262,
-0.010376661084592342,
-0.0195927731692791,
0.043145064264535904,
0.005544296465814114,
0.0005881976685486734,
-0.03768366202712059,
-0.010045075789093971,
0.020558271557092667,
0.06202590465545654,
-0.002366200555115938,
-0.07439207285642624,
0.012619735673069954,
-0.0025600313674658537,
-0.030544832348823547,
0.008830889128148556,
-0.008752869442105293,
-0.015223653055727482,
0.020616786554455757,
0.05555024370551109,
-0.03467989340424538,
-0.06343026459217072,
-0.025376006960868835,
0.06822849065065384,
-0.010571710765361786,
0.02139698714017868,
0.06179184466600418,
-0.02059728093445301,
0.01011334266513586,
0.041545651853084564,
-0.05020587146282196,
-0.020070645958185196,
0.012668497860431671,
-0.033899690955877304,
-0.005685708019882441,
0.02053876593708992,
0.0008192100212909281,
0.06210392341017723,
-0.014618998393416405,
0.013926571235060692,
0.008572448045015335,
0.014736028388142586,
0.008089698851108551,
0.013565728440880775,
-0.03467989340424538,
-0.014053353108465672,
-0.0005842357641085982,
0.049113593995571136,
-0.026682842522859573,
-0.03140305355191231,
-0.004661695100367069,
-0.05972431227564812,
-0.013614490628242493,
-0.05340469256043434,
0.0026673090178519487,
0.07107622176408768,
-0.0034353183582425117,
-0.0183444544672966,
0.006480536423623562,
0.027248486876487732,
0.026741357520222664,
0.017008360475301743,
-0.023230455815792084,
-0.04275496304035187,
-0.020675301551818848,
-0.026994921267032623,
-0.041233573108911514,
-0.010064580477774143,
0.026448780670762062,
-0.041779711842536926,
-0.01999262534081936,
0.0296085923910141,
-0.0003654140164144337,
0.05648648366332054,
-0.0010349841322749853,
0.00002657175537024159,
0.015135880559682846,
0.021494511514902115,
0.06339125335216522,
0.011283643543720245,
0.030447306111454964,
0.021318966522812843,
0.04938666149973869,
0.036298807710409164,
0.06276709586381912,
-0.06050451472401619,
0.017359450459480286,
-0.02362055703997612,
0.02356204204261303,
-0.02213817648589611,
-0.019348960369825363,
0.02781413123011589,
0.0020821588113904,
-0.08004852384328842,
0.03072037734091282,
-0.016881577670574188,
0.08613408356904984,
-0.04466645419597626,
0.023542536422610283,
0.03466038778424263,
-0.016530487686395645,
0.06382036209106445,
0.030993446707725525,
0.010415670461952686,
-0.02609769068658352,
-0.032592855393886566,
0.00012868728663306683,
-0.01048393826931715,
0.04638289287686348,
-0.004883564542979002,
0.010093837976455688,
-0.019534258171916008,
-0.0005354732275009155,
-0.01622816175222397,
-0.08192100375890732,
-0.038268812000751495,
-0.03713752329349518,
-0.054926082491874695,
0.03651336207985878,
0.00834326446056366,
0.020343715324997902,
-0.01165423821657896,
0.03138354793190956,
0.025063926354050636,
0.005198082886636257,
-0.04373021423816681,
-0.03881495073437691,
-0.011781021021306515,
0.043886251747608185,
0.028457796201109886,
0.01236617099493742,
-0.026624325662851334,
-0.034562863409519196,
-0.05340469256043434,
0.043145064264535904,
0.01757400669157505,
-0.04185773432254791,
-0.05309261381626129,
0.027150962501764297,
0.01997312158346176,
-0.03405573219060898,
0.05203934386372566,
-0.035986728966236115,
-0.018383463844656944,
-0.030817901715636253,
-0.02207966148853302,
-0.005188330542296171,
0.02756056748330593,
0.03503098338842392,
0.01548697054386139,
0.00721685029566288,
-0.003520652651786804,
-0.006680462975054979,
0.010630225762724876,
-0.050166863948106766,
-0.005261474289000034,
-0.005651574116200209,
-0.08566596359014511,
0.00957207940518856,
0.01393632311373949,
0.04540764167904854,
0.05703262239694595,
-0.015311425551772118,
-0.01797385886311531,
0.024712836369872093,
0.008148213848471642,
-0.022372236475348473,
-0.05531618371605873,
0.0013287782203406096,
-0.054418954998254776,
-0.002141892910003662,
-0.013897313736379147,
-0.06370333582162857,
0.04470546171069145,
-0.026546306908130646,
0.003986334428191185,
-0.03304147347807884,
0.020129160955548286,
-0.04790428280830383,
-0.018793068826198578,
-0.011624980717897415,
0.0006473222165368497,
0.03569415211677551,
0.01736920326948166,
-0.046031802892684937,
-0.0268388818949461,
0.0592171847820282,
-0.02713145688176155,
0.05890510231256485,
-0.036103758960962296,
-0.04466645419597626,
0.027716606855392456,
0.018120145425200462,
0.04298902302980423,
0.09050320833921432,
-0.04427635297179222,
-0.021943125873804092,
0.012444190680980682,
0.015291920863091946,
-0.027053436264395714,
-0.007733732927590609,
-0.013887560926377773,
0.00159575289580971,
-0.014443453401327133,
-0.005003032740205526,
0.058749064803123474,
0.0009697642526589334,
-0.01702786609530449,
-0.029530571773648262,
-0.01874430663883686,
-0.025922145694494247,
0.07017899304628372,
0.08316932618618011,
-0.018129898235201836,
-0.03873693197965622,
0.031051961705088615,
0.024400755763053894,
-0.011410425417125225,
-0.014667760580778122,
0.03409474343061447,
0.03483593091368675,
-0.0009246589615941048,
-0.01888084039092064,
-0.03161760792136192,
-0.03588920086622238,
-0.009976807981729507,
-0.04236486181616783,
-0.009362400509417057,
-0.018354205414652824,
0.017378956079483032,
-0.005422390531748533,
0.03058384172618389,
-0.08075070381164551,
-0.009011310525238514,
-0.0345238521695137,
0.012200377881526947,
0.011478693224489689,
-0.0008362769149243832,
-0.012970825657248497,
-0.06019243225455284,
-0.04451041296124458,
0.02824324183166027,
-0.007446034345775843,
0.060231443494558334,
-0.029628096148371696,
-0.030369287356734276,
0.015233405865728855,
-0.011859040707349777,
0.020616786554455757,
-0.05605737492442131,
0.0025088307447731495,
0.054614003747701645,
-0.007177840452641249,
0.039614658802747726,
0.07825406640768051,
-0.004191136918962002,
-0.04786527156829834,
0.03754712641239166,
-0.05012785270810127,
0.004381310660392046,
0.056837573647499084,
-0.0034767664037644863,
-0.010591215454041958,
0.0005110919591970742,
0.028574826195836067,
0.06456155329942703,
0.025395510718226433,
-0.003788846544921398,
-0.013799788430333138,
-0.06955483555793762,
-0.03922455757856369,
0.04556368291378021,
-0.05129815265536308,
-0.005285855382680893,
0.01375102624297142,
0.004083859734237194,
-0.014423948712646961,
0.02453729137778282,
-0.024069171398878098,
0.061830852180719376,
-0.00632449658587575,
-0.00721685029566288,
0.02947205677628517,
0.009152721613645554,
0.05008884146809578,
-0.042832981795072556,
0.01962203159928322,
0.021806592121720314,
0.020148666575551033,
-0.006070931442081928,
-0.0023235331755131483,
0.012015081010758877,
-0.03428979218006134,
0.015838060528039932,
-0.01069849357008934,
-0.029530571773648262,
0.029335521161556244,
0.014882315881550312,
-0.019134406000375748,
0.022372236475348473,
0.04306704178452492,
-0.009030815213918686,
-0.048879534006118774,
-0.058007873594760895,
-0.05574529245495796,
-0.02966710738837719,
-0.039634160697460175,
0.048021312803030014,
0.020382726565003395,
-0.041779711842536926,
0.008718735538423061
] |
20,965 | argufy.argument | __parse_docstring | Get parameter types from docstring. | def __parse_docstring(self, docstring: DocstringParam) -> None:
"""Get parameter types from docstring."""
# Parse docstring for parameter types and defaults
if docstring.type_name and ',' in docstring.type_name:
for arg in docstring.type_name.split(',', 1):
if not hasattr(self, 'type'):
# NOTE: Limit input that eval will parse
if arg.__class__.__module__ == 'builtins':
self.type = literal_eval(arg) if arg != 'str' else str
if arg.lower() == 'optional' and not hasattr(self, 'default'):
# XXX: should optional not exist instead of 'None'
self.default = None
# TODO: tighten regex
if re.search(r'^\s*\{.*\}\s*$', arg):
self.choices = literal_eval(arg.strip())
if not hasattr(self, 'type'):
# NOTE: Limit input that eval will parse
if docstring.type_name in (
('float', 'int', 'str', 'list', 'dict', 'tuple')
):
self.type = locate(docstring.type_name)
| (self, docstring: docstring_parser.common.DocstringParam) -> NoneType | [
-0.00027548905927687883,
0.020681286230683327,
0.041985392570495605,
-0.036031968891620636,
0.0017814482562243938,
0.03147072717547417,
0.06341772526502609,
0.029162628576159477,
0.005037514492869377,
-0.0021741455420851707,
-0.011632079258561134,
0.031177634373307228,
-0.02082783170044422,
-0.0015902516897767782,
-0.011567965149879456,
0.04671149700880051,
0.015909386798739433,
0.014059244655072689,
-0.02573711983859539,
-0.012950991280376911,
-0.01713670790195465,
-0.005064991768449545,
0.013729516416788101,
0.0401902049779892,
-0.012245739810168743,
-0.011613760143518448,
0.03669142350554466,
-0.05004541575908661,
-0.03399864211678505,
-0.04967905208468437,
0.007698237895965576,
-0.03676469624042511,
0.023795386776328087,
0.010084187611937523,
0.03187372907996178,
0.004904707428067923,
-0.0004943060921505094,
0.044586583971977234,
-0.010395597666501999,
-0.005129105411469936,
-0.030426587909460068,
0.009562117978930473,
-0.03832174465060234,
-0.025370754301548004,
-0.019820328801870346,
0.003056855406612158,
-0.030280040577054024,
0.0015009503113105893,
-0.03931093215942383,
-0.026359939947724342,
0.001530717476271093,
-0.0007779524894431233,
-0.04975232481956482,
-0.042974576354026794,
-0.024802889674901962,
-0.016587160527706146,
0.02418006956577301,
0.09840555489063263,
0.025883665308356285,
0.05795889347791672,
0.02423502318561077,
0.020534740760922432,
-0.005715289153158665,
0.01133898738771677,
0.0021375089418143034,
-0.0387980192899704,
0.03317432105541229,
-0.044989582151174545,
-0.05015532672405243,
0.024729616940021515,
-0.04260821267962456,
-0.017329050227999687,
-0.0570063441991806,
0.037552379071712494,
0.032643094658851624,
-0.04612531512975693,
-0.04030011594295502,
0.005669493693858385,
0.013692880049347878,
0.015488066710531712,
0.015039270743727684,
0.05044841766357422,
-0.021945245563983917,
-0.0482502281665802,
0.013088378123939037,
-0.032643094658851624,
-0.06858346611261368,
0.018941054120659828,
0.04044666141271591,
0.06268499791622162,
-0.0298953577876091,
-0.0312875434756279,
0.01318912860006094,
0.030170131474733353,
-0.007020463235676289,
-0.03643496707081795,
-0.0015146889491006732,
-0.08279842138290405,
0.01081691775470972,
0.024601388722658157,
-0.03676469624042511,
0.030866224318742752,
0.02361220493912697,
-0.01788775622844696,
0.030371632426977158,
-0.08785425126552582,
0.011732828803360462,
0.0026607236359268427,
0.027092669159173965,
0.016880253329873085,
0.007844784297049046,
-0.10412084311246872,
-0.04257157817482948,
0.02874130941927433,
-0.00931940134614706,
-0.02822839841246605,
-0.02689116820693016,
-0.022293291985988617,
-0.008179091848433018,
-0.0008752681314945221,
-0.018776189535856247,
0.035116054117679596,
-0.002626376925036311,
0.02932749316096306,
0.0387980192899704,
-0.008838548325002193,
-0.004781058989465237,
0.0033384982962161303,
-0.031598955392837524,
-0.007570010144263506,
0.03399864211678505,
-0.03513437509536743,
-0.006516711786389351,
0.025700483471155167,
-0.01082607638090849,
0.024894479662179947,
0.00629231333732605,
0.04454994574189186,
-0.047517500817775726,
-0.0031805033795535564,
0.05198714882135391,
0.0374058336019516,
0.016953526064753532,
-0.09085844457149506,
-0.02908935584127903,
0.010597098618745804,
0.050631601363420486,
-0.01593686453998089,
0.015488066710531712,
0.04905623197555542,
-0.05477152019739151,
-0.06840028613805771,
0.042388394474983215,
-0.005875573493540287,
0.031782135367393494,
-0.06385736167430878,
0.02463802509009838,
-0.03244159370660782,
-0.02949235774576664,
-0.0034026119392365217,
-0.005206957925111055,
-0.018446462228894234,
0.005701550282537937,
-0.07517803460359573,
0.05880153179168701,
0.05620034411549568,
0.016010137274861336,
-0.05927780643105507,
-0.032569821923971176,
-0.04392712563276291,
-0.01535068079829216,
0.00732729397714138,
-0.002969843801110983,
0.03854156658053398,
0.03610524162650108,
0.009974278509616852,
-0.026158438995480537,
0.06418709456920624,
0.008211148902773857,
-0.04022684320807457,
0.06539610028266907,
0.01972873881459236,
-0.06840028613805771,
0.0332292765378952,
0.03339414298534393,
0.049788959324359894,
0.013500538654625416,
0.009617073461413383,
-0.06557928025722504,
-0.02015005797147751,
0.0007962707313708961,
-0.016065090894699097,
0.005165742244571447,
-0.013637925498187542,
-0.02927253767848015,
0.044000398367643356,
-0.008298160508275032,
0.016129205003380775,
0.025993574410676956,
0.0302434042096138,
0.03942083939909935,
-0.001115694991312921,
-0.002232534810900688,
0.048909686505794525,
0.03700283169746399,
0.020241649821400642,
0.03964065760374069,
0.030792951583862305,
-0.05887480452656746,
-0.026451529935002327,
-0.02088278718292713,
-0.02769717015326023,
0.0428280308842659,
-0.0033957427367568016,
0.0016200188547372818,
-0.050704874098300934,
-0.05718952789902687,
-0.022696292027831078,
-0.042498305439949036,
-0.02128578908741474,
0.12441744655370712,
0.0571528896689415,
0.03053649701178074,
-0.011485532857477665,
0.10009083151817322,
-0.039091113954782486,
0.014132517389953136,
-0.05726280063390732,
-0.005367242731153965,
0.03247822821140289,
0.008495081216096878,
-0.0803804099559784,
0.021963562816381454,
0.01805262081325054,
-0.043597396463155746,
-0.02579207345843315,
0.0071074748411774635,
-0.0005907630547881126,
-0.006425120867788792,
-0.0309394970536232,
-0.00003404257950023748,
-0.01012998353689909,
-0.08382423967123032,
0.0038079030346125364,
-0.08939298242330551,
-0.009172855876386166,
-0.010615416802465916,
0.03352236747741699,
0.03861483931541443,
0.0022039124742150307,
0.02718425914645195,
0.028301673009991646,
0.008449285291135311,
-0.02297106571495533,
-0.002889701398089528,
-0.0200951024889946,
-0.04275475814938545,
0.002152392640709877,
0.011540487408638,
-0.023557249456644058,
-0.003846829291433096,
0.05143760144710541,
0.03317432105541229,
0.065762460231781,
0.004694047383964062,
-0.02678125910460949,
0.05927780643105507,
0.003688834374770522,
-0.005696970969438553,
0.00784936361014843,
0.07671676576137543,
0.0005100483540445566,
0.007034202106297016,
0.015423953533172607,
0.030389951542019844,
0.012328172102570534,
0.04334094375371933,
-0.009974278509616852,
0.034493234008550644,
0.016257433220744133,
0.04293794184923172,
-0.03711274266242981,
0.03676469624042511,
0.03346741572022438,
0.06876665353775024,
0.0386514738202095,
0.02401520498096943,
0.03150736168026924,
-0.04374394193291664,
0.04982559755444527,
0.0011351581197232008,
-0.006438859272748232,
0.04041002690792084,
0.024051841348409653,
0.02302602119743824,
0.06125617399811745,
0.02315424755215645,
-0.018107574433088303,
0.027660533785820007,
-0.04121602699160576,
-0.027019396424293518,
-0.007940954528748989,
0.036380015313625336,
-0.0006142333149909973,
0.04275475814938545,
-0.006145767867565155,
0.0024271660950034857,
-0.05044841766357422,
0.013060901314020157,
-0.030151814222335815,
0.0008300449699163437,
0.06169581413269043,
-0.041399210691452026,
0.020901106297969818,
-0.0018249540589749813,
0.017301572486758232,
-0.003691124264150858,
-0.018217483535408974,
-0.021560562774538994,
0.05557752400636673,
-0.02753230556845665,
-0.05066823586821556,
0.05865498632192612,
-0.06528618931770325,
0.04531931132078171,
0.03000526875257492,
-0.05517452210187912,
0.018547212705016136,
0.011650397442281246,
0.0442202165722847,
-0.01281360536813736,
-0.004799377638846636,
-0.005193219520151615,
0.0017138997791334987,
0.03722265362739563,
-0.024564752355217934,
-0.012154148891568184,
0.010249052196741104,
-0.0517306923866272,
-0.020919423550367355,
0.06905974447727203,
-0.033797141164541245,
0.07048856467008591,
-0.0055870614014565945,
-0.021267469972372055,
0.0326797291636467,
0.05066823586821556,
-0.029986949637532234,
0.12207271158695221,
-0.026286667212843895,
0.009241549298167229,
-0.06543273478746414,
0.00240197847597301,
0.011522169224917889,
0.04967905208468437,
-0.02170710824429989,
0.006328950170427561,
-0.0008477907977066934,
0.013244083151221275,
-0.07268675416707993,
0.03727760538458824,
-0.011925170198082924,
0.01921582780778408,
-0.007519635371863842,
-0.024399887770414352,
0.05118114501237869,
-0.011128327809274197,
-0.017109230160713196,
0.07576421648263931,
0.011412260122597218,
-0.0035102316178381443,
0.0084309671074152,
-0.05455170199275017,
-0.10184938460588455,
-0.04030011594295502,
-0.016239114105701447,
0.0033865836448967457,
0.018611326813697815,
-0.05099796503782272,
-0.05554088577628136,
-0.009007992222905159,
-0.023868659511208534,
0.06070663034915924,
0.026817895472049713,
-0.06829037517309189,
-0.048213593661785126,
-0.06770419329404831,
0.0022920691408216953,
-0.01709091290831566,
0.056420162320137024,
-0.0068052238784730434,
0.011265713721513748,
0.016257433220744133,
0.006631200667470694,
0.028026899322867393,
-0.01564377173781395,
0.04110611975193024,
0.000801422749646008,
-0.06616546213626862,
0.026909485459327698,
0.011155804619193077,
-0.0786951333284378,
-0.047700680792331696,
0.024619707837700844,
0.004329972434788942,
0.02973049506545067,
0.05026523396372795,
0.029968632385134697,
-0.017384003847837448,
0.020003512501716614,
0.037552379071712494,
-0.055321067571640015,
0.04326767101883888,
-0.05861835181713104,
-0.0016589451115578413,
-0.017301572486758232,
-0.0069517698138952255,
0.08602242916822433,
0.031305860728025436,
-0.043890491127967834,
0.0454658567905426,
0.007203645538538694,
0.04814032092690468,
0.053196150809526443,
0.00624651787802577,
0.07250357419252396,
0.021542243659496307,
0.01133898738771677,
-0.016458934172987938,
-0.05187724158167839,
-0.04041002690792084,
0.0728699341416359,
-0.025059344246983528,
-0.07693658769130707,
0.01784195937216282,
-0.0031644750852137804,
-0.013976813293993473,
-0.020186694338917732,
0.018336553126573563,
-0.04832350090146065,
-0.006306052207946777,
0.042974576354026794,
-0.0026378256734460592,
0.02908935584127903,
0.02734912373125553,
-0.029693858698010445,
-0.0069975657388567924,
0.028155125677585602,
-0.06601891666650772,
-0.06583573669195175,
-0.01203508023172617,
0.04011693224310875,
0.1045604795217514,
-0.01932573691010475,
-0.004868070594966412,
-0.06319791078567505,
-0.032404955476522446,
0.03813856467604637,
0.02978544868528843,
-0.014727860689163208,
0.05997389927506447,
0.008275262080132961,
0.004320813342928886,
-0.04817695543169975,
0.006159506272524595,
0.05792225897312164,
0.05400215461850166,
-0.014159995131194592,
0.000159855218953453,
0.004826854914426804,
0.017732050269842148,
-0.027165941894054413,
0.0012628133408725262,
0.0011735118459910154,
-0.0298953577876091,
0.023740431293845177,
0.006983826868236065,
0.009314822033047676,
-0.026616394519805908,
0.019600510597229004,
0.023703794926404953,
-0.029510674998164177,
-0.0038101926911622286,
0.05246342346072197,
0.003368265461176634,
-0.05876489728689194,
0.008531717583537102,
-0.039384204894304276,
-0.08030714094638824,
-0.01610172726213932,
-0.03953075036406517,
0.0515841469168663,
0.05385560914874077,
-0.012190785259008408,
0.033265914767980576,
-0.00493218470364809,
0.020992696285247803,
0.021102605387568474,
-0.023740431293845177,
0.03412687033414841,
0.01777784712612629,
-0.048909686505794525,
-0.011879375204443932,
-0.015570499002933502,
0.07979422807693481,
-0.03236832097172737,
0.02504102699458599,
0.048616595566272736,
-0.07774258404970169,
-0.038688112050294876,
-0.050704874098300934,
0.011677874252200127,
-0.0033407879527658224,
0.03141577169299126,
-0.009333140216767788,
0.018272439017891884,
0.05579734221100807,
0.08140623569488525,
-0.05477152019739151,
-0.04777395352721214,
-0.02626834809780121,
-0.0234290212392807,
-0.011476374231278896,
-0.015194975771009922,
0.016229955479502678,
0.0319836363196373,
-0.04905623197555542,
-0.011458056047558784,
-0.004000244662165642,
-0.04191211983561516,
0.07679004222154617,
-0.02042483165860176,
-0.034603144973516464,
-0.00767534039914608,
-0.007345612160861492,
0.008142455480992794,
-0.011824420653283596,
0.0013418106827884912,
0.021853653714060783,
0.0400436595082283,
0.007478419225662947,
0.05696970969438553,
-0.013647085055708885,
0.0251692533493042,
0.024729616940021515,
0.06631200760602951,
-0.0022840548772364855,
0.0011420274386182427,
-0.07070838660001755,
0.01886778138577938,
-0.012053398415446281,
-0.027568941935896873,
-0.0508880540728569,
-0.0036407490260899067,
-0.07664348930120468,
0.04330430552363396,
-0.027862034738063812,
-0.03654487803578377,
0.06323454529047012,
0.03458482772111893,
-0.0003872589149978012,
-0.026854531839489937,
0.009154537692666054,
0.059241168200969696,
-0.014013449661433697,
0.022091791033744812,
0.0058893123641610146,
-0.0030934917740523815,
-0.06374745815992355,
0.001207858556881547,
0.02973049506545067,
-0.08477678894996643,
0.018089257180690765,
-0.04176557436585426,
0.025260845199227333,
0.026653030887246132,
-0.002255432540550828,
-0.0070296223275363445,
-0.06367418169975281,
0.043670669198036194,
-0.005248174071311951,
0.01494767889380455,
-0.005316867493093014,
-0.023905295878648758,
-0.004362029489129782,
0.00041559492819942534,
-0.019710419699549675,
-0.003780425526201725,
-0.04330430552363396,
0.05268324166536331,
-0.02839326299726963,
0.02262301929295063,
0.027807079255580902,
-0.0071166339330375195,
-0.053306061774492264,
-0.004483387805521488,
-0.003604112658649683,
-0.01316165179014206,
0.00009338006202597171,
-0.03348573297262192,
-0.04744422808289528,
-0.0028668036684393883,
-0.02088278718292713,
-0.010285688564181328,
0.0051107872277498245,
0.0305914506316185,
0.04022684320807457,
0.03890793025493622,
0.04081302508711815,
0.018437303602695465,
0.03594037517905235,
-0.0024821206461638212,
0.013784470967948437,
0.017393164336681366,
-0.04191211983561516,
0.03733256086707115,
0.0058893123641610146,
-0.041875485330820084,
0.06649518758058548,
-0.05499133840203285,
0.008362273685634136,
0.03945747762918472,
0.0742621198296547,
-0.016458934172987938,
-0.06572582572698593,
-0.008343955501914024,
-0.04594213142991066,
-0.10353466123342514,
0.01361960731446743,
-0.0003586366947274655,
0.014718701131641865,
-0.03452987223863602,
0.03172718361020088,
-0.05217033252120018,
-0.029162628576159477,
0.003530839690938592,
0.002144378377124667,
-0.06030362844467163,
0.010084187611937523,
0.023080974817276,
0.06349100172519684,
-0.04524603858590126,
-0.015579658560454845,
0.025773756206035614,
-0.009726982563734055,
0.06231863424181938,
-0.03802865371108055,
-0.025059344246983528,
0.04381721839308739,
0.04044666141271591,
0.01555218081921339,
0.08213896304368973,
0.013482220470905304,
0.023190883919596672,
-0.006164086051285267,
0.002640115562826395,
-0.023465657606720924,
-0.013244083151221275,
0.010679530911147594,
-0.0285031720995903,
0.002152392640709877,
-0.06986574828624725,
0.025242526084184647,
0.003677385626360774,
-0.04392712563276291,
-0.012154148891568184,
-0.053196150809526443,
0.04081302508711815,
0.029290856793522835,
-0.0023790807463228703,
0.019490601494908333,
0.021267469972372055,
0.01807093806564808,
0.022348245605826378,
-0.0482502281665802,
-0.010331484489142895,
-0.006168665364384651,
-0.01090850867331028,
-0.06627537310123444,
0.03412687033414841,
-0.02348397672176361,
-0.017301572486758232,
-0.06030362844467163,
-0.021212514489889145,
0.009891846217215061,
0.01691688969731331,
0.015433112159371376,
-0.039787206798791885,
0.023520613089203835,
-0.056420162320137024,
-0.007748613134026527,
-0.010670371353626251,
0.025462346151471138,
-0.02428997866809368,
0.017164185643196106,
-0.06389400362968445,
-0.019032645970582962,
-0.04916614294052124,
0.060157082974910736,
-0.009882687591016293,
0.0339253693819046,
-0.016532206907868385,
-0.02383202314376831,
0.021798698231577873,
-0.013912699185311794,
-0.012447239831089973,
-0.0019955425523221493,
0.01249303575605154,
0.021194197237491608,
-0.0007292947266250849,
-0.00035548824234865606,
0.004886389244347811,
-0.008673683740198612,
-0.06499309837818146,
0.016926048323512077,
0.00513826496899128,
0.029767131432890892,
0.025480663403868675,
0.0454658567905426,
-0.030280040577054024,
0.01459963247179985,
-0.04444003477692604,
0.03854156658053398,
0.03744247183203697,
0.023062657564878464,
0.004533763043582439,
-0.06231863424181938,
0.01003839261829853,
0.05304960533976555,
-0.055027976632118225,
-0.0014562996802851558,
-0.014645428396761417,
-0.016321547329425812,
-0.048799775540828705,
-0.019692102447152138,
-0.02383202314376831,
0.05550425127148628,
-0.013921857811510563,
-0.0006073639378882945,
-0.014672906138002872,
-0.036563195288181305,
0.07539784908294678,
-0.0035010725259780884,
0.0515841469168663,
-0.053196150809526443,
-0.0014230977976694703,
0.030921179801225662,
-0.021670471876859665,
0.0632711797952652,
-0.00813329592347145,
-0.015561340376734734,
-0.007977590896189213,
-0.030151814222335815,
-0.01535068079829216,
-0.0337238684296608,
-0.029162628576159477,
0.0021146112121641636,
0.025645527988672256,
-0.03986047953367233,
0.005829778034240007,
-0.03333918750286102,
-0.021340742707252502,
0.002408847911283374,
-0.011769465170800686,
0.005701550282537937,
0.01003839261829853,
-0.05147423967719078,
0.018492257222533226
] |
20,966 | argufy.argument | __parse_parameters | Get parameter types from type inspection. | def __parse_parameters(self, parameters: Parameter) -> None:
"""Get parameter types from type inspection."""
# if typing.get_origin(parameters.annotation) is Union:
# XXX need to handle types from typing
# print(
# '---', parameters.annotation,
# typing.get_origin(parameters.annotation),
# )
if hasattr(parameters.annotation, '__origin__'):
annotation = typing.get_args(parameters.annotation)
# print('annotation', annotation, parameters.annotation)
# check if annotation is optional
if type(None) in annotation:
self.nargs = '?'
else:
# self.type = annotation
self.type = typing.get_origin(parameters.annotation)
else:
self.type = parameters.annotation
| (self, parameters: inspect.Parameter) -> NoneType | [
0.030134262517094612,
0.04995797201991081,
0.029095789417624474,
0.02431139536201954,
-0.007273947354406118,
0.016699017956852913,
-0.022252993658185005,
0.013082905672490597,
-0.026814857497811317,
0.05481654033064842,
-0.01403793040663004,
-0.0035535250790417194,
-0.035586245357990265,
-0.03525245189666748,
-0.009239628911018372,
0.021325785666704178,
-0.031506530940532684,
0.06601721793413162,
-0.011858991347253323,
-0.027519535273313522,
0.015697631984949112,
0.03382455185055733,
-0.0634952113032341,
0.03167342767119408,
0.007273947354406118,
-0.07833053916692734,
0.05589210242033005,
-0.06193749979138374,
-0.0407971553504467,
-0.0013328616041690111,
-0.036328013986349106,
-0.032860253006219864,
0.0399441234767437,
-0.012229874730110168,
-0.019174663349986076,
0.05010632425546646,
0.003866457613185048,
0.10384730249643326,
-0.011729182675480843,
0.019786620512604713,
-0.09917417913675308,
0.012665661983191967,
-0.005136732943356037,
-0.0364949107170105,
0.0251458827406168,
-0.014779697172343731,
-0.01022710558027029,
-0.019860796630382538,
-0.07310108840465546,
0.01736660674214363,
0.03786717727780342,
-0.03864603117108345,
-0.029429584741592407,
-0.024552470073103905,
-0.04791811481118202,
0.014010113663971424,
0.0565967820584774,
0.048511527478694916,
0.011655005626380444,
0.02651815116405487,
0.04595243185758591,
0.029429584741592407,
0.007311035878956318,
0.011358299292623997,
0.023773614317178726,
-0.027204284444451332,
0.029837556183338165,
-0.028947437182068825,
-0.020528387278318405,
0.026443975046277046,
-0.010894695296883583,
-0.041650187224149704,
-0.031080015003681183,
0.02060256339609623,
-0.004035673104226589,
-0.024181587621569633,
-0.01897994987666607,
-0.02692612260580063,
0.037310853600502014,
-0.012767654843628407,
0.006161297671496868,
0.06787163019180298,
-0.022790774703025818,
-0.0180341973900795,
0.03923944756388664,
0.006031488534063101,
-0.08990209549665451,
-0.0014279003953561187,
-0.012600758112967014,
-0.0045757717452943325,
-0.08203937113285065,
-0.01320344302803278,
0.025386957451701164,
0.042021069675683975,
-0.026629416272044182,
-0.003648563753813505,
-0.007621650584042072,
-0.08025912940502167,
-0.025590943172574043,
-0.030041541904211044,
0.012795471586287022,
0.03235956281423569,
0.026592327281832695,
-0.015020770952105522,
0.036328013986349106,
-0.027018843218684196,
-0.0024385573342442513,
0.008470045402646065,
0.006754710804671049,
0.05333301052451134,
0.002316861180588603,
-0.03478884696960449,
-0.0511447973549366,
0.0024478293489664793,
0.023662351071834564,
-0.007519657723605633,
-0.025813473388552666,
-0.012860376387834549,
-0.05385224521160126,
0.025850560516119003,
-0.017709674313664436,
0.06768619269132614,
0.01620759814977646,
0.010764885693788528,
0.00495592737570405,
-0.01215569768100977,
-0.007505749352276325,
0.017644770443439484,
-0.02447829395532608,
-0.07473297417163849,
-0.007213678676635027,
-0.03949906304478645,
-0.0272970050573349,
0.04506231099367142,
-0.013824672438204288,
0.003896591952070594,
-0.034547772258520126,
-0.02991173230111599,
-0.058117400854825974,
-0.03324967995285988,
0.012304050847887993,
0.047510143369436264,
0.018701786175370216,
-0.10510830581188202,
-0.05414895340800285,
-0.033602021634578705,
0.0542973056435585,
-0.02651815116405487,
-0.03311987221240997,
-0.02766788937151432,
-0.04031500592827797,
-0.06631392240524292,
0.013453789055347443,
-0.02479354478418827,
-0.026870490983128548,
-0.04387548565864563,
0.06776036322116852,
-0.005048647988587618,
-0.031450897455215454,
0.006300379056483507,
-0.010764885693788528,
-0.024255763739347458,
-0.0069030639715492725,
-0.06445950269699097,
0.037255220115184784,
0.03117273561656475,
-0.001738515100441873,
0.016875186935067177,
-0.010310553945600986,
-0.054408568888902664,
0.008321692235767841,
0.03781154379248619,
0.02505316212773323,
0.0028048043604940176,
0.031024381518363953,
0.04498813673853874,
-0.017913660034537315,
0.005261905957013369,
0.024014689028263092,
-0.004063489381223917,
0.04862279072403908,
-0.027278462424874306,
-0.012925280258059502,
-0.0009109819657169282,
0.036847248673439026,
0.0012969323433935642,
-0.00656463298946619,
-0.001354882842861116,
-0.06583177298307419,
-0.02301330491900444,
0.06338394433259964,
0.027593713253736496,
-0.013565054163336754,
0.018432896584272385,
-0.0025892285630106926,
0.04491395875811577,
0.030931660905480385,
0.06598012894392014,
-0.01362068671733141,
0.023773614317178726,
0.02212318405508995,
0.01605924405157566,
-0.029207054525613785,
0.05240580067038536,
-0.028316935524344444,
-0.016411583870649338,
0.03643927723169327,
0.07261893898248672,
0.0005108336918056011,
-0.05492780730128288,
-0.0002754097804427147,
-0.03838641569018364,
0.048251908272504807,
-0.02896597981452942,
0.0037459207233041525,
-0.06275344640016556,
-0.03482593595981598,
-0.046100784093141556,
0.0387943871319294,
-0.013092177920043468,
0.1114875003695488,
0.02358817309141159,
-0.02306893654167652,
-0.0006571587291546166,
0.06442242115736008,
-0.010764885693788528,
0.030375337228178978,
-0.03886856138706207,
-0.004436690825968981,
-0.016726834699511528,
-0.009170087985694408,
-0.04702799394726753,
-0.049290381371974945,
0.01835872046649456,
0.04250321909785271,
-0.016912275925278664,
0.009772772900760174,
-0.04936455935239792,
-0.012674934230744839,
-0.038831476122140884,
-0.015456559136509895,
-0.0211217999458313,
-0.08292949199676514,
0.019897885620594025,
-0.07766295224428177,
-0.034696128219366074,
-0.013425973244011402,
0.06457076966762543,
0.029262686148285866,
0.006954060401767492,
0.012109337374567986,
0.006926244590431452,
0.010662892833352089,
0.013565054163336754,
-0.03252645954489708,
0.016828827559947968,
-0.022086096927523613,
-0.020046237856149673,
0.05563248321413994,
-0.01129339449107647,
0.02013896033167839,
-0.007709735073149204,
0.03413980081677437,
0.0976906418800354,
0.03541934862732887,
-0.00810379907488823,
0.05411186441779137,
0.010514539666473866,
0.020676739513874054,
-0.05930422991514206,
0.13314707577228546,
0.012897464446723461,
0.0035372988786548376,
0.0020363808143883944,
0.03490011394023895,
0.005108916666358709,
0.03350929915904999,
-0.0076587386429309845,
0.0051042805425822735,
0.03643927723169327,
0.06768619269132614,
-0.035437893122434616,
0.03677307069301605,
-0.013296163640916348,
0.05652260407805443,
0.036012761294841766,
0.03942488878965378,
0.0496983528137207,
-0.04038918390870094,
0.028316935524344444,
0.017505688592791557,
0.020676739513874054,
0.00951315462589264,
0.03413980081677437,
0.05485362932085991,
0.04921620339155197,
-0.019471369683742523,
0.024441204965114594,
0.019842252135276794,
-0.05778360739350319,
0.011756998486816883,
-0.010495995171368122,
0.057338546961545944,
-0.04057462513446808,
0.036420732736587524,
-0.007858088240027428,
0.008845564909279346,
-0.009948942810297012,
0.012869647704064846,
0.033806007355451584,
0.0399441234767437,
0.0588962584733963,
-0.00797862559556961,
-0.011775542981922626,
0.03393581509590149,
-0.02143705077469349,
0.02609163522720337,
-0.0025660484097898006,
-0.005099644418805838,
0.06371773779392242,
0.03117273561656475,
-0.006346739362925291,
0.0442463681101799,
-0.06564633548259735,
-0.012257690541446209,
0.0232729222625494,
-0.05518742650747299,
0.011571557261049747,
-0.01490023359656334,
0.004200252704322338,
0.011052320711314678,
0.011413931846618652,
-0.05051429569721222,
-0.014473718591034412,
-0.002120988443493843,
-0.02195628732442856,
-0.044468898326158524,
0.006759346928447485,
0.013277620077133179,
-0.009165451861917973,
0.02499753050506115,
-0.019156118854880333,
0.01883159577846527,
0.017060628160834312,
-0.01564200036227703,
0.04009247571229935,
0.018164006993174553,
-0.01004166342318058,
0.04098259657621384,
0.0125729413703084,
-0.017329519614577293,
-0.007909084670245647,
0.0074964771047234535,
0.022605333477258682,
0.072989821434021,
-0.04880823194980621,
-0.0023991509806364775,
-0.018330903723835945,
0.003864139784127474,
-0.004174754489213228,
0.04995797201991081,
0.014445901848375797,
0.04728761315345764,
-0.019007764756679535,
0.038200974464416504,
0.013463061302900314,
-0.00951315462589264,
-0.039981212466955185,
0.054260216653347015,
-0.022364258766174316,
0.0035697510465979576,
-0.050440121442079544,
-0.024496836587786674,
-0.03311987221240997,
-0.015910889953374863,
0.038423504680395126,
0.019360104575753212,
0.024459749460220337,
-0.05815448984503746,
-0.005095008295029402,
-0.03447359800338745,
-0.022864950820803642,
0.020472753793001175,
-0.0016005929792299867,
-0.03054223395884037,
-0.04168727621436119,
-0.04906785115599632,
-0.06041687726974487,
-0.026332709938287735,
0.0251458827406168,
-0.03310132771730423,
-0.03222975134849548,
-0.027074476704001427,
-0.046620022505521774,
0.007760731503367424,
0.012665661983191967,
-0.007510385476052761,
0.046879641711711884,
-0.07343488186597824,
-0.019953517243266106,
-0.0242743082344532,
-0.12825141847133636,
-0.009902582503855228,
0.057709429413080215,
0.054260216653347015,
-0.022679509595036507,
0.06382900476455688,
-0.002307589165866375,
-0.007264675106853247,
0.021047623828053474,
0.032025765627622604,
-0.04524775594472885,
-0.018275272101163864,
-0.01976807601749897,
0.02807586081326008,
-0.005034740082919598,
0.04391257464885712,
0.012878919951617718,
0.010737069882452488,
-0.0028465287759900093,
-0.007909084670245647,
-0.004826118238270283,
-0.016819555312395096,
0.06253091245889664,
0.028483832255005836,
0.05255415290594101,
-0.03562333434820175,
0.01720898225903511,
-0.030152807012200356,
-0.020954903215169907,
-0.021195976063609123,
0.04502522572875023,
-0.02280931919813156,
-0.04064880311489105,
0.00826142355799675,
0.022419892251491547,
-0.012693478725850582,
-0.050328854471445084,
0.04001830145716667,
-0.029670659452676773,
-0.04346751421689987,
0.029095789417624474,
0.035957127809524536,
-0.002452465472742915,
0.01866469904780388,
-0.016235413029789925,
-0.02640688605606556,
0.020750917494297028,
-0.05982346460223198,
-0.062419649213552475,
-0.053740981966257095,
0.028409656137228012,
0.07087578624486923,
-0.05826575681567192,
0.05863663926720619,
-0.06301306188106537,
-0.07261893898248672,
0.028780538588762283,
0.029095789417624474,
0.002494189655408263,
0.04257739335298538,
-0.011812631040811539,
-0.01637449488043785,
-0.026165811344981194,
0.01568836160004139,
-0.011209946125745773,
0.06419988721609116,
-0.04910494014620781,
-0.0314694419503212,
0.014186283573508263,
0.053110480308532715,
-0.0016365222400054336,
0.0028418926522135735,
0.0033912635408341885,
-0.052999213337898254,
0.018238183110952377,
0.07944318652153015,
0.021882111206650734,
-0.009578059427440166,
0.0331755056977272,
0.00891510583460331,
-0.004457552917301655,
-0.02965211495757103,
0.016022155061364174,
0.002730627777054906,
-0.004946655128151178,
-0.02405177801847458,
-0.036735985428094864,
-0.08300366997718811,
-0.02028731256723404,
-0.00739912036806345,
-0.005600336939096451,
0.004724125377833843,
0.032619182020425797,
0.022679509595036507,
0.01469624787569046,
0.03686579316854477,
-0.01129339449107647,
-0.00020499991660472006,
0.00019949460693169385,
-0.009225720539689064,
-0.02818712592124939,
0.013286891393363476,
-0.03206285461783409,
0.05622589960694313,
-0.06991148740053177,
0.0433933399617672,
0.023495452478528023,
-0.05296212434768677,
0.023347100242972374,
-0.066091388463974,
0.015910889953374863,
0.046100784093141556,
0.033546388149261475,
-0.03792281076312065,
-0.03399144858121872,
0.027130108326673508,
-0.009642964228987694,
-0.005966584198176861,
-0.016430126503109932,
-0.028539463877677917,
-0.02453392557799816,
0.0522945374250412,
-0.013982297852635384,
0.02531278133392334,
0.04780684784054756,
-0.03697705641388893,
-0.023143114522099495,
0.007028237450867891,
-0.058859169483184814,
0.08396796137094498,
-0.004951291251927614,
-0.01427900418639183,
-0.03299006447196007,
0.01364850252866745,
0.02134433016180992,
0.05414895340800285,
-0.011655005626380444,
-0.03912818059325218,
0.05989764258265495,
0.042799923568964005,
0.02013896033167839,
-0.07195134460926056,
0.022568244487047195,
0.0026494970079511404,
0.017718946561217308,
0.006346739362925291,
-0.03352784365415573,
0.013759767636656761,
0.07855306565761566,
-0.027315549552440643,
0.005952675826847553,
-0.07451044023036957,
0.04038918390870094,
-0.017246069386601448,
0.026814857497811317,
0.031098559498786926,
-0.017960021272301674,
0.04205815866589546,
0.04391257464885712,
0.029781922698020935,
-0.0015043951570987701,
-0.029948821291327477,
0.07261893898248672,
-0.050811003893613815,
-0.01090396661311388,
0.0193971935659647,
0.06030561402440071,
-0.05047720670700073,
0.042762838304042816,
0.056819312274456024,
0.005113552790135145,
-0.01205370482057333,
-0.05722728371620178,
0.03465903922915459,
0.01406574621796608,
0.01215569768100977,
0.0314694419503212,
-0.10110276937484741,
0.004633722361177206,
0.027167197316884995,
0.010690709576010704,
-0.03471466898918152,
0.005683785304427147,
0.0017501052934676409,
0.03128400072455406,
-0.058117400854825974,
-0.03300860896706581,
-0.012164969928562641,
0.010264193639159203,
-0.018701786175370216,
0.029485216364264488,
0.03048660233616829,
-0.009670780040323734,
-0.05711601674556732,
0.03280462324619293,
0.03493719920516014,
-0.01736660674214363,
-0.04613787308335304,
-0.055780839174985886,
-0.022976215928792953,
-0.02034294605255127,
-0.04565572738647461,
-0.000867519062012434,
0.035734597593545914,
-0.044431813061237335,
0.048400260508060455,
0.07610523700714111,
0.029985908418893814,
0.013574326410889626,
0.060899026691913605,
-0.010319826193153858,
0.02399614453315735,
-0.035493526607751846,
-0.01898922212421894,
0.032396651804447174,
-0.003975404426455498,
0.01192389614880085,
0.05685640126466751,
-0.025794928893446922,
0.009791317395865917,
0.05003214627504349,
0.010514539666473866,
0.00048852275358513,
-0.05789487436413765,
-0.043170809745788574,
-0.05481654033064842,
-0.10221541672945023,
-0.006791799329221249,
-0.007079233881086111,
0.07391703128814697,
-0.008219699375331402,
0.004130711778998375,
-0.056708045303821564,
-0.07358323037624359,
-0.00023194689129013568,
-0.0331755056977272,
-0.06175205856561661,
-0.023717982694506645,
0.051589857786893845,
0.023050392046570778,
-0.031042926013469696,
-0.02410740964114666,
0.012090793810784817,
0.025182971730828285,
-0.007579925935715437,
-0.013852489180862904,
-0.018219638615846634,
0.06468203663825989,
0.043541692197322845,
0.028428200632333755,
0.09628129005432129,
0.012906736694276333,
0.0027236738242208958,
0.005396351218223572,
-0.02212318405508995,
-0.04298536479473114,
0.025405501946806908,
0.00037899630842730403,
-0.004765849560499191,
-0.02724137343466282,
-0.041390568017959595,
0.01815473474562168,
0.011988800950348377,
-0.024014689028263092,
-0.05470527708530426,
-0.05971220135688782,
-0.030189896002411842,
0.06820542365312576,
0.023755071684718132,
-0.014269731938838959,
-0.025739295408129692,
0.05173821002244949,
-0.019730988889932632,
0.010199288837611675,
-0.007950808852910995,
-0.012192786671221256,
-0.012517308816313744,
0.01184044685214758,
-0.011135769076645374,
-0.03770028054714203,
-0.022030463442206383,
-0.032619182020425797,
-0.021381419152021408,
-0.014334636740386486,
0.013509421609342098,
0.007858088240027428,
-0.04346751421689987,
0.041761450469493866,
-0.00805280264467001,
0.004830753896385431,
-0.006323559209704399,
0.03853476792573929,
0.026536695659160614,
0.014130651019513607,
-0.0282983910292387,
-0.02175230160355568,
-0.050811003893613815,
0.03519681841135025,
0.011413931846618652,
0.032452281564474106,
-0.009341621771454811,
-0.04428345710039139,
0.017236799001693726,
-0.020788004621863365,
0.026907578110694885,
0.0017941476544365287,
-0.01542874239385128,
0.01375049538910389,
-0.021474139764904976,
-0.008905833587050438,
-0.014547894708812237,
-0.01783948391675949,
-0.06764910370111465,
-0.016671201214194298,
0.03786717727780342,
0.013045817613601685,
0.028836172074079514,
0.030783308669924736,
-0.017032813280820847,
0.008289240300655365,
0.006819615606218576,
0.05500198155641556,
0.08255860954523087,
0.025720752775669098,
0.05162694677710533,
-0.009003190323710442,
-0.040240831673145294,
0.04009247571229935,
-0.033806007355451584,
0.04450598731637001,
0.02677776850759983,
-0.03536371514201164,
-0.040500447154045105,
-0.04168727621436119,
-0.020101871341466904,
0.05789487436413765,
-0.002159235766157508,
-0.027167197316884995,
-0.0157347209751606,
0.011098681017756462,
0.04246613010764122,
0.010718525387346745,
0.024830631911754608,
0.009856222197413445,
0.007709735073149204,
-0.014121378771960735,
-0.04420928284525871,
0.04168727621436119,
-0.05455692484974861,
0.02746390365064144,
-0.021585404872894287,
-0.001932069892063737,
-0.010699980892241001,
-0.015132036060094833,
0.027445359155535698,
0.06442242115736008,
0.03490011394023895,
-0.0278718750923872,
-0.047769758850336075,
-0.06683316081762314,
0.018683243542909622,
0.008980010636150837,
-0.055298689752817154,
0.00034422599128447473,
0.014000842347741127,
-0.06019434705376625,
-0.014603527262806892
] |
20,967 | argufy.argument | __init__ | Initialize argparse argument. | def __init__(
self,
docstring: Optional[DocstringParam] = None,
parameters: Optional[Parameter] = None,
) -> None:
"""Initialize argparse argument."""
# self.attributes: Dict[Any, Any] = {}
# set parameter default
if parameters:
self.default = parameters.default
self.name = parameters # type: ignore
else:
self.default = None
# set parameter type
if parameters and parameters.annotation != empty:
self.__parse_parameters(parameters)
elif docstring and docstring.type_name:
self.__parse_docstring(docstring)
elif self.default is not None:
self.type = type(self.default)
# if hasattr(self, 'type'):
# self.metavar = (self.type.__name__)
# set parameter help message
if docstring and docstring.description:
self.help = docstring.description
| (self, docstring: Optional[docstring_parser.common.DocstringParam] = None, parameters: Optional[inspect.Parameter] = None) -> NoneType | [
0.02595387026667595,
0.03060039132833481,
0.07626957446336746,
-0.026657328009605408,
0.045539602637290955,
-0.028823236003518105,
-0.023769451305270195,
0.05394406616687775,
-0.025231901556253433,
0.010866563767194748,
-0.0228253360837698,
0.04505828768014908,
-0.04572472348809242,
0.010792515240609646,
-0.02519487775862217,
0.04254065081477165,
0.017318006604909897,
0.05305548757314682,
-0.05324060842394829,
0.007844474166631699,
0.06834642589092255,
0.01300470344722271,
-0.04535448178648949,
0.04098564013838768,
0.011060940101742744,
-0.011144244112074375,
-0.0034964601509273052,
-0.018660129979252815,
-0.04609496146440506,
-0.05797968804836273,
-0.008626607246696949,
-0.0368204340338707,
0.036302097141742706,
0.039504677057266235,
0.0445769764482975,
-0.016003653407096863,
-0.004549331963062286,
0.07471456378698349,
-0.05113023519515991,
-0.012088357470929623,
0.03221093863248825,
0.012088357470929623,
-0.0357467345893383,
-0.04342922940850258,
0.047798071056604385,
0.029878420755267143,
0.012578926980495453,
0.008136038668453693,
-0.09093111008405685,
-0.02245509624481201,
0.028712162747979164,
-0.04168909788131714,
0.01387476921081543,
-0.034506428986787796,
-0.027786562219262123,
0.09019062668085098,
0.0641627088189125,
0.05475859344005585,
-0.00610897084698081,
0.016392406076192856,
-0.01337494421750307,
0.02386200986802578,
0.054018113762140274,
-0.021751638501882553,
0.0021392968483269215,
-0.00015865391469560564,
-0.021492470055818558,
-0.04713163524866104,
-0.001224108156748116,
0.0695682242512703,
0.0034062140621244907,
-0.019178466871380806,
-0.039911944419145584,
-0.016799669712781906,
0.04572472348809242,
0.014207985252141953,
-0.07164157181978226,
-0.01578150875866413,
0.011375644244253635,
-0.008543303236365318,
0.0357467345893383,
0.012736278586089611,
-0.04953819885849953,
-0.01904888264834881,
0.003554310416802764,
-0.02095562219619751,
-0.058535050600767136,
-0.04650222882628441,
0.059053387492895126,
0.0010089058196172118,
-0.05449942499399185,
0.006280207075178623,
0.0171236302703619,
0.012208686210215092,
0.018780456855893135,
-0.039615750312805176,
-0.019696803763508797,
-0.04476209729909897,
0.026657328009605408,
-0.01758643239736557,
-0.030952120199799538,
0.0012356782099232078,
-0.004537762142717838,
0.016327613964676857,
0.012199429795145988,
-0.023491770029067993,
-0.008978336118161678,
0.013069495558738708,
0.02049282006919384,
-0.010070545598864555,
-0.024232251569628716,
-0.0029133311472833157,
-0.06397758424282074,
0.03511732816696167,
-0.0391344390809536,
0.009441137313842773,
0.01775304041802883,
-0.020363235846161842,
-0.0016475709853693843,
0.016614548861980438,
0.0006166821112856269,
0.01039450615644455,
-0.014652274549007416,
0.019030369818210602,
0.030489318072795868,
-0.014791114255785942,
-0.036024417728185654,
-0.005909966770559549,
-0.018956322222948074,
-0.02837894670665264,
0.06490318477153778,
-0.022677240893244743,
-0.03396958112716675,
0.008867263793945312,
-0.0016695540398359299,
-0.052389055490493774,
0.02367689087986946,
0.09204182773828506,
-0.07878721505403519,
0.008441487327218056,
0.011875469237565994,
-0.0016487279208377004,
0.04868664592504501,
-0.054832641035318375,
-0.015161355026066303,
-0.0445769764482975,
-0.009598488919436932,
-0.01951168291270733,
0.0032303498592227697,
0.03408065438270569,
-0.012551158666610718,
-0.05387001484632492,
0.04813128709793091,
0.037709012627601624,
0.02165907807648182,
-0.06901285797357559,
0.0019738455303013325,
-0.04924200847744942,
-0.0030290314462035894,
0.022047830745577812,
-0.0016764960018917918,
-0.025287438184022903,
0.0445769764482975,
-0.06701356172561646,
0.017382798716425896,
-0.014494922012090683,
0.01016310602426529,
-0.01735503040254116,
-0.0074279531836509705,
-0.023824986070394516,
-0.02201080694794655,
-0.02432481199502945,
-0.011273828335106373,
0.040430281311273575,
0.02367689087986946,
0.05020463466644287,
-0.010274178348481655,
0.0470205657184124,
0.03208135440945625,
-0.051870718598365784,
0.03176664933562279,
0.04465102404356003,
-0.026842448860406876,
-0.01602216437458992,
0.024602491408586502,
0.019715314731001854,
0.0017447591526433825,
0.08123080432415009,
-0.023140041157603264,
-0.017688248306512833,
0.06864261627197266,
0.00026292871916666627,
-0.03161855414509773,
0.01103317178785801,
-0.020826037973165512,
0.019585730507969856,
-0.03556161746382713,
-0.005794266238808632,
0.050130587071180344,
0.03789413347840309,
0.034617502242326736,
0.00654400372877717,
-0.010209386236965656,
0.019585730507969856,
0.028804723173379898,
0.0017262471374124289,
0.025287438184022903,
0.05716515704989433,
-0.04824235662817955,
-0.013448991812765598,
-0.003829676890745759,
-0.047686997801065445,
0.03924550861120224,
0.004910316783934832,
-0.002113842871040106,
-0.03217391297221184,
-0.03813478723168373,
0.007071596570312977,
0.0029156452510505915,
-0.0010615494102239609,
0.11025767028331757,
0.02478761225938797,
0.0486496239900589,
-0.003163243643939495,
0.043503277003765106,
-0.015642667189240456,
0.0733816996216774,
-0.07293741405010223,
-0.0031285337172448635,
0.05387001484632492,
-0.024047130718827248,
-0.057609446346759796,
-0.00522502139210701,
0.0010638633975759149,
-0.04346625506877899,
-0.04916796088218689,
0.004544704221189022,
0.008580327033996582,
-0.056461699306964874,
-0.06775403767824173,
0.023547306656837463,
0.01637389324605465,
-0.022843848913908005,
0.03983789682388306,
-0.04916796088218689,
-0.0037533147260546684,
-0.04624306038022041,
0.031026167795062065,
0.0524631030857563,
-0.026083454489707947,
0.007668609730899334,
0.03308100253343582,
-0.038393955677747726,
0.006456071510910988,
-0.007585305720567703,
0.014356081373989582,
-0.026287086308002472,
-0.028249362483620644,
-0.006321859546005726,
-0.011616300791501999,
0.030230149626731873,
0.0041328114457428455,
0.039208486676216125,
0.08893180638551712,
0.02756441757082939,
-0.019826387986540794,
0.0516485720872879,
-0.04790914058685303,
0.0055350977927446365,
-0.0214739590883255,
0.13195377588272095,
-0.04324410855770111,
0.017660479992628098,
0.009172712452709675,
0.019992996007204056,
0.007640841882675886,
0.007048456463962793,
-0.04080051928758621,
-0.00026292871916666627,
0.05664682015776634,
0.05235202983021736,
-0.044947218149900436,
0.027990194037556648,
0.030026517808437347,
0.0573502779006958,
0.02495422028005123,
-0.011616300791501999,
0.05631360411643982,
-0.05449942499399185,
0.02791614644229412,
0.023528793826699257,
0.08049032092094421,
-0.02112223021686077,
0.023362185806035995,
0.05746135115623474,
0.029341572895646095,
-0.0024782984983175993,
0.03380297124385834,
0.014883674681186676,
-0.04276279732584953,
0.02734227292239666,
-0.04180017113685608,
0.008381322957575321,
-0.024658028036355972,
-0.03794966638088226,
0.00022778478160034865,
0.004269337747246027,
0.023010456934571266,
0.05179666727781296,
0.042984940111637115,
0.035265423357486725,
0.02699054405093193,
-0.01558713149279356,
0.022140391170978546,
0.007571421563625336,
0.030915094539523125,
0.05420323461294174,
-0.048094261437654495,
0.021807175129652023,
0.04720568284392357,
0.01688297465443611,
-0.0002053678617812693,
0.011477460153400898,
-0.08004602789878845,
0.015707459300756454,
0.00756216561421752,
-0.01454120222479105,
-0.006743008270859718,
-0.0072011807933449745,
0.027212688699364662,
0.011921749450266361,
0.015948116779327393,
-0.020826037973165512,
-0.04105968773365021,
-0.03748686611652374,
-0.033691901713609695,
-0.04835342988371849,
0.016679340973496437,
-0.04602091386914253,
-0.05031570792198181,
0.0543513298034668,
0.05364787206053734,
-0.021399909630417824,
0.008825612254440784,
-0.011505228467285633,
0.006058062892407179,
0.01558713149279356,
-0.052166908979415894,
0.08448892086744308,
-0.08197128027677536,
-0.006502351723611355,
0.04794616624712944,
-0.025324461981654167,
-0.003433982143178582,
0.07415920495986938,
-0.038468003273010254,
-0.0020745047368109226,
-0.010357482358813286,
0.014966978691518307,
-0.06830940395593643,
-0.030211638659238815,
-0.030581878498196602,
-0.019826387986540794,
-0.03559863939881325,
-0.008589583449065685,
0.008811728097498417,
-0.015290939249098301,
-0.007034572772681713,
0.03891229256987572,
0.005854430608451366,
0.026268575340509415,
-0.033636365085840225,
-0.03883824497461319,
-0.06075649335980415,
0.01869715377688408,
-0.03902336582541466,
-0.019141443073749542,
0.0039152950048446655,
-0.07138240337371826,
-0.06538449972867966,
-0.027842096984386444,
0.009755841456353664,
0.05449942499399185,
0.004868664778769016,
-0.06079351529479027,
-0.04080051928758621,
-0.009343949146568775,
-0.000022597696442971937,
0.027842096984386444,
0.023528793826699257,
-0.012819582596421242,
-0.027120128273963928,
0.026916496455669403,
-0.001450880547054112,
0.009126432240009308,
-0.016688598319888115,
0.041541002690792084,
0.028897283598780632,
-0.0622374564409256,
0.010320458561182022,
0.010514834895730019,
-0.0932265967130661,
0.027953170239925385,
-0.013106519356369972,
0.030396757647395134,
0.02617601491510868,
0.06327413022518158,
-0.006710612215101719,
0.0003112335689365864,
0.032303497195243835,
-0.00836281105875969,
-0.030378246679902077,
-0.04976034536957741,
-0.01910441741347313,
0.007159528788179159,
-0.02495422028005123,
0.06653224676847458,
0.02761995419859886,
0.012245710007846355,
-0.06408865749835968,
0.008524791337549686,
0.02930454909801483,
0.02326962538063526,
0.05261119827628136,
0.07060489803552628,
0.051981788128614426,
-0.012199429795145988,
-0.0031886976212263107,
-0.006220043171197176,
-0.07452944666147232,
-0.06434782594442368,
0.07634362578392029,
-0.01978936418890953,
-0.06257066875696182,
0.019196977838873863,
0.00122642214410007,
0.00155269680544734,
-0.0641627088189125,
0.017206935212016106,
-0.008547930978238583,
0.015744484961032867,
-0.06364437192678452,
0.06919798254966736,
0.030341222882270813,
-0.0267683994024992,
0.005201881285756826,
-0.008385950699448586,
0.01433756947517395,
0.02756441757082939,
-0.03141491860151291,
0.02467654086649418,
0.037468355149030685,
0.05549907684326172,
-0.07138240337371826,
-0.0543513298034668,
-0.1380997747182846,
-0.07626957446336746,
0.0399489663541317,
0.011542252264916897,
-0.0012067531934008002,
0.01193100493401289,
0.010052033700048923,
0.018835993483662605,
-0.06568069010972977,
-0.03585780784487724,
0.017669735476374626,
0.055054787546396255,
-0.011690349318087101,
-0.01782708801329136,
-0.001055764383636415,
0.03076699934899807,
-0.007816705852746964,
0.015161355026066303,
-0.006530119571834803,
-0.040319208055734634,
-0.007326137274503708,
0.011449692770838737,
-0.022843848913908005,
-0.041355881839990616,
0.018447240814566612,
0.022788312286138535,
0.009385600686073303,
0.037301745265722275,
0.038690149784088135,
0.023713914677500725,
-0.015818532556295395,
-0.018299145624041557,
-0.057905640453100204,
-0.0342472605407238,
0.004056449048221111,
-0.05920148268342018,
0.035950370132923126,
-0.002050207694992423,
0.036950018256902695,
0.040726471692323685,
0.014522690325975418,
0.02843448333442211,
0.04161505028605461,
-0.014615249820053577,
0.0008822140516713262,
-0.011597788892686367,
-0.035968881100416183,
-0.013041727244853973,
-0.04198529198765755,
0.05179666727781296,
-0.05031570792198181,
-0.05349977687001228,
0.0033205959480255842,
-0.026564767584204674,
-0.014096912927925587,
-0.05635062977671623,
-0.0038111647590994835,
0.0318036712706089,
0.024658028036355972,
-0.05098214000463486,
0.015078051015734673,
-0.0194376353174448,
0.027897633612155914,
-0.002739780815318227,
-0.025472557172179222,
-0.03802371770143509,
-0.009709561243653297,
-0.007168784737586975,
-0.037468355149030685,
-0.03158152848482132,
-0.002051364630460739,
-0.022917896509170532,
-0.02617601491510868,
0.04265172407031059,
0.008233226835727692,
0.02014109119772911,
-0.04017111286520958,
-0.03365487605333328,
0.02171461470425129,
-0.023436233401298523,
0.08323010057210922,
-0.006668959744274616,
0.062089357525110245,
0.00847851112484932,
0.054536450654268265,
0.026657328009605408,
0.04361435025930405,
-0.016707109287381172,
0.015707459300756454,
-0.02576874941587448,
0.018326912075281143,
-0.032525643706321716,
0.03946765512228012,
0.0006467641796916723,
0.017577175050973892,
-0.028804723173379898,
-0.009755841456353664,
-0.05501776188611984,
0.019696803763508797,
-0.01811402477324009,
0.0777505412697792,
0.032877370715141296,
-0.03813478723168373,
0.04324410855770111,
0.039319559931755066,
0.0155593641102314,
0.012477110140025616,
-0.0049288286827504635,
0.05368489772081375,
0.01897483319044113,
0.025676190853118896,
0.023232601583003998,
-0.04479911923408508,
-0.0254170224070549,
0.04361435025930405,
0.012458598241209984,
-0.07752839475870132,
-0.040837544947862625,
-0.003926864825189114,
-0.04668734595179558,
0.0758252888917923,
0.017743783071637154,
0.014994747005403042,
-0.043577324599027634,
-0.001441624597646296,
0.016466453671455383,
-0.011190524324774742,
-0.07549206912517548,
-0.023954570293426514,
-0.005336093716323376,
0.01425426546484232,
-0.003464064095169306,
-0.0033113399986177683,
-0.02549107000231743,
-0.02652774378657341,
-0.018447240814566612,
-0.004725196398794651,
0.0017482300754636526,
-0.015050282701849937,
-0.0807124674320221,
0.021085206419229507,
0.05346275120973587,
-0.08130484819412231,
0.033173564821481705,
-0.030489318072795868,
-0.03156301751732826,
0.006747636012732983,
-0.05324060842394829,
0.03872717171907425,
0.015651924535632133,
0.051463451236486435,
-0.008756191469728947,
0.013013958930969238,
-0.02171461470425129,
0.03060039132833481,
0.02791614644229412,
-0.028545554727315903,
-0.001963432412594557,
-0.00701143266633153,
-0.024583980441093445,
0.04254065081477165,
-0.002339458093047142,
0.007849101908504963,
0.08160103857517242,
-0.0456506721675396,
0.0006039550644345582,
-0.00005173968747840263,
0.024769099429249763,
-0.010385250672698021,
-0.10077951103448868,
0.01308800745755434,
-0.03221093863248825,
-0.047575924545526505,
0.014170961454510689,
0.02462100423872471,
0.06438484787940979,
-0.06379246711730957,
-0.024824636057019234,
-0.03965277597308159,
-0.006705984007567167,
-0.03245159238576889,
-0.01938209868967533,
-0.009644769132137299,
0.043799471110105515,
0.06101566180586815,
0.016938509419560432,
-0.0391344390809536,
0.00966328103095293,
0.024232251569628716,
-0.021103717386722565,
0.047168660908937454,
-0.008538675494492054,
-0.014411618001759052,
0.01682743802666664,
0.018734177574515343,
0.03087807074189186,
0.07112323492765427,
-0.0017482300754636526,
-0.00914494413882494,
0.02280682511627674,
-0.02560214139521122,
-0.02421373873949051,
-0.0033553061075508595,
0.025120828300714493,
-0.010811027139425278,
-0.03372892364859581,
-0.05609146133065224,
0.03122979961335659,
-0.0036538124550133944,
0.0195672195404768,
-0.04331815615296364,
-0.021344374865293503,
-0.02032621204853058,
-0.019085906445980072,
0.07508480548858643,
-0.02165907807648182,
-0.0032442337833344936,
0.06542152166366577,
0.011384900659322739,
-0.007733401842415333,
-0.018363937735557556,
-0.018761945888400078,
0.01869715377688408,
-0.004216115456074476,
0.005113949067890644,
-0.03998599201440811,
0.00042461976408958435,
-0.021270325407385826,
-0.06668034195899963,
-0.013245359994471073,
0.014948466792702675,
-0.001955333398655057,
-0.01596662774682045,
0.02943413332104683,
-0.06838344782590866,
-0.016262821853160858,
-0.02095562219619751,
-0.011394156143069267,
0.014698554761707783,
-0.006386651657521725,
-0.015022515319287777,
-0.02288087271153927,
-0.061682093888521194,
0.05316656082868576,
0.005937734618782997,
0.04964927211403847,
0.027009056881070137,
-0.06438484787940979,
0.05120428279042244,
-0.033229097723960876,
0.012727023102343082,
-0.025509580969810486,
0.011079452000558376,
0.04846450313925743,
-0.017808575183153152,
0.04520638659596443,
0.04835342988371849,
-0.008427603170275688,
-0.04916796088218689,
0.03065592609345913,
0.02886025980114937,
0.04590984061360359,
0.032821834087371826,
-0.019770851358771324,
-0.02003001980483532,
0.01068144291639328,
-0.017780808731913567,
0.06864261627197266,
0.006192274857312441,
-0.008205458521842957,
-0.030785510316491127,
-0.05620253086090088,
-0.0064606997184455395,
0.05509180948138237,
-0.04990844056010246,
0.0008133724331855774,
-0.0041536372154951096,
0.001445095636881888,
-0.03593185544013977,
-0.006085830740630627,
-0.016216540709137917,
0.08189723640680313,
-0.0195672195404768,
0.019881922751665115,
0.044836144894361496,
0.009487416595220566,
0.05120428279042244,
-0.0014717066660523415,
0.029804373160004616,
0.020863061770796776,
0.011236804537475109,
-0.03546905517578125,
-0.013911793008446693,
0.058720167726278305,
-0.010903587564826012,
-0.00654400372877717,
-0.022917896509170532,
-0.017401311546564102,
0.04117076098918915,
-0.026657328009605408,
-0.007122504524886608,
0.007159528788179159,
0.04913093522191048,
-0.0038574449717998505,
-0.03337719663977623,
-0.0440216138958931,
-0.06619902700185776,
-0.00010029762051999569,
-0.042059339582920074,
0.02212188020348549,
0.04209636151790619,
-0.04276279732584953,
0.009903937578201294
] |
20,968 | argufy.parser | Parser | Provide CLI parser for function. | class Parser(ArgumentParser):
"""Provide CLI parser for function."""
exclude_prefixes = ('@', '_')
def __init__(self, **kwargs: Any) -> None:
"""Initialize parser.
Parameters
----------
prog: str
The name of the program
usage: str
The string describing the program usage
description: str
Text to display before the argument help
epilog: str
Text to display after the argument help
parents: list
A list of ArgumentParser objects whose arguments should also
be included
formatter_class: Object
A class for customizing the help output
prefix_chars: char
The set of characters that prefix optional arguments
fromfile_prefix_chars: None
The set of characters that prefix files from which additional
arguments should be read
argument_default: None
The global default value for arguments
conflict_handler: Object
The strategy for resolving conflicting optionals
add_help: str
Add a -h/--help option to the parser
allow_abbrev: bool
Allows long options to be abbreviated if the abbreviation is
unambiguous
"""
# TODO: handle environment variables
module = self.__get_parent_module()
if module and module.__doc__:
docstring = docparse(module.__doc__)
if not kwargs.get('description'):
kwargs['description'] = docstring.short_description
if 'prog' not in kwargs:
kwargs['prog'] = module.__name__.split('.')[0]
if 'version' in kwargs:
self.prog_version = kwargs.pop('version')
# if 'prefix' in kwargs:
# self.prefix = kwargs.pop('prefix')
# else:
# self.prefix = kwargs['prog'].upper()
# log.debug(str(self.prefix))
if 'log_level' in kwargs:
log.setLevel(getattr(logging, kwargs.pop('log_level').upper()))
if 'log_handler' in kwargs:
log_handler = kwargs.pop('log_handler')
log.addHandler(logging.StreamHandler(log_handler))
self.use_module_args = kwargs.pop('use_module_args', False)
self.main_args_builder = kwargs.pop('main_args_builder', None)
self.command_type = kwargs.pop('command_type', None)
self.command_scheme = kwargs.pop('command_scheme', None)
if 'formatter_class' not in kwargs:
self.formatter_class = ArgufyHelpFormatter
super().__init__(**kwargs)
# NOTE: cannot move to formatter
self._positionals.title = ArgufyHelpFormatter.font(
self._positionals.title or 'arguments'
)
self._optionals.title = ArgufyHelpFormatter.font(
self._optionals.title or 'flags'
)
# XXX version lookup infinite loop when absent
if hasattr(self, 'prog_version'):
self.add_argument(
'--version',
action='version',
version=f"%(prog)s {self.prog_version}",
help='display application version',
)
@staticmethod
def __get_parent_module() -> Optional[ModuleType]:
"""Get name of module importing this module."""
stack = inspect.stack()
# TODO: need way to better identify parent module
stack_frame = stack[2]
result = inspect.getmodule(stack_frame[0]) or None
return result
@staticmethod
def __clean_args(argument: Argument) -> Dict[Any, Any]:
"""Retrieve cleaned parameters from an Argument."""
size = len('_Argument__')
return {
k[size:]: v
for k, v in vars(argument).items()
if k.startswith('_Argument__')
}
@staticmethod
def _get_excludes(exclude_prefixes: Tuple[str, ...] = tuple()) -> tuple:
"""Combine class excludes with instance."""
if exclude_prefixes != ():
return tuple(exclude_prefixes) + Parser.exclude_prefixes
return Parser.exclude_prefixes
@staticmethod
def __get_description(
name: str, docstring: 'Docstring'
) -> Optional['DocstringParam']:
"""Get argument description from docstring."""
return next((d for d in docstring.params if d.arg_name == name), None)
@staticmethod
def __get_keyword_args(
signature: 'Signature', docstring: 'Docstring'
) -> List[str]:
"""Get keyward arguments from docstring."""
return [
x.arg_name
for x in docstring.params
if x.arg_name not in list(signature.parameters)
]
@staticmethod
def __generate_parameter(name: str, module: ModuleType) -> Parameter:
"""Generate inpect parameter."""
parameter = Parameter(
name,
ParameterKind.POSITIONAL_OR_KEYWORD,
default=getattr(module, name),
annotation=empty,
)
return parameter
def add_commands( # pylint: disable=too-many-locals,too-many-branches
self,
module: ModuleType,
parser: Optional[ArgumentParser] = None,
exclude_prefixes: tuple = tuple(),
command_type: Optional[str] = None,
) -> 'Parser':
"""Add commands.
Parameters
----------
module: ModuleType,
Module used to import functions for CLI commands.
parser: ArgumentParser, optional
Parser used to append subparsers to create subcommands.
exclude_prefixes: tuple,
Methods from a module that should be excluded.
command_type: str, optional
Choose format type of commands to be created.
Returns
-------
self:
Return object itself to allow chaining functions.
"""
# use self or an existing parser
if not parser:
parser = self
parser.formatter_class = ArgufyHelpFormatter
module_name = module.__name__.split('.')[-1]
docstring = docparse(module.__doc__) if module.__doc__ else None
excludes = Parser._get_excludes(exclude_prefixes)
# use exsiting subparser or create a new one
if not any(isinstance(x, SubParsersAction) for x in parser._actions):
# TODO: use metavar for hidden commands
parser.add_subparsers(dest=module_name, parser_class=Parser)
# check if command exists
command = next(
(x for x in parser._actions if isinstance(x, SubParsersAction)),
None,
)
# set command name scheme
if command_type is None:
command_type = self.command_type
# create subcommand for command
if command_type == 'subcommand':
if command:
msg = docstring.short_description if docstring else None
subcommand = command.add_parser(
module_name.replace('_', '-'),
description=msg,
formatter_class=self.formatter_class,
help=msg,
)
subcommand.set_defaults(mod=module)
# append subcommand to exsiting command or create a new one
return self.add_commands(
module=module,
parser=subcommand,
exclude_prefixes=Parser._get_excludes(exclude_prefixes),
command_type='command',
)
# TODO: separate into method
# pylint: disable-next=too-many-nested-blocks
for name, value in inspect.getmembers(module):
# TODO: Possible singledispatch candidate
if not name.startswith(excludes):
# skip classes for now
if inspect.isclass(value):
# TODO: check if dataclass instance
# TODO: check if class instance
continue # pragma: no cover
# create commands from functions
if inspect.isfunction(value):
# TO | (**kwargs: Any) -> None | [
0.026152202859520912,
-0.03172222897410393,
0.014028596691787243,
-0.039921969175338745,
0.03300602734088898,
0.007956440560519695,
0.01355234906077385,
0.02741529420018196,
-0.037312962114810944,
-0.03518019989132881,
0.007759729400277138,
-0.006092862691730261,
-0.027746597304940224,
0.008986583910882473,
-0.050026699900627136,
0.027042578905820847,
0.04215826094150543,
0.03176364302635193,
-0.0013536819024011493,
0.0036339759826660156,
0.018449416384100914,
0.0005354549502953887,
0.01188548281788826,
0.006346516311168671,
-0.008173857815563679,
0.014660142362117767,
0.014515196904540062,
-0.008479277603328228,
-0.029403110966086388,
-0.0850619524717331,
-0.024185093119740486,
-0.059013284742832184,
0.010725922882556915,
0.043566297739744186,
0.00593756465241313,
-0.04257239028811455,
-0.006610522978007793,
0.06621911376714706,
-0.048949968069791794,
-0.01778681017458439,
0.008111738599836826,
-0.034766070544719696,
0.034248411655426025,
-0.021803855895996094,
0.02174173668026924,
0.012579147703945637,
0.0080703254789114,
0.05383668094873428,
-0.09963927417993546,
-0.03515949472784996,
0.08332261443138123,
-0.04230320826172829,
0.012206432409584522,
-0.003794450545683503,
-0.004832359496504068,
0.042489565908908844,
0.057191118597984314,
0.009188472293317318,
0.01884283870458603,
0.0008127267938107252,
-0.01782822422683239,
0.07089876383543015,
0.010839808732271194,
-0.017476214095950127,
-0.018159527331590652,
-0.006517344154417515,
-0.015550518408417702,
-0.04232391342520714,
-0.0020434644538909197,
0.052552882581949234,
-0.03518019989132881,
-0.024599222466349602,
0.03544938191771507,
-0.025531010702252388,
0.06269902735948563,
-0.061373814940452576,
-0.06758574396371841,
-0.003155139973387122,
0.029548054561018944,
-0.005060130264610052,
-0.026007257401943207,
0.028036486357450485,
-0.027518825605511665,
0.013624821789562702,
0.044601619243621826,
-0.00004375847856863402,
-0.0020926420111209154,
0.011171110905706882,
0.04269662871956825,
-0.006729585118591785,
-0.06120816618204117,
-0.03300602734088898,
-0.003890217747539282,
0.06547368317842484,
-0.0013394462876021862,
-0.024454277008771896,
-0.009535304270684719,
-0.025945138186216354,
-0.024868404492735863,
0.010058141313493252,
-0.049239855259656906,
0.05603155866265297,
0.007971970364451408,
0.019350145012140274,
0.015063917264342308,
0.015001798048615456,
-0.05652851611375809,
0.04261380434036255,
0.03416558727622032,
-0.028740504756569862,
-0.05764666199684143,
-0.033730752766132355,
0.006382752675563097,
-0.029403110966086388,
0.0013109749415889382,
-0.020136989653110504,
-0.030562669038772583,
-0.001466273097321391,
0.02172102965414524,
-0.024744166061282158,
-0.011844069696962833,
0.028533440083265305,
-0.024723460897803307,
-0.025738075375556946,
0.03828616067767143,
-0.012309963814914227,
-0.05888904631137848,
-0.011274643242359161,
0.03226059675216675,
-0.03134951367974281,
0.018760012462735176,
0.03557362034916878,
-0.02348107472062111,
-0.026152202859520912,
0.03805839270353317,
-0.019184494391083717,
-0.025675956159830093,
0.046133894473314285,
-0.07864296436309814,
0.07421179115772247,
0.04081234335899353,
-0.008277389220893383,
0.01014096662402153,
-0.027063285931944847,
-0.12249915301799774,
-0.056942641735076904,
0.029900064691901207,
-0.01656513288617134,
-0.014494490809738636,
0.03126668930053711,
-0.02145184576511383,
-0.011326408945024014,
0.023315424099564552,
0.03315097093582153,
0.05847491696476936,
-0.0002229175006505102,
-0.03853463754057884,
-0.032923199236392975,
-0.002601243555545807,
-0.02948593534529209,
-0.009292003698647022,
-0.04319358244538307,
0.027228936553001404,
-0.031660109758377075,
-0.004061045590788126,
0.005098954774439335,
0.027477413415908813,
-0.03903159499168396,
-0.006123922299593687,
0.03103891760110855,
-0.01972286030650139,
0.020064515992999077,
-0.013759412802755833,
0.045885417610406876,
-0.03857605159282684,
0.0850619524717331,
-0.020582176744937897,
0.0438561886548996,
0.00017228384967893362,
-0.05586590990424156,
0.008572456426918507,
0.0007150184246711433,
-0.01897742971777916,
-0.05006811395287514,
0.05019235238432884,
-0.014028596691787243,
0.04936409369111061,
0.018180232495069504,
-0.009861430153250694,
0.00619639502838254,
-0.03130809962749481,
-0.011844069696962833,
0.0697806179523468,
0.04178554564714432,
-0.02714611031115055,
0.019557209685444832,
-0.06874530017375946,
0.019816039130091667,
0.07938839495182037,
-0.03437265008687973,
0.017124205827713013,
0.04360771179199219,
0.03377216309309006,
-0.008857169188559055,
0.0012896214611828327,
0.05015093833208084,
0.014784380793571472,
0.00974754523485899,
-0.07139571756124496,
-0.011699125170707703,
-0.000023011622033664025,
-0.0723896324634552,
0.03406205400824547,
0.028719797730445862,
0.013935417868196964,
-0.03801697865128517,
0.09408995509147644,
0.03277825564146042,
-0.004459644202142954,
0.015094976872205734,
0.10237251967191696,
0.0439804270863533,
0.011688771657645702,
0.04050174728035927,
-0.008091031573712826,
0.0015452163061127067,
0.046092480421066284,
0.01909131556749344,
0.03691953793168068,
-0.007982322946190834,
0.015519458800554276,
-0.067088782787323,
-0.046133894473314285,
0.007702786475419998,
-0.04571976512670517,
-0.03275755047798157,
0.04240673780441284,
0.023605313152074814,
-0.007816672325134277,
-0.03799627348780632,
-0.021845268085598946,
0.009954608976840973,
0.016596192494034767,
0.012051133438944817,
-0.04410466551780701,
-0.028554147109389305,
0.016451247036457062,
-0.012465261854231358,
0.0066001699306070805,
0.00006260455120354891,
0.0008826109697110951,
0.01669972389936447,
0.005978977307677269,
0.024185093119740486,
-0.058806221932172775,
-0.030811145901679993,
-0.04331782087683678,
-0.0109640471637249,
0.0012669737916439772,
-0.02890615537762642,
-0.009530127979815006,
-0.019702155143022537,
0.014339192770421505,
0.022922001779079437,
0.0335443913936615,
-0.004884125664830208,
0.06837258487939835,
-0.07388049364089966,
-0.020344052463769913,
0.005047188606113195,
0.04031538963317871,
0.017621159553527832,
-0.03025207296013832,
0.02530323900282383,
-0.07388049364089966,
0.02992076985538006,
0.007946087047457695,
-0.0439390130341053,
-0.016585838049650192,
0.00494624488055706,
0.018925663083791733,
-0.016306301578879356,
-0.013397051021456718,
0.0414128303527832,
0.03981843590736389,
0.01974356733262539,
-0.007759729400277138,
0.03675388917326927,
-0.012175372801721096,
0.046382371336221695,
0.03774779662489891,
0.030604083091020584,
0.027767302468419075,
-0.015767935663461685,
0.052097342908382416,
0.06762715429067612,
-0.06224348396062851,
0.008763990364968777,
-0.00024362391559407115,
-0.10974400490522385,
0.027311762794852257,
-0.02012663520872593,
-0.01591288112103939,
-0.015032857656478882,
-0.03727154806256294,
-0.002966193947941065,
0.04994387552142143,
-0.04335923492908478,
0.04081234335899353,
-0.019391559064388275,
0.014121775515377522,
0.03462112694978714,
0.008204917423427105,
-0.004863419570028782,
-0.04294510558247566,
0.013821532018482685,
0.03300602734088898,
-0.008619045838713646,
0.02582089975476265,
0.06170511990785599,
-0.0543336346745491,
0.03315097093582153,
0.04027397930622101,
-0.00040183388045988977,
0.04961257055401802,
0.017072439193725586,
-0.021803855895996094,
0.025510303676128387,
0.00025252121849916875,
-0.010912280529737473,
-0.007909851148724556,
0.000031524708901997656,
-0.04101940989494324,
0.0063309865072369576,
-0.011989014223217964,
-0.020996306091547012,
-0.00593756465241313,
-0.03431053087115288,
-0.036029163748025894,
-0.034289825707674026,
0.09367582201957703,
0.06319598108530045,
-0.033979229629039764,
-0.0015335689531639218,
-0.015995705500245094,
-0.05010952427983284,
0.06071120873093605,
0.013003628700971603,
0.04700356349349022,
-0.02613149583339691,
0.05093778297305107,
0.0020667591597884893,
-0.0386795848608017,
-0.01345917023718357,
0.0853104293346405,
-0.08762954920530319,
-0.008443040773272514,
-0.008101385086774826,
0.008681165054440498,
-0.0491156168282032,
0.012579147703945637,
-0.04261380434036255,
-0.032902494072914124,
0.031887881457805634,
-0.04596824198961258,
-0.0464651957154274,
0.030314192175865173,
-0.031950000673532486,
0.04294510558247566,
-0.02635926753282547,
0.04360771179199219,
-0.016130298376083374,
0.049985285848379135,
-0.10402902960777283,
-0.03124598041176796,
0.023605313152074814,
0.03277825564146042,
-0.018428709357976913,
-0.08307413756847382,
-0.03930077701807022,
0.0646454319357872,
0.06348586827516556,
0.00048530660569667816,
-0.02350178174674511,
-0.012175372801721096,
-0.04990246146917343,
0.0006176335737109184,
0.0335443913936615,
-0.004154224414378405,
-0.002289353171363473,
0.03414487838745117,
-0.01136782206594944,
-0.04683791100978851,
0.04957116022706032,
-0.03919724375009537,
-0.026007257401943207,
-0.009799310937523842,
0.024909818544983864,
-0.05859915539622307,
0.0009447301854379475,
0.030686907470226288,
-0.0568184033036232,
0.07951263338327408,
-0.002645244589075446,
0.023688139393925667,
-0.03538726270198822,
0.04940550774335861,
0.060586970299482346,
-0.043566297739744186,
0.05706688016653061,
0.020944539457559586,
-0.05487200245261192,
-0.04986104741692543,
0.03830686956644058,
-0.004117988515645266,
-0.021058425307273865,
0.04795605689287186,
0.0401497408747673,
-0.011678418144583702,
-0.022942708805203438,
-0.01061203796416521,
0.00975789874792099,
0.021151604130864143,
0.05632144957780838,
0.05656992644071579,
0.04617530480027199,
-0.07905709743499756,
0.004943656735122204,
-0.011398881673812866,
-0.036546822637319565,
-0.030355604365468025,
0.011978661641478539,
-0.04037750884890556,
-0.06953214108943939,
-0.03673318028450012,
-0.04373195022344589,
0.0180559940636158,
-0.037623558193445206,
0.06000719219446182,
0.044063251465559006,
0.009954608976840973,
-0.01600605994462967,
0.05296701192855835,
0.04178554564714432,
-0.021845268085598946,
-0.015654049813747406,
0.01018755603581667,
0.08071360737085342,
0.019143080338835716,
-0.06071120873093605,
0.011823363602161407,
0.0670473724603653,
0.028864743188023567,
-0.05275994539260864,
-0.03315097093582153,
-0.09003149718046188,
0.013138220645487309,
0.03128739446401596,
-0.017414094880223274,
0.019391559064388275,
0.008230799809098244,
0.04787323251366615,
0.004555411636829376,
-0.0056166150607168674,
-0.02032334730029106,
0.03435194492340088,
0.10527141392230988,
-0.001805340638384223,
-0.08456499874591827,
-0.010120260529220104,
0.03018995374441147,
-0.03460042178630829,
-0.000014215439477993641,
0.022818470373749733,
-0.012061486952006817,
0.0005623085889965296,
0.0491570308804512,
-0.06390000134706497,
-0.0439390130341053,
-0.03124598041176796,
0.021555379033088684,
-0.022569993510842323,
-0.01886354386806488,
0.03948713466525078,
-0.02406085468828678,
0.0012184431543573737,
0.07611678540706635,
-0.07777329534292221,
-0.030065715312957764,
-0.038886647671461105,
-0.020540764555335045,
-0.0022194688208401203,
0.013024335727095604,
-0.0002314912562724203,
0.026939047500491142,
0.0032069061417132616,
0.02685622125864029,
0.020136989653110504,
0.007148889824748039,
-0.05557601898908615,
-0.000142113960464485,
0.0021288783755153418,
-0.009830370545387268,
-0.01882213167846203,
0.05251146852970123,
0.002857485320419073,
-0.011564533226191998,
0.025468891486525536,
-0.03718872368335724,
-0.02167961746454239,
-0.06431412696838379,
-0.010404974222183228,
0.03714730963110924,
0.014525550417602062,
-0.021099837496876717,
0.0027643064968287945,
-0.019070608541369438,
0.04099870100617409,
0.052014514803886414,
-0.0030050184577703476,
0.000866434071213007,
0.007640667259693146,
-0.007909851148724556,
-0.06775139272212982,
-0.0024213565047830343,
0.03364792466163635,
-0.04180625453591347,
0.010042611509561539,
0.04029468446969986,
0.015250274911522865,
0.04311075806617737,
0.013407403603196144,
0.007982322946190834,
0.01538486685603857,
0.007987500168383121,
0.038928061723709106,
0.0009576717275194824,
0.04625813290476799,
-0.011502414010465145,
0.025924433022737503,
0.04052245616912842,
0.07023616135120392,
-0.03178434818983078,
-0.005714970640838146,
-0.01111934520304203,
0.002627126406878233,
-0.010265205055475235,
0.017683278769254684,
-0.006610522978007793,
-0.006972885224968195,
-0.04770758002996445,
0.01706208661198616,
-0.00857763271778822,
0.058806221932172775,
0.013438464142382145,
0.0038125687278807163,
0.009861430153250694,
0.0017846341943368316,
0.020882420241832733,
0.00034359708661213517,
-0.015654049813747406,
0.011937248520553112,
-0.08241153508424759,
-0.02003345638513565,
0.007495722267776728,
0.0491570308804512,
0.028554147109389305,
0.018283765763044357,
-0.023874497041106224,
-0.006512167863547802,
-0.04025327041745186,
-0.03072832152247429,
-0.016099238768219948,
-0.027725890278816223,
-0.04213755577802658,
0.06833117455244064,
0.026027964428067207,
0.01656513288617134,
0.02606937661767006,
-0.004332817625254393,
0.045844003558158875,
-0.010348031297326088,
-0.05810220167040825,
-0.028471320867538452,
-0.03899018093943596,
0.012837978079915047,
0.013676587492227554,
0.008432688191533089,
0.05839209258556366,
-0.02838849648833275,
-0.0019321674481034279,
-0.004301758017390966,
0.030914679169654846,
-0.060586970299482346,
-0.025116881355643272,
0.043027929961681366,
-0.01355234906077385,
-0.00873293075710535,
0.06071120873093605,
-0.004438937641680241,
-0.04203402251005173,
-0.020178401842713356,
0.0038048038259148598,
-0.004759887233376503,
0.05222158133983612,
0.05996577814221382,
0.03544938191771507,
-0.029320284724235535,
-0.049198444932699203,
0.008536219596862793,
-0.024930523708462715,
-0.06249196082353592,
-0.017124205827713013,
-0.004239638801664114,
-0.08104491233825684,
0.007045357953757048,
0.014815440401434898,
-0.011429941281676292,
0.09201931208372116,
0.0018868721090257168,
0.010746629908680916,
0.044353142380714417,
-0.008841639384627342,
-0.009612953290343285,
-0.08655281364917755,
0.027311762794852257,
-0.027808716520667076,
0.011709477752447128,
-0.010544742457568645,
0.0034036170691251755,
0.04369053617119789,
-0.0568184033036232,
0.015063917264342308,
-0.01487755961716175,
0.013024335727095604,
-0.04799747094511986,
0.00736113078892231,
-0.0030205482617020607,
0.010684510692954063,
0.017144912853837013,
0.0388038232922554,
-0.07856014370918274,
-0.055451780557632446,
0.016461599618196487,
-0.044063251465559006,
0.03052125684916973,
-0.021286195144057274,
-0.013076101429760456,
0.05897187069058418,
-0.013148574158549309,
0.03778920695185661,
0.05756383389234543,
-0.049239855259656906,
0.004930715076625347,
-0.021017011255025864,
-0.04230320826172829,
-0.02818143181502819,
-0.011792303994297981,
-0.0001617688685655594,
0.024412864819169044,
0.0180352870374918,
-0.006760644726455212,
0.06365152448415756,
0.018780719488859177,
-0.023936616256833076,
-0.033730752766132355,
0.022797763347625732,
-0.018128467723727226,
0.06050414592027664,
0.04629954695701599,
0.024122973904013634,
-0.02743600122630596,
-0.013749060221016407,
0.012051133438944817,
-0.0245578084141016,
0.005174015648663044,
0.010482623241841793,
0.04126788675785065,
0.004899655468761921,
-0.019277673214673996,
-0.025945138186216354,
0.02687692828476429,
-0.010529212653636932,
-0.05350537598133087,
-0.017455508932471275,
0.011274643242359161,
0.030893972143530846,
0.004954009782522917,
0.0490327924489975,
-0.1057683676481247,
-0.02012663520872593,
0.011792303994297981,
0.003908336162567139,
0.005044600460678339,
0.00756819499656558,
0.0036495057865977287,
-0.05329831317067146,
-0.08311555534601212,
0.0005144249880686402,
-0.0080703254789114,
0.08071360737085342,
-0.028243551030755043,
-0.01740374229848385,
0.01771433837711811,
-0.012579147703945637,
0.01692749559879303,
-0.036277640610933304,
-0.024661341682076454,
-0.007780435495078564,
0.014359898865222931,
0.021513964980840683,
0.04745910316705704,
0.027042578905820847,
-0.020851360633969307,
0.07011192291975021,
-0.04762475565075874,
-0.00017357799515593797,
0.055451780557632446,
0.017590099945664406,
-0.006698525510728359,
-0.004534705076366663,
0.02244575507938862,
0.05839209258556366,
0.011409235186874866,
0.042013317346572876,
0.003582209814339876,
-0.05864056944847107,
-0.034248411655426025,
0.03203282505273819,
-0.05528612807393074,
-0.050233762711286545,
0.0005331902066245675,
-0.03919724375009537,
-0.016710076481103897,
0.06348586827516556,
-0.04089517146348953,
0.03518019989132881,
-0.015747228637337685,
0.015819702297449112,
0.0015283923130482435,
0.0003992455604020506,
0.009473185054957867,
-0.06158088147640228,
0.03261260315775871,
0.009721661917865276,
0.018521888181567192,
0.02689763344824314,
0.02424721233546734,
0.0058909752406179905,
-0.0021392316557466984,
-0.011140051297843456,
-0.0193812046200037,
-0.01110899168998003,
0.02787083573639393,
-0.02714611031115055,
-0.030127834528684616,
0.005145544186234474,
0.05197310447692871,
-0.008375745266675949,
-0.06029708310961723,
-0.006098039448261261,
-0.026545625180006027,
0.016492659226059914,
-0.020023103803396225,
0.08489630371332169,
0.006289573851972818,
-0.03126668930053711,
0.008132444694638252
] |
20,969 | argufy.parser | __clean_args | Retrieve cleaned parameters from an Argument. | @staticmethod
def __clean_args(argument: Argument) -> Dict[Any, Any]:
"""Retrieve cleaned parameters from an Argument."""
size = len('_Argument__')
return {
k[size:]: v
for k, v in vars(argument).items()
if k.startswith('_Argument__')
}
| (argument: argufy.argument.Argument) -> Dict[Any, Any] | [
-0.014062691479921341,
0.02138517238199711,
0.013233398087322712,
-0.023079046979546547,
-0.0014622905291616917,
-0.015888899564743042,
0.021685129031538963,
0.03881796821951866,
0.0663081482052803,
-0.02482585422694683,
-0.0053595262579619884,
0.023820117115974426,
-0.03772400692105293,
0.0025253735948354006,
-0.044358350336551666,
-0.010630830191075802,
0.020026542246341705,
0.10636123269796371,
-0.024208296090364456,
-0.024067141115665436,
0.01870320364832878,
0.024384742602705956,
-0.043617282062768936,
0.02563750371336937,
-0.007701837923377752,
0.027984226122498512,
0.05748588219285011,
0.0009803742868825793,
0.05886215344071388,
-0.006100596394389868,
-0.010701407678425312,
0.0004907385446131229,
0.05046335980296135,
0.05360408499836922,
0.018403245136141777,
-0.07100158929824829,
0.011513056233525276,
0.04312323406338692,
-0.04954584315419197,
-0.05261599272489548,
-0.04213513806462288,
-0.012915796600282192,
-0.0008474888745695353,
0.011389545165002346,
0.004133231472223997,
-0.045664045959711075,
0.015633054077625275,
0.03520083799958229,
-0.07742419838905334,
-0.002973103430122137,
0.05166318640112877,
-0.06591996550559998,
0.07131919264793396,
0.04153522476553917,
0.017221061512827873,
0.01480376161634922,
0.017282817512750626,
0.06475542485713959,
-0.0011854919139295816,
0.04135878011584282,
0.003857535542920232,
0.0691312700510025,
0.023661315441131592,
-0.08794034272432327,
0.020097121596336365,
-0.05011046677827835,
-0.04799312353134155,
0.021473394706845284,
-0.015871254727244377,
0.003325994126498699,
-0.054062843322753906,
-0.05293359234929085,
0.00428982637822628,
0.03010156936943531,
0.03895912319421768,
-0.06479071825742722,
-0.025725726038217545,
0.023890694603323936,
0.03324229642748833,
-0.0495811328291893,
0.0022408554796129465,
-0.003782546380534768,
-0.08786976337432861,
0.02163219451904297,
0.0009197211475111544,
-0.01443322654813528,
-0.0394531711935997,
0.027454890310764313,
0.044181905686855316,
-0.025337547063827515,
-0.0771418884396553,
0.015341919846832752,
-0.013251042924821377,
0.07911808043718338,
-0.008469374850392342,
0.020555878058075905,
0.006943122949451208,
-0.025866882875561714,
0.0015218408079817891,
-0.02599039487540722,
-0.014336181804537773,
0.01940898410975933,
-0.02138517238199711,
0.031036728993058205,
0.019426628947257996,
-0.006651988252997398,
0.01200710330158472,
-0.0841997042298317,
0.03066619485616684,
0.018279733136296272,
-0.04030010849237442,
-0.03303056210279465,
-0.06613170355558395,
0.003498028265312314,
-0.015130185522139072,
-0.027878358960151672,
-0.06906069070100784,
-0.05752117186784744,
-0.012765818275511265,
0.019391339272260666,
0.009263378567993641,
0.03453034535050392,
-0.031319040805101395,
0.03080735169351101,
0.047110896557569504,
0.07424818724393845,
-0.05039278045296669,
0.03761814162135124,
0.016621148213744164,
0.014027401804924011,
-0.007013700902462006,
-0.024349452927708626,
-0.045946359634399414,
0.005902095697820187,
0.017847442999482155,
-0.018332667648792267,
0.008729632012546062,
0.025761015713214874,
-0.0009737575310282409,
0.036594755947589874,
0.023537803441286087,
0.03193660080432892,
0.010524963028728962,
-0.03347167372703552,
-0.027613690122961998,
-0.07862403243780136,
0.05247483402490616,
0.014362648129463196,
-0.038747388869524,
-0.00658582104369998,
-0.026607953011989594,
0.04277034476399422,
0.00753421476110816,
-0.03375398740172386,
-0.0284429844468832,
-0.017238706350326538,
-0.008006205782294273,
-0.0534629300236702,
-0.008822265081107616,
-0.043829016387462616,
-0.03278353810310364,
-0.02359073795378208,
-0.0004055485187564045,
-0.08892843872308731,
0.034406837075948715,
-0.006285863928496838,
0.08292929828166962,
-0.029801612719893456,
0.0070931012742221355,
0.00940453540533781,
-0.029378144070506096,
0.01025147270411253,
0.014927273616194725,
0.03994721919298172,
-0.022090952843427658,
0.08829323202371597,
-0.027384312823414803,
-0.02138517238199711,
0.04132349044084549,
0.011486589908599854,
0.02120872586965561,
-0.0335598960518837,
-0.045099422335624695,
-0.021367527544498444,
0.05914446711540222,
-0.08391738682985306,
-0.010577896609902382,
0.028584139421582222,
-0.012210015207529068,
-0.008010617457330227,
0.0209617018699646,
0.022708510980010033,
0.03290705010294914,
-0.00008732663991395384,
-0.05773290619254112,
0.0022673222701996565,
-0.05872099846601486,
-0.027772491797804832,
0.00005558716657105833,
-0.034689147025346756,
-0.055192094296216965,
-0.05769761651754379,
-0.04898121953010559,
0.054874490946531296,
-0.008204706944525242,
0.0034781780559569597,
0.014203847385942936,
0.036277156323194504,
-0.04188811779022217,
0.00924573466181755,
-0.0011777724139392376,
-0.05159260705113411,
0.05949736014008522,
-0.020944058895111084,
0.0009765145368874073,
-0.045593466609716415,
0.06027371808886528,
0.017397508025169373,
0.02680204249918461,
0.02159690670669079,
0.06002669408917427,
0.0024437676183879375,
0.031989533454179764,
0.009086932986974716,
-0.008288518525660038,
-0.014997851103544235,
0.010789630934596062,
0.03726524859666824,
-0.014212669804692268,
-0.04774609953165054,
0.02925463207066059,
-0.02634328417479992,
-0.03888854756951332,
0.0600619837641716,
0.021473394706845284,
-0.04135878011584282,
0.03428332507610321,
-0.056815389543771744,
0.06599054485559464,
-0.055650848895311356,
0.008923721499741077,
0.013524533249437809,
0.00961626973003149,
0.06743739545345306,
-0.0022485749796032906,
-0.04954584315419197,
0.027737202122807503,
0.05208665505051613,
0.019144315272569656,
-0.044358350336551666,
-0.007022523321211338,
0.03782987594604492,
-0.018138578161597252,
0.05745059251785278,
-0.031389620155096054,
0.016012411564588547,
-0.0010084952227771282,
0.005315415095537901,
0.00977507047355175,
-0.05166318640112877,
0.044252485036849976,
0.00508162472397089,
0.028372405096888542,
0.03197189047932625,
0.036383021622896194,
0.003837685566395521,
0.044817108660936356,
0.012139437720179558,
-0.03295998275279999,
-0.0007350050145760179,
0.05939149111509323,
-0.06549649685621262,
0.005690361373126507,
0.018191510811448097,
-0.044464219361543655,
0.054451022297143936,
0.03691235929727554,
0.027172578498721123,
0.009095755405724049,
0.0568859688937664,
0.0408647321164608,
-0.02957223355770111,
-0.034724436700344086,
0.015844788402318954,
0.0021327827125787735,
0.02553163655102253,
0.021226370707154274,
0.00835027452558279,
0.018191510811448097,
0.029942769557237625,
0.016268257051706314,
0.009378068149089813,
-0.002582718152552843,
-0.019144315272569656,
-0.03541257232427597,
0.047287341207265854,
-0.0739658772945404,
-0.046193383634090424,
0.03565959632396698,
-0.017962131649255753,
0.04880477115511894,
0.028054803609848022,
-0.06493187695741653,
-0.017644530162215233,
0.0018184895161539316,
0.01058671809732914,
0.03927672654390335,
0.018262090161442757,
-0.011945347301661968,
-0.013771556317806244,
0.03197189047932625,
0.007181324064731598,
0.010392628610134125,
-0.0119541697204113,
0.015871254727244377,
-0.02053823322057724,
0.022373264655470848,
-0.0014104596339166164,
-0.013198109343647957,
0.11744199693202972,
0.006475542671978474,
-0.0012759201927110553,
-0.003284088335931301,
0.023026112467050552,
0.0000901525272638537,
0.018420889973640442,
-0.01364804431796074,
0.0013476010644808412,
0.04354670271277428,
0.0006021196022629738,
-0.0663081482052803,
0.009210444986820221,
-0.05106327310204506,
0.00863258633762598,
-0.00924573466181755,
0.008760510012507439,
-0.02514345571398735,
0.012289416044950485,
-0.016127102077007294,
-0.03101908601820469,
0.013021663762629032,
0.01838560216128826,
-0.04785196855664253,
0.03154842182993889,
-0.009219267405569553,
-0.027472535148262978,
0.00753421476110816,
0.02145574986934662,
0.055297959595918655,
-0.04841659218072891,
-0.008310574106872082,
0.019497206434607506,
0.007860638201236725,
0.006488776300102472,
0.09937399625778198,
-0.020520590245723724,
-0.0433349683880806,
-0.023555448278784752,
-0.02517874538898468,
-0.006237341556698084,
0.08539953082799911,
0.0019850097596645355,
-0.007520981132984161,
-0.05127500742673874,
0.04248803108930588,
-0.03234242647886276,
0.0046316892839968204,
-0.04266447573900223,
0.046899162232875824,
-0.015130185522139072,
0.035006750375032425,
0.007781238295137882,
0.000019729481209651567,
-0.055862583220005035,
-0.017044616863131523,
0.002463617594912648,
0.02729608863592148,
0.017768042162060738,
-0.09097520262002945,
0.043829016387462616,
0.03020743653178215,
0.005531560629606247,
-0.003890619147568941,
0.0015869049821048975,
-0.05932091176509857,
-0.026643240824341774,
-0.02359073795378208,
-0.02662559784948826,
0.017141662538051605,
0.03920614719390869,
-0.04305265471339226,
-0.05670952424407005,
0.011160166002810001,
0.03211304545402527,
0.035042040050029755,
-0.055050935596227646,
0.009122222661972046,
-0.006881366949528456,
-0.08652877807617188,
0.007018112111836672,
0.03927672654390335,
-0.07481281459331512,
-0.011936524882912636,
-0.0007245285669341683,
0.013506888411939144,
-0.04104118049144745,
0.011962992139160633,
0.03299527242779732,
0.03973548486828804,
0.029801612719893456,
0.02999570220708847,
-0.024384742602705956,
0.010286761447787285,
-0.04319381341338158,
0.035500794649124146,
0.01062200777232647,
0.03740640729665756,
-0.011301321908831596,
0.00005992937440169044,
-0.0398060604929924,
0.02971339039504528,
-0.036559466272592545,
-0.010877853259444237,
0.04742849990725517,
0.028848808258771896,
0.04344083368778229,
-0.06263808161020279,
-0.0034252444747835398,
0.04876948520541191,
0.007609203923493624,
-0.0719543993473053,
-0.02341429330408573,
-0.0335598960518837,
-0.04344083368778229,
-0.014847872778773308,
-0.002814302686601877,
-0.009916226379573345,
0.002569484757259488,
0.07968270033597946,
0.06588467955589294,
-0.07202497869729996,
0.007071045693010092,
0.0753774344921112,
0.03327758610248566,
-0.0027922471053898335,
0.006153529975563288,
-0.027225511148571968,
0.046899162232875824,
0.035359639674425125,
-0.018173865973949432,
0.01058671809732914,
-0.010551429353654385,
0.04774609953165054,
-0.1307106912136078,
0.034159813076257706,
-0.06655517220497131,
-0.1137719377875328,
0.018332667648792267,
0.02152632735669613,
0.017882732674479485,
0.04171166941523552,
0.006171174813061953,
-0.05159260705113411,
-0.044005461037158966,
-0.01912667229771614,
0.04982815682888031,
0.0168417040258646,
-0.014742005616426468,
-0.02433180809020996,
0.04022952914237976,
0.027648979797959328,
0.009925048798322678,
-0.003325994126498699,
-0.027790136635303497,
-0.00023889041040092707,
0.034724436700344086,
0.013374553993344307,
0.05296888202428818,
-0.016479991376399994,
0.013233398087322712,
0.00019353844982106239,
-0.023784827440977097,
0.027172578498721123,
0.03211304545402527,
-0.005972673650830984,
0.003231154754757881,
-0.024737631902098656,
-0.03324229642748833,
-0.04428777098655701,
0.04082944616675377,
-0.044217195361852646,
-0.022179175168275833,
0.0013079008786007762,
0.0016552775632590055,
0.05956793576478958,
-0.029378144070506096,
0.02071467973291874,
0.05762703716754913,
0.030577972531318665,
0.00468462286517024,
-0.043829016387462616,
-0.011804191395640373,
-0.0035024394746869802,
0.020308855921030045,
0.022038018330931664,
-0.02999570220708847,
-0.020838191732764244,
0.010560251772403717,
-0.03998250886797905,
-0.01655939221382141,
-0.05092211812734604,
0.022673223167657852,
0.04206456243991852,
-0.005703594535589218,
0.003535522846505046,
0.006810788996517658,
-0.0531100369989872,
0.01019853912293911,
-0.021808641031384468,
-0.004521410912275314,
-0.02651973068714142,
0.04220571741461754,
0.05102798342704773,
-0.03311878442764282,
-0.013515710830688477,
0.01032205019146204,
-0.012210015207529068,
-0.026043327525258064,
0.0293252095580101,
-0.022902600467205048,
0.03832392022013664,
0.003184837754815817,
0.03267767280340195,
0.022832022979855537,
0.021543972194194794,
0.0380416102707386,
0.017318107187747955,
-0.04979286715388298,
-0.0024106840137392282,
0.07671841979026794,
0.06687277555465698,
0.03295998275279999,
-0.06030900776386261,
0.0135421771556139,
-0.013930357061326504,
0.034512702375650406,
-0.0038288631476461887,
0.02588452771306038,
-0.09153982996940613,
-0.014618493616580963,
-0.09153982996940613,
-0.014027401804924011,
-0.02482585422694683,
0.05967380478978157,
-0.04033539816737175,
-0.07594206184148788,
0.012880507856607437,
-0.024384742602705956,
-0.005138969514518976,
0.01589772291481495,
0.012668773531913757,
-0.09069289267063141,
0.012465860694646835,
0.019638363271951675,
-0.11186632513999939,
0.020520590245723724,
-0.02436709776520729,
0.045205287635326385,
-0.044746529310941696,
0.04287621006369591,
-0.008067961782217026,
-0.013868601061403751,
-0.022655578330159187,
0.010851386934518814,
-0.027931291610002518,
-0.001707108342088759,
0.03991192951798439,
-0.03726524859666824,
-0.005487449001520872,
-0.0019265621667727828,
0.06083834171295166,
0.0027216689195483923,
-0.07064869999885559,
-0.014583204872906208,
-0.019638363271951675,
0.03857094421982765,
0.022267397493124008,
0.00956333614885807,
0.0419234037399292,
-0.006828433368355036,
-0.02999570220708847,
0.012739351019263268,
0.03881796821951866,
-0.055192094296216965,
-0.02429651841521263,
0.011221922002732754,
0.029131120070815086,
-0.01322457566857338,
-0.011751257814466953,
-0.03694764897227287,
-0.02039707824587822,
-0.0408647321164608,
0.028178315609693527,
0.0429820790886879,
0.005708005744963884,
0.0008314985316246748,
0.04026481881737709,
0.016197679564356804,
-0.010101494379341602,
-0.00972213689237833,
-0.018297377973794937,
-0.06599054485559464,
0.015297808684408665,
0.01613592356443405,
-0.003749462775886059,
0.004644922912120819,
0.033948078751564026,
-0.03800632059574127,
0.03761814162135124,
0.04764023423194885,
-0.06352031230926514,
-0.01797095499932766,
-0.03888854756951332,
0.010136783123016357,
0.009854470379650593,
-0.030754417181015015,
0.00030988207436166704,
0.023131979629397392,
-0.04326438903808594,
-0.04869890585541725,
0.0014170764479786158,
-0.007410702761262655,
0.03378927707672119,
-0.03793574124574661,
-0.02216153033077717,
0.03267767280340195,
0.0019034037832170725,
-0.02426123060286045,
-0.06443782895803452,
0.02833711728453636,
0.07869460433721542,
-0.05303946137428284,
-0.03670062497258186,
0.04238216206431389,
-0.03670062497258186,
0.02634328417479992,
-0.004486122168600559,
-0.0650024488568306,
0.028690006583929062,
-0.009139866568148136,
0.03846507892012596,
0.056533075869083405,
-0.06620228290557861,
-0.0037891629617661238,
0.010066204704344273,
0.0019034037832170725,
-0.02173806168138981,
0.018473824486136436,
0.00376710738055408,
-0.020202988758683205,
0.01969129592180252,
0.03973548486828804,
0.012359993532299995,
-0.02531990222632885,
0.01681523770093918,
-0.03779458627104759,
-0.03673591464757919,
0.04273505508899689,
0.035853687673807144,
0.05854455381631851,
0.007895927876234055,
-0.017459264025092125,
-0.0026025683619081974,
-0.021402815356850624,
-0.03786516189575195,
-0.0007052298169583082,
0.012139437720179558,
0.05268656834959984,
0.013745089992880821,
-0.0325012244284153,
-0.035359639674425125,
-0.05928562209010124,
-0.011495412327349186,
-0.015315452590584755,
0.017485730350017548,
0.024631764739751816,
-0.04319381341338158,
0.0127481734380126,
0.017644530162215233,
0.011689501814544201,
-0.0006754546775482595,
-0.0650024488568306,
0.012968730181455612,
-0.010136783123016357,
-0.01269523985683918,
-0.017626887187361717,
-0.033524610102176666,
0.004689034074544907,
0.08652877807617188,
-0.0014170764479786158,
0.01926782727241516,
0.00481695681810379,
-0.009748603217303753,
0.0055227382108569145,
-0.009210444986820221,
-0.04217042773962021,
-0.027737202122807503,
0.009113400243222713,
0.03573017567396164,
0.04075886681675911,
0.034477412700653076,
0.008217940106987953,
-0.02369660511612892,
-0.028407694771885872,
0.0369829386472702,
0.017644530162215233,
-0.035289060324430466,
0.00977507047355175,
0.04125291481614113,
-0.0003683295799419284,
0.018244445323944092,
0.036559466272592545,
0.04301736503839493,
0.044181905686855316,
0.003484794870018959,
-0.013030486181378365,
-0.006232930347323418,
-0.028495917096734047,
0.024384742602705956,
-0.044746529310941696,
-0.005893273279070854,
-0.010233827866613865,
-0.05773290619254112,
0.03059561736881733,
0.017185773700475693,
0.003281882731243968,
0.027807781472802162,
0.00010710781498346478,
-0.00808560661971569,
0.01919724978506565,
0.029589878395199776,
0.07064869999885559,
0.018685558810830116,
0.055403828620910645,
0.09520988911390305,
0.03084263950586319,
-0.018897293135523796,
0.011257210746407509,
0.01635647937655449,
-0.07968270033597946,
0.034406837075948715,
0.036347731947898865,
-0.0376887172460556,
-0.014062691479921341,
0.004027364309877157,
-0.056180186569690704,
0.036418311297893524,
0.017185773700475693,
0.0026996133383363485,
-0.03176015615463257,
-0.06052074208855629,
-0.03821805492043495,
-0.004878712818026543,
0.013665689155459404,
0.03311878442764282,
-0.0011832863092422485,
0.05282772704958916,
-0.027596047148108482
] |
20,970 | argufy.parser | __generate_parameter | Generate inpect parameter. | @staticmethod
def __generate_parameter(name: str, module: ModuleType) -> Parameter:
"""Generate inpect parameter."""
parameter = Parameter(
name,
ParameterKind.POSITIONAL_OR_KEYWORD,
default=getattr(module, name),
annotation=empty,
)
return parameter
| (name: str, module: module) -> inspect.Parameter | [
0.062399085611104965,
-0.04724155366420746,
0.04488294571638107,
0.004886309616267681,
0.006741980090737343,
0.006941421423107386,
-0.0193371269851923,
0.013562002219259739,
0.015166203491389751,
-0.04172657057642937,
0.0018394115613773465,
0.022944411262869835,
-0.025476446375250816,
0.011055979877710342,
-0.008779749274253845,
-0.0072319116443395615,
0.022476157173514366,
0.09059833735227585,
-0.06739378720521927,
-0.03222276270389557,
0.02401965856552124,
0.053866468369960785,
-0.01590326800942421,
-0.012703537940979004,
0.012720881029963493,
-0.006624916568398476,
0.01672704704105854,
0.01637152209877968,
-0.05535794422030449,
-0.05965893715620041,
-0.02060314454138279,
-0.07644668221473694,
0.02963869832456112,
0.03739089146256447,
0.02438385598361492,
0.004951344802975655,
-0.029690725728869438,
0.13645248115062714,
-0.11009155213832855,
-0.05147317424416542,
0.02578861638903618,
-0.005332884378731251,
-0.0249214805662632,
-0.012452068738639355,
-0.02696792036294937,
-0.01477599237114191,
0.029447928071022034,
-0.010787168517708778,
-0.06132383644580841,
0.04547259584069252,
0.06749784201383591,
-0.011602276004850864,
0.03352346643805504,
-0.029447928071022034,
-0.043183356523513794,
-0.006490510888397694,
0.019926778972148895,
0.022163989022374153,
0.018157821148633957,
0.07096638530492783,
0.009798633866012096,
0.002291406039148569,
-0.012798923067748547,
-0.014273053966462612,
-0.007882263511419296,
0.020360346883535385,
-0.034477315843105316,
-0.0069240787997841835,
0.02051643095910549,
0.06947491317987442,
0.03780711814761162,
-0.032378848642110825,
-0.0058054737746715546,
0.03307255730032921,
0.010865210555493832,
-0.03048849105834961,
-0.05740438401699066,
-0.023412663489580154,
0.059416137635707855,
-0.00811639055609703,
-0.02832065150141716,
-0.01220927108079195,
-0.04335678368806839,
-0.008133732713758945,
-0.0021645876113325357,
-0.028580792248249054,
-0.07214569300413132,
-0.0550110898911953,
0.06569419801235199,
-0.043113987892866135,
-0.06291936337947845,
0.015747183933854103,
0.0026274211704730988,
0.04505637288093567,
-0.001430773874744773,
-0.048351485282182693,
0.049079880118370056,
-0.006594567093998194,
-0.02011754922568798,
0.0052114855498075485,
0.01265150960534811,
0.006234705913811922,
-0.011090666055679321,
0.029881495982408524,
0.032777730375528336,
-0.010457656346261501,
0.015261588618159294,
0.018782159313559532,
0.03558725118637085,
-0.006239041220396757,
-0.038778308779001236,
-0.012148571200668812,
-0.0386742539703846,
-0.02662106603384018,
-0.007713172119110823,
-0.02148762345314026,
0.017273344099521637,
0.00046229173312895,
-0.023690147325396538,
0.00967723410576582,
0.011645632795989513,
0.04679064452648163,
-0.05612102150917053,
-0.026291554793715477,
0.07609982788562775,
-0.019666638225317,
-0.0032821085769683123,
0.014645921997725964,
0.006763658486306667,
-0.04474420100450516,
0.04446671903133392,
-0.0070151276886463165,
-0.04751903563737869,
-0.010570384562015533,
-0.00430099293589592,
-0.02233741618692875,
0.00068178545916453,
0.0626765713095665,
-0.024141058325767517,
0.06853840500116348,
0.013986898586153984,
0.0256672166287899,
-0.012972350232303143,
-0.006980442441999912,
-0.017256001010537148,
-0.061115723103284836,
-0.0035509206354618073,
-0.01885152980685234,
-0.023880917578935623,
-0.001436193473637104,
-0.012122557498514652,
-0.012521439231932163,
0.0018513347022235394,
0.007179883774369955,
-0.011029966175556183,
-0.009555835276842117,
0.03680123761296272,
-0.030540520325303078,
-0.0360034741461277,
-0.04918393865227699,
0.026291554793715477,
-0.006256384309381247,
-0.0150014478713274,
-0.025060221552848816,
0.012243956327438354,
0.018730131909251213,
0.0035509206354618073,
-0.005697081796824932,
0.026742465794086456,
-0.04887176677584648,
-0.008086040616035461,
-0.0063734473660588264,
0.03444262966513634,
0.01241738349199295,
0.025146935135126114,
0.052929963916540146,
-0.017039217054843903,
0.017845652997493744,
0.05438674986362457,
-0.010154158808290958,
0.05279122292995453,
0.017810966819524765,
-0.011697661131620407,
-0.03343675285577774,
0.04151845723390579,
0.010535698384046555,
0.011654304340481758,
0.05220156908035278,
-0.023308608680963516,
-0.02495616488158703,
0.0030761638190597296,
0.02401965856552124,
0.019892092794179916,
0.035361792892217636,
-0.02920513041317463,
0.004769246559590101,
-0.014975433237850666,
0.0480046309530735,
-0.00818576104938984,
0.08470181375741959,
0.019042300060391426,
0.05018981546163559,
-0.015556414611637592,
0.07089701294898987,
0.0010226782178506255,
0.024713367223739624,
0.07665479928255081,
0.019562581554055214,
-0.05494171753525734,
-0.044397346675395966,
0.000051418435759842396,
-0.04588882252573967,
0.0728394016623497,
0.051265064626932144,
-0.01265150960534811,
-0.04855959862470627,
-0.00740967458114028,
0.014498508535325527,
0.008272474631667137,
0.0035053961910307407,
0.061081040650606155,
0.043183356523513794,
0.06409867107868195,
-0.03262164443731308,
0.07609982788562775,
-0.04790057614445686,
0.026343582198023796,
-0.05355430021882057,
-0.06160132214426994,
-0.026274211704730988,
0.005181135609745979,
-0.01681376062333584,
-0.014142983593046665,
0.022441472858190536,
-0.009998074732720852,
-0.07422681897878647,
0.01590326800942421,
-0.040894120931625366,
-0.06437615305185318,
-0.06180943176150322,
-0.014515851624310017,
0.06777532398700714,
-0.026360925287008286,
0.0728394016623497,
-0.049530792981386185,
-0.016388865187764168,
-0.0071451980620622635,
0.06656133383512497,
0.01800173707306385,
0.010492341592907906,
0.02655169554054737,
-0.003201898653060198,
-0.0248347669839859,
0.030332406982779503,
-0.02147028036415577,
0.018678102642297745,
-0.04810868948698044,
-0.00036311306757852435,
0.01845264807343483,
0.014541865326464176,
-0.05105695128440857,
0.015556414611637592,
-0.03777243196964264,
0.02873687818646431,
0.0566759891808033,
-0.02871953509747982,
-0.017862996086478233,
-0.009070239029824734,
0.010188844986259937,
-0.034546688199043274,
0.017056560143828392,
0.04977358877658844,
0.0150014478713274,
-0.02577127330005169,
0.01593795418739319,
-0.02316986583173275,
0.03043646365404129,
0.038431454449892044,
0.00047556974459439516,
0.023724833503365517,
0.062364399433135986,
-0.05397052690386772,
0.017706912010908127,
0.030627233907580376,
-0.0020063351839780807,
0.060283273458480835,
0.007791214156895876,
0.04342615604400635,
-0.02152230776846409,
0.01113402284681797,
-0.02355140633881092,
0.045195113867521286,
0.009998074732720852,
0.03780711814761162,
0.006681280676275492,
0.046964067965745926,
-0.015122846700251102,
0.012859622947871685,
0.0024691689759492874,
-0.04710281267762184,
0.04710281267762184,
0.0214182510972023,
-0.018990272656083107,
-0.013405918143689632,
-0.07526738196611404,
0.0020301814656704664,
0.004214279353618622,
-0.033280666917562485,
-0.04744966700673103,
-0.016189424321055412,
-0.011871087364852428,
0.06926680356264114,
0.00792995560914278,
0.000983657082542777,
0.04079006239771843,
-0.018244534730911255,
0.05664130300283432,
-0.023828888311982155,
0.05910396948456764,
0.06964834034442902,
0.01667501963675022,
-0.0214182510972023,
0.00881443452090025,
-0.05539263039827347,
0.001678991480730474,
-0.017056560143828392,
-0.04120628908276558,
0.023308608680963516,
-0.022042589262127876,
0.0163368359208107,
-0.032847099006175995,
0.02401965856552124,
-0.024245114997029305,
0.02013489045202732,
-0.06631854176521301,
-0.016388865187764168,
0.017810966819524765,
0.014906062744557858,
-0.009928704239428043,
-0.026066100224852562,
0.059901732951402664,
-0.04855959862470627,
-0.07096638530492783,
0.01971866562962532,
0.006351768970489502,
-0.0071451980620622635,
0.009642548859119415,
-0.026933234184980392,
0.08858658373355865,
-0.030332406982779503,
0.02700260654091835,
0.005627710837870836,
0.015183546580374241,
-0.002774834167212248,
0.09323443472385406,
-0.004517776891589165,
0.03388766199350357,
0.004461413249373436,
-0.06954428553581238,
-0.01751614175736904,
0.040963489562273026,
-0.006746315862983465,
0.05351961404085159,
0.03256961703300476,
0.04689469933509827,
0.008233453147113323,
0.01226129848510027,
0.01676173321902752,
0.050744783133268356,
0.0018112297402694821,
-0.027262747287750244,
-0.05625976622104645,
0.007656808476895094,
-0.038015227764844894,
-0.02618749812245369,
-0.014559208415448666,
0.00569274602457881,
-0.03909047693014145,
-0.03593410179018974,
-0.032795071601867676,
-0.0037720403634011745,
-0.004194769077003002,
0.05802872031927109,
0.007986320182681084,
-0.034564029425382614,
-0.03954138979315758,
0.01931978389620781,
-0.01585124060511589,
0.0030501498840749264,
-0.010735140182077885,
-0.01794970966875553,
-0.005194142926484346,
0.015677813440561295,
0.02965604141354561,
0.014897391200065613,
-0.046998754143714905,
-0.03220542147755623,
-0.008610657416284084,
-0.07270065695047379,
0.037078723311424255,
0.047033440321683884,
-0.06090761348605156,
-0.0016822433099150658,
0.020412374287843704,
-0.03047114796936512,
-0.05799403414130211,
0.04713749513030052,
0.019475867971777916,
-0.0071451980620622635,
0.005926872603595257,
-0.03728683665394783,
0.020724542438983917,
-0.06409867107868195,
-0.02448791265487671,
0.0496695339679718,
-0.03981887176632881,
0.08227383345365524,
0.02010020613670349,
-0.009278352372348309,
-0.017273344099521637,
0.028216596692800522,
-0.044432032853364944,
0.0616706907749176,
0.08012334257364273,
0.04980827495455742,
0.09073708206415176,
0.014195011928677559,
0.031078143045306206,
-0.025441762059926987,
0.018574045971035957,
-0.09753542393445969,
-0.016198094934225082,
-0.023482033982872963,
-0.04928799346089363,
0.04377301037311554,
-0.03555256500840187,
0.01666634902358055,
-0.03648906946182251,
0.028476737439632416,
0.01586858369410038,
0.025146935135126114,
0.002152664354071021,
0.03485885635018349,
0.033714234828948975,
-0.055149830877780914,
0.00101996841840446,
-0.03220542147755623,
0.042628392577171326,
0.03572599217295647,
-0.04890645295381546,
0.01504480466246605,
0.034043747931718826,
0.11321324110031128,
-0.07582234591245651,
0.03863956779241562,
-0.09954717755317688,
-0.045715395361185074,
-0.02228538691997528,
0.04415455088019371,
-0.03265633061528206,
0.012183256447315216,
0.06978708505630493,
0.014038926921784878,
-0.03177185356616974,
-0.0015760191017761827,
0.00588785158470273,
0.04418923705816269,
-0.027228061109781265,
0.014706621877849102,
-0.005241835489869118,
0.02875421941280365,
0.007873591966927052,
0.0009321708930656314,
-0.044813573360443115,
-0.002761827316135168,
-0.0124607402831316,
-0.02190384827554226,
0.06454958021640778,
0.012634167447686195,
0.026360925287008286,
-0.004069034475833178,
0.006785336881875992,
0.021765105426311493,
0.058930542320013046,
-0.006074285600334406,
0.023447349667549133,
-0.022632241249084473,
0.004999037366360426,
-0.03978418558835983,
-0.012200599536299706,
-0.036662496626377106,
0.05157723277807236,
0.05521920323371887,
0.021730421110987663,
-0.0540052130818367,
-0.02440119907259941,
0.03177185356616974,
0.025441762059926987,
0.012452068738639355,
0.018244534730911255,
-0.023794203996658325,
0.02955198474228382,
-0.029291843995451927,
-0.0583408884704113,
0.055115144699811935,
-0.07297813892364502,
0.003516235388815403,
-0.01971866562962532,
-0.034147802740335464,
0.018747473135590553,
-0.01050101313740015,
0.0214182510972023,
-0.010431642644107342,
0.013319204561412334,
-0.0020236780401319265,
0.002508189994841814,
0.013232490979135036,
0.026482325047254562,
-0.028181910514831543,
-0.02051643095910549,
0.00838086660951376,
-0.009781290777027607,
0.012426055036485195,
-0.052097514271736145,
0.02360343374311924,
0.0033363045658916235,
-0.03645438328385353,
-0.04162251204252243,
0.0022101120557636023,
0.05331150442361832,
0.06406398862600327,
-0.03777243196964264,
0.0013223818968981504,
0.015391658991575241,
-0.006139320787042379,
0.013440603390336037,
-0.02356874756515026,
0.049565475434064865,
-0.023932944983243942,
0.06690818816423416,
0.021747764199972153,
0.03263898938894272,
0.0030349749140441418,
0.019198384135961533,
-0.005172464530915022,
0.052132200449705124,
-0.02622218430042267,
0.011324792169034481,
-0.034477315843105316,
-0.00215049646794796,
-0.0037330191116780043,
-0.011168708093464375,
-0.11043840646743774,
-0.016059353947639465,
-0.0006086208741180599,
0.028112540021538734,
-0.014056270010769367,
-0.014203682541847229,
-0.01591194048523903,
0.07030736654996872,
0.011307450011372566,
0.000046303692215587944,
0.02832065150141716,
0.029430584982037544,
-0.028632821515202522,
0.020897969603538513,
-0.029361214488744736,
-0.029378557577729225,
-0.018660759553313255,
0.02277098409831524,
0.058965228497982025,
-0.050397928804159164,
0.0488370843231678,
0.001719096559099853,
-0.0072882757522165775,
0.055947594344615936,
0.03220542147755623,
0.013050392270088196,
-0.06742846965789795,
-0.026690436527132988,
0.012972350232303143,
0.022042589262127876,
-0.05452549457550049,
-0.026326239109039307,
-0.046062249690294266,
0.0013700744602829218,
0.013145777396857738,
-0.01095192413777113,
0.02181713469326496,
0.015192217193543911,
-0.033748921006917953,
0.028563451021909714,
0.016475578770041466,
-0.02273629792034626,
-0.029708068817853928,
0.05182002857327461,
-0.0076394653879106045,
-0.005723095498979092,
0.04682532697916031,
-0.03846614062786102,
-0.04790057614445686,
0.023724833503365517,
-0.017663555219769478,
0.07152135670185089,
0.04276713356375694,
0.01305906381458044,
-0.024349169805645943,
-0.020290976390242577,
-0.008246460929512978,
0.011290106922388077,
0.029499957337975502,
-0.06448020786046982,
-0.029465271160006523,
-0.006689951755106449,
-0.040026985108852386,
0.03749494627118111,
-0.017724253237247467,
0.009824647568166256,
0.09080645442008972,
-0.049981702119112015,
-0.0210020262748003,
0.06531266123056412,
-0.02273629792034626,
-0.0026274211704730988,
-0.055045776069164276,
-0.006369111593812704,
-0.00215049646794796,
-0.07478178292512894,
0.03230947628617287,
-0.013648715801537037,
-0.04075537994503975,
0.0019835729617625475,
0.0017180126160383224,
-0.05237499624490738,
-0.002332594944164157,
-0.007860585115849972,
-0.006763658486306667,
-0.03895173594355583,
-0.013249833136796951,
0.03749494627118111,
0.007856249809265137,
-0.007270932663232088,
-0.032881785184144974,
-0.015400330536067486,
-0.0012226613471284509,
0.01838327758014202,
0.0005858585354872048,
-0.03093940205872059,
0.02408902905881405,
-0.022476157173514366,
-0.006898064631968737,
0.028997017070651054,
-0.0011088497703894973,
-0.009295694530010223,
0.06364776194095612,
-0.06014453247189522,
-0.06940554082393646,
-0.0057924664579331875,
0.06562483310699463,
-0.062433771789073944,
0.008003662340342999,
-0.04932267963886261,
0.009295694530010223,
-0.03204933553934097,
-0.057265643030405045,
-0.024609310552477837,
-0.03641970083117485,
-0.0711745023727417,
0.021106082946062088,
0.011584932915866375,
-0.006208691745996475,
-0.0069717708975076675,
-0.0058791800402104855,
-0.078666552901268,
-0.0020735382568091154,
-0.029690725728869438,
-0.004543791059404612,
0.00944310799241066,
0.037182778120040894,
0.023516720160841942,
-0.01592928357422352,
-0.06420272588729858,
0.015625786036252975,
0.006208691745996475,
-0.024245114997029305,
0.009347722865641117,
-0.025216305628418922,
-0.03529242426156998,
0.038431454449892044,
-0.030540520325303078,
-0.05116100609302521,
-0.009590520523488522,
-0.009070239029824734,
0.023430006578564644,
-0.01051835622638464,
-0.03170248121023178,
-0.006698623299598694,
-0.05397052690386772,
-0.02922247350215912,
0.040026985108852386,
-0.021591678261756897,
-0.024210428819060326,
-0.0403391532599926,
0.01796705089509487,
-0.060734186321496964,
0.02998555265367031,
0.0386742539703846,
-0.044050492346286774,
0.02316986583173275,
-0.022823011502623558,
-0.015062146820127964,
-0.003834907663986087,
-0.014221025630831718,
-0.04079006239771843,
0.02837268076837063,
0.016995860263705254,
-0.06687350571155548,
0.07103575766086578,
-0.016995860263705254,
0.00812939740717411,
0.03690529614686966,
-0.013197805732488632,
0.03093940205872059,
0.01434242445975542,
0.006412468384951353,
-0.006785336881875992,
-0.052964650094509125,
-0.03947201743721962,
0.03444262966513634,
-0.0008926078444346786,
0.013197805732488632,
0.0513344332575798,
-0.05355430021882057,
-0.007743522059172392,
0.0608382411301136,
-0.0076394653879106045,
0.06649196892976761,
-0.01808845065534115,
-0.03348878026008606,
0.00652953190729022,
-0.04148377105593681,
0.10377880185842514,
-0.049114566296339035,
0.0004747567872982472,
0.06305810809135437,
0.0550110898911953,
0.04079006239771843,
-0.021348880603909492,
0.049149252474308014,
-0.0034316894598305225,
0.022909725084900856,
0.016163408756256104,
0.004389874637126923,
0.031216885894536972,
-0.014420466497540474,
-0.028979675844311714,
0.03645438328385353,
0.03912516310811043,
-0.04408517852425575,
-0.0481780581176281,
-0.07936026155948639,
-0.0023456020280718803,
0.03818865492939949,
-0.03850082680583,
-0.012824936769902706,
0.028199253603816032,
0.002332594944164157,
-0.006256384309381247
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.