123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671 |
- """
- Easy-to-use test-generating code:
- cases = '''
- exp 2.25
- log 2.25
- '''
- from mpmath import *
- mp.dps = 20
- for test in cases.splitlines():
- if not test:
- continue
- words = test.split()
- fname = words[0]
- args = words[1:]
- argstr = ", ".join(args)
- testline = "%s(%s)" % (fname, argstr)
- ans = str(eval(testline))
- print " assert ae(fp.%s, %s)" % (testline, ans)
- """
- from mpmath import fp
- def ae(x, y, tol=1e-12):
- if x == y:
- return True
- return abs(x-y) <= tol*abs(y)
- def test_conj():
- assert fp.conj(4) == 4
- assert fp.conj(3+4j) == 3-4j
- assert fp.fdot([1,2],[3,2+1j], conjugate=True) == 7-2j
- def test_fp_number_parts():
- assert ae(fp.arg(3), 0.0)
- assert ae(fp.arg(-3), 3.1415926535897932385)
- assert ae(fp.arg(3j), 1.5707963267948966192)
- assert ae(fp.arg(-3j), -1.5707963267948966192)
- assert ae(fp.arg(2+3j), 0.98279372324732906799)
- assert ae(fp.arg(-1-1j), -2.3561944901923449288)
- assert ae(fp.re(2.5), 2.5)
- assert ae(fp.re(2.5+3j), 2.5)
- assert ae(fp.im(2.5), 0.0)
- assert ae(fp.im(2.5+3j), 3.0)
- assert ae(fp.floor(2.5), 2.0)
- assert ae(fp.floor(2), 2.0)
- assert ae(fp.floor(2.0+0j), (2.0 + 0.0j))
- assert ae(fp.floor(-1.5-0.5j), (-2.0 - 1.0j))
- assert ae(fp.ceil(2.5), 3.0)
- assert ae(fp.ceil(2), 2.0)
- assert ae(fp.ceil(2.0+0j), (2.0 + 0.0j))
- assert ae(fp.ceil(-1.5-0.5j), (-1.0 + 0.0j))
- def test_fp_cospi_sinpi():
- assert ae(fp.sinpi(0), 0.0)
- assert ae(fp.sinpi(0.25), 0.7071067811865475244)
- assert ae(fp.sinpi(0.5), 1.0)
- assert ae(fp.sinpi(0.75), 0.7071067811865475244)
- assert ae(fp.sinpi(1), 0.0)
- assert ae(fp.sinpi(1.25), -0.7071067811865475244)
- assert ae(fp.sinpi(1.5), -1.0)
- assert ae(fp.sinpi(1.75), -0.7071067811865475244)
- assert ae(fp.sinpi(2), 0.0)
- assert ae(fp.sinpi(2.25), 0.7071067811865475244)
- assert ae(fp.sinpi(0+3j), (0.0 + 6195.8238636085899556j))
- assert ae(fp.sinpi(0.25+3j), (4381.1091260582448033 + 4381.1090689950686908j))
- assert ae(fp.sinpi(0.5+3j), (6195.8239443081075259 + 0.0j))
- assert ae(fp.sinpi(0.75+3j), (4381.1091260582448033 - 4381.1090689950686908j))
- assert ae(fp.sinpi(1+3j), (0.0 - 6195.8238636085899556j))
- assert ae(fp.sinpi(1.25+3j), (-4381.1091260582448033 - 4381.1090689950686908j))
- assert ae(fp.sinpi(1.5+3j), (-6195.8239443081075259 + 0.0j))
- assert ae(fp.sinpi(1.75+3j), (-4381.1091260582448033 + 4381.1090689950686908j))
- assert ae(fp.sinpi(2+3j), (0.0 + 6195.8238636085899556j))
- assert ae(fp.sinpi(2.25+3j), (4381.1091260582448033 + 4381.1090689950686908j))
- assert ae(fp.sinpi(-0.75), -0.7071067811865475244)
- assert ae(fp.sinpi(-1e-10), -3.1415926535897933529e-10)
- assert ae(fp.sinpi(1e-10), 3.1415926535897933529e-10)
- assert ae(fp.sinpi(1e-10+1e-10j), (3.141592653589793353e-10 + 3.1415926535897933528e-10j))
- assert ae(fp.sinpi(1e-10-1e-10j), (3.141592653589793353e-10 - 3.1415926535897933528e-10j))
- assert ae(fp.sinpi(-1e-10+1e-10j), (-3.141592653589793353e-10 + 3.1415926535897933528e-10j))
- assert ae(fp.sinpi(-1e-10-1e-10j), (-3.141592653589793353e-10 - 3.1415926535897933528e-10j))
- assert ae(fp.cospi(0), 1.0)
- assert ae(fp.cospi(0.25), 0.7071067811865475244)
- assert ae(fp.cospi(0.5), 0.0)
- assert ae(fp.cospi(0.75), -0.7071067811865475244)
- assert ae(fp.cospi(1), -1.0)
- assert ae(fp.cospi(1.25), -0.7071067811865475244)
- assert ae(fp.cospi(1.5), 0.0)
- assert ae(fp.cospi(1.75), 0.7071067811865475244)
- assert ae(fp.cospi(2), 1.0)
- assert ae(fp.cospi(2.25), 0.7071067811865475244)
- assert ae(fp.cospi(0+3j), (6195.8239443081075259 + 0.0j))
- assert ae(fp.cospi(0.25+3j), (4381.1091260582448033 - 4381.1090689950686908j))
- assert ae(fp.cospi(0.5+3j), (0.0 - 6195.8238636085899556j))
- assert ae(fp.cospi(0.75+3j), (-4381.1091260582448033 - 4381.1090689950686908j))
- assert ae(fp.cospi(1+3j), (-6195.8239443081075259 + 0.0j))
- assert ae(fp.cospi(1.25+3j), (-4381.1091260582448033 + 4381.1090689950686908j))
- assert ae(fp.cospi(1.5+3j), (0.0 + 6195.8238636085899556j))
- assert ae(fp.cospi(1.75+3j), (4381.1091260582448033 + 4381.1090689950686908j))
- assert ae(fp.cospi(2+3j), (6195.8239443081075259 + 0.0j))
- assert ae(fp.cospi(2.25+3j), (4381.1091260582448033 - 4381.1090689950686908j))
- assert ae(fp.cospi(-0.75), -0.7071067811865475244)
- assert ae(fp.sinpi(-0.7), -0.80901699437494750611)
- assert ae(fp.cospi(-0.7), -0.5877852522924730163)
- assert ae(fp.cospi(-3+2j), (-267.74676148374822225 + 0.0j))
- assert ae(fp.sinpi(-3+2j), (0.0 - 267.74489404101651426j))
- assert ae(fp.sinpi(-0.7+2j), (-216.6116802292079471 - 157.37650009392034693j))
- assert ae(fp.cospi(-0.7+2j), (-157.37759774921754565 + 216.61016943630197336j))
- def test_fp_expj():
- assert ae(fp.expj(0), (1.0 + 0.0j))
- assert ae(fp.expj(1), (0.5403023058681397174 + 0.84147098480789650665j))
- assert ae(fp.expj(2), (-0.416146836547142387 + 0.9092974268256816954j))
- assert ae(fp.expj(0.75), (0.73168886887382088631 + 0.68163876002333416673j))
- assert ae(fp.expj(2+3j), (-0.020718731002242879378 + 0.045271253156092975488j))
- assert ae(fp.expjpi(0), (1.0 + 0.0j))
- assert ae(fp.expjpi(1), (-1.0 + 0.0j))
- assert ae(fp.expjpi(2), (1.0 + 0.0j))
- assert ae(fp.expjpi(0.75), (-0.7071067811865475244 + 0.7071067811865475244j))
- assert ae(fp.expjpi(2+3j), (0.000080699517570304599239 + 0.0j))
- def test_fp_bernoulli():
- assert ae(fp.bernoulli(0), 1.0)
- assert ae(fp.bernoulli(1), -0.5)
- assert ae(fp.bernoulli(2), 0.16666666666666666667)
- assert ae(fp.bernoulli(10), 0.075757575757575757576)
- assert ae(fp.bernoulli(11), 0.0)
- def test_fp_gamma():
- assert ae(fp.gamma(1), 1.0)
- assert ae(fp.gamma(1.5), 0.88622692545275801365)
- assert ae(fp.gamma(10), 362880.0)
- assert ae(fp.gamma(-0.5), -3.5449077018110320546)
- assert ae(fp.gamma(-7.1), 0.0016478244570263333622)
- assert ae(fp.gamma(12.3), 83385367.899970000963)
- assert ae(fp.gamma(2+0j), (1.0 + 0.0j))
- assert ae(fp.gamma(-2.5+0j), (-0.94530872048294188123 + 0.0j))
- assert ae(fp.gamma(3+4j), (0.0052255384713692141947 - 0.17254707929430018772j))
- assert ae(fp.gamma(-3-4j), (0.00001460997305874775607 - 0.000020760733311509070396j))
- assert ae(fp.fac(0), 1.0)
- assert ae(fp.fac(1), 1.0)
- assert ae(fp.fac(20), 2432902008176640000.0)
- assert ae(fp.fac(-3.5), -0.94530872048294188123)
- assert ae(fp.fac(2+3j), (-0.44011340763700171113 - 0.06363724312631702183j))
- assert ae(fp.loggamma(1.0), 0.0)
- assert ae(fp.loggamma(2.0), 0.0)
- assert ae(fp.loggamma(3.0), 0.69314718055994530942)
- assert ae(fp.loggamma(7.25), 7.0521854507385394449)
- assert ae(fp.loggamma(1000.0), 5905.2204232091812118)
- assert ae(fp.loggamma(1e50), 1.1412925464970229298e+52)
- assert ae(fp.loggamma(1e25+1e25j), (5.6125802751733671621e+26 + 5.7696599078528568383e+26j))
- assert ae(fp.loggamma(3+4j), (-1.7566267846037841105 + 4.7426644380346579282j))
- assert ae(fp.loggamma(-0.5), (1.2655121234846453965 - 3.1415926535897932385j))
- assert ae(fp.loggamma(-1.25), (1.3664317612369762346 - 6.2831853071795864769j))
- assert ae(fp.loggamma(-2.75), (0.0044878975359557733115 - 9.4247779607693797154j))
- assert ae(fp.loggamma(-3.5), (-1.3090066849930420464 - 12.566370614359172954j))
- assert ae(fp.loggamma(-4.5), (-2.8130840817693161197 - 15.707963267948966192j))
- assert ae(fp.loggamma(-2+3j), (-6.776523813485657093 - 4.568791367260286402j))
- assert ae(fp.loggamma(-1000.3), (-5912.8440347785205041 - 3144.7342462433830317j))
- assert ae(fp.loggamma(-100-100j), (-632.35117666833135562 - 158.37641469650352462j))
- assert ae(fp.loggamma(1e-10), 23.025850929882735237)
- assert ae(fp.loggamma(-1e-10), (23.02585092999817837 - 3.1415926535897932385j))
- assert ae(fp.loggamma(1e-10j), (23.025850929940456804 - 1.5707963268526181857j))
- assert ae(fp.loggamma(1e-10j-1e-10), (22.679277339718205716 - 2.3561944902500664954j))
- def test_fp_psi():
- assert ae(fp.psi(0, 3.7), 1.1671535393615114409)
- assert ae(fp.psi(0, 0.5), -1.9635100260214234794)
- assert ae(fp.psi(0, 1), -0.57721566490153286061)
- assert ae(fp.psi(0, -2.5), 1.1031566406452431872)
- assert ae(fp.psi(0, 12.9), 2.5179671503279156347)
- assert ae(fp.psi(0, 100), 4.6001618527380874002)
- assert ae(fp.psi(0, 2500.3), 7.8239660143238547877)
- assert ae(fp.psi(0, 1e40), 92.103403719761827391)
- assert ae(fp.psi(0, 1e200), 460.51701859880913677)
- assert ae(fp.psi(0, 3.7+0j), (1.1671535393615114409 + 0.0j))
- assert ae(fp.psi(1, 3), 0.39493406684822643647)
- assert ae(fp.psi(3, 2+3j), (-0.05383196209159972116 + 0.0076890935247364805218j))
- assert ae(fp.psi(4, -0.5+1j), (1.2719531355492328195 - 18.211833410936276774j))
- assert ae(fp.harmonic(0), 0.0)
- assert ae(fp.harmonic(1), 1.0)
- assert ae(fp.harmonic(2), 1.5)
- assert ae(fp.harmonic(100), 5.1873775176396202608)
- assert ae(fp.harmonic(-2.5), 1.2803723055467760478)
- assert ae(fp.harmonic(2+3j), (1.9390425294578375875 + 0.87336044981834544043j))
- assert ae(fp.harmonic(-5-4j), (2.3725754822349437733 - 2.4160904444801621j))
- def test_fp_zeta():
- assert ae(fp.zeta(1e100), 1.0)
- assert ae(fp.zeta(3), 1.2020569031595942854)
- assert ae(fp.zeta(2+0j), (1.6449340668482264365 + 0.0j))
- assert ae(fp.zeta(0.93), -13.713619351638164784)
- assert ae(fp.zeta(1.74), 1.9796863545771774095)
- assert ae(fp.zeta(0.0), -0.5)
- assert ae(fp.zeta(-1.0), -0.083333333333333333333)
- assert ae(fp.zeta(-2.0), 0.0)
- assert ae(fp.zeta(-3.0), 0.0083333333333333333333)
- assert ae(fp.zeta(-500.0), 0.0)
- assert ae(fp.zeta(-7.4), 0.0036537321227995882447)
- assert ae(fp.zeta(2.1), 1.5602165335033620158)
- assert ae(fp.zeta(26.9), 1.0000000079854809935)
- assert ae(fp.zeta(26), 1.0000000149015548284)
- assert ae(fp.zeta(27), 1.0000000074507117898)
- assert ae(fp.zeta(28), 1.0000000037253340248)
- assert ae(fp.zeta(27.1), 1.000000006951755045)
- assert ae(fp.zeta(32.7), 1.0000000001433243232)
- assert ae(fp.zeta(100), 1.0)
- assert ae(fp.altzeta(3.5), 0.92755357777394803511)
- assert ae(fp.altzeta(1), 0.69314718055994530942)
- assert ae(fp.altzeta(2), 0.82246703342411321824)
- assert ae(fp.altzeta(0), 0.5)
- assert ae(fp.zeta(-2+3j, 1), (0.13297115587929864827 + 0.12305330040458776494j))
- assert ae(fp.zeta(-2+3j, 5), (18.384866151867576927 - 11.377015110597711009j))
- assert ae(fp.zeta(1.0000000001), 9999999173.1735741337)
- assert ae(fp.zeta(0.9999999999), -9999999172.0191428039)
- assert ae(fp.zeta(1+0.000000001j), (0.57721566490153286061 - 999999999.99999993765j))
- assert ae(fp.primezeta(2.5+4j), (-0.16922458243438033385 - 0.010847965298387727811j))
- assert ae(fp.primezeta(4), 0.076993139764246844943)
- assert ae(fp.riemannr(3.7), 2.3034079839110855717)
- assert ae(fp.riemannr(8), 3.9011860449341499474)
- assert ae(fp.riemannr(3+4j), (2.2369653314259991796 + 1.6339943856990281694j))
- def test_fp_hyp2f1():
- assert ae(fp.hyp2f1(1, (3,2), 3.25, 5.0), (-0.46600275923108143059 - 0.74393667908854842325j))
- assert ae(fp.hyp2f1(1+1j, (3,2), 3.25, 5.0), (-5.9208875603806515987 - 2.3813557707889590686j))
- assert ae(fp.hyp2f1(1+1j, (3,2), 3.25, 2+3j), (0.17174552030925080445 + 0.19589781970539389999j))
- def test_fp_erf():
- assert fp.erf(2) == fp.erf(2.0) == fp.erf(2.0+0.0j)
- assert fp.erf(fp.inf) == 1.0
- assert fp.erf(fp.ninf) == -1.0
- assert ae(fp.erf(0), 0.0)
- assert ae(fp.erf(-0), -0.0)
- assert ae(fp.erf(0.3), 0.32862675945912741619)
- assert ae(fp.erf(-0.3), -0.32862675945912741619)
- assert ae(fp.erf(0.9), 0.79690821242283213966)
- assert ae(fp.erf(-0.9), -0.79690821242283213966)
- assert ae(fp.erf(1.0), 0.84270079294971486934)
- assert ae(fp.erf(-1.0), -0.84270079294971486934)
- assert ae(fp.erf(1.1), 0.88020506957408172966)
- assert ae(fp.erf(-1.1), -0.88020506957408172966)
- assert ae(fp.erf(8.5), 1.0)
- assert ae(fp.erf(-8.5), -1.0)
- assert ae(fp.erf(9.1), 1.0)
- assert ae(fp.erf(-9.1), -1.0)
- assert ae(fp.erf(20.0), 1.0)
- assert ae(fp.erf(-20.0), -1.0)
- assert ae(fp.erf(10000.0), 1.0)
- assert ae(fp.erf(-10000.0), -1.0)
- assert ae(fp.erf(1e+50), 1.0)
- assert ae(fp.erf(-1e+50), -1.0)
- assert ae(fp.erf(1j), 1.650425758797542876j)
- assert ae(fp.erf(-1j), -1.650425758797542876j)
- assert ae(fp.erf((2+3j)), (-20.829461427614568389 + 8.6873182714701631444j))
- assert ae(fp.erf(-(2+3j)), -(-20.829461427614568389 + 8.6873182714701631444j))
- assert ae(fp.erf((8+9j)), (-1072004.2525062051158 + 364149.91954310255423j))
- assert ae(fp.erf(-(8+9j)), -(-1072004.2525062051158 + 364149.91954310255423j))
- assert fp.erfc(fp.inf) == 0.0
- assert fp.erfc(fp.ninf) == 2.0
- assert fp.erfc(0) == 1
- assert fp.erfc(-0.0) == 1
- assert fp.erfc(0+0j) == 1
- assert ae(fp.erfc(0.3), 0.67137324054087258381)
- assert ae(fp.erfc(-0.3), 1.3286267594591274162)
- assert ae(fp.erfc(0.9), 0.20309178757716786034)
- assert ae(fp.erfc(-0.9), 1.7969082124228321397)
- assert ae(fp.erfc(1.0), 0.15729920705028513066)
- assert ae(fp.erfc(-1.0), 1.8427007929497148693)
- assert ae(fp.erfc(1.1), 0.11979493042591827034)
- assert ae(fp.erfc(-1.1), 1.8802050695740817297)
- assert ae(fp.erfc(8.5), 2.7623240713337714461e-33)
- assert ae(fp.erfc(-8.5), 2.0)
- assert ae(fp.erfc(9.1), 6.6969004279886077452e-38)
- assert ae(fp.erfc(-9.1), 2.0)
- assert ae(fp.erfc(20.0), 5.3958656116079009289e-176)
- assert ae(fp.erfc(-20.0), 2.0)
- assert ae(fp.erfc(10000.0), 0.0)
- assert ae(fp.erfc(-10000.0), 2.0)
- assert ae(fp.erfc(1e+50), 0.0)
- assert ae(fp.erfc(-1e+50), 2.0)
- assert ae(fp.erfc(1j), (1.0 - 1.650425758797542876j))
- assert ae(fp.erfc(-1j), (1.0 + 1.650425758797542876j))
- assert ae(fp.erfc((2+3j)), (21.829461427614568389 - 8.6873182714701631444j), 1e-13)
- assert ae(fp.erfc(-(2+3j)), (-19.829461427614568389 + 8.6873182714701631444j), 1e-13)
- assert ae(fp.erfc((8+9j)), (1072005.2525062051158 - 364149.91954310255423j))
- assert ae(fp.erfc(-(8+9j)), (-1072003.2525062051158 + 364149.91954310255423j))
- assert ae(fp.erfc(20+0j), (5.3958656116079009289e-176 + 0.0j))
- def test_fp_lambertw():
- assert ae(fp.lambertw(0.0), 0.0)
- assert ae(fp.lambertw(1.0), 0.567143290409783873)
- assert ae(fp.lambertw(7.5), 1.5662309537823875394)
- assert ae(fp.lambertw(-0.25), -0.35740295618138890307)
- assert ae(fp.lambertw(-10.0), (1.3699809685212708156 + 2.140194527074713196j))
- assert ae(fp.lambertw(0+0j), (0.0 + 0.0j))
- assert ae(fp.lambertw(4+0j), (1.2021678731970429392 + 0.0j))
- assert ae(fp.lambertw(1000.5), 5.2500227450408980127)
- assert ae(fp.lambertw(1e100), 224.84310644511850156)
- assert ae(fp.lambertw(-1000.0), (5.1501630246362515223 + 2.6641981432905204596j))
- assert ae(fp.lambertw(1e-10), 9.9999999990000003645e-11)
- assert ae(fp.lambertw(1e-10j), (1.0000000000000000728e-20 + 1.0000000000000000364e-10j))
- assert ae(fp.lambertw(3+4j), (1.2815618061237758782 + 0.53309522202097107131j))
- assert ae(fp.lambertw(-3-4j), (1.0750730665692549276 - 1.3251023817343588823j))
- assert ae(fp.lambertw(10000+1000j), (7.2361526563371602186 + 0.087567810943839352034j))
- assert ae(fp.lambertw(0.0, -1), -fp.inf)
- assert ae(fp.lambertw(1.0, -1), (-1.5339133197935745079 - 4.3751851530618983855j))
- assert ae(fp.lambertw(7.5, -1), (0.44125668415098614999 - 4.8039842008452390179j))
- assert ae(fp.lambertw(-0.25, -1), -2.1532923641103496492)
- assert ae(fp.lambertw(-10.0, -1), (1.3699809685212708156 - 2.140194527074713196j))
- assert ae(fp.lambertw(0+0j, -1), -fp.inf)
- assert ae(fp.lambertw(4+0j, -1), (-0.15730793189620765317 - 4.6787800704666656212j))
- assert ae(fp.lambertw(1000.5, -1), (4.9153765415404024736 - 5.4465682700815159569j))
- assert ae(fp.lambertw(1e100, -1), (224.84272130101601052 - 6.2553713838167244141j))
- assert ae(fp.lambertw(-1000.0, -1), (5.1501630246362515223 - 2.6641981432905204596j))
- assert ae(fp.lambertw(1e-10, -1), (-26.303186778379041521 - 3.2650939117038283975j))
- assert ae(fp.lambertw(1e-10j, -1), (-26.297238779529035028 - 1.6328071613455765135j))
- assert ae(fp.lambertw(3+4j, -1), (0.25856740686699741676 - 3.8521166861614355895j))
- assert ae(fp.lambertw(-3-4j, -1), (-0.32028750204310768396 - 6.8801677192091972343j))
- assert ae(fp.lambertw(10000+1000j, -1), (7.0255308742285435567 - 5.5177506835734067601j))
- assert ae(fp.lambertw(0.0, 2), -fp.inf)
- assert ae(fp.lambertw(1.0, 2), (-2.4015851048680028842 + 10.776299516115070898j))
- assert ae(fp.lambertw(7.5, 2), (-0.38003357962843791529 + 10.960916473368746184j))
- assert ae(fp.lambertw(-0.25, 2), (-4.0558735269061511898 + 13.852334658567271386j))
- assert ae(fp.lambertw(-10.0, 2), (-0.34479123764318858696 + 14.112740596763592363j))
- assert ae(fp.lambertw(0+0j, 2), -fp.inf)
- assert ae(fp.lambertw(4+0j, 2), (-1.0070343323804262788 + 10.903476551861683082j))
- assert ae(fp.lambertw(1000.5, 2), (4.4076185165459395295 + 11.365524591091402177j))
- assert ae(fp.lambertw(1e100, 2), (224.84156762724875878 + 12.510785262632255672j))
- assert ae(fp.lambertw(-1000.0, 2), (4.1984245610246530756 + 14.420478573754313845j))
- assert ae(fp.lambertw(1e-10, 2), (-26.362258095445866488 + 9.7800247407031482519j))
- assert ae(fp.lambertw(1e-10j, 2), (-26.384250801683084252 + 11.403535950607739763j))
- assert ae(fp.lambertw(3+4j, 2), (-0.86554679943333993562 + 11.849956798331992027j))
- assert ae(fp.lambertw(-3-4j, 2), (-0.55792273874679112639 + 8.7173627024159324811j))
- assert ae(fp.lambertw(10000+1000j, 2), (6.6223802254585662734 + 11.61348646825020766j))
- def test_fp_stress_ei_e1():
- # Can be tightened on recent Pythons with more accurate math/cmath
- ATOL = 1e-13
- PTOL = 1e-12
- v = fp.e1(1.1641532182693481445e-10)
- assert ae(v, 22.296641293693077672, tol=ATOL)
- assert type(v) is float
- v = fp.e1(0.25)
- assert ae(v, 1.0442826344437381945, tol=ATOL)
- assert type(v) is float
- v = fp.e1(1.0)
- assert ae(v, 0.21938393439552027368, tol=ATOL)
- assert type(v) is float
- v = fp.e1(2.0)
- assert ae(v, 0.048900510708061119567, tol=ATOL)
- assert type(v) is float
- v = fp.e1(5.0)
- assert ae(v, 0.0011482955912753257973, tol=ATOL)
- assert type(v) is float
- v = fp.e1(20.0)
- assert ae(v, 9.8355252906498816904e-11, tol=ATOL)
- assert type(v) is float
- v = fp.e1(30.0)
- assert ae(v, 3.0215520106888125448e-15, tol=ATOL)
- assert type(v) is float
- v = fp.e1(40.0)
- assert ae(v, 1.0367732614516569722e-19, tol=ATOL)
- assert type(v) is float
- v = fp.e1(50.0)
- assert ae(v, 3.7832640295504590187e-24, tol=ATOL)
- assert type(v) is float
- v = fp.e1(80.0)
- assert ae(v, 2.2285432586884729112e-37, tol=ATOL)
- assert type(v) is float
- v = fp.e1((1.1641532182693481445e-10 + 0.0j))
- assert ae(v, (22.296641293693077672 + 0.0j), tol=ATOL)
- assert ae(v.real, 22.296641293693077672, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((0.25 + 0.0j))
- assert ae(v, (1.0442826344437381945 + 0.0j), tol=ATOL)
- assert ae(v.real, 1.0442826344437381945, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((1.0 + 0.0j))
- assert ae(v, (0.21938393439552027368 + 0.0j), tol=ATOL)
- assert ae(v.real, 0.21938393439552027368, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((2.0 + 0.0j))
- assert ae(v, (0.048900510708061119567 + 0.0j), tol=ATOL)
- assert ae(v.real, 0.048900510708061119567, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((5.0 + 0.0j))
- assert ae(v, (0.0011482955912753257973 + 0.0j), tol=ATOL)
- assert ae(v.real, 0.0011482955912753257973, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((20.0 + 0.0j))
- assert ae(v, (9.8355252906498816904e-11 + 0.0j), tol=ATOL)
- assert ae(v.real, 9.8355252906498816904e-11, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((30.0 + 0.0j))
- assert ae(v, (3.0215520106888125448e-15 + 0.0j), tol=ATOL)
- assert ae(v.real, 3.0215520106888125448e-15, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((40.0 + 0.0j))
- assert ae(v, (1.0367732614516569722e-19 + 0.0j), tol=ATOL)
- assert ae(v.real, 1.0367732614516569722e-19, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((50.0 + 0.0j))
- assert ae(v, (3.7832640295504590187e-24 + 0.0j), tol=ATOL)
- assert ae(v.real, 3.7832640295504590187e-24, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((80.0 + 0.0j))
- assert ae(v, (2.2285432586884729112e-37 + 0.0j), tol=ATOL)
- assert ae(v.real, 2.2285432586884729112e-37, tol=PTOL)
- assert v.imag == 0
- v = fp.e1((4.6566128730773925781e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (20.880034622014215597 - 0.24497866301044883237j), tol=ATOL)
- assert ae(v.real, 20.880034622014215597, tol=PTOL)
- assert ae(v.imag, -0.24497866301044883237, tol=PTOL)
- v = fp.e1((1.0 + 0.25j))
- assert ae(v, (0.19731063945004229095 - 0.087366045774299963672j), tol=ATOL)
- assert ae(v.real, 0.19731063945004229095, tol=PTOL)
- assert ae(v.imag, -0.087366045774299963672, tol=PTOL)
- v = fp.e1((4.0 + 1.0j))
- assert ae(v, (0.0013106173980145506944 - 0.0034542480199350626699j), tol=ATOL)
- assert ae(v.real, 0.0013106173980145506944, tol=PTOL)
- assert ae(v.imag, -0.0034542480199350626699, tol=PTOL)
- v = fp.e1((8.0 + 2.0j))
- assert ae(v, (-0.000022278049065270225945 - 0.000029191940456521555288j), tol=ATOL)
- assert ae(v.real, -0.000022278049065270225945, tol=PTOL)
- assert ae(v.imag, -0.000029191940456521555288, tol=PTOL)
- v = fp.e1((20.0 + 5.0j))
- assert ae(v, (4.7711374515765346894e-11 + 8.2902652405126947359e-11j), tol=ATOL)
- assert ae(v.real, 4.7711374515765346894e-11, tol=PTOL)
- assert ae(v.imag, 8.2902652405126947359e-11, tol=PTOL)
- v = fp.e1((80.0 + 20.0j))
- assert ae(v, (3.8353473865788235787e-38 - 2.129247592349605139e-37j), tol=ATOL)
- assert ae(v.real, 3.8353473865788235787e-38, tol=PTOL)
- assert ae(v.imag, -2.129247592349605139e-37, tol=PTOL)
- v = fp.e1((120.0 + 30.0j))
- assert ae(v, (2.3836002337480334716e-55 + 5.6704043587126198306e-55j), tol=ATOL)
- assert ae(v.real, 2.3836002337480334716e-55, tol=PTOL)
- assert ae(v.imag, 5.6704043587126198306e-55, tol=PTOL)
- v = fp.e1((160.0 + 40.0j))
- assert ae(v, (-1.6238022898654510661e-72 - 1.104172355572287367e-72j), tol=ATOL)
- assert ae(v.real, -1.6238022898654510661e-72, tol=PTOL)
- assert ae(v.imag, -1.104172355572287367e-72, tol=PTOL)
- v = fp.e1((200.0 + 50.0j))
- assert ae(v, (6.6800061461666228487e-90 + 1.4473816083541016115e-91j), tol=ATOL)
- assert ae(v.real, 6.6800061461666228487e-90, tol=PTOL)
- assert ae(v.imag, 1.4473816083541016115e-91, tol=PTOL)
- v = fp.e1((320.0 + 80.0j))
- assert ae(v, (4.2737871527778786157e-143 + 3.1789935525785660314e-142j), tol=ATOL)
- assert ae(v.real, 4.2737871527778786157e-143, tol=PTOL)
- assert ae(v.imag, 3.1789935525785660314e-142, tol=PTOL)
- v = fp.e1((1.1641532182693481445e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (21.950067703413105017 - 0.7853981632810329878j), tol=ATOL)
- assert ae(v.real, 21.950067703413105017, tol=PTOL)
- assert ae(v.imag, -0.7853981632810329878, tol=PTOL)
- v = fp.e1((0.25 + 0.25j))
- assert ae(v, (0.71092525792923287894 - 0.56491812441304194711j), tol=ATOL)
- assert ae(v.real, 0.71092525792923287894, tol=PTOL)
- assert ae(v.imag, -0.56491812441304194711, tol=PTOL)
- v = fp.e1((1.0 + 1.0j))
- assert ae(v, (0.00028162445198141832551 - 0.17932453503935894015j), tol=ATOL)
- assert ae(v.real, 0.00028162445198141832551, tol=PTOL)
- assert ae(v.imag, -0.17932453503935894015, tol=PTOL)
- v = fp.e1((2.0 + 2.0j))
- assert ae(v, (-0.033767089606562004246 - 0.018599414169750541925j), tol=ATOL)
- assert ae(v.real, -0.033767089606562004246, tol=PTOL)
- assert ae(v.imag, -0.018599414169750541925, tol=PTOL)
- v = fp.e1((5.0 + 5.0j))
- assert ae(v, (0.0007266506660356393891 + 0.00047102780163522245054j), tol=ATOL)
- assert ae(v.real, 0.0007266506660356393891, tol=PTOL)
- assert ae(v.imag, 0.00047102780163522245054, tol=PTOL)
- v = fp.e1((20.0 + 20.0j))
- assert ae(v, (-2.3824537449367396579e-11 - 6.6969873156525615158e-11j), tol=ATOL)
- assert ae(v.real, -2.3824537449367396579e-11, tol=PTOL)
- assert ae(v.imag, -6.6969873156525615158e-11, tol=PTOL)
- v = fp.e1((30.0 + 30.0j))
- assert ae(v, (1.7316045841744061617e-15 + 1.3065678019487308689e-15j), tol=ATOL)
- assert ae(v.real, 1.7316045841744061617e-15, tol=PTOL)
- assert ae(v.imag, 1.3065678019487308689e-15, tol=PTOL)
- v = fp.e1((40.0 + 40.0j))
- assert ae(v, (-7.4001043002899232182e-20 - 4.991847855336816304e-21j), tol=ATOL)
- assert ae(v.real, -7.4001043002899232182e-20, tol=PTOL)
- assert ae(v.imag, -4.991847855336816304e-21, tol=PTOL)
- v = fp.e1((50.0 + 50.0j))
- assert ae(v, (2.3566128324644641219e-24 - 1.3188326726201614778e-24j), tol=ATOL)
- assert ae(v.real, 2.3566128324644641219e-24, tol=PTOL)
- assert ae(v.imag, -1.3188326726201614778e-24, tol=PTOL)
- v = fp.e1((80.0 + 80.0j))
- assert ae(v, (9.8279750572186526673e-38 + 1.243952841288868831e-37j), tol=ATOL)
- assert ae(v.real, 9.8279750572186526673e-38, tol=PTOL)
- assert ae(v.imag, 1.243952841288868831e-37, tol=PTOL)
- v = fp.e1((1.1641532182693481445e-10 + 4.6566128730773925781e-10j))
- assert ae(v, (20.880034621664969632 - 1.3258176632023711778j), tol=ATOL)
- assert ae(v.real, 20.880034621664969632, tol=PTOL)
- assert ae(v.imag, -1.3258176632023711778, tol=PTOL)
- v = fp.e1((0.25 + 1.0j))
- assert ae(v, (-0.16868306393667788761 - 0.4858011885947426971j), tol=ATOL)
- assert ae(v.real, -0.16868306393667788761, tol=PTOL)
- assert ae(v.imag, -0.4858011885947426971, tol=PTOL)
- v = fp.e1((1.0 + 4.0j))
- assert ae(v, (0.03373591813926547318 + 0.073523452241083821877j), tol=ATOL)
- assert ae(v.real, 0.03373591813926547318, tol=PTOL)
- assert ae(v.imag, 0.073523452241083821877, tol=PTOL)
- v = fp.e1((2.0 + 8.0j))
- assert ae(v, (-0.015392833434733785143 - 0.0031747121557605415914j), tol=ATOL)
- assert ae(v.real, -0.015392833434733785143, tol=PTOL)
- assert ae(v.imag, -0.0031747121557605415914, tol=PTOL)
- v = fp.e1((5.0 + 20.0j))
- assert ae(v, (-0.00024419662286542966525 - 0.00021008322966152755674j), tol=ATOL)
- assert ae(v.real, -0.00024419662286542966525, tol=PTOL)
- assert ae(v.imag, -0.00021008322966152755674, tol=PTOL)
- v = fp.e1((20.0 + 80.0j))
- assert ae(v, (2.3255552781051330088e-11 + 8.9463918891349438007e-12j), tol=ATOL)
- assert ae(v.real, 2.3255552781051330088e-11, tol=PTOL)
- assert ae(v.imag, 8.9463918891349438007e-12, tol=PTOL)
- v = fp.e1((30.0 + 120.0j))
- assert ae(v, (-2.7068919097124652332e-16 - 7.0477762411705130239e-16j), tol=ATOL)
- assert ae(v.real, -2.7068919097124652332e-16, tol=PTOL)
- assert ae(v.imag, -7.0477762411705130239e-16, tol=PTOL)
- v = fp.e1((40.0 + 160.0j))
- assert ae(v, (-1.1695597827678024687e-20 + 2.2907401455645736661e-20j), tol=ATOL)
- assert ae(v.real, -1.1695597827678024687e-20, tol=PTOL)
- assert ae(v.imag, 2.2907401455645736661e-20, tol=PTOL)
- v = fp.e1((50.0 + 200.0j))
- assert ae(v, (9.0323746914410162531e-25 - 2.3950601790033530935e-25j), tol=ATOL)
- assert ae(v.real, 9.0323746914410162531e-25, tol=PTOL)
- assert ae(v.imag, -2.3950601790033530935e-25, tol=PTOL)
- v = fp.e1((80.0 + 320.0j))
- assert ae(v, (3.4819106748728063576e-38 - 4.215653005615772724e-38j), tol=ATOL)
- assert ae(v.real, 3.4819106748728063576e-38, tol=PTOL)
- assert ae(v.imag, -4.215653005615772724e-38, tol=PTOL)
- v = fp.e1((0.0 + 1.1641532182693481445e-10j))
- assert ae(v, (22.29664129357666235 - 1.5707963266784812974j), tol=ATOL)
- assert ae(v.real, 22.29664129357666235, tol=PTOL)
- assert ae(v.imag, -1.5707963266784812974, tol=PTOL)
- v = fp.e1((0.0 + 0.25j))
- assert ae(v, (0.82466306258094565309 - 1.3216627564751394551j), tol=ATOL)
- assert ae(v.real, 0.82466306258094565309, tol=PTOL)
- assert ae(v.imag, -1.3216627564751394551, tol=PTOL)
- v = fp.e1((0.0 + 1.0j))
- assert ae(v, (-0.33740392290096813466 - 0.62471325642771360429j), tol=ATOL)
- assert ae(v.real, -0.33740392290096813466, tol=PTOL)
- assert ae(v.imag, -0.62471325642771360429, tol=PTOL)
- v = fp.e1((0.0 + 2.0j))
- assert ae(v, (-0.4229808287748649957 + 0.034616650007798229345j), tol=ATOL)
- assert ae(v.real, -0.4229808287748649957, tol=PTOL)
- assert ae(v.imag, 0.034616650007798229345, tol=PTOL)
- v = fp.e1((0.0 + 5.0j))
- assert ae(v, (0.19002974965664387862 - 0.020865081850222481957j), tol=ATOL)
- assert ae(v.real, 0.19002974965664387862, tol=PTOL)
- assert ae(v.imag, -0.020865081850222481957, tol=PTOL)
- v = fp.e1((0.0 + 20.0j))
- assert ae(v, (-0.04441982084535331654 - 0.022554625751456779068j), tol=ATOL)
- assert ae(v.real, -0.04441982084535331654, tol=PTOL)
- assert ae(v.imag, -0.022554625751456779068, tol=PTOL)
- v = fp.e1((0.0 + 30.0j))
- assert ae(v, (0.033032417282071143779 - 0.0040397867645455082476j), tol=ATOL)
- assert ae(v.real, 0.033032417282071143779, tol=PTOL)
- assert ae(v.imag, -0.0040397867645455082476, tol=PTOL)
- v = fp.e1((0.0 + 40.0j))
- assert ae(v, (-0.019020007896208766962 + 0.016188792559887887544j), tol=ATOL)
- assert ae(v.real, -0.019020007896208766962, tol=PTOL)
- assert ae(v.imag, 0.016188792559887887544, tol=PTOL)
- v = fp.e1((0.0 + 50.0j))
- assert ae(v, (0.0056283863241163054402 - 0.019179254308960724503j), tol=ATOL)
- assert ae(v.real, 0.0056283863241163054402, tol=PTOL)
- assert ae(v.imag, -0.019179254308960724503, tol=PTOL)
- v = fp.e1((0.0 + 80.0j))
- assert ae(v, (0.012402501155070958192 + 0.0015345601175906961199j), tol=ATOL)
- assert ae(v.real, 0.012402501155070958192, tol=PTOL)
- assert ae(v.imag, 0.0015345601175906961199, tol=PTOL)
- v = fp.e1((-1.1641532182693481445e-10 + 4.6566128730773925781e-10j))
- assert ae(v, (20.880034621432138988 - 1.8157749894560994861j), tol=ATOL)
- assert ae(v.real, 20.880034621432138988, tol=PTOL)
- assert ae(v.imag, -1.8157749894560994861, tol=PTOL)
- v = fp.e1((-0.25 + 1.0j))
- assert ae(v, (-0.59066621214766308594 - 0.74474454765205036972j), tol=ATOL)
- assert ae(v.real, -0.59066621214766308594, tol=PTOL)
- assert ae(v.imag, -0.74474454765205036972, tol=PTOL)
- v = fp.e1((-1.0 + 4.0j))
- assert ae(v, (0.49739047283060471093 + 0.41543605404038863174j), tol=ATOL)
- assert ae(v.real, 0.49739047283060471093, tol=PTOL)
- assert ae(v.imag, 0.41543605404038863174, tol=PTOL)
- v = fp.e1((-2.0 + 8.0j))
- assert ae(v, (-0.8705211147733730969 + 0.24099328498605539667j), tol=ATOL)
- assert ae(v.real, -0.8705211147733730969, tol=PTOL)
- assert ae(v.imag, 0.24099328498605539667, tol=PTOL)
- v = fp.e1((-5.0 + 20.0j))
- assert ae(v, (-7.0789514293925893007 - 1.6102177171960790536j), tol=ATOL)
- assert ae(v.real, -7.0789514293925893007, tol=PTOL)
- assert ae(v.imag, -1.6102177171960790536, tol=PTOL)
- v = fp.e1((-20.0 + 80.0j))
- assert ae(v, (5855431.4907298084434 - 720920.93315409165707j), tol=ATOL)
- assert ae(v.real, 5855431.4907298084434, tol=PTOL)
- assert ae(v.imag, -720920.93315409165707, tol=PTOL)
- v = fp.e1((-30.0 + 120.0j))
- assert ae(v, (-65402491644.703470747 - 56697658399.657460294j), tol=ATOL)
- assert ae(v.real, -65402491644.703470747, tol=PTOL)
- assert ae(v.imag, -56697658399.657460294, tol=PTOL)
- v = fp.e1((-40.0 + 160.0j))
- assert ae(v, (25504929379604.776769 + 1429035198630573.2463j), tol=ATOL)
- assert ae(v.real, 25504929379604.776769, tol=PTOL)
- assert ae(v.imag, 1429035198630573.2463, tol=PTOL)
- v = fp.e1((-50.0 + 200.0j))
- assert ae(v, (18437746526988116954.0 - 17146362239046152345.0j), tol=ATOL)
- assert ae(v.real, 18437746526988116954.0, tol=PTOL)
- assert ae(v.imag, -17146362239046152345.0, tol=PTOL)
- v = fp.e1((-80.0 + 320.0j))
- assert ae(v, (3.3464697299634526706e+31 - 1.6473152633843023919e+32j), tol=ATOL)
- assert ae(v.real, 3.3464697299634526706e+31, tol=PTOL)
- assert ae(v.imag, -1.6473152633843023919e+32, tol=PTOL)
- v = fp.e1((-4.6566128730773925781e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (20.880034621082893023 - 2.8966139903465137624j), tol=ATOL)
- assert ae(v.real, 20.880034621082893023, tol=PTOL)
- assert ae(v.imag, -2.8966139903465137624, tol=PTOL)
- v = fp.e1((-1.0 + 0.25j))
- assert ae(v, (-1.8942716983721074932 - 2.4689102827070540799j), tol=ATOL)
- assert ae(v.real, -1.8942716983721074932, tol=PTOL)
- assert ae(v.imag, -2.4689102827070540799, tol=PTOL)
- v = fp.e1((-4.0 + 1.0j))
- assert ae(v, (-14.806699492675420438 + 9.1384225230837893776j), tol=ATOL)
- assert ae(v.real, -14.806699492675420438, tol=PTOL)
- assert ae(v.imag, 9.1384225230837893776, tol=PTOL)
- v = fp.e1((-8.0 + 2.0j))
- assert ae(v, (54.633252667426386294 + 413.20318163814670688j), tol=ATOL)
- assert ae(v.real, 54.633252667426386294, tol=PTOL)
- assert ae(v.imag, 413.20318163814670688, tol=PTOL)
- v = fp.e1((-20.0 + 5.0j))
- assert ae(v, (-711836.97165402624643 - 24745250.939695900956j), tol=ATOL)
- assert ae(v.real, -711836.97165402624643, tol=PTOL)
- assert ae(v.imag, -24745250.939695900956, tol=PTOL)
- v = fp.e1((-80.0 + 20.0j))
- assert ae(v, (-4.2139911108612653091e+32 + 5.3367124741918251637e+32j), tol=ATOL)
- assert ae(v.real, -4.2139911108612653091e+32, tol=PTOL)
- assert ae(v.imag, 5.3367124741918251637e+32, tol=PTOL)
- v = fp.e1((-120.0 + 30.0j))
- assert ae(v, (9.7760616203707508892e+48 - 1.058257682317195792e+50j), tol=ATOL)
- assert ae(v.real, 9.7760616203707508892e+48, tol=PTOL)
- assert ae(v.imag, -1.058257682317195792e+50, tol=PTOL)
- v = fp.e1((-160.0 + 40.0j))
- assert ae(v, (8.7065541466623638861e+66 + 1.6577106725141739889e+67j), tol=ATOL)
- assert ae(v.real, 8.7065541466623638861e+66, tol=PTOL)
- assert ae(v.imag, 1.6577106725141739889e+67, tol=PTOL)
- v = fp.e1((-200.0 + 50.0j))
- assert ae(v, (-3.070744996327018106e+84 - 1.7243244846769415903e+84j), tol=ATOL)
- assert ae(v.real, -3.070744996327018106e+84, tol=PTOL)
- assert ae(v.imag, -1.7243244846769415903e+84, tol=PTOL)
- v = fp.e1((-320.0 + 80.0j))
- assert ae(v, (9.9960598637998647276e+135 - 2.6855081527595608863e+136j), tol=ATOL)
- assert ae(v.real, 9.9960598637998647276e+135, tol=PTOL)
- assert ae(v.imag, -2.6855081527595608863e+136, tol=PTOL)
- v = fp.e1(-1.1641532182693481445e-10)
- assert ae(v, (22.296641293460247028 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 22.296641293460247028, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-0.25)
- assert ae(v, (0.54254326466191372953 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 0.54254326466191372953, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-1.0)
- assert ae(v, (-1.8951178163559367555 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -1.8951178163559367555, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-2.0)
- assert ae(v, (-4.9542343560018901634 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -4.9542343560018901634, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-5.0)
- assert ae(v, (-40.185275355803177455 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -40.185275355803177455, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-20.0)
- assert ae(v, (-25615652.66405658882 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -25615652.66405658882, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-30.0)
- assert ae(v, (-368973209407.27419706 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -368973209407.27419706, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-40.0)
- assert ae(v, (-6039718263611241.5784 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -6039718263611241.5784, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-50.0)
- assert ae(v, (-1.0585636897131690963e+20 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -1.0585636897131690963e+20, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1(-80.0)
- assert ae(v, (-7.0146000049047999696e+32 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -7.0146000049047999696e+32, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-1.1641532182693481445e-10 + 0.0j))
- assert ae(v, (22.296641293460247028 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 22.296641293460247028, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-0.25 + 0.0j))
- assert ae(v, (0.54254326466191372953 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 0.54254326466191372953, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-1.0 + 0.0j))
- assert ae(v, (-1.8951178163559367555 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -1.8951178163559367555, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-2.0 + 0.0j))
- assert ae(v, (-4.9542343560018901634 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -4.9542343560018901634, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-5.0 + 0.0j))
- assert ae(v, (-40.185275355803177455 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -40.185275355803177455, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-20.0 + 0.0j))
- assert ae(v, (-25615652.66405658882 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -25615652.66405658882, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-30.0 + 0.0j))
- assert ae(v, (-368973209407.27419706 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -368973209407.27419706, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-40.0 + 0.0j))
- assert ae(v, (-6039718263611241.5784 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -6039718263611241.5784, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-50.0 + 0.0j))
- assert ae(v, (-1.0585636897131690963e+20 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -1.0585636897131690963e+20, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-80.0 + 0.0j))
- assert ae(v, (-7.0146000049047999696e+32 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -7.0146000049047999696e+32, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.e1((-4.6566128730773925781e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (20.880034621082893023 + 2.8966139903465137624j), tol=ATOL)
- assert ae(v.real, 20.880034621082893023, tol=PTOL)
- assert ae(v.imag, 2.8966139903465137624, tol=PTOL)
- v = fp.e1((-1.0 - 0.25j))
- assert ae(v, (-1.8942716983721074932 + 2.4689102827070540799j), tol=ATOL)
- assert ae(v.real, -1.8942716983721074932, tol=PTOL)
- assert ae(v.imag, 2.4689102827070540799, tol=PTOL)
- v = fp.e1((-4.0 - 1.0j))
- assert ae(v, (-14.806699492675420438 - 9.1384225230837893776j), tol=ATOL)
- assert ae(v.real, -14.806699492675420438, tol=PTOL)
- assert ae(v.imag, -9.1384225230837893776, tol=PTOL)
- v = fp.e1((-8.0 - 2.0j))
- assert ae(v, (54.633252667426386294 - 413.20318163814670688j), tol=ATOL)
- assert ae(v.real, 54.633252667426386294, tol=PTOL)
- assert ae(v.imag, -413.20318163814670688, tol=PTOL)
- v = fp.e1((-20.0 - 5.0j))
- assert ae(v, (-711836.97165402624643 + 24745250.939695900956j), tol=ATOL)
- assert ae(v.real, -711836.97165402624643, tol=PTOL)
- assert ae(v.imag, 24745250.939695900956, tol=PTOL)
- v = fp.e1((-80.0 - 20.0j))
- assert ae(v, (-4.2139911108612653091e+32 - 5.3367124741918251637e+32j), tol=ATOL)
- assert ae(v.real, -4.2139911108612653091e+32, tol=PTOL)
- assert ae(v.imag, -5.3367124741918251637e+32, tol=PTOL)
- v = fp.e1((-120.0 - 30.0j))
- assert ae(v, (9.7760616203707508892e+48 + 1.058257682317195792e+50j), tol=ATOL)
- assert ae(v.real, 9.7760616203707508892e+48, tol=PTOL)
- assert ae(v.imag, 1.058257682317195792e+50, tol=PTOL)
- v = fp.e1((-160.0 - 40.0j))
- assert ae(v, (8.7065541466623638861e+66 - 1.6577106725141739889e+67j), tol=ATOL)
- assert ae(v.real, 8.7065541466623638861e+66, tol=PTOL)
- assert ae(v.imag, -1.6577106725141739889e+67, tol=PTOL)
- v = fp.e1((-200.0 - 50.0j))
- assert ae(v, (-3.070744996327018106e+84 + 1.7243244846769415903e+84j), tol=ATOL)
- assert ae(v.real, -3.070744996327018106e+84, tol=PTOL)
- assert ae(v.imag, 1.7243244846769415903e+84, tol=PTOL)
- v = fp.e1((-320.0 - 80.0j))
- assert ae(v, (9.9960598637998647276e+135 + 2.6855081527595608863e+136j), tol=ATOL)
- assert ae(v.real, 9.9960598637998647276e+135, tol=PTOL)
- assert ae(v.imag, 2.6855081527595608863e+136, tol=PTOL)
- v = fp.e1((-1.1641532182693481445e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (21.950067703180274374 + 2.356194490075929607j), tol=ATOL)
- assert ae(v.real, 21.950067703180274374, tol=PTOL)
- assert ae(v.imag, 2.356194490075929607, tol=PTOL)
- v = fp.e1((-0.25 - 0.25j))
- assert ae(v, (0.21441047326710323254 + 2.0732153554307936389j), tol=ATOL)
- assert ae(v.real, 0.21441047326710323254, tol=PTOL)
- assert ae(v.imag, 2.0732153554307936389, tol=PTOL)
- v = fp.e1((-1.0 - 1.0j))
- assert ae(v, (-1.7646259855638540684 + 0.7538228020792708192j), tol=ATOL)
- assert ae(v.real, -1.7646259855638540684, tol=PTOL)
- assert ae(v.imag, 0.7538228020792708192, tol=PTOL)
- v = fp.e1((-2.0 - 2.0j))
- assert ae(v, (-1.8920781621855474089 - 2.1753697842428647236j), tol=ATOL)
- assert ae(v.real, -1.8920781621855474089, tol=PTOL)
- assert ae(v.imag, -2.1753697842428647236, tol=PTOL)
- v = fp.e1((-5.0 - 5.0j))
- assert ae(v, (13.470936071475245856 + 18.464085049321024206j), tol=ATOL)
- assert ae(v.real, 13.470936071475245856, tol=PTOL)
- assert ae(v.imag, 18.464085049321024206, tol=PTOL)
- v = fp.e1((-20.0 - 20.0j))
- assert ae(v, (-16589317.398788971896 - 5831702.3296441771206j), tol=ATOL)
- assert ae(v.real, -16589317.398788971896, tol=PTOL)
- assert ae(v.imag, -5831702.3296441771206, tol=PTOL)
- v = fp.e1((-30.0 - 30.0j))
- assert ae(v, (154596484273.69322527 + 204179357837.41389696j), tol=ATOL)
- assert ae(v.real, 154596484273.69322527, tol=PTOL)
- assert ae(v.imag, 204179357837.41389696, tol=PTOL)
- v = fp.e1((-40.0 - 40.0j))
- assert ae(v, (-287512180321448.45408 - 4203502407932314.974j), tol=ATOL)
- assert ae(v.real, -287512180321448.45408, tol=PTOL)
- assert ae(v.imag, -4203502407932314.974, tol=PTOL)
- v = fp.e1((-50.0 - 50.0j))
- assert ae(v, (-36128528616649268826.0 + 64648801861338741963.0j), tol=ATOL)
- assert ae(v.real, -36128528616649268826.0, tol=PTOL)
- assert ae(v.imag, 64648801861338741963.0, tol=PTOL)
- v = fp.e1((-80.0 - 80.0j))
- assert ae(v, (3.8674816337930010217e+32 + 3.0540709639658071041e+32j), tol=ATOL)
- assert ae(v.real, 3.8674816337930010217e+32, tol=PTOL)
- assert ae(v.imag, 3.0540709639658071041e+32, tol=PTOL)
- v = fp.e1((-1.1641532182693481445e-10 - 4.6566128730773925781e-10j))
- assert ae(v, (20.880034621432138988 + 1.8157749894560994861j), tol=ATOL)
- assert ae(v.real, 20.880034621432138988, tol=PTOL)
- assert ae(v.imag, 1.8157749894560994861, tol=PTOL)
- v = fp.e1((-0.25 - 1.0j))
- assert ae(v, (-0.59066621214766308594 + 0.74474454765205036972j), tol=ATOL)
- assert ae(v.real, -0.59066621214766308594, tol=PTOL)
- assert ae(v.imag, 0.74474454765205036972, tol=PTOL)
- v = fp.e1((-1.0 - 4.0j))
- assert ae(v, (0.49739047283060471093 - 0.41543605404038863174j), tol=ATOL)
- assert ae(v.real, 0.49739047283060471093, tol=PTOL)
- assert ae(v.imag, -0.41543605404038863174, tol=PTOL)
- v = fp.e1((-2.0 - 8.0j))
- assert ae(v, (-0.8705211147733730969 - 0.24099328498605539667j), tol=ATOL)
- assert ae(v.real, -0.8705211147733730969, tol=PTOL)
- assert ae(v.imag, -0.24099328498605539667, tol=PTOL)
- v = fp.e1((-5.0 - 20.0j))
- assert ae(v, (-7.0789514293925893007 + 1.6102177171960790536j), tol=ATOL)
- assert ae(v.real, -7.0789514293925893007, tol=PTOL)
- assert ae(v.imag, 1.6102177171960790536, tol=PTOL)
- v = fp.e1((-20.0 - 80.0j))
- assert ae(v, (5855431.4907298084434 + 720920.93315409165707j), tol=ATOL)
- assert ae(v.real, 5855431.4907298084434, tol=PTOL)
- assert ae(v.imag, 720920.93315409165707, tol=PTOL)
- v = fp.e1((-30.0 - 120.0j))
- assert ae(v, (-65402491644.703470747 + 56697658399.657460294j), tol=ATOL)
- assert ae(v.real, -65402491644.703470747, tol=PTOL)
- assert ae(v.imag, 56697658399.657460294, tol=PTOL)
- v = fp.e1((-40.0 - 160.0j))
- assert ae(v, (25504929379604.776769 - 1429035198630573.2463j), tol=ATOL)
- assert ae(v.real, 25504929379604.776769, tol=PTOL)
- assert ae(v.imag, -1429035198630573.2463, tol=PTOL)
- v = fp.e1((-50.0 - 200.0j))
- assert ae(v, (18437746526988116954.0 + 17146362239046152345.0j), tol=ATOL)
- assert ae(v.real, 18437746526988116954.0, tol=PTOL)
- assert ae(v.imag, 17146362239046152345.0, tol=PTOL)
- v = fp.e1((-80.0 - 320.0j))
- assert ae(v, (3.3464697299634526706e+31 + 1.6473152633843023919e+32j), tol=ATOL)
- assert ae(v.real, 3.3464697299634526706e+31, tol=PTOL)
- assert ae(v.imag, 1.6473152633843023919e+32, tol=PTOL)
- v = fp.e1((0.0 - 1.1641532182693481445e-10j))
- assert ae(v, (22.29664129357666235 + 1.5707963266784812974j), tol=ATOL)
- assert ae(v.real, 22.29664129357666235, tol=PTOL)
- assert ae(v.imag, 1.5707963266784812974, tol=PTOL)
- v = fp.e1((0.0 - 0.25j))
- assert ae(v, (0.82466306258094565309 + 1.3216627564751394551j), tol=ATOL)
- assert ae(v.real, 0.82466306258094565309, tol=PTOL)
- assert ae(v.imag, 1.3216627564751394551, tol=PTOL)
- v = fp.e1((0.0 - 1.0j))
- assert ae(v, (-0.33740392290096813466 + 0.62471325642771360429j), tol=ATOL)
- assert ae(v.real, -0.33740392290096813466, tol=PTOL)
- assert ae(v.imag, 0.62471325642771360429, tol=PTOL)
- v = fp.e1((0.0 - 2.0j))
- assert ae(v, (-0.4229808287748649957 - 0.034616650007798229345j), tol=ATOL)
- assert ae(v.real, -0.4229808287748649957, tol=PTOL)
- assert ae(v.imag, -0.034616650007798229345, tol=PTOL)
- v = fp.e1((0.0 - 5.0j))
- assert ae(v, (0.19002974965664387862 + 0.020865081850222481957j), tol=ATOL)
- assert ae(v.real, 0.19002974965664387862, tol=PTOL)
- assert ae(v.imag, 0.020865081850222481957, tol=PTOL)
- v = fp.e1((0.0 - 20.0j))
- assert ae(v, (-0.04441982084535331654 + 0.022554625751456779068j), tol=ATOL)
- assert ae(v.real, -0.04441982084535331654, tol=PTOL)
- assert ae(v.imag, 0.022554625751456779068, tol=PTOL)
- v = fp.e1((0.0 - 30.0j))
- assert ae(v, (0.033032417282071143779 + 0.0040397867645455082476j), tol=ATOL)
- assert ae(v.real, 0.033032417282071143779, tol=PTOL)
- assert ae(v.imag, 0.0040397867645455082476, tol=PTOL)
- v = fp.e1((0.0 - 40.0j))
- assert ae(v, (-0.019020007896208766962 - 0.016188792559887887544j), tol=ATOL)
- assert ae(v.real, -0.019020007896208766962, tol=PTOL)
- assert ae(v.imag, -0.016188792559887887544, tol=PTOL)
- v = fp.e1((0.0 - 50.0j))
- assert ae(v, (0.0056283863241163054402 + 0.019179254308960724503j), tol=ATOL)
- assert ae(v.real, 0.0056283863241163054402, tol=PTOL)
- assert ae(v.imag, 0.019179254308960724503, tol=PTOL)
- v = fp.e1((0.0 - 80.0j))
- assert ae(v, (0.012402501155070958192 - 0.0015345601175906961199j), tol=ATOL)
- assert ae(v.real, 0.012402501155070958192, tol=PTOL)
- assert ae(v.imag, -0.0015345601175906961199, tol=PTOL)
- v = fp.e1((1.1641532182693481445e-10 - 4.6566128730773925781e-10j))
- assert ae(v, (20.880034621664969632 + 1.3258176632023711778j), tol=ATOL)
- assert ae(v.real, 20.880034621664969632, tol=PTOL)
- assert ae(v.imag, 1.3258176632023711778, tol=PTOL)
- v = fp.e1((0.25 - 1.0j))
- assert ae(v, (-0.16868306393667788761 + 0.4858011885947426971j), tol=ATOL)
- assert ae(v.real, -0.16868306393667788761, tol=PTOL)
- assert ae(v.imag, 0.4858011885947426971, tol=PTOL)
- v = fp.e1((1.0 - 4.0j))
- assert ae(v, (0.03373591813926547318 - 0.073523452241083821877j), tol=ATOL)
- assert ae(v.real, 0.03373591813926547318, tol=PTOL)
- assert ae(v.imag, -0.073523452241083821877, tol=PTOL)
- v = fp.e1((2.0 - 8.0j))
- assert ae(v, (-0.015392833434733785143 + 0.0031747121557605415914j), tol=ATOL)
- assert ae(v.real, -0.015392833434733785143, tol=PTOL)
- assert ae(v.imag, 0.0031747121557605415914, tol=PTOL)
- v = fp.e1((5.0 - 20.0j))
- assert ae(v, (-0.00024419662286542966525 + 0.00021008322966152755674j), tol=ATOL)
- assert ae(v.real, -0.00024419662286542966525, tol=PTOL)
- assert ae(v.imag, 0.00021008322966152755674, tol=PTOL)
- v = fp.e1((20.0 - 80.0j))
- assert ae(v, (2.3255552781051330088e-11 - 8.9463918891349438007e-12j), tol=ATOL)
- assert ae(v.real, 2.3255552781051330088e-11, tol=PTOL)
- assert ae(v.imag, -8.9463918891349438007e-12, tol=PTOL)
- v = fp.e1((30.0 - 120.0j))
- assert ae(v, (-2.7068919097124652332e-16 + 7.0477762411705130239e-16j), tol=ATOL)
- assert ae(v.real, -2.7068919097124652332e-16, tol=PTOL)
- assert ae(v.imag, 7.0477762411705130239e-16, tol=PTOL)
- v = fp.e1((40.0 - 160.0j))
- assert ae(v, (-1.1695597827678024687e-20 - 2.2907401455645736661e-20j), tol=ATOL)
- assert ae(v.real, -1.1695597827678024687e-20, tol=PTOL)
- assert ae(v.imag, -2.2907401455645736661e-20, tol=PTOL)
- v = fp.e1((50.0 - 200.0j))
- assert ae(v, (9.0323746914410162531e-25 + 2.3950601790033530935e-25j), tol=ATOL)
- assert ae(v.real, 9.0323746914410162531e-25, tol=PTOL)
- assert ae(v.imag, 2.3950601790033530935e-25, tol=PTOL)
- v = fp.e1((80.0 - 320.0j))
- assert ae(v, (3.4819106748728063576e-38 + 4.215653005615772724e-38j), tol=ATOL)
- assert ae(v.real, 3.4819106748728063576e-38, tol=PTOL)
- assert ae(v.imag, 4.215653005615772724e-38, tol=PTOL)
- v = fp.e1((1.1641532182693481445e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (21.950067703413105017 + 0.7853981632810329878j), tol=ATOL)
- assert ae(v.real, 21.950067703413105017, tol=PTOL)
- assert ae(v.imag, 0.7853981632810329878, tol=PTOL)
- v = fp.e1((0.25 - 0.25j))
- assert ae(v, (0.71092525792923287894 + 0.56491812441304194711j), tol=ATOL)
- assert ae(v.real, 0.71092525792923287894, tol=PTOL)
- assert ae(v.imag, 0.56491812441304194711, tol=PTOL)
- v = fp.e1((1.0 - 1.0j))
- assert ae(v, (0.00028162445198141832551 + 0.17932453503935894015j), tol=ATOL)
- assert ae(v.real, 0.00028162445198141832551, tol=PTOL)
- assert ae(v.imag, 0.17932453503935894015, tol=PTOL)
- v = fp.e1((2.0 - 2.0j))
- assert ae(v, (-0.033767089606562004246 + 0.018599414169750541925j), tol=ATOL)
- assert ae(v.real, -0.033767089606562004246, tol=PTOL)
- assert ae(v.imag, 0.018599414169750541925, tol=PTOL)
- v = fp.e1((5.0 - 5.0j))
- assert ae(v, (0.0007266506660356393891 - 0.00047102780163522245054j), tol=ATOL)
- assert ae(v.real, 0.0007266506660356393891, tol=PTOL)
- assert ae(v.imag, -0.00047102780163522245054, tol=PTOL)
- v = fp.e1((20.0 - 20.0j))
- assert ae(v, (-2.3824537449367396579e-11 + 6.6969873156525615158e-11j), tol=ATOL)
- assert ae(v.real, -2.3824537449367396579e-11, tol=PTOL)
- assert ae(v.imag, 6.6969873156525615158e-11, tol=PTOL)
- v = fp.e1((30.0 - 30.0j))
- assert ae(v, (1.7316045841744061617e-15 - 1.3065678019487308689e-15j), tol=ATOL)
- assert ae(v.real, 1.7316045841744061617e-15, tol=PTOL)
- assert ae(v.imag, -1.3065678019487308689e-15, tol=PTOL)
- v = fp.e1((40.0 - 40.0j))
- assert ae(v, (-7.4001043002899232182e-20 + 4.991847855336816304e-21j), tol=ATOL)
- assert ae(v.real, -7.4001043002899232182e-20, tol=PTOL)
- assert ae(v.imag, 4.991847855336816304e-21, tol=PTOL)
- v = fp.e1((50.0 - 50.0j))
- assert ae(v, (2.3566128324644641219e-24 + 1.3188326726201614778e-24j), tol=ATOL)
- assert ae(v.real, 2.3566128324644641219e-24, tol=PTOL)
- assert ae(v.imag, 1.3188326726201614778e-24, tol=PTOL)
- v = fp.e1((80.0 - 80.0j))
- assert ae(v, (9.8279750572186526673e-38 - 1.243952841288868831e-37j), tol=ATOL)
- assert ae(v.real, 9.8279750572186526673e-38, tol=PTOL)
- assert ae(v.imag, -1.243952841288868831e-37, tol=PTOL)
- v = fp.e1((4.6566128730773925781e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (20.880034622014215597 + 0.24497866301044883237j), tol=ATOL)
- assert ae(v.real, 20.880034622014215597, tol=PTOL)
- assert ae(v.imag, 0.24497866301044883237, tol=PTOL)
- v = fp.e1((1.0 - 0.25j))
- assert ae(v, (0.19731063945004229095 + 0.087366045774299963672j), tol=ATOL)
- assert ae(v.real, 0.19731063945004229095, tol=PTOL)
- assert ae(v.imag, 0.087366045774299963672, tol=PTOL)
- v = fp.e1((4.0 - 1.0j))
- assert ae(v, (0.0013106173980145506944 + 0.0034542480199350626699j), tol=ATOL)
- assert ae(v.real, 0.0013106173980145506944, tol=PTOL)
- assert ae(v.imag, 0.0034542480199350626699, tol=PTOL)
- v = fp.e1((8.0 - 2.0j))
- assert ae(v, (-0.000022278049065270225945 + 0.000029191940456521555288j), tol=ATOL)
- assert ae(v.real, -0.000022278049065270225945, tol=PTOL)
- assert ae(v.imag, 0.000029191940456521555288, tol=PTOL)
- v = fp.e1((20.0 - 5.0j))
- assert ae(v, (4.7711374515765346894e-11 - 8.2902652405126947359e-11j), tol=ATOL)
- assert ae(v.real, 4.7711374515765346894e-11, tol=PTOL)
- assert ae(v.imag, -8.2902652405126947359e-11, tol=PTOL)
- v = fp.e1((80.0 - 20.0j))
- assert ae(v, (3.8353473865788235787e-38 + 2.129247592349605139e-37j), tol=ATOL)
- assert ae(v.real, 3.8353473865788235787e-38, tol=PTOL)
- assert ae(v.imag, 2.129247592349605139e-37, tol=PTOL)
- v = fp.e1((120.0 - 30.0j))
- assert ae(v, (2.3836002337480334716e-55 - 5.6704043587126198306e-55j), tol=ATOL)
- assert ae(v.real, 2.3836002337480334716e-55, tol=PTOL)
- assert ae(v.imag, -5.6704043587126198306e-55, tol=PTOL)
- v = fp.e1((160.0 - 40.0j))
- assert ae(v, (-1.6238022898654510661e-72 + 1.104172355572287367e-72j), tol=ATOL)
- assert ae(v.real, -1.6238022898654510661e-72, tol=PTOL)
- assert ae(v.imag, 1.104172355572287367e-72, tol=PTOL)
- v = fp.e1((200.0 - 50.0j))
- assert ae(v, (6.6800061461666228487e-90 - 1.4473816083541016115e-91j), tol=ATOL)
- assert ae(v.real, 6.6800061461666228487e-90, tol=PTOL)
- assert ae(v.imag, -1.4473816083541016115e-91, tol=PTOL)
- v = fp.e1((320.0 - 80.0j))
- assert ae(v, (4.2737871527778786157e-143 - 3.1789935525785660314e-142j), tol=ATOL)
- assert ae(v.real, 4.2737871527778786157e-143, tol=PTOL)
- assert ae(v.imag, -3.1789935525785660314e-142, tol=PTOL)
- v = fp.ei(1.1641532182693481445e-10)
- assert ae(v, -22.296641293460247028, tol=ATOL)
- assert type(v) is float
- v = fp.ei(0.25)
- assert ae(v, -0.54254326466191372953, tol=ATOL)
- assert type(v) is float
- v = fp.ei(1.0)
- assert ae(v, 1.8951178163559367555, tol=ATOL)
- assert type(v) is float
- v = fp.ei(2.0)
- assert ae(v, 4.9542343560018901634, tol=ATOL)
- assert type(v) is float
- v = fp.ei(5.0)
- assert ae(v, 40.185275355803177455, tol=ATOL)
- assert type(v) is float
- v = fp.ei(20.0)
- assert ae(v, 25615652.66405658882, tol=ATOL)
- assert type(v) is float
- v = fp.ei(30.0)
- assert ae(v, 368973209407.27419706, tol=ATOL)
- assert type(v) is float
- v = fp.ei(40.0)
- assert ae(v, 6039718263611241.5784, tol=ATOL)
- assert type(v) is float
- v = fp.ei(50.0)
- assert ae(v, 1.0585636897131690963e+20, tol=ATOL)
- assert type(v) is float
- v = fp.ei(80.0)
- assert ae(v, 7.0146000049047999696e+32, tol=ATOL)
- assert type(v) is float
- v = fp.ei((1.1641532182693481445e-10 + 0.0j))
- assert ae(v, (-22.296641293460247028 + 0.0j), tol=ATOL)
- assert ae(v.real, -22.296641293460247028, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((0.25 + 0.0j))
- assert ae(v, (-0.54254326466191372953 + 0.0j), tol=ATOL)
- assert ae(v.real, -0.54254326466191372953, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((1.0 + 0.0j))
- assert ae(v, (1.8951178163559367555 + 0.0j), tol=ATOL)
- assert ae(v.real, 1.8951178163559367555, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((2.0 + 0.0j))
- assert ae(v, (4.9542343560018901634 + 0.0j), tol=ATOL)
- assert ae(v.real, 4.9542343560018901634, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((5.0 + 0.0j))
- assert ae(v, (40.185275355803177455 + 0.0j), tol=ATOL)
- assert ae(v.real, 40.185275355803177455, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((20.0 + 0.0j))
- assert ae(v, (25615652.66405658882 + 0.0j), tol=ATOL)
- assert ae(v.real, 25615652.66405658882, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((30.0 + 0.0j))
- assert ae(v, (368973209407.27419706 + 0.0j), tol=ATOL)
- assert ae(v.real, 368973209407.27419706, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((40.0 + 0.0j))
- assert ae(v, (6039718263611241.5784 + 0.0j), tol=ATOL)
- assert ae(v.real, 6039718263611241.5784, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((50.0 + 0.0j))
- assert ae(v, (1.0585636897131690963e+20 + 0.0j), tol=ATOL)
- assert ae(v.real, 1.0585636897131690963e+20, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((80.0 + 0.0j))
- assert ae(v, (7.0146000049047999696e+32 + 0.0j), tol=ATOL)
- assert ae(v.real, 7.0146000049047999696e+32, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((4.6566128730773925781e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (-20.880034621082893023 + 0.24497866324327947603j), tol=ATOL)
- assert ae(v.real, -20.880034621082893023, tol=PTOL)
- assert ae(v.imag, 0.24497866324327947603, tol=PTOL)
- v = fp.ei((1.0 + 0.25j))
- assert ae(v, (1.8942716983721074932 + 0.67268237088273915854j), tol=ATOL)
- assert ae(v.real, 1.8942716983721074932, tol=PTOL)
- assert ae(v.imag, 0.67268237088273915854, tol=PTOL)
- v = fp.ei((4.0 + 1.0j))
- assert ae(v, (14.806699492675420438 + 12.280015176673582616j), tol=ATOL)
- assert ae(v.real, 14.806699492675420438, tol=PTOL)
- assert ae(v.imag, 12.280015176673582616, tol=PTOL)
- v = fp.ei((8.0 + 2.0j))
- assert ae(v, (-54.633252667426386294 + 416.34477429173650012j), tol=ATOL)
- assert ae(v.real, -54.633252667426386294, tol=PTOL)
- assert ae(v.imag, 416.34477429173650012, tol=PTOL)
- v = fp.ei((20.0 + 5.0j))
- assert ae(v, (711836.97165402624643 - 24745247.798103247366j), tol=ATOL)
- assert ae(v.real, 711836.97165402624643, tol=PTOL)
- assert ae(v.imag, -24745247.798103247366, tol=PTOL)
- v = fp.ei((80.0 + 20.0j))
- assert ae(v, (4.2139911108612653091e+32 + 5.3367124741918251637e+32j), tol=ATOL)
- assert ae(v.real, 4.2139911108612653091e+32, tol=PTOL)
- assert ae(v.imag, 5.3367124741918251637e+32, tol=PTOL)
- v = fp.ei((120.0 + 30.0j))
- assert ae(v, (-9.7760616203707508892e+48 - 1.058257682317195792e+50j), tol=ATOL)
- assert ae(v.real, -9.7760616203707508892e+48, tol=PTOL)
- assert ae(v.imag, -1.058257682317195792e+50, tol=PTOL)
- v = fp.ei((160.0 + 40.0j))
- assert ae(v, (-8.7065541466623638861e+66 + 1.6577106725141739889e+67j), tol=ATOL)
- assert ae(v.real, -8.7065541466623638861e+66, tol=PTOL)
- assert ae(v.imag, 1.6577106725141739889e+67, tol=PTOL)
- v = fp.ei((200.0 + 50.0j))
- assert ae(v, (3.070744996327018106e+84 - 1.7243244846769415903e+84j), tol=ATOL)
- assert ae(v.real, 3.070744996327018106e+84, tol=PTOL)
- assert ae(v.imag, -1.7243244846769415903e+84, tol=PTOL)
- v = fp.ei((320.0 + 80.0j))
- assert ae(v, (-9.9960598637998647276e+135 - 2.6855081527595608863e+136j), tol=ATOL)
- assert ae(v.real, -9.9960598637998647276e+135, tol=PTOL)
- assert ae(v.imag, -2.6855081527595608863e+136, tol=PTOL)
- v = fp.ei((1.1641532182693481445e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (-21.950067703180274374 + 0.78539816351386363145j), tol=ATOL)
- assert ae(v.real, -21.950067703180274374, tol=PTOL)
- assert ae(v.imag, 0.78539816351386363145, tol=PTOL)
- v = fp.ei((0.25 + 0.25j))
- assert ae(v, (-0.21441047326710323254 + 1.0683772981589995996j), tol=ATOL)
- assert ae(v.real, -0.21441047326710323254, tol=PTOL)
- assert ae(v.imag, 1.0683772981589995996, tol=PTOL)
- v = fp.ei((1.0 + 1.0j))
- assert ae(v, (1.7646259855638540684 + 2.3877698515105224193j), tol=ATOL)
- assert ae(v.real, 1.7646259855638540684, tol=PTOL)
- assert ae(v.imag, 2.3877698515105224193, tol=PTOL)
- v = fp.ei((2.0 + 2.0j))
- assert ae(v, (1.8920781621855474089 + 5.3169624378326579621j), tol=ATOL)
- assert ae(v.real, 1.8920781621855474089, tol=PTOL)
- assert ae(v.imag, 5.3169624378326579621, tol=PTOL)
- v = fp.ei((5.0 + 5.0j))
- assert ae(v, (-13.470936071475245856 - 15.322492395731230968j), tol=ATOL)
- assert ae(v.real, -13.470936071475245856, tol=PTOL)
- assert ae(v.imag, -15.322492395731230968, tol=PTOL)
- v = fp.ei((20.0 + 20.0j))
- assert ae(v, (16589317.398788971896 + 5831705.4712368307104j), tol=ATOL)
- assert ae(v.real, 16589317.398788971896, tol=PTOL)
- assert ae(v.imag, 5831705.4712368307104, tol=PTOL)
- v = fp.ei((30.0 + 30.0j))
- assert ae(v, (-154596484273.69322527 - 204179357834.2723043j), tol=ATOL)
- assert ae(v.real, -154596484273.69322527, tol=PTOL)
- assert ae(v.imag, -204179357834.2723043, tol=PTOL)
- v = fp.ei((40.0 + 40.0j))
- assert ae(v, (287512180321448.45408 + 4203502407932318.1156j), tol=ATOL)
- assert ae(v.real, 287512180321448.45408, tol=PTOL)
- assert ae(v.imag, 4203502407932318.1156, tol=PTOL)
- v = fp.ei((50.0 + 50.0j))
- assert ae(v, (36128528616649268826.0 - 64648801861338741960.0j), tol=ATOL)
- assert ae(v.real, 36128528616649268826.0, tol=PTOL)
- assert ae(v.imag, -64648801861338741960.0, tol=PTOL)
- v = fp.ei((80.0 + 80.0j))
- assert ae(v, (-3.8674816337930010217e+32 - 3.0540709639658071041e+32j), tol=ATOL)
- assert ae(v.real, -3.8674816337930010217e+32, tol=PTOL)
- assert ae(v.imag, -3.0540709639658071041e+32, tol=PTOL)
- v = fp.ei((1.1641532182693481445e-10 + 4.6566128730773925781e-10j))
- assert ae(v, (-20.880034621432138988 + 1.3258176641336937524j), tol=ATOL)
- assert ae(v.real, -20.880034621432138988, tol=PTOL)
- assert ae(v.imag, 1.3258176641336937524, tol=PTOL)
- v = fp.ei((0.25 + 1.0j))
- assert ae(v, (0.59066621214766308594 + 2.3968481059377428687j), tol=ATOL)
- assert ae(v.real, 0.59066621214766308594, tol=PTOL)
- assert ae(v.imag, 2.3968481059377428687, tol=PTOL)
- v = fp.ei((1.0 + 4.0j))
- assert ae(v, (-0.49739047283060471093 + 3.5570287076301818702j), tol=ATOL)
- assert ae(v.real, -0.49739047283060471093, tol=PTOL)
- assert ae(v.imag, 3.5570287076301818702, tol=PTOL)
- v = fp.ei((2.0 + 8.0j))
- assert ae(v, (0.8705211147733730969 + 3.3825859385758486351j), tol=ATOL)
- assert ae(v.real, 0.8705211147733730969, tol=PTOL)
- assert ae(v.imag, 3.3825859385758486351, tol=PTOL)
- v = fp.ei((5.0 + 20.0j))
- assert ae(v, (7.0789514293925893007 + 1.5313749363937141849j), tol=ATOL)
- assert ae(v.real, 7.0789514293925893007, tol=PTOL)
- assert ae(v.imag, 1.5313749363937141849, tol=PTOL)
- v = fp.ei((20.0 + 80.0j))
- assert ae(v, (-5855431.4907298084434 - 720917.79156143806727j), tol=ATOL)
- assert ae(v.real, -5855431.4907298084434, tol=PTOL)
- assert ae(v.imag, -720917.79156143806727, tol=PTOL)
- v = fp.ei((30.0 + 120.0j))
- assert ae(v, (65402491644.703470747 - 56697658396.51586764j), tol=ATOL)
- assert ae(v.real, 65402491644.703470747, tol=PTOL)
- assert ae(v.imag, -56697658396.51586764, tol=PTOL)
- v = fp.ei((40.0 + 160.0j))
- assert ae(v, (-25504929379604.776769 + 1429035198630576.3879j), tol=ATOL)
- assert ae(v.real, -25504929379604.776769, tol=PTOL)
- assert ae(v.imag, 1429035198630576.3879, tol=PTOL)
- v = fp.ei((50.0 + 200.0j))
- assert ae(v, (-18437746526988116954.0 - 17146362239046152342.0j), tol=ATOL)
- assert ae(v.real, -18437746526988116954.0, tol=PTOL)
- assert ae(v.imag, -17146362239046152342.0, tol=PTOL)
- v = fp.ei((80.0 + 320.0j))
- assert ae(v, (-3.3464697299634526706e+31 - 1.6473152633843023919e+32j), tol=ATOL)
- assert ae(v.real, -3.3464697299634526706e+31, tol=PTOL)
- assert ae(v.imag, -1.6473152633843023919e+32, tol=PTOL)
- v = fp.ei((0.0 + 1.1641532182693481445e-10j))
- assert ae(v, (-22.29664129357666235 + 1.5707963269113119411j), tol=ATOL)
- assert ae(v.real, -22.29664129357666235, tol=PTOL)
- assert ae(v.imag, 1.5707963269113119411, tol=PTOL)
- v = fp.ei((0.0 + 0.25j))
- assert ae(v, (-0.82466306258094565309 + 1.8199298971146537833j), tol=ATOL)
- assert ae(v.real, -0.82466306258094565309, tol=PTOL)
- assert ae(v.imag, 1.8199298971146537833, tol=PTOL)
- v = fp.ei((0.0 + 1.0j))
- assert ae(v, (0.33740392290096813466 + 2.5168793971620796342j), tol=ATOL)
- assert ae(v.real, 0.33740392290096813466, tol=PTOL)
- assert ae(v.imag, 2.5168793971620796342, tol=PTOL)
- v = fp.ei((0.0 + 2.0j))
- assert ae(v, (0.4229808287748649957 + 3.1762093035975914678j), tol=ATOL)
- assert ae(v.real, 0.4229808287748649957, tol=PTOL)
- assert ae(v.imag, 3.1762093035975914678, tol=PTOL)
- v = fp.ei((0.0 + 5.0j))
- assert ae(v, (-0.19002974965664387862 + 3.1207275717395707565j), tol=ATOL)
- assert ae(v.real, -0.19002974965664387862, tol=PTOL)
- assert ae(v.imag, 3.1207275717395707565, tol=PTOL)
- v = fp.ei((0.0 + 20.0j))
- assert ae(v, (0.04441982084535331654 + 3.1190380278383364594j), tol=ATOL)
- assert ae(v.real, 0.04441982084535331654, tol=PTOL)
- assert ae(v.imag, 3.1190380278383364594, tol=PTOL)
- v = fp.ei((0.0 + 30.0j))
- assert ae(v, (-0.033032417282071143779 + 3.1375528668252477302j), tol=ATOL)
- assert ae(v.real, -0.033032417282071143779, tol=PTOL)
- assert ae(v.imag, 3.1375528668252477302, tol=PTOL)
- v = fp.ei((0.0 + 40.0j))
- assert ae(v, (0.019020007896208766962 + 3.157781446149681126j), tol=ATOL)
- assert ae(v.real, 0.019020007896208766962, tol=PTOL)
- assert ae(v.imag, 3.157781446149681126, tol=PTOL)
- v = fp.ei((0.0 + 50.0j))
- assert ae(v, (-0.0056283863241163054402 + 3.122413399280832514j), tol=ATOL)
- assert ae(v.real, -0.0056283863241163054402, tol=PTOL)
- assert ae(v.imag, 3.122413399280832514, tol=PTOL)
- v = fp.ei((0.0 + 80.0j))
- assert ae(v, (-0.012402501155070958192 + 3.1431272137073839346j), tol=ATOL)
- assert ae(v.real, -0.012402501155070958192, tol=PTOL)
- assert ae(v.imag, 3.1431272137073839346, tol=PTOL)
- v = fp.ei((-1.1641532182693481445e-10 + 4.6566128730773925781e-10j))
- assert ae(v, (-20.880034621664969632 + 1.8157749903874220607j), tol=ATOL)
- assert ae(v.real, -20.880034621664969632, tol=PTOL)
- assert ae(v.imag, 1.8157749903874220607, tol=PTOL)
- v = fp.ei((-0.25 + 1.0j))
- assert ae(v, (0.16868306393667788761 + 2.6557914649950505414j), tol=ATOL)
- assert ae(v.real, 0.16868306393667788761, tol=PTOL)
- assert ae(v.imag, 2.6557914649950505414, tol=PTOL)
- v = fp.ei((-1.0 + 4.0j))
- assert ae(v, (-0.03373591813926547318 + 3.2151161058308770603j), tol=ATOL)
- assert ae(v.real, -0.03373591813926547318, tol=PTOL)
- assert ae(v.imag, 3.2151161058308770603, tol=PTOL)
- v = fp.ei((-2.0 + 8.0j))
- assert ae(v, (0.015392833434733785143 + 3.1384179414340326969j), tol=ATOL)
- assert ae(v.real, 0.015392833434733785143, tol=PTOL)
- assert ae(v.imag, 3.1384179414340326969, tol=PTOL)
- v = fp.ei((-5.0 + 20.0j))
- assert ae(v, (0.00024419662286542966525 + 3.1413825703601317109j), tol=ATOL)
- assert ae(v.real, 0.00024419662286542966525, tol=PTOL)
- assert ae(v.imag, 3.1413825703601317109, tol=PTOL)
- v = fp.ei((-20.0 + 80.0j))
- assert ae(v, (-2.3255552781051330088e-11 + 3.1415926535987396304j), tol=ATOL)
- assert ae(v.real, -2.3255552781051330088e-11, tol=PTOL)
- assert ae(v.imag, 3.1415926535987396304, tol=PTOL)
- v = fp.ei((-30.0 + 120.0j))
- assert ae(v, (2.7068919097124652332e-16 + 3.1415926535897925337j), tol=ATOL)
- assert ae(v.real, 2.7068919097124652332e-16, tol=PTOL)
- assert ae(v.imag, 3.1415926535897925337, tol=PTOL)
- v = fp.ei((-40.0 + 160.0j))
- assert ae(v, (1.1695597827678024687e-20 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 1.1695597827678024687e-20, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-50.0 + 200.0j))
- assert ae(v, (-9.0323746914410162531e-25 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -9.0323746914410162531e-25, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-80.0 + 320.0j))
- assert ae(v, (-3.4819106748728063576e-38 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -3.4819106748728063576e-38, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-4.6566128730773925781e-10 + 1.1641532182693481445e-10j))
- assert ae(v, (-20.880034622014215597 + 2.8966139905793444061j), tol=ATOL)
- assert ae(v.real, -20.880034622014215597, tol=PTOL)
- assert ae(v.imag, 2.8966139905793444061, tol=PTOL)
- v = fp.ei((-1.0 + 0.25j))
- assert ae(v, (-0.19731063945004229095 + 3.0542266078154932748j), tol=ATOL)
- assert ae(v.real, -0.19731063945004229095, tol=PTOL)
- assert ae(v.imag, 3.0542266078154932748, tol=PTOL)
- v = fp.ei((-4.0 + 1.0j))
- assert ae(v, (-0.0013106173980145506944 + 3.1381384055698581758j), tol=ATOL)
- assert ae(v.real, -0.0013106173980145506944, tol=PTOL)
- assert ae(v.imag, 3.1381384055698581758, tol=PTOL)
- v = fp.ei((-8.0 + 2.0j))
- assert ae(v, (0.000022278049065270225945 + 3.1415634616493367169j), tol=ATOL)
- assert ae(v.real, 0.000022278049065270225945, tol=PTOL)
- assert ae(v.imag, 3.1415634616493367169, tol=PTOL)
- v = fp.ei((-20.0 + 5.0j))
- assert ae(v, (-4.7711374515765346894e-11 + 3.1415926536726958909j), tol=ATOL)
- assert ae(v.real, -4.7711374515765346894e-11, tol=PTOL)
- assert ae(v.imag, 3.1415926536726958909, tol=PTOL)
- v = fp.ei((-80.0 + 20.0j))
- assert ae(v, (-3.8353473865788235787e-38 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -3.8353473865788235787e-38, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-120.0 + 30.0j))
- assert ae(v, (-2.3836002337480334716e-55 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -2.3836002337480334716e-55, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-160.0 + 40.0j))
- assert ae(v, (1.6238022898654510661e-72 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 1.6238022898654510661e-72, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-200.0 + 50.0j))
- assert ae(v, (-6.6800061461666228487e-90 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -6.6800061461666228487e-90, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei((-320.0 + 80.0j))
- assert ae(v, (-4.2737871527778786157e-143 + 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -4.2737871527778786157e-143, tol=PTOL)
- assert ae(v.imag, 3.1415926535897932385, tol=PTOL)
- v = fp.ei(-1.1641532182693481445e-10)
- assert ae(v, -22.296641293693077672, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-0.25)
- assert ae(v, -1.0442826344437381945, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-1.0)
- assert ae(v, -0.21938393439552027368, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-2.0)
- assert ae(v, -0.048900510708061119567, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-5.0)
- assert ae(v, -0.0011482955912753257973, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-20.0)
- assert ae(v, -9.8355252906498816904e-11, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-30.0)
- assert ae(v, -3.0215520106888125448e-15, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-40.0)
- assert ae(v, -1.0367732614516569722e-19, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-50.0)
- assert ae(v, -3.7832640295504590187e-24, tol=ATOL)
- assert type(v) is float
- v = fp.ei(-80.0)
- assert ae(v, -2.2285432586884729112e-37, tol=ATOL)
- assert type(v) is float
- v = fp.ei((-1.1641532182693481445e-10 + 0.0j))
- assert ae(v, (-22.296641293693077672 + 0.0j), tol=ATOL)
- assert ae(v.real, -22.296641293693077672, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-0.25 + 0.0j))
- assert ae(v, (-1.0442826344437381945 + 0.0j), tol=ATOL)
- assert ae(v.real, -1.0442826344437381945, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-1.0 + 0.0j))
- assert ae(v, (-0.21938393439552027368 + 0.0j), tol=ATOL)
- assert ae(v.real, -0.21938393439552027368, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-2.0 + 0.0j))
- assert ae(v, (-0.048900510708061119567 + 0.0j), tol=ATOL)
- assert ae(v.real, -0.048900510708061119567, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-5.0 + 0.0j))
- assert ae(v, (-0.0011482955912753257973 + 0.0j), tol=ATOL)
- assert ae(v.real, -0.0011482955912753257973, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-20.0 + 0.0j))
- assert ae(v, (-9.8355252906498816904e-11 + 0.0j), tol=ATOL)
- assert ae(v.real, -9.8355252906498816904e-11, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-30.0 + 0.0j))
- assert ae(v, (-3.0215520106888125448e-15 + 0.0j), tol=ATOL)
- assert ae(v.real, -3.0215520106888125448e-15, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-40.0 + 0.0j))
- assert ae(v, (-1.0367732614516569722e-19 + 0.0j), tol=ATOL)
- assert ae(v.real, -1.0367732614516569722e-19, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-50.0 + 0.0j))
- assert ae(v, (-3.7832640295504590187e-24 + 0.0j), tol=ATOL)
- assert ae(v.real, -3.7832640295504590187e-24, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-80.0 + 0.0j))
- assert ae(v, (-2.2285432586884729112e-37 + 0.0j), tol=ATOL)
- assert ae(v.real, -2.2285432586884729112e-37, tol=PTOL)
- assert v.imag == 0
- v = fp.ei((-4.6566128730773925781e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (-20.880034622014215597 - 2.8966139905793444061j), tol=ATOL)
- assert ae(v.real, -20.880034622014215597, tol=PTOL)
- assert ae(v.imag, -2.8966139905793444061, tol=PTOL)
- v = fp.ei((-1.0 - 0.25j))
- assert ae(v, (-0.19731063945004229095 - 3.0542266078154932748j), tol=ATOL)
- assert ae(v.real, -0.19731063945004229095, tol=PTOL)
- assert ae(v.imag, -3.0542266078154932748, tol=PTOL)
- v = fp.ei((-4.0 - 1.0j))
- assert ae(v, (-0.0013106173980145506944 - 3.1381384055698581758j), tol=ATOL)
- assert ae(v.real, -0.0013106173980145506944, tol=PTOL)
- assert ae(v.imag, -3.1381384055698581758, tol=PTOL)
- v = fp.ei((-8.0 - 2.0j))
- assert ae(v, (0.000022278049065270225945 - 3.1415634616493367169j), tol=ATOL)
- assert ae(v.real, 0.000022278049065270225945, tol=PTOL)
- assert ae(v.imag, -3.1415634616493367169, tol=PTOL)
- v = fp.ei((-20.0 - 5.0j))
- assert ae(v, (-4.7711374515765346894e-11 - 3.1415926536726958909j), tol=ATOL)
- assert ae(v.real, -4.7711374515765346894e-11, tol=PTOL)
- assert ae(v.imag, -3.1415926536726958909, tol=PTOL)
- v = fp.ei((-80.0 - 20.0j))
- assert ae(v, (-3.8353473865788235787e-38 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -3.8353473865788235787e-38, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-120.0 - 30.0j))
- assert ae(v, (-2.3836002337480334716e-55 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -2.3836002337480334716e-55, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-160.0 - 40.0j))
- assert ae(v, (1.6238022898654510661e-72 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 1.6238022898654510661e-72, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-200.0 - 50.0j))
- assert ae(v, (-6.6800061461666228487e-90 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -6.6800061461666228487e-90, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-320.0 - 80.0j))
- assert ae(v, (-4.2737871527778786157e-143 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -4.2737871527778786157e-143, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-1.1641532182693481445e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (-21.950067703413105017 - 2.3561944903087602507j), tol=ATOL)
- assert ae(v.real, -21.950067703413105017, tol=PTOL)
- assert ae(v.imag, -2.3561944903087602507, tol=PTOL)
- v = fp.ei((-0.25 - 0.25j))
- assert ae(v, (-0.71092525792923287894 - 2.5766745291767512913j), tol=ATOL)
- assert ae(v.real, -0.71092525792923287894, tol=PTOL)
- assert ae(v.imag, -2.5766745291767512913, tol=PTOL)
- v = fp.ei((-1.0 - 1.0j))
- assert ae(v, (-0.00028162445198141832551 - 2.9622681185504342983j), tol=ATOL)
- assert ae(v.real, -0.00028162445198141832551, tol=PTOL)
- assert ae(v.imag, -2.9622681185504342983, tol=PTOL)
- v = fp.ei((-2.0 - 2.0j))
- assert ae(v, (0.033767089606562004246 - 3.1229932394200426965j), tol=ATOL)
- assert ae(v.real, 0.033767089606562004246, tol=PTOL)
- assert ae(v.imag, -3.1229932394200426965, tol=PTOL)
- v = fp.ei((-5.0 - 5.0j))
- assert ae(v, (-0.0007266506660356393891 - 3.1420636813914284609j), tol=ATOL)
- assert ae(v.real, -0.0007266506660356393891, tol=PTOL)
- assert ae(v.imag, -3.1420636813914284609, tol=PTOL)
- v = fp.ei((-20.0 - 20.0j))
- assert ae(v, (2.3824537449367396579e-11 - 3.1415926535228233653j), tol=ATOL)
- assert ae(v.real, 2.3824537449367396579e-11, tol=PTOL)
- assert ae(v.imag, -3.1415926535228233653, tol=PTOL)
- v = fp.ei((-30.0 - 30.0j))
- assert ae(v, (-1.7316045841744061617e-15 - 3.141592653589794545j), tol=ATOL)
- assert ae(v.real, -1.7316045841744061617e-15, tol=PTOL)
- assert ae(v.imag, -3.141592653589794545, tol=PTOL)
- v = fp.ei((-40.0 - 40.0j))
- assert ae(v, (7.4001043002899232182e-20 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 7.4001043002899232182e-20, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-50.0 - 50.0j))
- assert ae(v, (-2.3566128324644641219e-24 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -2.3566128324644641219e-24, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-80.0 - 80.0j))
- assert ae(v, (-9.8279750572186526673e-38 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -9.8279750572186526673e-38, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-1.1641532182693481445e-10 - 4.6566128730773925781e-10j))
- assert ae(v, (-20.880034621664969632 - 1.8157749903874220607j), tol=ATOL)
- assert ae(v.real, -20.880034621664969632, tol=PTOL)
- assert ae(v.imag, -1.8157749903874220607, tol=PTOL)
- v = fp.ei((-0.25 - 1.0j))
- assert ae(v, (0.16868306393667788761 - 2.6557914649950505414j), tol=ATOL)
- assert ae(v.real, 0.16868306393667788761, tol=PTOL)
- assert ae(v.imag, -2.6557914649950505414, tol=PTOL)
- v = fp.ei((-1.0 - 4.0j))
- assert ae(v, (-0.03373591813926547318 - 3.2151161058308770603j), tol=ATOL)
- assert ae(v.real, -0.03373591813926547318, tol=PTOL)
- assert ae(v.imag, -3.2151161058308770603, tol=PTOL)
- v = fp.ei((-2.0 - 8.0j))
- assert ae(v, (0.015392833434733785143 - 3.1384179414340326969j), tol=ATOL)
- assert ae(v.real, 0.015392833434733785143, tol=PTOL)
- assert ae(v.imag, -3.1384179414340326969, tol=PTOL)
- v = fp.ei((-5.0 - 20.0j))
- assert ae(v, (0.00024419662286542966525 - 3.1413825703601317109j), tol=ATOL)
- assert ae(v.real, 0.00024419662286542966525, tol=PTOL)
- assert ae(v.imag, -3.1413825703601317109, tol=PTOL)
- v = fp.ei((-20.0 - 80.0j))
- assert ae(v, (-2.3255552781051330088e-11 - 3.1415926535987396304j), tol=ATOL)
- assert ae(v.real, -2.3255552781051330088e-11, tol=PTOL)
- assert ae(v.imag, -3.1415926535987396304, tol=PTOL)
- v = fp.ei((-30.0 - 120.0j))
- assert ae(v, (2.7068919097124652332e-16 - 3.1415926535897925337j), tol=ATOL)
- assert ae(v.real, 2.7068919097124652332e-16, tol=PTOL)
- assert ae(v.imag, -3.1415926535897925337, tol=PTOL)
- v = fp.ei((-40.0 - 160.0j))
- assert ae(v, (1.1695597827678024687e-20 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, 1.1695597827678024687e-20, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-50.0 - 200.0j))
- assert ae(v, (-9.0323746914410162531e-25 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -9.0323746914410162531e-25, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((-80.0 - 320.0j))
- assert ae(v, (-3.4819106748728063576e-38 - 3.1415926535897932385j), tol=ATOL)
- assert ae(v.real, -3.4819106748728063576e-38, tol=PTOL)
- assert ae(v.imag, -3.1415926535897932385, tol=PTOL)
- v = fp.ei((0.0 - 1.1641532182693481445e-10j))
- assert ae(v, (-22.29664129357666235 - 1.5707963269113119411j), tol=ATOL)
- assert ae(v.real, -22.29664129357666235, tol=PTOL)
- assert ae(v.imag, -1.5707963269113119411, tol=PTOL)
- v = fp.ei((0.0 - 0.25j))
- assert ae(v, (-0.82466306258094565309 - 1.8199298971146537833j), tol=ATOL)
- assert ae(v.real, -0.82466306258094565309, tol=PTOL)
- assert ae(v.imag, -1.8199298971146537833, tol=PTOL)
- v = fp.ei((0.0 - 1.0j))
- assert ae(v, (0.33740392290096813466 - 2.5168793971620796342j), tol=ATOL)
- assert ae(v.real, 0.33740392290096813466, tol=PTOL)
- assert ae(v.imag, -2.5168793971620796342, tol=PTOL)
- v = fp.ei((0.0 - 2.0j))
- assert ae(v, (0.4229808287748649957 - 3.1762093035975914678j), tol=ATOL)
- assert ae(v.real, 0.4229808287748649957, tol=PTOL)
- assert ae(v.imag, -3.1762093035975914678, tol=PTOL)
- v = fp.ei((0.0 - 5.0j))
- assert ae(v, (-0.19002974965664387862 - 3.1207275717395707565j), tol=ATOL)
- assert ae(v.real, -0.19002974965664387862, tol=PTOL)
- assert ae(v.imag, -3.1207275717395707565, tol=PTOL)
- v = fp.ei((0.0 - 20.0j))
- assert ae(v, (0.04441982084535331654 - 3.1190380278383364594j), tol=ATOL)
- assert ae(v.real, 0.04441982084535331654, tol=PTOL)
- assert ae(v.imag, -3.1190380278383364594, tol=PTOL)
- v = fp.ei((0.0 - 30.0j))
- assert ae(v, (-0.033032417282071143779 - 3.1375528668252477302j), tol=ATOL)
- assert ae(v.real, -0.033032417282071143779, tol=PTOL)
- assert ae(v.imag, -3.1375528668252477302, tol=PTOL)
- v = fp.ei((0.0 - 40.0j))
- assert ae(v, (0.019020007896208766962 - 3.157781446149681126j), tol=ATOL)
- assert ae(v.real, 0.019020007896208766962, tol=PTOL)
- assert ae(v.imag, -3.157781446149681126, tol=PTOL)
- v = fp.ei((0.0 - 50.0j))
- assert ae(v, (-0.0056283863241163054402 - 3.122413399280832514j), tol=ATOL)
- assert ae(v.real, -0.0056283863241163054402, tol=PTOL)
- assert ae(v.imag, -3.122413399280832514, tol=PTOL)
- v = fp.ei((0.0 - 80.0j))
- assert ae(v, (-0.012402501155070958192 - 3.1431272137073839346j), tol=ATOL)
- assert ae(v.real, -0.012402501155070958192, tol=PTOL)
- assert ae(v.imag, -3.1431272137073839346, tol=PTOL)
- v = fp.ei((1.1641532182693481445e-10 - 4.6566128730773925781e-10j))
- assert ae(v, (-20.880034621432138988 - 1.3258176641336937524j), tol=ATOL)
- assert ae(v.real, -20.880034621432138988, tol=PTOL)
- assert ae(v.imag, -1.3258176641336937524, tol=PTOL)
- v = fp.ei((0.25 - 1.0j))
- assert ae(v, (0.59066621214766308594 - 2.3968481059377428687j), tol=ATOL)
- assert ae(v.real, 0.59066621214766308594, tol=PTOL)
- assert ae(v.imag, -2.3968481059377428687, tol=PTOL)
- v = fp.ei((1.0 - 4.0j))
- assert ae(v, (-0.49739047283060471093 - 3.5570287076301818702j), tol=ATOL)
- assert ae(v.real, -0.49739047283060471093, tol=PTOL)
- assert ae(v.imag, -3.5570287076301818702, tol=PTOL)
- v = fp.ei((2.0 - 8.0j))
- assert ae(v, (0.8705211147733730969 - 3.3825859385758486351j), tol=ATOL)
- assert ae(v.real, 0.8705211147733730969, tol=PTOL)
- assert ae(v.imag, -3.3825859385758486351, tol=PTOL)
- v = fp.ei((5.0 - 20.0j))
- assert ae(v, (7.0789514293925893007 - 1.5313749363937141849j), tol=ATOL)
- assert ae(v.real, 7.0789514293925893007, tol=PTOL)
- assert ae(v.imag, -1.5313749363937141849, tol=PTOL)
- v = fp.ei((20.0 - 80.0j))
- assert ae(v, (-5855431.4907298084434 + 720917.79156143806727j), tol=ATOL)
- assert ae(v.real, -5855431.4907298084434, tol=PTOL)
- assert ae(v.imag, 720917.79156143806727, tol=PTOL)
- v = fp.ei((30.0 - 120.0j))
- assert ae(v, (65402491644.703470747 + 56697658396.51586764j), tol=ATOL)
- assert ae(v.real, 65402491644.703470747, tol=PTOL)
- assert ae(v.imag, 56697658396.51586764, tol=PTOL)
- v = fp.ei((40.0 - 160.0j))
- assert ae(v, (-25504929379604.776769 - 1429035198630576.3879j), tol=ATOL)
- assert ae(v.real, -25504929379604.776769, tol=PTOL)
- assert ae(v.imag, -1429035198630576.3879, tol=PTOL)
- v = fp.ei((50.0 - 200.0j))
- assert ae(v, (-18437746526988116954.0 + 17146362239046152342.0j), tol=ATOL)
- assert ae(v.real, -18437746526988116954.0, tol=PTOL)
- assert ae(v.imag, 17146362239046152342.0, tol=PTOL)
- v = fp.ei((80.0 - 320.0j))
- assert ae(v, (-3.3464697299634526706e+31 + 1.6473152633843023919e+32j), tol=ATOL)
- assert ae(v.real, -3.3464697299634526706e+31, tol=PTOL)
- assert ae(v.imag, 1.6473152633843023919e+32, tol=PTOL)
- v = fp.ei((1.1641532182693481445e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (-21.950067703180274374 - 0.78539816351386363145j), tol=ATOL)
- assert ae(v.real, -21.950067703180274374, tol=PTOL)
- assert ae(v.imag, -0.78539816351386363145, tol=PTOL)
- v = fp.ei((0.25 - 0.25j))
- assert ae(v, (-0.21441047326710323254 - 1.0683772981589995996j), tol=ATOL)
- assert ae(v.real, -0.21441047326710323254, tol=PTOL)
- assert ae(v.imag, -1.0683772981589995996, tol=PTOL)
- v = fp.ei((1.0 - 1.0j))
- assert ae(v, (1.7646259855638540684 - 2.3877698515105224193j), tol=ATOL)
- assert ae(v.real, 1.7646259855638540684, tol=PTOL)
- assert ae(v.imag, -2.3877698515105224193, tol=PTOL)
- v = fp.ei((2.0 - 2.0j))
- assert ae(v, (1.8920781621855474089 - 5.3169624378326579621j), tol=ATOL)
- assert ae(v.real, 1.8920781621855474089, tol=PTOL)
- assert ae(v.imag, -5.3169624378326579621, tol=PTOL)
- v = fp.ei((5.0 - 5.0j))
- assert ae(v, (-13.470936071475245856 + 15.322492395731230968j), tol=ATOL)
- assert ae(v.real, -13.470936071475245856, tol=PTOL)
- assert ae(v.imag, 15.322492395731230968, tol=PTOL)
- v = fp.ei((20.0 - 20.0j))
- assert ae(v, (16589317.398788971896 - 5831705.4712368307104j), tol=ATOL)
- assert ae(v.real, 16589317.398788971896, tol=PTOL)
- assert ae(v.imag, -5831705.4712368307104, tol=PTOL)
- v = fp.ei((30.0 - 30.0j))
- assert ae(v, (-154596484273.69322527 + 204179357834.2723043j), tol=ATOL)
- assert ae(v.real, -154596484273.69322527, tol=PTOL)
- assert ae(v.imag, 204179357834.2723043, tol=PTOL)
- v = fp.ei((40.0 - 40.0j))
- assert ae(v, (287512180321448.45408 - 4203502407932318.1156j), tol=ATOL)
- assert ae(v.real, 287512180321448.45408, tol=PTOL)
- assert ae(v.imag, -4203502407932318.1156, tol=PTOL)
- v = fp.ei((50.0 - 50.0j))
- assert ae(v, (36128528616649268826.0 + 64648801861338741960.0j), tol=ATOL)
- assert ae(v.real, 36128528616649268826.0, tol=PTOL)
- assert ae(v.imag, 64648801861338741960.0, tol=PTOL)
- v = fp.ei((80.0 - 80.0j))
- assert ae(v, (-3.8674816337930010217e+32 + 3.0540709639658071041e+32j), tol=ATOL)
- assert ae(v.real, -3.8674816337930010217e+32, tol=PTOL)
- assert ae(v.imag, 3.0540709639658071041e+32, tol=PTOL)
- v = fp.ei((4.6566128730773925781e-10 - 1.1641532182693481445e-10j))
- assert ae(v, (-20.880034621082893023 - 0.24497866324327947603j), tol=ATOL)
- assert ae(v.real, -20.880034621082893023, tol=PTOL)
- assert ae(v.imag, -0.24497866324327947603, tol=PTOL)
- v = fp.ei((1.0 - 0.25j))
- assert ae(v, (1.8942716983721074932 - 0.67268237088273915854j), tol=ATOL)
- assert ae(v.real, 1.8942716983721074932, tol=PTOL)
- assert ae(v.imag, -0.67268237088273915854, tol=PTOL)
- v = fp.ei((4.0 - 1.0j))
- assert ae(v, (14.806699492675420438 - 12.280015176673582616j), tol=ATOL)
- assert ae(v.real, 14.806699492675420438, tol=PTOL)
- assert ae(v.imag, -12.280015176673582616, tol=PTOL)
- v = fp.ei((8.0 - 2.0j))
- assert ae(v, (-54.633252667426386294 - 416.34477429173650012j), tol=ATOL)
- assert ae(v.real, -54.633252667426386294, tol=PTOL)
- assert ae(v.imag, -416.34477429173650012, tol=PTOL)
- v = fp.ei((20.0 - 5.0j))
- assert ae(v, (711836.97165402624643 + 24745247.798103247366j), tol=ATOL)
- assert ae(v.real, 711836.97165402624643, tol=PTOL)
- assert ae(v.imag, 24745247.798103247366, tol=PTOL)
- v = fp.ei((80.0 - 20.0j))
- assert ae(v, (4.2139911108612653091e+32 - 5.3367124741918251637e+32j), tol=ATOL)
- assert ae(v.real, 4.2139911108612653091e+32, tol=PTOL)
- assert ae(v.imag, -5.3367124741918251637e+32, tol=PTOL)
- v = fp.ei((120.0 - 30.0j))
- assert ae(v, (-9.7760616203707508892e+48 + 1.058257682317195792e+50j), tol=ATOL)
- assert ae(v.real, -9.7760616203707508892e+48, tol=PTOL)
- assert ae(v.imag, 1.058257682317195792e+50, tol=PTOL)
- v = fp.ei((160.0 - 40.0j))
- assert ae(v, (-8.7065541466623638861e+66 - 1.6577106725141739889e+67j), tol=ATOL)
- assert ae(v.real, -8.7065541466623638861e+66, tol=PTOL)
- assert ae(v.imag, -1.6577106725141739889e+67, tol=PTOL)
- v = fp.ei((200.0 - 50.0j))
- assert ae(v, (3.070744996327018106e+84 + 1.7243244846769415903e+84j), tol=ATOL)
- assert ae(v.real, 3.070744996327018106e+84, tol=PTOL)
- assert ae(v.imag, 1.7243244846769415903e+84, tol=PTOL)
- v = fp.ei((320.0 - 80.0j))
- assert ae(v, (-9.9960598637998647276e+135 + 2.6855081527595608863e+136j), tol=ATOL)
- assert ae(v.real, -9.9960598637998647276e+135, tol=PTOL)
- assert ae(v.imag, 2.6855081527595608863e+136, tol=PTOL)
|