C++中的y1函数

C++中的y1函数

因为在那次也说了,已经开始写本地blog了,考虑到wp需要php环境的问题,感觉不是很方便,就用markdown写了,网盘 + 移动硬盘备份,应该目前满足需求,并且方便维护~~~所以好久没在这个上面发心得了 – 嘤嘤嘤qwq (不过也没人看,无所谓,哈哈,哭泣~~)

关于这个y1函数的问题就是可能在某一天,用到了y1然后编译器突然报错了,说这个y1被重复声明

最后查看msdn上可以知道的巨硬定义的是:

Bessel Functions: _j0, _j1, _jn, _y0, _y1, _yn

double _j0(
   double x
);
double _j1(
   double x
);
double _jn(
   int n,
   double x
);
double _y0(
   double x
);
double _y1(
   double x
);
double _yn(
   int n,
   double x
);

也就是:贝塞尔函数

https://en.wikipedia.org/wiki/Bessel_function

但是这个也不是y1呀,也是_y1,不过确实在用msvc的时候也并没有出现这个冲突,主要发生的好像是gcc,然后查了一波发现是gcc的私货,glibc文档中是这样说的(摘过来的):

Function: double j0 (double x)
j0 returns the Bessel function of the first kind of order 0 of x. It may signal underflow if x is too large.
Function: double j1 (double x)
j1 returns the Bessel function of the first kind of order 1 of x. It may signal underflow if x is too large.
Function: double jn (int n, double x)
jn returns the Bessel function of the first kind of order n of x. It may signal underflow if x is too large.
Function: double y0 (double x)
y0 returns the Bessel function of the second kind of order 0 of x. It may signal underflow if x is too large. If x is negative, y0 signals a domain error; if it is zero, y0 signals overflow and returns -∞.
Function: double y1 (double x)
y1 returns the Bessel function of the second kind of order 1 of x. It may signal underflow if x is too large. If x is negative, y1 signals a domain error; if it is zero, y1 signals overflow and returns -∞.
Function: double yn (int n, double x)
yn returns the Bessel function of the second kind of order n of x. It may signal underflow if x is too large. If x is negative, yn signals a domain error; if it is zero, yn signals overflow and returns -∞.

0

2条评论

发表评论

电子邮件地址不会被公开。 必填项已用*标注

9 + 18 =