亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? solve.m

?? 以上上傳的是一個
?? M
字號:
function varargout = solve(varargin)
%求各種類型方程組的解析解, 
%當找不到解析解時,將自動尋求原點附近的一個近似解, 并可達任意精度.
%用法
%   solve('方程1','方程2',...,'方程N','變量1','變量2',...,'變量M')
%SOLVE  Symbolic solution of algebraic equations.
%   SOLVE('eqn1','eqn2',...,'eqnN')
%   SOLVE('eqn1','eqn2',...,'eqnN','var1,var2,...,varN')
%   SOLVE('eqn1','eqn2',...,'eqnN','var1','var2',...'varN')
%
%   The eqns are symbolic expressions or strings specifying equations.  The
%   vars are symbolic variables or strings specifying the unknown variables.
%   SOLVE seeks zeros of the expressions or solutions of the equations.
%   If not specified, the unknowns in the system are determined by FINDSYM.
%   If no analytical solution is found and the number of equations equals
%   the number of dependent variables, a numeric solution is attempted.
%
%   Three different types of output are possible.  For one equation and one
%   output, the resulting solution is returned, with multiple solutions to
%   a nonlinear equation in a symbolic vector.  For several equations and
%   an equal number of outputs, the results are sorted in lexicographic
%   order and assigned to the outputs.  For several equations and a single
%   output, a structure containing the solutions is returned.
%
%   Examples:
%
%      solve('p*sin(x) = r') chooses 'x' as the unknown and returns
%
%        ans =
%        asin(r/p)
%
%      [x,y] = solve('x^2 + x*y + y = 3','x^2 - 4*x + 3 = 0') returns
%
%        x =
%        [ 1]
%        [ 3]
%
%        y =
%        [    1]
%        [ -3/2]
%
%      S = solve('x^2*y^2 - 2*x - 1 = 0','x^2 - y^2 - 1 = 0') returns
%      the solutions in a structure.
%
%        S =
%          x: [8x1 sym]
%          y: [8x1 sym]
%
%      [u,v] = solve('a*u^2 + v^2 = 0','u - v = 1') regards 'a' as a
%      parameter and solves the two equations for u and v.
%
%      S = solve('a*u^2 + v^2','u - v = 1','a,u') regards 'v' as a
%      parameter, solves the two equations, and returns S.a and S.u.
%
%      [a,u,v] = solve('a*u^2 + v^2','u - v = 1','a^2 - 5*a + 6') solves
%      the three equations for a, u and v.
%
%      [x,y] = solve('sin(x+y)-exp(x)*y = 0','x^2-y = 2') cannot find
%      an analytic solution, so returns a numeric solution.
%
%   See also DSOLVE.

%   Copyright (c) 1993-98 by The MathWorks, Inc.
%   $Revision: 1.13 $  $Date: 1997/11/29 01:06:35 $

% Set the Explicit solution (for equations of order 4 or less)
% option on in the Maple Workspace.

maple('_EnvExplicit := true;');

% Collect input arguments together in either equation or variable lists.

