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

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

?? funtool.m

?? 各種Matlab數學建模工具箱,方程求根,微積分和微分方程等以及一些數學建模競賽的源程序
?? M
?? 第 1 頁 / 共 2 頁
字號:
function funtool(keyword,varargin)
%圖形界面函數計算器,能進行函數各類初等運算、積分、微分、作圖。
%FUNTOOL A function calculator.
%   FUNTOOL is an interactive graphing calculator that manipulates
%   functions of a single variable.  At any time, there are two functions
%   displayed, f(x) and g(x).  The result of most operations replaces f(x).
%
%   The controls labeled 'f = ' and 'g = ' are editable text that may
%   be changed at any time to install a new function.  The control
%   labeled 'x = ' may be changed to specify a new domain.  The control
%   labeled 'a = ' may be changed to specify a new value of a parameter.
%
%   The top row of control buttons are unary function operators that
%   involve only f(x).  These operators are:
%      df/dx     - Symbolically differentiate f(x).
%      int f     - Symbolically integrate f(x).
%      simple f  - Simplify the symbolic expression, if possible.
%      num f     - Extract the numerator of a rational expression.
%      den f     - Extract the denominator of a rational expression.
%      1/f       - Replace f(x) by 1/f(x).
%      finv      - Replace f(x) by its inverse function.
%
%   The operators int(f) and finv may fail if the corresponding symbolic
%   expressions do not exist in closed form.
%
%   The second row of buttons translate and scale f(x) by the parameter 'a'.
%   The operations are:
%      f + a    - Replace f(x) by f(x) + a.
%      f - a    - Replace f(x) by f(x) - a.
%      f * a    - Replace f(x) by f(x) * a.
%      f / a    - Replace f(x) by f(x) / a.
%      f ^ a    - Replace f(x) by f(x) ^ a.
%      f(x+a)   - Replace f(x) by f(x + a).
%      f(x*a)   - Replace f(x) by f(x * a).
%
%   The third row of buttons are binary function operators that
%   operate on both f(x) and g(x).  The operations are:
%      f + g  - Replace f(x) by f(x) + g(x).
%      f - g  - Replace f(x) by f(x) - g(x).
%      f * g  - Replace f(x) by f(x) * g(x).
%      f / g  - Replace f(x) by f(x) / g(x).
%      f(g)   - Replace f(x) by f(g(x)).
%      g = f  - Replace g(x) by f(x).
%      swap   - Interchange f(x) and g(x).
%
%   The first three buttons in the fourth row manage a list of functions.
%   The Insert button places the current active function in the list.
%   The Cycle button rotates the function list.
%   The Delete button removes the active function from the list.  
%   The list of functions is named fxlist.  A default fxlist containing 
%           several interesting functions is provided.
%
%   The Reset button sets f, g, x, a and fxlist to their initial values.
%   The Help button prints this help text.  
%
%   The Demo button poses the following challenge: Can you generate the
%   function sin(x) without touching the keyboard, using just the mouse?
%   The demo does it with a reset and then nine clicks.  If you can do
%   it with fewer clicks, please send e-mail to moler@mathworks.com.
%
%   The Close button closes all three windows.
%
%   See also EZPLOT.

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

%Implementation Notes:
%   f,g, and a are syms.
%   x is a string. fxlist is a string matrix.
%
%   The values of f, g, a, and x are stored in the UserData of the text 
%     objects "f", "g", "a", and "x", respectively. These text objects are 
%     tagged "fobj", "gobj", "aobj", and "xstr", respectively.
%   fxlist is stored in the UserData of the control panel figure, which is 
%     tagged as "figp".
%   The edit text boxes for f, g, x, and a are tagged "Sf", "Sg", "Sx", and
%     "Sa", respectively.
%   The initial values of f, g, x, a, and fxlist are stored in a structure 
%     called init that has fields .f, .g, .x, .a and .l. The structure is 
%     stored in the UserData of the Reset button.

%%%%%%%%%%%%%%%%%%%%%%%%%%  Initialization section.
if nargin == 0

init.f = 'x';
init.g = '1';
init.x = '[-2*pi, 2*pi]';
init.a = '1/2';
init.l = str2mat( ...
    '1/(5+4*cos(x));  [-2*pi, 2*pi]', ...
    'cos(x^3)/(1+x^2);  [-2*pi, 2*pi]', ...
    'x^4*(1-x)^4/(1+x^2);  [0, 1]', ...
    'x^7-7*x^6+21*x^5-35*x^4+35*x^3-21*x^2+7*x-1;  [0.985, 1.015]', ...
    'log(abs(sqrt(x)));  [0, 2]', ...
    'tan(sin(x))-sin(tan(x));  [-pi, pi]');

