首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

std::assoc_laguerref

double assoc_laguerre( unsigned int n, unsigned int m, double x ); double assoc_laguerre( unsigned int n, unsigned int m, float x ); double assoc_laguerre( unsigned int n, unsigned int m, long double x ); float assoc_laguerref( unsigned int n, unsigned int m, float x ); long double assoc_laguerrel( unsigned int n, unsigned int m, long double x );

(1)

(since C++17)

double assoc_laguerre( unsigned int n, unsigned int m, Integral x );

(2)

(since C++17)

1%29计算关联Laguerre多项式程度n,秩序m,以及争论x

4%29一组过载或接受任意参数的函数模板积分型将参数转换为double...

参数

n

-

the degree of the polymonial, a value of unsigned integer type

m

-

the order of the polynomial, a value of unsigned integer type

x

-

the argument, a value of a floating-point or integral type

返回值

如果没有错误发生,则相关的Laguerre多项式的值x,即%28-1%2900万

糖尿病

*。

DXM

L

n+m%28x%29,返回%28其中L

n+m%28x%29是不相关的Laguerre多项式,std::laguerre(n+m, x)29%。

错误处理

错误可以按数学[医]错误处理...

  • 如果参数为nan,则返回nan,并且不报告域错误。
  • 如果x为负值,则可能发生域错误。
  • 如果nm大于或等于128,则行为是实现定义的。

注记

不支持C++17但支持的实现ISO 29124:2010,则提供此功能__STDCPP_MATH_SPEC_FUNCS__由实现定义为值至少为201003L,且用户定义__STDCPP_WANT_MATH_SPEC_FUNCS__在包含任何标准库头之前。

不支持iso 29124:2010但支持tr 19768:2007%28TR1%29的实现,在标头中提供此功能。tr1/cmath和命名空间std::tr1...

此功能的实现也是可以在中学里找到。...

相关的Laguerre多项式是方程XY的多项式解,

+%28m+1-x%29y,

+NY=0。

前几个例子是:

  • 阿索克[医]Laguerre%280,m,x%29=1
  • 阿索克[医]Laguerre%281,m,x%29=-x+m+1
  • 阿索克[医]Laguerre%282,m,x%29=1.2。[X2

-2%28m+2%29x+%28m+1%29%28m+2%29]

  • 阿索克[医]Laguerre%283,m,x%29=1 6。[-x3

-3%28m+3%29x2

-3%28m+2%29%28m+3%29x+%28m+1%29%28m+2%28m+3%29]

二次

代码语言:javascript
复制
#include <cmath>
#include <iostream>
double L1(unsigned m, double x) { return -x + m + 1; }
double L2(unsigned m, double x) { return 0.5*(x*x-2*(m+2)*x+(m+1)*(m+2)); }
int main()
{
    // spot-checks
    std::cout << std::assoc_laguerre(1, 10, 0.5) << '=' << L1(10, 0.5) << '\n'
              << std::assoc_laguerre(2, 10, 0.5) << '=' << L2(10, 0.5) << '\n';
}

二次

产出:

二次

代码语言:javascript
复制
10.5=10.5
60.125=60.125

二次

另见

laguerrelaguerreflaguerrel (C++17)(C++17)(C++17)

Laguerre polynomials (function)

外部链接

关联的拉盖尔多项式。来自MathWorld的一个Wolfram Web资源。

代码语言:txt
复制
 ? cppreference.com

在CreativeCommonsAttribution下授权-ShareAlike未移植许可v3.0。

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com