whittakerW
惠特克W函数
描述
例子
计算惠特克W函数的数字输入
计算这些数字的惠特克W函数。因为这些数字不是符号对象,所以你得到的是浮点数结果。
[whittakerW (1, 1, 1), whittakerW(2, 1, 3/2 + 2 *我),…whittakerW(2, 2, 2), whittakerW(3, -0.3, 1/101)]
Ans = 1.1953 -0.0156 - 0.0225i 4.8616 -0.1692
计算符号输入的惠特克W函数
计算转换为符号对象的数字的惠特克W函数。对于大多数符号(精确)数字,whittakerW
返回未解决的符号调用。
[whittakerW(信谊(1),1,1),whittakerW(2信谊(1)3/2 + 2 *我),…whittakerW(2, 2, sym(2)), whittakerW(sym(3), -0.3, 1/101)]
ans = [whittakerW(1,1,1), whittakerW(- 2,1,3 /2 + 2i), whittakerW(2,2,2), whittakerW(3, -3/ 10,1 /101)]
对于符号变量和表达式,whittakerW
还返回未解决的符号调用:
syms a b x y [whittakerW(a, b, x), whittakerW(1, x, x^2),…whittakerW(2, x, y), whittakerW(3, x + y, x*y)]
ans = [whittakerW(a, b, x), whittakerW(1, x, x^2), whittakerW(2, x, y), whittakerW(3, x + y, x*y)]
求解Whittaker函数的ODE
解这个二阶微分方程。解是用W金宝搏官方网站hittaker函数给出的。
信谊b w (z) dsolve (diff (w, 2) + (1/4 + a / z + (1/4 - b ^ 2) / z ^ 2) * w = = 0)
ans = C2 * whittakerM (- a, b - z) + C3 * whittakerW (- a, b - z)
验证Whittaker函数是ODE的解
验证Whittaker W函数是这个微分方程的有效解:
syms a b z isAlways(diff(whittakerW(a, b, z), z, 2) +…(1/4 + a / z + (1/4 - b ^ 2) / z ^ 2) * whittakerW (a, b, z) = = 0)
Ans =逻辑1
验证whittakerW(-a, -b, -z)
也为该微分方程的有效解:
syms a b z isAlways(diff(whittakerW(-a, -b, -z), z, 2) +…(1/4 + a / z + (1/4 - b ^ 2) / z ^ 2) * whittakerW (- a, b - z) = = 0)
Ans =逻辑1
计算Whittaker W函数的特殊值
惠特克W函数对一些参数有特殊的值:
whittakerW(sym(-3/2), 1/2, 0)
Ans = 4/(3* (1/2))
符号a b x whittakerW(0, b, x)
ans = (x ^ (b + 1/2) * besselk (b, x / 2)) / (x ^ b *π^ (1/2))
whittakerW(a, -a + 1/2, x)
Ans = x^(1 - a)*x^(2*a - 1)*exp(-x/2)
whittakerW(a - 1/2, a, x)
ans = (x ^ (+ 1/2) * exp (- x / 2) * exp (x) * igamma (2 * x)) / x ^ (2 *)
微分惠特克W函数
对Whittaker W函数表达式求导:
syms a b z diff(whittakerW(a,b,z), z)
ans = - (a/z - 1/2)*whittakerW(a, b, z) -…whittakerW(a + 1, b, z)/z
计算惠特克W函数矩阵输入
计算矩阵元素的惠特克W函数一个
:
syms x A = [-1, x^2;0, x];whittakerW(-1/2, 0, A)
Ans = [-exp(-1/2)*(ei(1) + pi*1i)*1i,…exp (x ^ 2) * exp (- x ^ 2/2) * expint (x ^ 2) * (x ^ 2) ^(1/2)][0,…x ^ (1/2) * exp (- x / 2) * exp (x) * expint (x))
输入参数
更多关于
提示
所有非标量参数必须具有相同的大小。如果一个或两个输入参数是非标量的,则
whittakerW
将标量展开为与非标量参数大小相同的向量或矩阵,其中所有元素都等于相应的标量。
参考文献
[1] Slater, L. J.“Cofluent超几何函数”。手册的数学函数与公式,图形,和数学表。(M. Abramowitz和I. A. Stegun编)。纽约:多佛,1972年。