📄 fcn.mht
字号:
From: <Saved by Windows Internet Explorer 7>
Subject:
Date: Tue, 12 May 2009 09:43:20 -0700
MIME-Version: 1.0
Content-Type: text/html;
charset="Windows-1252"
Content-Transfer-Encoding: 7bit
Content-Location: http://www.mece.ualberta.ca/Courses/mec390/390code/fcn.m
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3350
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY><PRE>function y = fcn(x)
% FCN returns a value from a simple function expression
% See file deriv.m for derivatives of these functions
% BE SURE TO COMMENT OUT ALL DEFINITIONS NOT REQUIRED
% function f1
y = 9.8 * 68.1 * (1-exp(-10*x/68.1))/x - 40;
% polynomial f2
%y = x^4 - 5*x^3 - 124*x^2 + 380*x + 1200;
% polynomial g2 - version 1 of f2 for 1-point iteration
%y = -1200/(x^3 - 5*x^2 - 124*x + 380);
% polynomial g2 - version 2 of f2 for 1-point iteration
%y = (5*x^3 + 124*x^2 - 380*x - 1200)/x^3;
% polynomial g2 - version 3 of f2 for 1-point iteration
%y = (-x^4 + 5*x^3 - 380*x - 1200)/(-124*x);
% polynomial f3
%y = x^2 - 5*x + 6;
% function f4
%y = x^2 - 2*x*exp(-x) + exp(-2*x) - 3;
% function f5
%y = -1200/(x^3 - 5*x^2 - 124*x + 380);
% function f6
%y = x^3 + 2*x^2 + 4*x - 6;
</PRE></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -