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

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

?? cont.m

?? 計算動力學系統的分岔圖
?? M
?? 第 1 頁 / 共 3 頁
字號:
            % to initialize some things for test functions
            [failed,f] = DefaultProcessor(x2,v2);
            if ~failed
                if Singularities
                    % WM: evaluate all testfunctions at the same time
                    [tfvals,failed] = EvalTestFunc(ActTest,x2,v2);
                    cds.testvals(cds.atv,:) = tfvals(ActTest);
                end
                % WM: if all done succesfully then we have our new point
                %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%   
                if Userfunctions     
                    % evaluate all userfunctions at the same time
                    [ufvals,failed]=feval(cds.curve_userf, UserInfo,1:cds.nUserf, x2, v2);
                    cds.uservals(cds.utv,:)=ufvals;
                end
                if isempty(failed)|~failed
                    break
                end
            end  
      end
      % decrease stepsize if allowed
      if cds.h > cds.h_min
          cds.h = max(cds.h_min, cds.h*cds.h_dec_fac);
          corrections = corrections + 1;
      else      % if not then fail
          
          debug('Current step size too small (point %d)\n',i);
          xout = xout(:,1:i);
          vout = vout(:,1:i);
          hout = hout(:,1:i);
          fout = fout(:,1:i);
          % Last point is also singular
          % WM: Added call to default processor
          s.index = i;
          s.label = '99';
          %s.msg   = 'This is the last point on the curve';
          s.data  = [];
          s.msg   = 'This is the last point on the curve';
          [failed,f,s] = DefaultProcessor(xout(:,i), vout(:,i), s);
          sout = [sout; s];
          fout = [fout  f];
          EndTime = clock;
          debug('elapsed time  = %.1f secs\n', etime(EndTime, StartTime));
          debug('npoints curve = %d\n', i);
          string = sprintf('%.1f secs\n', etime(EndTime, StartTime));
          set(MC.mainwindow.duration,'String',string);
          set(status,'String','Current step size too small');
          if ishandle(driver_window),delete(driver_window);end
          return;
      end
   end
  % Singularities
  %
  if Singularities
      % WM: the testvals arrays are not copied anymore, instead
      % after every iteration the function of both is swapped
      cds.atv = 3-cds.atv;
      % WM: use sign function and compare instead of multiply (for speed).
      testchanges = (sign(cds.testvals(1,:)) ~= sign(cds.testvals(2,:)));
      if any(testchanges)
          % Change by WG     
           testidx = [ActTest(find( testchanges )) 0]';
           % check if sing occured
           % WM: detect all singularities with a single ismember() call
