UNPKG

@stdlib/esm

Version:

ES module distribution for Stdlib, a standard library for JavaScript and Node.js.

3 lines 3.6 kB
// This file is a part of stdlib. License is Apache-2.0: http://www.apache.org/licenses/LICENSE-2.0 import e from"./../assert/is-infinite.js";import n from"./../assert/is-nan.js";import r from"./cos.js";import t from"./sin.js";import o from"./ln.js";import i from"./../../../constants/math/float64-half-pi.js";import f from"./../../../constants/math/float64-eulergamma.js";import u from"./../../../constants/math/float64-ninf.js";function a(e){return 0===e?5.489002234213736e-7:5.489002234213736e-7+e*(.00010893658065032867+e*(.006810201324725182+e*(.16700661183132304+e*(1.6208328770153833+e*(5.4593771716181285+4.236128628922166*e)))))}function s(e){return 0===e?5.489002527562557e-7:5.489002527562557e-7+e*(.00011003435715391573+e*(.007017106683227897+e*(.1787920529631499+e*(1.867922579501842+e*(7.308288225055645+e*(8.16496634205391+1*e))))))}function m(e){return 0===e?970507110881952e-28:970507110881952e-28+e*(941779576128513e-25+e*(3.200927900910049e-8+e*(48621543082645475e-22+e*(.00034955644244785906+e*(.01160642294081244+e*(.16030015822231947+e*(.7137152741001467+.4558808734704653*e)))))))}function c(e){return 0===e?970507110881952e-28:970507110881952e-28+e*(9437205903502767e-26+e*(3.21956939101046e-8+e*(4924350643178815e-21+e*(.00035869648188185157+e*(.012225359477197129+e*(.17868554533207454+e*(.9174636118736841+1*e)))))))}function p(e){return 0===e?7.825790407440903e-9:7.825790407440903e-9+e*(19796387414096365e-22+e*(.00016199979459893403+e*(.005388686814621773+e*(.07485277376284691+e*(.3971802963923375+e*(.6113791099522193+.08710016989731142*e))))))}function j(e){return 0===e?7.825792189335346e-9:7.825792189335346e-9+e*(20265918208634397e-22+e*(.0001732210814741771+e*(.006223963454417684+e*(.09887717612776888+e*(.666296701268988+e*(1.6440220241335535+1*e))))))}function l(e){return 0===e?31404009894636335e-31:31404009894636335e-31+e*(3859459254302766e-27+e*(1.7040445278204452e-9+e*(3.471311670841167e-7+e*(34894116550227946e-21+e*(.001717182390523479+e*(.03848787676499743+e*(.33041097930563207+.6973599534432762*e)))))))}function N(e){return 0===e?31404009894636335e-31:31404009894636335e-31+e*(3878301660239547e-27+e*(1.7269374896631615e-9+e*(3.5704322344374083e-7+e*(3684755044425611e-20+e*(.0019028442667439953+e*(.04679131942596258+e*(.48785225869530496+e*(1.6854889881101165+1*e))))))))}function h(e){return 0===e?1:1+e*(e*(.0009769454381704354+e*(e*(4.625917144270128e-8+-8391678279103039e-26*e)-9757593038436328e-21))-.04134703162294066)}function v(e){return 0===e?1:1+e*(.01420852393261499+e*(9964121220438756e-20+e*(4.418278428012189e-7+e*(1.279978911799433e-9+20326926619595193e-28*e))))}function g(e){return 0===e?-1:e*(.028915965260755523+e*(e*(3593250514199931e-21+e*(20252400238910228e-27*e-1.3524950491579076e-8))-.0004740072068734079))-1}function d(e){return 0===e?4:4+e*(.051002805623644606+e*(.00031744202477503275+e*(12321035568588342e-22+e*(3.067809975818878e-9+4077460400618806e-27*e))))}var x=e,b=n,k=r,q=t,w=o,y=i,z=f,A=u,B=a,C=s,D=m,E=c,F=p,G=j,H=l,I=N,J=h,K=v,L=g,M=d;function O(e,n){var r,t,o,i,f,u,a,s;if(b(n))return e[0]=NaN,e[1]=NaN,e;if(n<0?(r=-1,n=-n):r=0,0===n)return e[0]=0,e[1]=A,e;if(n>1e9){if(x(n))return-1===r?(t=-y,o=NaN):(t=y,o=0),e[0]=t,e[1]=o,e;t=y-k(n)/n,o=q(n)/n}return n>4?(a=q(n),i=k(n),s=1/(n*n),n<8?(f=B(s)/(n*C(s)),u=s*F(s)/G(s)):(f=D(s)/(n*E(s)),u=s*H(s)/I(s)),t=y-f*i-u*a,r&&(t=-t),o=f*a-u*i,e[0]=t,e[1]=o,e):(a=n*J(s=n*n)/K(s),i=s*L(s)/M(s),r&&(a=-a),t=a,o=z+w(n)+i,e[0]=t,e[1]=o,e)}var P=O;function Q(e,n){return 1===arguments.length?P([0,0],e):P(e,n)}var R=Q;export default R; //# sourceMappingURL=sici.js.map