f = sym(init.f); 
g = sym(init.g);
a = sym(init.a);
x = init.x;
fxlist = init.l;

% Macros
blanks = '  ';
p = .12*(1:7) - .02;
q = .60 - .14*(1:4);
r = [.10 .10];

% Position the two figures and the control panel.
figf = figure('units','normalized','pos',[.01 .50 .48 .48],...
              'menu','none','tag','figf');
figg = figure('units','normalized','pos',[.50 .50 .48 .48],...
              'menu','none', 'tag','figg');
figp = figure('units','normalized','pos',[.25 .05 .50 .40],'menu','none', ...
              'tag','figp',...
              'Color',get(0,'DefaultUIControlBackgroundColor'), ...
              'DefaultUIControlUnit','norm','UserData',fxlist);

% Plot f(x) and g(x).
figure(figf)
ezplot(f,x,figf)
figure(figg)
ezplot(g,x,figg)

% Control panel
figure(figp)
uicontrol('style','frame','pos',[0.01 0.60 0.98 0.38]);
uicontrol('style','frame','pos',[0.01 0.01 0.98 0.58]);
uicontrol('style','text','string','f = ','pos',[0.04 0.86 0.09 0.10],...
    'tag','fobj','UserData',f);
uicontrol('style','text','string','g = ','pos',[0.04 0.74 0.09 0.10],...
    'tag','gobj','UserData',g);
uicontrol('style','text','string','x = ','pos',[0.04 0.62 0.09 0.10],...
    'tag','xstr','UserData',x);
uicontrol('style','text','string','a = ','pos',[0.54 0.62 0.09 0.10],...
    'tag','aobj','UserData',a);
uicontrol('pos',[.12 .86 .82 .10],'style','edit','horiz','left', ...
    'backgroundcolor','white', ...
    'string', [blanks char(f)],'tag','Sf', ...
    'CallBack','funtool Sfcallback');
uicontrol('pos',[.12 .74 .82 .10],'style','edit','horiz','left', ...
    'backgroundcolor','white', ...
    'string', [blanks char(g)], 'tag','Sg',...
    'CallBack','funtool Sgcallback');
uicontrol('pos',[.12 .62 .32 .10],'style','edit','horiz','left', ...
    'backgroundcolor','white','string',[blanks x], 'tag','Sx',...
    'CallBack','funtool Sxcallback');
uicontrol('pos',[.62 .62 .32 .10],'style','edit','horiz','left', ...
    'backgroundcolor','white', 'tag','Sa',...
    'string',[blanks char(a)],'CallBack','funtool Sacallback');

% Top row of unary operators. 
uicontrol('pos',[p(1) q(1) r],'string','df/dx', ...
   'CallBack','funtool(''row1'',''diff'')');
uicontrol('pos',[p(2) q(1) r],'string','int f', ...  
   'CallBack','funtool(''row1'',''int'')');
uicontrol('pos',[p(3) q(1) r],'string','simple f', ...  
   'CallBack','funtool(''row1'',''simple'')');
uicontrol('pos',[p(4) q(1) r],'string','num f', ...  
   'CallBack','funtool(''row1'',''num'')');
uicontrol('pos',[p(5) q(1) r],'string','den f', ...  
   'CallBack','funtool(''row1'',''den'')');
uicontrol('pos',[p(6) q(1) r],'string','1/f', ...  
   'CallBack','funtool(''row1'',''1/f'')');
uicontrol('pos',[p(7) q(1) r],'string','finv', ...  
   'CallBack','funtool(''row1'',''finverse'')');

% Second row of unary operators.  
uicontrol('pos',[p(1) q(2) r],'string','f+a', ...
   'CallBack','funtool(''row2'',''f+a'')');
uicontrol('pos',[p(2) q(2) r],'string','f-a', ...
   'CallBack','funtool(''row2'',''f-a'')');
uicontrol('pos',[p(3) q(2) r],'string','f*a', ...
   'CallBack','funtool(''row2'',''f*a'')');
uicontrol('pos',[p(4) q(2) r],'string','f/a', ...
   'CallBack','funtool(''row2'',''f/a'')');
uicontrol('pos',[p(5) q(2) r],'string','f^a', ...
   'CallBack','funtool(''row2'',''f^a'')');
uicontrol('pos',[p(6) q(2) r],'string','f(x+a)', ...
   'CallBack','funtool(''row2'',''f(x+a)'')');
uicontrol('pos',[p(7) q(2) r],'string','f(x*a)', ...
   'CallBack','funtool(''row2'',''f(x*a)'')');

% Third row, binary operators.
uicontrol('pos',[p(1) q(3) r],'string','f + g', ...
    'CallBack','funtool(''row3'',''f+g'')');
