This commit is contained in:
2023-11-14 17:10:27 +08:00
commit d5a822831c
423 changed files with 5909 additions and 0 deletions

18
FOTF Toolbox/contfrac0.m Normal file
View File

@ -0,0 +1,18 @@
function [cf,r]=contfrac0(f,s,n,a)
% contfrac0 - the interface to the MuPAD function contfrac
%
% [cf,r]=contfrac0(f,s,n,a)
%
% f - the symbolic expression of the original function
% s - the independent variable
% n - the approximation order of continued fractions
% a - the reference point
% cf - the symbolic expression of the continued fraction
% r - the symbolic expression of the rational form
% Copyright (c) Dingyu Xue, Northeastern University, China
% Last modified 28 March, 2017
cf=feval(symengine,'contfrac',f,[inputname(2) '=' num2str(a)],n);
if nargout==2
r=feval(symengine,'contfrac::rational',cf);
end