eqns = [];
vars = [];
for k = 1:nargin
   v = varargin{k};
   if all(isletter(v) | ('0'<=v & v<='9') | v == '_' | v == ',')
      vars = [vars ',' v];
   else
      [t,stat] = maple(v);
      if stat
         error(['''' v ''' is not a valid expression or equation.'])
      end
      eqns = [eqns ',' v];   
   end
end

if isempty(eqns)
   warning('List of equations is empty.')
   varargout = cell(1,nargout);
   varargout{1} = sym([]);
   return
else
   eqns(1) = '{'; eqns(end+1) = '}';
end
neqns = sum(commas(eqns)) + 1;

% Determine default variables and sort variable list.

if isempty(vars)
   vars = ['[' findsym(sym(eqns),neqns) ']'];
else
   vars(1) = '['; vars(end+1) = ']';
end
v = vars;
[vars,stat] = maple('sort',v);
if stat
   error(['''' v ''' is not a valid variable list.'])
end
vars(1) = '{'; vars(end) = '}';
nvars = sum(commas(vars)) + 1;

if neqns ~= nvars
   warning([int2str(neqns) ' equations in ' int2str(nvars) ' variables.'])
end

% Seek analytic solution.

[R,stat] = maple('solve',eqns,vars);

% If no analytic solution, seek numerical solution.

if (isempty(R) & (nvars == neqns))
   [R,stat] = maple('fsolve',eqns,vars);
end

if stat
   error(R)
end

% If still no solution, give up.

if isempty(R) | findstr(R,'fsolve')
   warning('Explicit solution could not be found.');
   varargout = cell(1,nargout);
   varargout{1} = sym([]);
   return
end

% Expand any RootOf.

while ~isempty(findstr(R,'RootOf'))
   k = min(findstr(R,'RootOf'));
   p = findstr(R,'{'); p = max(p(p<k));
   q = findstr(R,'}'); q = min(q(q>k));
   s = R(p:q);
   t = s(min(findstr(s,'RootOf'))+6:end);
   e = min(find(cumsum((t=='(')-(t==')'))==0));
   if isempty(find(commas(t(2:e-1))))
      % RootOf with one argument, possibly an imbedded RootOf.
      [s,stat] = maple('allvalues',s,'dependent');
      if stat
         error(s)
      end
   else
      % RootOf with a good estimate as the second argument.
      s = maple('evalf',s);
   end
   R = [R(1:p-1) s R(q+1:end)];
end

% Parse the result.

if nvars == 1 & nargout <= 1

   % One variable and at most one output.
   % Return a single scalar or vector sym.

   S = sym([]);
   c = find(commas(R) | R == '}');
   for p = find(R == '=')
      q = min(c(c>p));
      t = trim(R(p+1:q-1));  % The solution (xk)
      S = [S; sym(t)];
   end
   varargout{1} = S;

else

   % Several variables.
   % Create a skeleton structure.

   c = [1 find(commas(vars)) length(vars)];
   S = [];
   for j = 1:nvars
      v = trim(vars(c(j)+1:c(j+1)-1));
      S = setfield(S,v,[]);
   end

   % Complete the structure.

   c = [1 find(commas(R) | R == '{' | R == '}') length(R)];
   for p = find(R == '=')
      q = max(c(c<p));
      v = trim(R(q+1:p-1));  % The variable (x)
      q = min(c(c>p));
      t = trim(R(p+1:q-1));  % The solution (xk)
      S = setfield(S,v,[getfield(S,v); sym(t)]);
   end
   
   if nargout <= 1

      % At most one output, return the structure.
      varargout{1} = S;

   elseif nargout == nvars

      % Same number of outputs as variables.
      % Match results in lexicographic order to outputs.
      v = fieldnames(S);
      for j = 1:nvars
         varargout{j} = getfield(S,v{j});
      end

   else
      error([int2str(nvars) ' variables does not match ' ...
             int2str(nargout) ' outputs.'])
   end
end

%-------------------------

function s = trim(s);
%TRIM  TRIM(s) deletes any leading or trailing blanks.
while s(1) == ' ', s(1) = []; end
while s(end) == ' ', s(end) = []; end

%-------------------------

function c = commas(s)
%COMMAS  COMMAS(s) is true for commas not inside parentheses.
p = cumsum((s == '(') - (s == ')'));
c = (s == ',') & (p == 0);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费色视频| 亚洲国产成人在线| 99久久精品国产麻豆演员表| 秋霞电影一区二区| 日韩精品一卡二卡三卡四卡无卡 | 亚洲精品视频在线| 久久久www成人免费毛片麻豆| 欧美一区二区三区视频在线| 欧美在线观看视频一区二区| 色网综合在线观看| 欧美亚洲国产怡红院影院| 在线免费观看日本一区| 欧美视频完全免费看| 51精品国自产在线| 日韩精品中午字幕| 国产三级精品在线| 国产一区二三区好的| 日韩午夜三级在线| 日韩西西人体444www| 2023国产精品视频| 国产精品福利在线播放| 一区二区三区精品在线观看| 亚洲国产精品一区二区尤物区| 亚洲午夜三级在线| 久久爱www久久做| 成人综合激情网| 色av一区二区| 欧美一区二区三区免费观看视频 | 4438x亚洲最大成人网| 欧美高清激情brazzers| 久久日韩粉嫩一区二区三区 | 3d成人动漫网站| 欧美精品一区二区三| 欧美最新大片在线看 | 国产精品视频一区二区三区不卡| 中文字幕一区在线观看| 午夜精品在线视频一区| 精品一区二区三区免费观看| 91免费精品国自产拍在线不卡| 欧美午夜精品久久久久久孕妇| 日韩欧美一级二级| 最新中文字幕一区二区三区| 欧美a一区二区| 91社区在线播放| 日韩欧美视频一区| 一区二区三区电影在线播| 精品一区二区三区免费播放| 97久久精品人人爽人人爽蜜臀| 日韩欧美一二三四区| 亚洲黄色尤物视频| 波多野结衣亚洲一区| 成人高清免费观看| 欧美va亚洲va| 亚洲成av人片在线观看| 99这里只有精品| 久久久久久99久久久精品网站| 亚洲成av人综合在线观看| 99久久99久久精品国产片果冻 | 久久99国产精品成人| 欧洲精品视频在线观看| 中文在线免费一区三区高中清不卡| 日韩精品电影在线| 欧美婷婷六月丁香综合色| 国产精品视频一区二区三区不卡| 极品美女销魂一区二区三区免费| 欧美福利一区二区| 亚洲成人午夜影院| 在线中文字幕一区| 亚洲乱码国产乱码精品精的特点 | 久久99国产精品久久| 99国产精品国产精品久久| 久久亚洲精品国产精品紫薇| 日本欧美一区二区在线观看| 欧美日韩一区二区三区四区五区 | 国产日韩精品一区二区浪潮av| 青娱乐精品视频| 欧美女孩性生活视频| 亚洲成av人片观看| 69久久99精品久久久久婷婷| 天堂av在线一区| 91精品国产高清一区二区三区蜜臀 | 国产日本一区二区| 国产成人综合在线观看| 欧美国产亚洲另类动漫| 96av麻豆蜜桃一区二区| 中文一区在线播放| 一本久久a久久精品亚洲| 亚洲自拍偷拍欧美| 337p亚洲精品色噜噜| 韩国一区二区三区| 国产精品亲子伦对白| 在线精品视频一区二区三四| 亚洲aaa精品| 精品国产一区二区三区忘忧草 | 自拍偷拍国产精品| 欧美三级日韩三级| 狠狠色综合播放一区二区| 欧美国产日韩亚洲一区| 在线亚洲免费视频| 精品一区二区三区不卡| 综合av第一页| 91麻豆精品91久久久久同性| 精品写真视频在线观看| 国产精品麻豆久久久| 欧美日韩在线播放| 国产精品亚洲一区二区三区在线| 亚洲人成7777| 欧美成人乱码一区二区三区| 99免费精品在线观看| 日本欧洲一区二区| 亚洲美女淫视频| 2014亚洲片线观看视频免费| 色婷婷久久99综合精品jk白丝| 久久不见久久见免费视频7 | 五月激情六月综合| 久久久久久久久久久久久久久99 | 国产精品一区二区在线播放 | 亚洲天堂a在线| 欧美另类一区二区三区| 国产一区二三区| 三级在线观看一区二区| 久久久美女艺术照精彩视频福利播放 | 欧美日韩激情一区二区三区| 国产精品资源在线看| 亚洲精品视频观看| 日本一区二区综合亚洲| 欧美自拍丝袜亚洲| 成人白浆超碰人人人人| 午夜亚洲福利老司机| 亚洲丝袜美腿综合| 制服视频三区第一页精品| 国产成人在线视频网址| 奇米色一区二区三区四区| 国产精品久久久久久久久动漫| 日韩三级免费观看| 99久久精品免费看国产| 国产成人av一区二区三区在线| 亚洲尤物视频在线| 亚洲视频一区二区在线观看| 91网页版在线| 91蝌蚪porny| 99这里只有久久精品视频| 久久超碰97中文字幕| 久久99久国产精品黄毛片色诱| 亚洲欧美欧美一区二区三区| 国产精品动漫网站| 久久网这里都是精品| 欧美成人福利视频| 欧美日韩另类一区| 欧美日韩国产影片| 在线免费观看日韩欧美| 99久久夜色精品国产网站| 成人av在线资源| 欧美—级在线免费片| 欧美日韩一区二区三区免费看 | 美女网站色91| 日韩精品乱码av一区二区| 久久久久久久综合日本| 国产网红主播福利一区二区| 久久亚洲精品小早川怜子| 精品国产成人系列| 精品国产欧美一区二区| 7777精品伊人久久久大香线蕉超级流畅| 欧美日韩在线观看一区二区| 色素色在线综合| 色视频一区二区| 日韩av电影免费观看高清完整版 | 国产在线观看免费一区| 日韩主播视频在线| 紧缚奴在线一区二区三区| 国产成人无遮挡在线视频| 国产精品一区在线观看乱码| 99精品久久只有精品| 99这里都是精品| 怡红院av一区二区三区| 成人免费视频播放| aaa国产一区| 色婷婷久久一区二区三区麻豆| 91啪亚洲精品| 国产91丝袜在线播放0| 一本一道综合狠狠老| 7777精品伊人久久久大香线蕉经典版下载 | 在线观看91av| 91精品一区二区三区久久久久久| 精品福利在线导航| 日本一区二区三区高清不卡| 亚洲人成网站精品片在线观看| 亚洲人123区| 激情深爱一区二区| 亚洲丶国产丶欧美一区二区三区| 精品一区二区三区香蕉蜜桃 | 一区二区三区在线观看视频| 亚洲电影欧美电影有声小说| 青青草视频一区| eeuss鲁片一区二区三区| 欧美性色综合网| 精品成人在线观看| 香蕉加勒比综合久久| 国产一区二区久久| 这里只有精品99re|