uicontrol('pos',[p(2) q(3) r],'string','f - g', ...
    'CallBack','funtool(''row3'',''f-g'')');
uicontrol('pos',[p(3) q(3) r],'string','f * g', ...
    'CallBack','funtool(''row3'',''f*g'')');
uicontrol('pos',[p(4) q(3) r],'string','f / g', ...
    'CallBack','funtool(''row3'',''f/g'')');
uicontrol('pos',[p(5) q(3) r],'string','f(g)', ...
    'CallBack','funtool(''row3'',''f(g)'')');
uicontrol('pos',[p(6) q(3) r],'string','g = f', ...
    'CallBack','funtool(''row3'',''g=f'')');
uicontrol('pos',[p(7) q(3) r],'string','swap', ...
    'CallBack','funtool(''row3'',''swap'')');

% Fourth row, auxilliary controls.
uicontrol('pos',[p(1) q(4) r],'string','Insert','CallBack','funtool Insert');
uicontrol('pos',[p(2) q(4) r],'string','Cycle','CallBack','funtool Cycle'); 
uicontrol('pos',[p(3) q(4) r],'string','Delete','CallBack','funtool Delete');
uicontrol('pos',[p(4) q(4) r],'string','Reset','Tag','reset', ...
    'UserData', init, 'CallBack', 'funtool Reset');
uicontrol('pos',[p(5) q(4) r],'string','Help', ...
    'CallBack','helpwin funtool');
uicontrol('pos',[p(6) q(4) r],'string','Demo', ...
    'CallBack','funtool Demo');
uicontrol('pos',[p(7) q(4) r],'string','Close', ...
    'CallBack','funtool close');

%%%%%%%%%%%%%%%%%%%%%%%%%%  end of Initialization section

else
switch keyword

