UNPKG

double-double

Version:

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

1 lines 6.61 kB
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{155:function(e,t,r){"use strict";r.r(t),r.d(t,"frontMatter",(function(){return o})),r.d(t,"metadata",(function(){return l})),r.d(t,"rightToc",(function(){return i})),r.d(t,"default",(function(){return c}));var n=r(2),a=r(9),b=(r(0),r(207)),o={id:"_double_double_with_error_dd_div_dd_with_error_",title:"ddDivDdWithError",sidebar_label:"ddDivDdWithError"},l={id:"modules/_double_double_with_error_dd_div_dd_with_error_",isDocsHomePage:!1,title:"ddDivDdWithError",description:"ddDivDdWithError(numer number[], nE number): object",source:"@site/docs\\modules\\_double_double_with_error_dd_div_dd_with_error_.md",permalink:"/double-double/docs/modules/_double_double_with_error_dd_div_dd_with_error_",sidebar_label:"ddDivDdWithError",sidebar:"sidebar",previous:{title:"doubleSqrt",permalink:"/double-double/docs/modules/_double_mixed_double_double_double_sqrt_"},next:{title:"divWithErr",permalink:"/double-double/docs/modules/_double_with_err_div_with_err_"}},i=[],d={rightToc:i};function c(e){var t=e.components,r=Object(a.a)(e,["components"]);return Object(b.b)("wrapper",Object(n.a)({},d,r,{components:t,mdxType:"MDXLayout"}),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"ddDivDdWithError"),"(",Object(b.b)("inlineCode",{parentName:"p"},"numer"),": number[], ",Object(b.b)("inlineCode",{parentName:"p"},"denom"),": number[], ",Object(b.b)("inlineCode",{parentName:"p"},"nE"),": number, ",Object(b.b)("inlineCode",{parentName:"p"},"dE"),": number): ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("p",null,Object(b.b)("em",{parentName:"p"},"Defined in ",Object(b.b)("a",Object(n.a)({parentName:"em"},{href:"https://github.com/FlorisSteenkamp/double-double/blob/d35ae52/src/double-double-with-error/dd-div-dd-with-error.ts#L28"}),"double-double-with-error/dd-div-dd-with-error.ts:28"))),Object(b.b)("p",null,"Returns the result of dividing two double-double-precision floating point\nnumbers together with an absolute error bound where nE and dE are absolute\nerror bounds on the ",Object(b.b)("em",{parentName:"p"},"input")," values."),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Parameters:")),Object(b.b)("table",null,Object(b.b)("thead",{parentName:"table"},Object(b.b)("tr",{parentName:"thead"},Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Name"),Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Type"),Object(b.b)("th",Object(n.a)({parentName:"tr"},{align:null}),"Description"))),Object(b.b)("tbody",{parentName:"table"},Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"numer")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"number[]"),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"numerator - a double-double-precision float")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"denom")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"number[]"),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"denominator - a double-double-precision float")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"nE")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"number"),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"absolute value error bound in numerator")),Object(b.b)("tr",{parentName:"tbody"},Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),Object(b.b)("inlineCode",{parentName:"td"},"dE")),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"number"),Object(b.b)("td",Object(n.a)({parentName:"tr"},{align:null}),"absolute value error bound in denominator")))),Object(b.b)("p",null,Object(b.b)("strong",{parentName:"p"},"Returns:")," ",Object(b.b)("em",{parentName:"p"},"object")),Object(b.b)("ul",null,Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"err"),": ",Object(b.b)("em",{parentName:"p"},"number")," = Number.POSITIVE_INFINITY")),Object(b.b)("li",{parentName:"ul"},Object(b.b)("p",{parentName:"li"},Object(b.b)("strong",{parentName:"p"},"est"),": ",Object(b.b)("em",{parentName:"p"},"number[]")))))}c.isMDXComponent=!0},207:function(e,t,r){"use strict";r.d(t,"a",(function(){return u})),r.d(t,"b",(function(){return O}));var n=r(0),a=r.n(n);function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(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?o(Object(r),!0).forEach((function(t){b(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t){if(null==e)return{};var r,n,a=function(e,t){if(null==e)return{};var r,n,a={},b=Object.keys(e);for(n=0;n<b.length;n++)r=b[n],t.indexOf(r)>=0||(a[r]=e[r]);return a}(e,t);if(Object.getOwnPropertySymbols){var b=Object.getOwnPropertySymbols(e);for(n=0;n<b.length;n++)r=b[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}var d=a.a.createContext({}),c=function(e){var t=a.a.useContext(d),r=t;return e&&(r="function"==typeof e?e(t):l(l({},t),e)),r},u=function(e){var t=c(e.components);return a.a.createElement(d.Provider,{value:t},e.children)},p={inlineCode:"code",wrapper:function(e){var t=e.children;return a.a.createElement(a.a.Fragment,{},t)}},m=a.a.forwardRef((function(e,t){var r=e.components,n=e.mdxType,b=e.originalType,o=e.parentName,d=i(e,["components","mdxType","originalType","parentName"]),u=c(r),m=n,O=u["".concat(o,".").concat(m)]||u[m]||p[m]||b;return r?a.a.createElement(O,l(l({ref:t},d),{},{components:r})):a.a.createElement(O,l({ref:t},d))}));function O(e,t){var r=arguments,n=t&&t.mdxType;if("string"==typeof e||n){var b=r.length,o=new Array(b);o[0]=m;var l={};for(var i in t)hasOwnProperty.call(t,i)&&(l[i]=t[i]);l.originalType=e,l.mdxType="string"==typeof e?e:n,o[1]=l;for(var d=2;d<b;d++)o[d]=r[d];return a.a.createElement.apply(null,o)}return a.a.createElement.apply(null,r)}m.displayName="MDXCreateElement"}}]);