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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? solve.m

?? 數(shù)值類綜合算法 常用數(shù)值計(jì)算工具包(龍貝格算法、改進(jìn)歐拉法、龍格庫塔方法、復(fù)合辛普森)
?? M
字號(hào):
function varargout = solve(varargin)
%求各種類型方程組的解析解, 
%當(dāng)找不到解析解時(shí),將自動(dòng)尋求原點(diǎn)附近的一個(gè)近似解, 并可達(dá)任意精度.
%用法
%   solve('方程1','方程2',...,'方程N(yù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);

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美激情中文字幕| 色94色欧美sute亚洲线路一ni| 555www色欧美视频| 日韩精品成人一区二区三区| 91麻豆精品91久久久久同性| 日本不卡在线视频| 日韩视频免费直播| 国产一区二区三区免费观看| 久久精品在线免费观看| 国产91丝袜在线播放| 奇米亚洲午夜久久精品| 欧美日韩中文另类| 亚洲综合小说图片| 欧美三级日韩三级| 日本中文字幕不卡| 久久天堂av综合合色蜜桃网| 高清beeg欧美| 亚洲高清视频在线| 精品国产不卡一区二区三区| 成人午夜激情影院| 亚洲国产日韩精品| 欧美一级片在线观看| 国产乱对白刺激视频不卡| 国产精品福利影院| 欧美日韩电影一区| 国产美女精品人人做人人爽| 一区二区三区美女视频| 国产精品资源在线| 亚洲欧美综合另类在线卡通| 91小视频在线| 青娱乐精品视频| 中文字幕一区在线观看视频| 欧美老年两性高潮| 东方欧美亚洲色图在线| 亚洲图片自拍偷拍| 国产人妖乱国产精品人妖| 欧美中文字幕一区二区三区| 国产一区二区三区高清播放| 亚洲一区在线播放| 国产欧美精品在线观看| 欧美日韩国产片| 国产一区二区不卡老阿姨| 一区二区三区免费| 中文字幕第一区第二区| 91麻豆精品国产91久久久久久久久| 国产成人在线视频播放| 图片区小说区国产精品视频| 国产精品国模大尺度视频| 欧美v亚洲v综合ⅴ国产v| 色呦呦日韩精品| 久久99国产精品麻豆| 亚洲午夜国产一区99re久久| 国产色综合一区| 精品国产成人在线影院 | 国产凹凸在线观看一区二区| 午夜影视日本亚洲欧洲精品| 亚洲国产精品t66y| 精品日韩欧美一区二区| 欧美体内she精高潮| 91小视频免费看| a亚洲天堂av| 国产一区二区91| 麻豆精品视频在线观看免费| 五月天视频一区| 亚洲最色的网站| 亚洲精品亚洲人成人网在线播放| 国产欧美一区二区精品性色| 精品剧情在线观看| 日韩三级视频在线看| 欧美日韩国产小视频| 色噜噜狠狠成人中文综合 | 97国产精品videossex| 国产精品91xxx| 激情欧美一区二区| 国内欧美视频一区二区| 久久精品国产99久久6| 久久国产精品露脸对白| 久久国产精品第一页| 韩国女主播成人在线观看| 精品亚洲porn| 国产一区二区三区视频在线播放| 精品一二三四区| 国产一二精品视频| 成人午夜视频免费看| 午夜久久久影院| 日本怡春院一区二区| 蜜桃精品在线观看| 极品少妇xxxx偷拍精品少妇| 国产在线精品一区二区| 国产传媒日韩欧美成人| 欧美在线free| 欧美日韩三级一区| 日韩视频一区二区| 久久久91精品国产一区二区精品| 国产蜜臀97一区二区三区| 中文字幕一区二区三区不卡在线| 亚洲欧美偷拍卡通变态| 亚洲一级片在线观看| 日韩精品亚洲一区| 精品一区二区av| 91社区在线播放| 欧美日韩不卡在线| 亚洲精品一区二区三区在线观看| 久久久亚洲高清| 亚洲激情图片qvod| 美女一区二区三区| 成人中文字幕电影| 欧美日韩免费一区二区三区视频| 日韩午夜在线观看| 欧美国产日本韩| 亚洲一区二区av电影| 国产一区二区三区免费观看| av在线不卡免费看| 欧美精品久久久久久久久老牛影院| 精品久久久久av影院| 最新欧美精品一区二区三区| 日韩高清中文字幕一区| 豆国产96在线|亚洲| 欧洲视频一区二区| 久久婷婷国产综合国色天香| 亚洲一区在线播放| 国产成人亚洲综合a∨婷婷| 日本韩国精品在线| 国产欧美日韩另类视频免费观看| 亚洲二区在线视频| 成人一区二区三区在线观看| 欧美日韩一级二级| 国产精品视频免费| 麻豆91小视频| 在线免费观看日本欧美| 国产日产欧美一区| 亚洲成av人片一区二区梦乃| 粉嫩av亚洲一区二区图片| 8v天堂国产在线一区二区| 久久不见久久见免费视频7| 天天综合网 天天综合色| 国产河南妇女毛片精品久久久| 色综合久久99| 久久久久久久国产精品影院| 午夜久久福利影院| 99视频国产精品| 久久久久九九视频| 蜜臀av性久久久久蜜臀aⅴ流畅| 99久久精品费精品国产一区二区| 久久综合中文字幕| 秋霞国产午夜精品免费视频| 一本色道久久综合亚洲aⅴ蜜桃| 久久综合色天天久久综合图片| 午夜日韩在线电影| 色狠狠一区二区| 亚洲欧美日韩电影| 成人爱爱电影网址| 国产亚洲一二三区| 国产在线精品国自产拍免费| 日韩一卡二卡三卡国产欧美| 亚洲一区成人在线| 欧美在线看片a免费观看| 一区二区三区欧美亚洲| 99久久久精品免费观看国产蜜| 国产欧美精品区一区二区三区 | 成人午夜大片免费观看| 日韩精品一区二区三区swag| 亚洲成人tv网| 欧美精品一二三四| 一区二区三区美女视频| 欧美又粗又大又爽| 一区二区三区四区五区视频在线观看| 欧美性一二三区| 亚洲人一二三区| 一本久道久久综合中文字幕| 伊人夜夜躁av伊人久久| 一本一本大道香蕉久在线精品| 亚洲三级在线免费观看| 成人小视频在线| 中文字幕亚洲欧美在线不卡| 9久草视频在线视频精品| 国产精品久久久久久亚洲伦| 成av人片一区二区| 一区二区三区产品免费精品久久75| 色婷婷综合久色| 亚洲成人av一区二区| 欧美一区二区免费视频| 久久99久国产精品黄毛片色诱| 欧美精品一区二区久久久| 欧美精品v国产精品v日韩精品| 中文字幕一区二区三区精华液| 波多野结衣亚洲| 一区二区三区在线视频观看| 欧美日韩精品一区二区天天拍小说 | 国产精品国产三级国产a| 91免费国产在线观看| 亚洲成人免费电影| 日韩精品中文字幕在线一区| 国产精品综合在线视频| 成人免费在线播放视频| 欧美日韩久久不卡| 国产一区二区精品在线观看| 亚洲色图一区二区| 欧美一区二区福利视频| 国产高清精品久久久久|