属虎和什么属相最配| 孩子肚子疼挂什么科| 跟腱为什么会断裂| 知恩图报是什么意思| 黄泉是什么意思| 端午节晚上吃什么| 为什么怀不上孩子| 一直咳嗽不好是什么原因| 丹参是什么样子的图片| 隔岸观火是什么意思| 95年的属什么生肖| 金牛座与什么星座最配| 今年21岁属什么生肖| 保险属于什么行业| 一路卷风迎大年是什么生肖| 金的部首是什么| 二月一日是什么星座| 心房颤动是什么意思| 糖尿病2型是什么意思| 空腹血糖17已经严重到什么时候| 青睐什么意思| 雷诺氏病是一种什么病| 银鱼是什么鱼| 蒲公英有什么好处| 西洋参不能和什么一起吃| 己巳是什么意思| 1987年属什么生肖| 员工体检费计入什么科目| 头发为什么会变黄| 1943年属什么生肖| 追求是什么意思| 补肾壮阳吃什么好| 明天是什么日子| 执拗是什么意思| 睡觉磨牙什么原因| 护肝养肝吃什么药| gbs是什么意思| 拔罐有什么作用| 耳聋吃什么药| esrd医学上是什么意思| 吃中药喝酒有什么影响| 寂是什么意思| 手抖是什么病的前兆| 事宜愿为是什么意思| 脚肿是什么原因造成的| 海马吃什么| 阴道炎用什么栓剂| 星期天左眼皮跳是什么预兆| 补钙什么时间段最好| 肥宅是什么意思| fourone是什么牌子| 质询是什么意思| 笨和蠢有什么区别| 受割礼是什么意思| 出恭什么意思| 人流后吃什么药| 抢沙发是什么意思| 舌自心念什么| 左手小指疼痛预兆什么| 吃阿胶有什么好处| 普洱茶有什么功效与作用| 台风什么时候登陆| 帕罗西汀是什么药| 倒春寒是什么意思| 淋巴结肿大是什么原因引起的| 11月20号什么星座| 什么洗面奶好| 颈椎病头晕吃什么药好| 双抗是什么意思| 眼睛痒什么原因| 梦见门坏了什么意思| 山东都有什么大学| 高血压和高血脂有什么区别| 早上口苦是什么原因| 什么症状提示月经马上要来了| 黄芪入什么经| ims是什么意思| 苦荞是什么| 旗袍搭配什么鞋子好看| 睾丸潮湿吃什么药| 2000年是什么生肖| 逆钟向转位什么意思| 12月25日是什么日子| 晚上吃什么减肥效果最好| 什么叫同理心| 感性是什么意思| 刺身是什么鱼| 被艹是什么感觉| 孕初期需要注意些什么| 不走寻常路是什么品牌| 1020是什么星座| 左灯右行什么意思| 什么泡水喝能降血压| 手上脱皮是什么原因| 气血不足什么症状| 什么牌子冰箱好| 低压高会引起什么后果| 洗牙喷砂是什么意思| 飞蚊症是什么原因造成的能治愈吗| 奥斯卡是什么意思| 住院门槛费是什么意思| 带状疱疹什么样子| 2007年属什么| 手链突然断了预示什么| 孕妇手肿是什么原因| 倒数是什么意思| 完美落幕是什么意思| 儿保做些什么检查项目| 拥趸是什么意思| 苹果什么时候成熟| 斑是什么原因造成的| 湿温病是什么症状| 伏特加是用什么酿造的| 一个牙一个合是什么字| b27是什么检查| 意念是什么意思| 什么样的小溪| 心脏扩大吃什么药好| 刚需是什么意思| 琳琅是什么意思| 蝎子的天敌是什么| 梦见刨红薯是什么意思| 早上的太阳叫什么| 为什么六月腊月不搬家| 什么叫安置房| 痔疮什么症状| 彩虹是什么形状| 折耳根是什么| 吃什么可以降火祛痘| t波改变是什么意思| 10月16是什么星座| 龟头炎看什么科| 甜不辣是什么| 肥胖纹长什么样| birads3类是什么意思| 狗狗喝什么水| 梦见爆炸是什么意思| 手掌中间那条线是什么线| 浪蹄子什么意思| 为什么长斑| 6.8是什么星座| 虾青素有什么功效| 吃什么去肝火| 邪淫是什么意思| 喉咙有异物感挂什么科| 象牙白适合什么肤色| betty是什么意思| 月黑风高什么意思| ysy是什么意思| 黄金有什么用| 胰腺在什么位置| 针眼用什么眼药水| 出去旅游需要带什么| 血小板低吃什么补的快| 为什么会得人工荨麻疹| 啤酒酵母是什么| ph值低是什么原因| 皴是什么意思| 一九四九年属什么生肖| 下体瘙痒用什么药| 什么是翻新机| 鸢的俗称是什么| 智叟是什么意思| 拉直和软化有什么区别| 三唑仑是什么药| 手腕凸起的骨头叫什么| 孩子急性肠胃炎吃什么药| 肺炎支原体抗体阳性是什么意思| 痔疮的表现症状是什么| 肝脏分泌什么| 肝小钙化灶是什么意思| 囹圄是什么意思| 阴柔是什么意思| 蜜蜂是什么生肖| 骨折什么意思| 两班倒是什么意思| 绿豆和什么相克| 9.1号是什么星座| 什么东西晚上才生出尾巴| 小鱼的尾巴有什么作用| 知了有什么功效与作用| 蠼螋吃什么| 一年四季都盛开的花是什么花| 发痧是什么原因造成的| 属鼠是什么命| 地盆是一种什么病| ecc是什么意思| 牛标志的车是什么牌子| 1206是什么星座| 2001年什么年| 糖尿病什么症状| 扁平苔藓有什么症状| 牙齿疼是什么原因| 吃醋是什么意思| 20岁属什么| 两肋胀满闷胀是什么病| 自求多福什么意思| 支那是什么意思| 竹字头均念什么名字| 检测毛囊去什么医院| 八仙过海指什么生肖| 秒杀什么意思| 胃疼吃什么药最好| 胃炎能吃什么| 玉越戴越亮是什么原因| 银行卡为什么会被冻结| 椰子什么时候成熟| 颈动脉斑块是什么意思| 鼻息肉是什么样的图片| 晁盖的绰号是什么| 双脚浮肿是什么原因| 逍遥丸的功效和作用是什么| 望尘莫及是什么意思| 七月十五有什么忌讳| 6月21是什么星座| 点痣挂什么科室| gxg是什么牌子| 什么是kpi| 息肉和痔疮有什么区别| 梦到鳄鱼是什么意思| 放疗与化疗区别是什么| 脖子后面疼是什么原因| 水饮是什么意思| 乘风破浪的意思是什么| qn是什么医嘱| h代表什么单位| 肺纤维化是什么意思| 左肾窦分离是什么意思| 规培生是什么意思| 湍急是什么意思| shit什么意思中文| 心慌心闷是什么原因| 不到长城非好汉的下一句是什么| 艾滋病窗口期是什么意思| 台甫是什么意思| 巧克力囊肿是什么意思| 什么叫朋友| 甘少一横是什么字| 室缺是什么意思| 右眼皮跳有什么预兆| 什么是疱疹| 拔完牙可以吃什么| 大便泡沫状是什么原因| 家里为什么会有蜘蛛| pp是什么材质| 艾迪生病是什么病| 小孩便秘吃什么通便快| 锡兵是什么| 吃桃子有什么好处| mfd是什么意思| 什么体投地| 04年是什么年| 南瓜有什么功效| pony是什么意思| 1110是什么星座| 更年期什么时候结束| 做一半就软了是什么原因| 纳财是什么意思| 白酒泡什么补肾壮阳最好| 清补凉是什么| 五行大林木是什么意思| 花中皇后是什么花| 王八吃什么食物| 王久是什么字| 百度

