UNPKG

double-double

Version:

Pure double-double precision functions *with strict error bounds*.

1 lines 4.8 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{156:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return u})),r.d(t,"metadata",(function(){return l})),r.d(t,"rightToc",(function(){return b})),r.d(t,"default",(function(){return c}));var n=r(2),o=r(9),a=(r(0),r(207)),u={id:"_double_double_multi_dd_product_",title:"ddProduct",sidebar_label:"ddProduct"},l={id:"modules/_double_double_multi_dd_product_",isDocsHomePage:!1,title:"ddProduct",description:"ddProduct(qs number[]",source:"@site/docs\\modules\\_double_double_multi_dd_product_.md",permalink:"/double-double/docs/modules/_double_double_multi_dd_product_",sidebar_label:"ddProduct",sidebar:"sidebar",previous:{title:"ddMultDd",permalink:"/double-double/docs/modules/_double_double_binary_dd_mult_dd_"},next:{title:"ddSum",permalink:"/double-double/docs/modules/_double_double_multi_dd_sum_"}},b=[],d={rightToc:b};function c(e){var t=e.components,r=Object(o.a)(e,["components"]);return Object(a.b)("wrapper",Object(n.a)({},d,r,{components:t,mdxType:"MDXLayout"}),Object(a.b)("p",null,Object(a.b)("strong",{parentName:"p"},"ddProduct"),"(",Object(a.b)("inlineCode",{parentName:"p"},"qs"),": number","[][]","): ",Object(a.b)("em",{parentName:"p"},"number[]")),Object(a.b)("p",null,Object(a.b)("em",{parentName:"p"},"Defined in ",Object(a.b)("a",Object(n.a)({parentName:"em"},{href:"https://github.com/FlorisSteenkamp/double-double/blob/d35ae52/src/double-double/multi/dd-product.ts#L13"}),"double-double/multi/dd-product.ts:13"))),Object(a.b)("p",null,"Returns the result of multiplying together an array of double-double-precision\nfloating point numbers naively (i.e. not using pairwise addition to reduce\nerror a bit)."),Object(a.b)("ul",null,Object(a.b)("li",{parentName:"ul"},"an error bound is given by: (n-1)(1+\u03f5),\nwhere \u03f5 <= 7u^2, u = 0.5 * Number.EPSILON")),Object(a.b)("p",null,Object(a.b)("strong",{parentName:"p"},"Parameters:")),Object(a.b)("table",null,Object(a.b)("thead",{parentName:"table"},Object(a.b)("tr",{parentName:"thead"},Object(a.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(a.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Type"))),Object(a.b)("tbody",{parentName:"table"},Object(a.b)("tr",{parentName:"tbody"},Object(a.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(a.b)("inlineCode",{parentName:"td"},"qs")),Object(a.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"number","[][]")))),Object(a.b)("p",null,Object(a.b)("strong",{parentName:"p"},"Returns:")," ",Object(a.b)("em",{parentName:"p"},"number[]")))}c.isMDXComponent=!0},207:function(e,t,r){"use strict";r.d(t,"a",(function(){return i})),r.d(t,"b",(function(){return s}));var n=r(0),o=r.n(n);function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function b(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},a=Object.keys(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)r=a[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var d=o.a.createContext({}),c=function(e){var t=o.a.useContext(d),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},i=function(e){var t=c(e.components);return o.a.createElement(d.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return o.a.createElement(o.a.Fragment,{},t)}},m=o.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,a=e.originalType,u=e.parentName,d=b(e,["components","mdxType","originalType","parentName"]),i=c(r),m=n,s=i["".concat(u,".").concat(m)]||i[m]||p[m]||a;return r?o.a.createElement(s,l(l({ref:t},d),{},{components:r})):o.a.createElement(s,l({ref:t},d))}));function s(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var a=r.length,u=new Array(a);u[0]=m;var l={};for(var b in t)hasOwnProperty.call(t,b)&&(l[b]=t[b]);l.originalType=e,l.mdxType="string"==typeof e?e:n,u[1]=l;for(var d=2;d<a;d++)u[d]=r[d];return o.a.createElement.apply(null,u)}return o.a.createElement.apply(null,r)}m.displayName="MDXCreateElement"}}]);