用matlab求airy函数,Airy function

airy

Description

airy(x) returns the Airy function of

the first kind, Ai(x),

for each element of x.

airy(0,x) is the same

as airy(x).

airy(1,x) returns

the derivative of Ai(x).

airy(2,x) returns

the Airy function of

the second kind, Bi(x).

airy(3,x) returns

the derivative of Bi(x).

airy(n,x) uses

the values in vector n to return the corresponding

Airy functions of elements of vector x. Both n and x must

have the same size.

airy(___,1) returns the Scaled Airy Functions following the syntax

for the MATLAB® airy function.

Examples

Find the Airy Function of the First Kind

Find the Airy function of the first kind, Ai(x),

for numeric or symbolic inputs using airy. Approximate

exact symbolic outputs using vpa.

Find the Airy function of the first kind, Ai(x),

at 1.5. Because the input is double and not symbolic,

you get a double result.

airy(1.5)

ans =

0.0717

Find the Airy function of the values of vector v symbolically,

by converting v to symbolic form using sym.

Because the input is symbolic, airy returns exact

symbolic results. The exact symbolic results for most symbolic inputs

are unresolved function calls.

v = sym([-1 0 25.1 1+1i]);

vAiry = airy(v)

vAiry =

[ airy(0, -1), 3^(1/3)/(3*gamma(2/3)), airy(0, 251/10), airy(0, 1 + 1i)]

Numerically approximate the exact symbolic result using vpa.

vpa(vAiry)

ans =

[ 0.53556088329235211879951656563887, 0.35502805388781723926006318600418,...

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值