%%%%%%%%%%%%%%%%%%%%%%%%%%  Callback for top row of unary operators.
case 'row1'
   figp = findobj(0,'tag','figp');
   fhndl = findobj(figp,'tag','fobj');
   f = get(fhndl,'UserData');
   x = get(findobj(figp,'tag','xstr'),'UserData');
   figf = findobj(0,'tag','figf');

   switch varargin{1}
     case 'diff'
       f = diff(f);
     case 'int'
       f = int(f);
     case 'simple'
       f = simple(f);
     case 'num'
       [f,ans] = numden(f); 
     case 'den'
       [ans,f] = numden(f);
     case '1/f'
       f = 1/f;
     case 'finverse'
       f = finverse(f);
   end

   set(fhndl,'UserData',f);
   ezplot(f,x,figf)

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲成人777| 国产精品99久| 国产精一品亚洲二区在线视频| 成人美女视频在线看| 精品视频123区在线观看| 久久综合九色综合欧美就去吻| 亚洲欧美日本韩国| 国产一区二区网址| 欧美色综合天天久久综合精品| 国产午夜精品一区二区三区视频| 亚洲成av人片一区二区三区| 懂色av中文字幕一区二区三区| 91精品国产综合久久久蜜臀粉嫩| 国产精品电影一区二区三区| 国产精品正在播放| 91精品国产综合久久精品app| 亚洲欧美偷拍另类a∨色屁股| 国产一区在线观看麻豆| 日韩一区二区在线观看视频| 亚洲一区二区四区蜜桃| 94-欧美-setu| 中文字幕一区二区三中文字幕 | 国产精品久久久久久久久动漫 | 制服丝袜中文字幕一区| 亚洲久本草在线中文字幕| 成人精品国产一区二区4080| 欧美成人性战久久| 美腿丝袜亚洲一区| 6080日韩午夜伦伦午夜伦| 婷婷一区二区三区| 欧美狂野另类xxxxoooo| 91尤物视频在线观看| 国产三级久久久| 成人污视频在线观看| 中文字幕乱码亚洲精品一区| 不卡一区中文字幕| 国产精品久线观看视频| 日韩黄色免费电影| 欧美性猛片xxxx免费看久爱| 亚洲国产精品久久久久婷婷884| www.欧美精品一二区| 久久综合丝袜日本网| 麻豆成人免费电影| 日韩欧美一级精品久久| 日韩精品一二三区| 欧美日韩aaaaa| 午夜精彩视频在线观看不卡| 欧美三级三级三级| 亚洲大片在线观看| 91精品综合久久久久久| 日韩av不卡一区二区| 91欧美一区二区| 亚洲永久精品大片| 欧美日韩大陆一区二区| 亚洲国产成人av好男人在线观看| 欧美性高清videossexo| 五月婷婷综合网| 日本高清视频一区二区| 一区二区三区四区五区视频在线观看| 色菇凉天天综合网| 日韩国产在线观看一区| 精品裸体舞一区二区三区| 韩国毛片一区二区三区| 国产视频一区在线观看| 成人国产电影网| 樱桃国产成人精品视频| 床上的激情91.| 一区二区三区四区中文字幕| 欧美一区二区三区小说| 国产一区高清在线| 自拍偷拍亚洲综合| 欧美人狂配大交3d怪物一区| 久久激五月天综合精品| 国产精品你懂的| 色噜噜狠狠成人网p站| 蜜臀国产一区二区三区在线播放| 久久亚洲捆绑美女| 色综合久久久久综合体桃花网| 亚洲欧美日韩国产成人精品影院 | 国产偷国产偷精品高清尤物| 狂野欧美性猛交blacked| 亚洲精品一区二区三区香蕉| 成人福利在线看| 亚洲视频一二三区| 91精品欧美久久久久久动漫| 国产一区日韩二区欧美三区| 日韩一区欧美二区| 中文字幕一区二区三区色视频| 欧美视频一区二区三区四区| 韩国一区二区三区| 亚洲已满18点击进入久久| 精品国一区二区三区| av网站一区二区三区| 天天色 色综合| 国产精品久久看| 欧美成人艳星乳罩| 日本道色综合久久| 午夜婷婷国产麻豆精品| 国产三级久久久| 制服丝袜国产精品| 色综合一区二区三区| 激情深爱一区二区| 亚洲午夜视频在线| 亚洲精品在线一区二区| 欧美日韩一级黄| 国产麻豆成人传媒免费观看| 麻豆久久久久久久| 亚洲成av人在线观看| 国产精品久久久久久久久果冻传媒| 欧美一区二区人人喊爽| 色香蕉成人二区免费| 国产激情精品久久久第一区二区| 欧美影院一区二区三区| 福利一区在线观看| 国产丶欧美丶日本不卡视频| 亚洲国产日日夜夜| 国产精品美女久久久久久久| 26uuu国产日韩综合| 日韩欧美中文一区二区| 欧美日本不卡视频| 欧美日韩三级在线| 欧美视频在线一区二区三区| 99久久精品免费看国产| 成人小视频免费在线观看| 国产精品一级片在线观看| 人人狠狠综合久久亚洲| 亚洲色欲色欲www| 久久免费午夜影院| 亚洲国产激情av| 欧美国产精品一区二区三区| www一区二区| 久久这里只有精品6| 国产亚洲污的网站| 国产女人18水真多18精品一级做| 欧美亚州韩日在线看免费版国语版| 欧美图片一区二区三区| 欧美三片在线视频观看| 欧美综合天天夜夜久久| 欧美日韩久久久一区| 欧美亚洲国产一区二区三区va| 色综合网色综合| 欧美日韩亚洲国产综合| 777欧美精品| 精品国产一区二区三区不卡| 精品国产不卡一区二区三区| 久久精品一二三| 国产精品国产三级国产普通话蜜臀 | 99视频一区二区| 欧美私人免费视频| 91黄视频在线观看| 欧美综合久久久| 欧美一区二区私人影院日本| 精品国产乱码久久久久久1区2区| 国产婷婷色一区二区三区| 中文字幕一区二| 亚洲高清不卡在线观看| 国产在线观看一区二区| www.亚洲在线| 日韩三级中文字幕| 中文一区一区三区高中清不卡| 亚洲精品乱码久久久久久黑人| 偷偷要91色婷婷| 国产精品77777竹菊影视小说| 91香蕉视频mp4| 欧美一级片免费看| 国产清纯美女被跳蛋高潮一区二区久久w| 久久久久久久久久电影| 欧美mv日韩mv亚洲| 中文字幕制服丝袜一区二区三区 | 国产亚洲欧美中文| 亚洲美女淫视频| 免费成人美女在线观看| 国产999精品久久久久久绿帽| 在线视频综合导航| 国产日本欧洲亚洲| 日本va欧美va瓶| 成人午夜视频网站| 国产日韩欧美不卡| 午夜国产不卡在线观看视频| 福利一区在线观看| 91精品国产综合久久久久久| 日韩美女视频一区| 久久99国产精品麻豆| 日本韩国欧美一区| 国产精品女同互慰在线看| 久久精品理论片| 91成人在线免费观看| 久久久蜜桃精品| 日本亚洲三级在线| 色欧美乱欧美15图片| 久久欧美中文字幕| 天天亚洲美女在线视频| 日本精品免费观看高清观看| 久久精品人人爽人人爽| 免费在线视频一区| 欧美视频在线一区| 国产精品日韩成人| 99热精品国产| 日本一区二区不卡视频| 亚洲va韩国va欧美va|