Definitions of sqrt, sin, cos, pow etc. in cmath

后端 未结 8 1234
野趣味
野趣味 2020-12-13 00:13

Are there any definitions of functions like sqrt(), sin(), cos(), tan(), log(), exp() (these fr

8条回答
  •  执笔经年
    2020-12-13 01:15

    Every implementation may be different, but you can check out one implementation from glibc's (the GNU C library) source code.

    edit: Google Code Search has been taken offline, so the old link I had goes nowhere.

    The sources for glibc's math library are located here:

    http://sourceware.org/git/?p=glibc.git;a=tree;f=math;h=3d5233a292f12cd9e9b9c67c3a114c64564d72ab;hb=HEAD

提交回复
热议问题