%         stz = ismember(cds.SZ,testidx);
%           singsdetected(ActSing) = all(stz(:,ActSing));
      % DSB: Singularity is detected if
      %  - Every crossing that is required occurs
      %  - Every crossing that is not required does not occur
      %
       S_true  = +(cds.S(:,ActTest)' == 0);  % Required crossings matrix
       S_false = +(cds.S(:,ActTest)' == 1);  % Required noncrossings matrix
       all_sings_detected = (testchanges*S_true ==sum(S_true))&(~testchanges*S_false == sum(S_false));
       singsdetected(ActSing) = all_sings_detected(ActSing);
          if any(singsdetected)
              % singularity detected!
              
              singsdetected = find(singsdetected==1);
              cds.testzero = zeros(cds.ndim,cds.nTest);
              cds.testvzero = zeros(cds.ndim,cds.nTest);
              % locate zeros of all testf which changed sign
              %
              xss = [];  % x of singularites
              vss = [] ; % v of idem
              testfound = [];% indices of found zeros of test functions
              
              sid = [];  % id of idem
              for si=singsdetected
                  %         debug('Singularity %d detected ... ', si);
                  if ismember(si, find(Locators==1))   % do we have a locator?
%                       debug('using user locator\n');
                      [xs,vs] = feval(cds.curve_locate, si, x1, v1, x2, v2);
                      lit=0;
                      if ~isempty(xs) &(norm(xs-(x1+x2)/2)<2*norm(x2-x1))
                          xss = [xss xs];
                          vss = [vss vs];
                          sid = [sid si];
                      end
                  else             
                      % locate zeros of test functions if not already computed
                      for ti=1:cds.nTest   
                          if cds.S(si,ti)==0 & ~ismember(ti, testfound) 
                              [xtf,vtf,lit] = LocateTestFunction(ti, x1, v1, x2, v2);
                              if ~isempty(xtf)&(norm(xtf-(x1+x2)/2)<2*norm(x2-x1)) 
                                  cds.testzero(:,ti) = xtf;
                                  cds.testvzero(:,ti) = vtf;
                                  testfound = [testfound ti];
%                               else
%                                   debug('A testfunction for Singularity %d failed to converge ... \n', si);
                              end
                          end
                      end
                      % now we have all zeros/testfunctions we need for
                      % this singularity
                      if any(ismember(testfound, find(cds.S(si,:)==0)))
                          [xs,vs] = LocateSingularity(si);
                      else
                          xs = [];
                          vs = [];
                      end                          
                      if ~isempty(xs)
                          xss = [xss xs];
                          vss = [vss vs];
                          sid = [sid si];
                      end                          
                  end
              end %end of detect/locate loop   
              if ~isempty(sid)         % sort
                  [xss,vss,sid] = xssort(x1, xss, vss, sid);
                  % WM: moved out of loop for speed
                  sids = 1:length(sid);
                  isids = i+sids;
                  xout(:,isids) = xss(:,sids);
                  vout(:,isids) = vss(:,sids);
                  % WM: moved call to default processor up before
                  % the special processor
                  for si=sids                      
                      i = i+1; ind = [ind i];s = [];
                      s.index = i;
                      s.label = SingLables(sid(si),:);
                      [failed,sf,s] = DefaultProcessor(xss(:,si), vss(:,si), s);
                      [tfvals,failed] = EvalTestFunc(ActTest,xss(:,si),vss(:,si));
                      s.data.testfunctions = tfvals(ActTest);
                      [failed,s] = feval(cds.curve_process, sid(si), xss(:,si), vss(:,si), s );
                      if Userfunctions
                          [ufvals,failed] =feval(cds.curve_userf, UserInfo, 1:cds.nUserf, xss(:,si), vss(:,si));
                          s.data.userfunctions=ufvals;
%                           hout(:,i)=[cds.h;0;s.data.userfunctions';s.data.testfunctions'];
                           
                          hout(:,i)=[0;lit;s.data.userfunctions';s.data.testfunctions'];
                      else
                          % XXX lit = # localisationsteps XXX
%                           hout(:,i) = [cds.h;lit;s.data.testfunctions'];
                          hout(:,i) = [0;lit;s.data.testfunctions'];
                      end
                      sout = [sout; s];
                      fout(:,i) = sf;
                      if (size(MC.D2)>0|size(MC.D3)>0|size(MC.numeric_fig)==1|~isempty(MC.PRC)|~isempty(MC.dPRC))
                          output(numsing,xout,s,hout,fout,ind);
                          ind =[];
                      end
                      set(status,'String',s.msg);
                  end
              end % end of loop over singularities
          end
      end
  end
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  if Userfunctions
      cds.utv = 3-cds.utv;
      % WM: use sign function and compare instead of multiply (for speed).
      userchanges = sign(cds.uservals(1,:)) ~= sign(cds.uservals(2,:));%
      if any(userchanges)
          % Change by WG     
          useridx = find(userchanges);
          
          % cds.SZ=[2;0]
          % check if sing occured
          % WM: detect all singularities with a single ismember() call
          if any(useridx)
              % singularity detected!
              %   cds.userzero = zeros(cds.ndim,size(useridx,2));
              %   cds.uservzero = zeros(cds.ndim,size(useridx,2));
              % locate zeros of all testf which changed sign%
              xus = [];  % x of singularites
              vus = []; % v of idem
              uid = [];  % id of idem
              % locate zeros of userfunctions if not already computed
              for ti=1:size(useridx,2)
                  %UserInfo(useridx(ti)),pause,useridx(ti),pause, x1, v1, x2, v2,pause
                  [xtf,vtf,lit] = LocateUserFunction(UserInfo(useridx(ti)),useridx(ti), x1, v1, x2, v2);
                  if ~isempty(xtf)
                      xus = [xus xtf];
                      vus = [vus vtf];
                      uid = [uid useridx(ti)];          
                  end  
              end
          end %end of detect/locate loop
          if ~isempty(uid)         % sort
              [xus,vus,uid] = xssort(x1, xus, vus, uid);
              % WM: moved out of loop for speed
              uids = 1:length(uid);
              uuids = i+uids;
              xout(:,uuids) = xus(:,uids);
              vout(:,uuids) = vus(:,uids);
              % WM: moved call to default processor up before
              % the special processor
              for ui=uids
                  i = i+1; ind = [ind,i]; s = [];                         
                  s.index = i;
                  s.label = UserInfo(uid(ui)).label;%r
                 [failed,uf,s] = DefaultProcessor(xus(:,ui), vus(:,ui), s);
                  [ufvals,failed] =feval(cds.curve_userf, UserInfo,1:cds.nUserf, xus(:,ui), vus(:,ui));
                  s.data.userfunctions = ufvals;%reza
                  if Singularities
                      [tfvals,failed] = EvalTestFunc(ActTest,xus(:,ui),vus(:,ui));
                      s.data.testfunctions = tfvals(ActTest);
                      hout(:,i) = [0;lit;s.data.userfunctions';s.data.testfunctions'];
                  else
                      hout(:,i) = [0;lit;s.data.userfunctions'];
                  end
                  %fprintf('label = %s\n', s.label);
                  fprintf('label = %s, x = ', s.label); printv(xus(:,ui));
                  s.msg  = sprintf('%s',UserInfo(uid(ui)).name);%r
                  sout = [sout; s];
                  fout(:,i) = uf;
                  if (size(MC.D2)>0|size(MC.D3)>0|size(MC.numeric_fig)==1|~isempty(MC.PRC)|~isempty(MC.dPRC))
                      output(numsing,xout,s,hout,fout,ind);
                      ind =[];
                  end
                  set(status,'String',s.msg);  
              end
          end
      end
  end
  
  %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  if (mod(i,Adapt)==0)
   % WM: Adapt can now return new x and v as well
    [res,x2,v2] = feval(cds.curve_adapt, x2, v2);
    [failed,f] = DefaultProcessor(x2,v2);
    if res==1 & Singularities
      % recompute testvals
      [tfvals,failed] = EvalTestFunc(ActTest,x2,v2);
  	  cds.testvals(3-cds.atv,:) = tfvals(ActTest);
    end
  end
  
  % WM: Moved this up a bit the prevent several calculations of i+1
  i   = i+1;
  ind = [ind,i];
  xout(:,i) = x2;
  vout(:,i) = v2;
  %%%%%%%%%%%%%%%%%%%
  if Singularities & ~Userfunctions
      hout(:,i) = [cds.h;it;cds.testvals(3-cds.atv,:)'];
  elseif Userfunctions & ~Singularities
      hout(:,i) = [cds.h;it;cds.uservals(3-cds.utv,:)'];
  elseif Userfunctions & Singularities
      hout(:,i) = [cds.h;it;cds.uservals(3-cds.utv,:)';cds.testvals(3-cds.atv,:)'];
  else
      hout(:,i) = [cds.h;it];
  end
  %%%%%%%%%%%%%%%%%%%
  fout(:,i) = f;
  % stepsize control
  %
  if cds.h < cds.h_max & corrections==1 & it < 4
    cds.h = min(cds.h*cds.h_inc_fac, cds.h_max);
    %debug('<+>');
  end

  % closed curve?
  %
  if CheckClosed>0 & i>=CheckClosed & norm(x2-x0) < cds.h 
    i=i+1;
    xout(:,i) = xout(:,1);
    vout(:,i) = vout(:,1);
    hout(:,i) = hout(:,1);
    if ~isempty(fout)
      fout(:,i) = fout(:,1);
    end
    debug('Closed curve detected at step %d\n', i);
    break;
    %else
    %fprintf('step %d: %f\n', i, norm(x2-x0));
  end
  
  if size(driver_window,1)==1
      drawnow;
      p = PRS(s.index,i,status);
      if p~=0, npoints = i;end
  end
  if (mod(i,plotpoints)==0)&(size(MC.D2)>0|size(MC.D3)>0|size(MC.numeric_fig)==1|~isempty(MC.PRC)|~isempty(MC.dPRC))
      output(numsing,xout,s,hout,fout,ind);
      ind=[];
  end
  
    % shift x1,v1  %
  x1 = x2;
  v1 = v2;
end

fprintf('\n');
EndTime = clock;

% if closed curve, we have possibly less points
if npoints > i
  npoints = i;
  xout = xout(:,1:npoints);
  vout = vout(:,1:npoints);
  hout = hout(:,1:npoints);
%  if ~isempty(fout)
    fout = fout(:,1:npoints);
    % end
end

% Last point is also singular
% WM: Added a call to the default processor here
xout = xout(:,1:i);
vout = vout(:,1:i);
hout = hout(:,1:i);
fout = fout(:,1:i);
s.index = npoints;
s.label = '99';
s.msg   = 'This is the last point on the curve';
s.data  = [];
[failed,f,s] = DefaultProcessor(xout(:,npoints),vout(:,npoints),s);
fout(:,i)= f;
sout = [sout; s];

if WorkSpace
%   [xout,vout,sout]=feval(cds.curve, 'done',xout,vout,sout);
    feval(cds.curve_done);
end
ind=[ind i];
if size(MC.D2)>0|size(MC.D3)>0|size(MC.numeric_fig)==1|~isempty(MC.PRC)|~isempty(MC.dPRC)
    output(numsing,xout,s,hout,fout,ind);
end

debug('elapsed time  = %.1f secs\n', etime(EndTime, StartTime));

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
自拍偷拍亚洲欧美日韩| 亚洲欧洲色图综合| 色网站国产精品| 丁香婷婷综合激情五月色| 精品一区二区三区在线播放| 天堂一区二区在线| 亚洲二区在线观看| 天天色天天爱天天射综合| 亚洲国产成人av网| 日韩高清国产一区在线| 日本伊人精品一区二区三区观看方式| 日精品一区二区| 精品一区二区av| 国产激情一区二区三区桃花岛亚洲| 欧美日韩国产综合一区二区| 欧美日韩中文字幕一区二区| 一本久久a久久精品亚洲| 欧美性受xxxx黑人xyx性爽| 一本大道久久a久久精品综合| 欧美少妇bbb| 欧美成人猛片aaaaaaa| 久久久亚洲午夜电影| 综合电影一区二区三区| 五月综合激情婷婷六月色窝| 精一区二区三区| 成人av电影在线观看| 欧美日韩在线综合| 欧美mv日韩mv国产网站| 国产欧美日韩精品在线| 亚洲大片免费看| 国产福利一区二区三区| 欧美视频中文一区二区三区在线观看| 日韩一区国产二区欧美三区| 国产精品网曝门| 秋霞午夜av一区二区三区| 丰满亚洲少妇av| 在线国产亚洲欧美| 久久久久99精品一区| 亚洲精品国产精华液| 国产一区二区三区精品视频| 色婷婷综合五月| 欧美一区二区三区日韩视频| 国产精品毛片大码女人| 青青草一区二区三区| 欧美伊人久久大香线蕉综合69 | 51精品久久久久久久蜜臀| 亚洲精品一区二区三区99| 一区二区三区四区在线免费观看| 精品一区二区三区久久| 欧美日韩国产影片| 国产目拍亚洲精品99久久精品 | 日韩欧美电影在线| 亚洲欧美日韩系列| 国产精品一线二线三线| 69堂成人精品免费视频| 一区二区三区日本| 高清国产一区二区| 欧美不卡一区二区三区四区| 日韩精品一级中文字幕精品视频免费观看 | 日韩电影免费一区| 在线视频欧美区| 国产精品狼人久久影院观看方式| 另类小说图片综合网| 在线不卡欧美精品一区二区三区| 亚洲激情第一区| 色综合久久久久综合体桃花网| 久久五月婷婷丁香社区| 蜜桃在线一区二区三区| 8x福利精品第一导航| 亚洲影院理伦片| 欧美网站一区二区| 亚洲午夜激情网站| 欧美视频在线观看一区| 亚洲精品第一国产综合野| 日本高清不卡aⅴ免费网站| 综合av第一页| 日本道免费精品一区二区三区| 亚洲视频小说图片| 色综合久久六月婷婷中文字幕| 综合久久一区二区三区| 91麻豆swag| 亚洲主播在线播放| 宅男噜噜噜66一区二区66| 日韩制服丝袜av| 欧美成人一区二区| 国产自产视频一区二区三区| 欧美韩日一区二区三区| 99久久er热在这里只有精品15| 亚洲视频一区二区在线| 欧美性感一区二区三区| 日韩av在线发布| 337p日本欧洲亚洲大胆精品| 国产麻豆视频精品| 国产精品色婷婷久久58| 91女厕偷拍女厕偷拍高清| 亚洲成av人片一区二区三区| 日韩一区二区高清| 国产91精品露脸国语对白| 亚洲桃色在线一区| 欧美高清视频www夜色资源网| 日日骚欧美日韩| 欧美一卡2卡3卡4卡| 日本欧美韩国一区三区| 国产在线精品一区二区夜色 | 精品国产乱码久久久久久浪潮| 久久精品国产澳门| 国产精品三级av在线播放| 欧美中文字幕一二三区视频| 久久国产精品一区二区| 亚洲视频精选在线| 91精品国产日韩91久久久久久| 精品一区二区在线免费观看| 亚洲人成网站色在线观看| 欧美一区二区高清| 91婷婷韩国欧美一区二区| 日韩成人伦理电影在线观看| 中文字幕的久久| 91精品国产欧美一区二区成人| 国产69精品一区二区亚洲孕妇| 亚洲一区日韩精品中文字幕| 国产日产欧美一区二区三区| 欧美日韩一卡二卡| 国产69精品久久久久777| 午夜日韩在线观看| 1024成人网| 国产欧美一区二区三区鸳鸯浴| 欧美高清视频不卡网| 91美女视频网站| 成人激情小说网站| 美国毛片一区二区三区| 亚洲第一在线综合网站| 亚洲乱码中文字幕综合| 国产欧美一区二区精品性色 | 国产成人av电影免费在线观看| 日韩中文字幕91| 亚洲综合男人的天堂| 亚洲天堂中文字幕| 欧美极品另类videosde| 久久婷婷色综合| 日韩一区二区三| 91精品在线免费| 欧美视频第二页| 精品视频在线免费看| 91麻豆国产在线观看| jiyouzz国产精品久久| 国产成人aaa| 国产在线日韩欧美| 国产精品一二一区| 国产一区福利在线| 国产又黄又大久久| 国产麻豆精品theporn| 国产主播一区二区三区| 国模少妇一区二区三区| 激情小说亚洲一区| 激情六月婷婷久久| 国产精品1024| bt欧美亚洲午夜电影天堂| 成人午夜视频网站| 色综合中文字幕国产 | 视频一区国产视频| 五月婷婷欧美视频| 日韩在线播放一区二区| 久色婷婷小香蕉久久| 全部av―极品视觉盛宴亚洲| 日本不卡一区二区三区| 久久国产福利国产秒拍| 国产精品资源网| 成人av在线看| 欧美亚洲综合一区| 日韩精品一区二区在线观看| xfplay精品久久| 国产精品久久久久7777按摩| 国产精品理论片| 午夜精品影院在线观看| 久久精品国产秦先生| 成人一道本在线| 欧美丝袜第三区| 久久综合九色综合97婷婷女人| 欧美国产一区在线| 亚洲综合精品自拍| 美日韩黄色大片| av资源站一区| 91精品蜜臀在线一区尤物| 久久人人97超碰com| 亚洲欧美另类久久久精品2019| 午夜精品免费在线| 成人综合在线观看| 欧美精选一区二区| 中文在线资源观看网站视频免费不卡 | 亚洲在线一区二区三区| 麻豆精品在线播放| 99国产精品久| www国产成人| 一区二区三区在线视频免费| 精品一区二区影视| 欧美最猛黑人xxxxx猛交| 久久麻豆一区二区| 午夜精品久久久久久久蜜桃app| 国产成人午夜视频| 3atv在线一区二区三区|