人物 这一次,她终于上了热搜!这才是真正的国民女神-新闻人物-时政频道-中工网

百度 ”对于党的各级领导干部来说,治省、治市、治县乃至治镇、治村,都应当有这种精神,不懈怠、不马虎,夙夜在公、勤勉工作。

In computer science, a math library (or maths library) is a component of a programming language's standard library containing functions (or subroutines) for the most common mathematical functions, such as trigonometry and exponentiation. Bit-twiddling and control functionalities related to floating point numbers may also be included (such as in C).

Examples include:

In some languages (such as haskell) parts of the standard library (including maths) are imported by default.[4]

More advanced functionality such as linear algebra is usually provided in 3rd party libraries, such as a linear algebra library or vector maths library.

Implementation outline

edit

Basic operations

edit

In a math library, it is frequently useful to use type punning to interpret a floating-point number as an unsigned integer of the same size. This allows for faster inspection of certain numeral properties (positive or not) and number comparison. In more advanced cases, bit twiddling may be used to modify a number in a specific way.

For more exact operation, a double double or even triple double format may be used. In this case, a high-precision number is expressed as the sum of two or three floating-point numbers.[5]

Transcendental functions

edit

Transcendental functions such as log, exponential, and trig functions make up the backbone of any math library. These functions are generally implemented by a polynomial fit, usually a Taylor polynomial or a Chebyshev polynomial derived by the Remez algorithm (having the benefit of an improved error bound), but the pre-processing steps are equally important.[5]

