参考资料
Lloyd N. Trefethen. 2018. Approximation Theory and Approximation Practice.
Lloyd N. Trefethen. 2000. Spectral Methods in Matlab.
T. A. Driscoll, N. Hale, and L. N. Trefethen, editors, Chebfun Guide, Pafnuty Publications, Oxford, 2014.
数值实现
Matlab 2019a
地球物理局 近似理论与数值技术研究所
# 声明
# 欢迎批评指正,禁止转载
目 录
石中居士:基于Chebfun开源程序包的近似理论及数值实现——目录zhuanlan.zhihu.com构建简单的chebfun
有超过300个命令可以应用到一个chebfun。对于其中许多的列表,您可以键入方法:
Methods for class chebfun:
abs csc jaccoeffs range
acos cscd join rank
acosd csch jump rdivide
acosh ctranspose kron real
acot cummax ldivide reallog
acotd cummin le realpow
acoth cumprod legcoeffs realsqrt
acsc cumsum length rem
acscd cylinder log remez
acsch deriv log10 removeDeltas
airy diff log1p repmat
all dirac log2 residue
and disp logical restrict
angle display loglog roots
any domain lt round
arcLength eigs lu sec
area ellipj mat2cell secd
arrowplot ellipke max sech
asec end mean semilogx
asecd eq measure semilogy
asech erf merge sign
asin erfc mesh simplify
asind erfcinv min sin
asinh erfcx minandmax sinc
atan erfinv minus sind
atan2 exp mldivide sinh
atan2d expm mod size
atand expm1 movie sound
atanh feval mpower spy
besselh fill mrdivide sqrt
besseli find mtimes std
besselj fix nchoosek subsasgn
besselk fliplr ne subspace
bessely flipud newDomain subsref
bvp4c floor nextpow2 sum
bvp5c fracDiff norm surf
cat fracInt normal surface
ceil fred normest surfc
cf gamma not svd
cheb2cell ge null tan
cheb2quasi get num2cell tand
chebcoeffs gmres or tanh
chebellipseplot gt orth times
chebfun heaviside overlap transpose
chebpade horzcat pde15s trigcoeffs
chebpoly hscale pde23t trigpade
chebtune hypot permute trigremez
circconv imag pinv truncate
comet innerProduct plot uminus
comet3 integral plot3 unwrap
complex inv plotcoeffs uplus
compose isPeriodicTech plotregion vander
cond isdelta plus var
conj isempty poly vertcat
conv isequal polyfit volt
cos isfinite polyval vscale
cosd ishappy pow2 waterfall
cosh isinf power why
cot isnan prod xor
cotd isreal qr
coth issing quantumstates
cov iszero quasi2cheb
Static methods:
dct idst nufft pchip
dlt interp1 nufft2 spline
dst inufft ode113 update
idct lagrange ode15s
idlt ndct ode45
要了解命令的作用,可以使用help。
help
sum Definite integral of a CHEBFUN.
sum(F) is the integral of a column CHEBFUN F over its domain of definition.
sum(F, A, B), where A and B are scalars, integrates a column CHEBFUN F over
[A, B], which must be a subdomain of F.domain:
B
/
sum(F) = | F(t) dt.
/
A
sum(F, A, B), where A and B are CHEBFUN objects, returns a CHEBFUN S which
satisfies
B(s)
/
S(s) = | F(t) dt.
/
A(s)
sum(F, DIM), where DIM is one of 1, 2, sums F over the dimension DIM. If F
is a column CHEBFUN and DIM = 1 or if F is a row CHEBFUN and DIM = 2 then
this integrates in the continuous dimension of F, as described above.
Otherwise, sum(F, DIM) sums across the columns (rows) of the column (row)
CHEBFUN F.
上面列表中的大部分命令存在于普通MATLAB中;一些例外是
、
和
。我们已经看到了
和
的作用。事实上,我们也已经见过
,因为它是MATLAB命令,用于(以及其他)圆括号中的参数求值。下面是它的另一个用法:
clear
ans =
0.137931034482759
真实结果对比如下:
1/(1+25/4)
ans =
0.137931034482759
在这个Runge函数示例中,我们还隐式地看到了
、
、
和
,所有这些函数都已从它们通常使用的MATLAB中重载,以应用于chebfuns。
在下一部分中,我们将系统地探索其中的许多命令。然而,首先,我们应该看到chebfuns不限于光滑函数。