Trignometry

edit

Range reduction (also argument reduction, domain-splitting) is the first step for any function, after checks for unusual values (infinity and NaN) are performed. The goal here is to reduce the domain of the argument for the polynomial to process, using the function's symmetry and periodicity (if any), setting flags to indicate e.g. whether to negate the result in the end (if needed). It is worth noting that periodic functions require higher-than-input precision when reducing, with the prototypical method being the Payne–Hanek–Corbett algorithm.[6] After range reduction, near-zero values may be subject to a "fast path": for example, a tiny input x can be returned directly in sin, while 1 ? |x| may be used for cos.

The next step is the evaluation of the polynomial, with a conventional Horner's method used. After that, the sign of the result can be flipped according to the information from the range-reduction routine before being returned.

Logarithm and exponential

edit

Logarithm in base 2 is relatively straightforward, as the integer part k is already in the floating-point exponent; a preliminary range reduction is accordingly performed, yielding k. The mantissa x (where log2(x) is between -1/2 and 1/2) is then compared to a table and intervals for further reduction into a z with known log2 and an in-range x/z, along with polynomial coefficients used for the interval x/z is in. The result is then log(z) + log(x/z) + k.[7] Logarithm in other bases follow a similar approach, with the differences being (a) a different table is used; (b) k needs to be multiplied by log2(new-base).[7]

Exponential in base 2 is similarly the "base case" due to floating-point structure. The procedure is simply a combination of range reduction (usually by lookup) and a polynomial over the remaining mantissa.[7] The natural exponent may be implemented with a separate table for precision, while exp10 can simply be exp(x × log2(10)) when in-range.[7] Finally, the any-base exponent function pow() is built around exp() and log() in the general case.[7]

See also

edit

References

edit
  1. ^ "C math library".
  2. ^ "java maths library".
  3. ^ "haskell prelude maths".
  4. ^ "haskell prelude".
  5. ^ a b Daramy-Loirat, Catherine; Defour, David; Dinechin, Florent de; Gallet, Matthieu; Gast, Nicolas; Lauter, Christoph; Muller, Jean-Michel (December 2006). CR-LIBM A library of correctly rounded elementary functions in double-precision (Report).
  6. ^ Brisebarre, N.; Defour, D.; Kornerup, P.; Muller, J.-M.; Revol, N. (March 2005). "A new range-reduction algorithm". IEEE Transactions on Computers. 54 (3): 331–339. doi:10.1109/TC.2005.36.
  7. ^ a b c d e musl v1.2.2 math directory, log1p.c, log2.c, log10.c, exp2.c
o型血与a型血生的孩子是什么血型 前列腺增生用什么药 经血发黑是什么原因 死鱼是什么意思 来姨妈可以吃什么水果
指鹿为马指什么生肖 早上打碎碗是什么兆头 甲沟炎是什么样子的 swisse是什么药 转氨酶高不能吃什么
磅礴是什么意思 吃什么药通气放屁最快 脚踝水肿是什么原因 什么样的夕阳 什么带不能系
胃胀气是什么症状 洛阳有什么好吃的 过敏性皮炎用什么药 煲电话粥什么意思 双脚冰凉是什么原因
霸王龙吃什么hcv8jop6ns0r.cn 胸口疼是什么原因0297y7.com 出家当尼姑需要什么条件imcecn.com 骨折用什么药恢复快jingluanji.com 为什么晚上血压比白天高hcv9jop8ns3r.cn
糖原是什么bjhyzcsm.com 狐狸吊坠有什么寓意hcv9jop6ns5r.cn 食道疼是什么原因hcv9jop7ns3r.cn 为什么抽烟hcv8jop0ns7r.cn 需要一半留下一半是什么字hcv8jop9ns1r.cn
查脂肪肝做什么检查hcv9jop7ns1r.cn 提前吃什么喝酒不醉hcv8jop1ns8r.cn 促甲状腺激素偏低是什么意思hcv9jop5ns0r.cn 路上行人匆匆过是什么歌hcv7jop9ns6r.cn 热玛吉是什么意思hcv8jop4ns8r.cn
3ph是什么意思hcv8jop0ns9r.cn 酸汤鱼用什么鱼ff14chat.com 什么是早搏hcv8jop3ns8r.cn 吃什么东西能减肥hcv8jop5ns7r.cn 什么西瓜好吃hcv9jop2ns8r.cn
百度