我来我网
https://5come5.cn
 
您尚未 登录  注册 | 菠菜 | 软件站 | 音乐站 | 邮箱1 | 邮箱2 | 风格选择 | 更多 » 
 

« 1 234» Pages: ( 1/4 total )
本页主题: 100FY求一道matlab题目解答。求达人指点! 隐藏签名 | 打印 | 加为IE收藏 | 收藏主题 | 上一主题 | 下一主题

negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ misfortune /mis'fo:tən/ n. 不幸 ]


100FY求一道matlab题目解答。求达人指点!

The series expansion (级数展开式) of sine function at a given x using n terms (项) is

这个附件的图。。。
(1) Write an M-file named “sine.m” which contains a function. The function computes the
value of sine function using the above expansion at a given x using n terms. In other
words (换句话说), the function sine(x,n) returns (返回) the value of the expansion at x
and the value is calculated using n terms.
(2) Matlab has a built-in (内建) sine function named “sin” which computes the value of sine
function at a given x. As you can imagine (想象), the values obtained by using theexpansion may not be the same with the results returned by the sin function used by Matlab. See the data in the following table for an example.
The number of n    Sin(π/4)    Sine(π/4,n)
        1                        0.707106… 0.785398…
    2                        0.707106… 0.704652…
    3                        0.707106… 0.707143…
    4                        0.707106… 0.707106…
    As you may have noticed from the table, for a given point π/4, the larger the number n is,
the closer the values obtained by using the expansion are to the actual values calculated
by the sin function in Matlab. Now a question rises: in order to achieve (达到) a certain
degree of accuracy (精确度), how many terms should be used in the expansion in
approximating (近似计算) the value of sine function?
To answer this question, write another M-file named “computeN.m” which finds the
number n in order to meet a required accuracy for a given point x. At some point in this
file, you should call (调用) the function in sine.m explicitly.
(3) Write a third M-file named “plotGraphs.m” which has a function taking the n as input and
plots both sin(x)-x and sine(x,n)-x on the same graph. The variable x should take the
values from -2π to 2π with the step length less than 0.1. Remember to add title, labels and
legend to the graph properly. Call this function from the function in computeN.m, so that
each time computeN(x,δ1) is executed, a graph of the two curves is plotted.
Hint: You may need to slightly (稍微地) change the function in sine.m to make it adapts
the cases that x is a vector.
(4) Run computeN(2, 10e-6) in the command window of Matlab and observe the difference
between the two curves: sin(x)-x and sine(x,n)-x.
远程图片:123.JPG
大三了!!!???
顶端 Posted: 2008-01-07 20:27 | [楼 主]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ scale /skeil/ n. 刻度,尺度,(pl.)天平,大小,规模,鱼鳞;vt. 攀登,按比例绘制,按比例增减 ]


题目应该不难懂。。。。。望达人指点,我昨天搞了一个晚上没搞出来。。。
大三了!!!???
顶端 Posted: 2008-01-07 20:28 | [1 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ regard /ri'ga:d/ vt. 把…看作,把…认为,注意,注视,对待,看待,尊敬,尊重,(pl.)问候,致意 ]


怎么没人问津阿。。。。能搞出来的高手一定FY相赠阿。。
大三了!!!???
顶端 Posted: 2008-01-07 20:32 | [2 楼]
老子124



性别: 保密 状态: 该用户目前不在线
等级: 希望之光
家族: 睡觉睡到自然醒
发贴: 1701
威望: 0
浮云: 1169
在线等级:
注册时间: 2005-09-23
最后登陆: 2008-05-19

5come5帮你背单词 [ ambition /æm'biən/ n. 野心,雄心,抱负,志向 ]


这个也太简单了吧,  
顶端 Posted: 2008-01-07 20:34 | [3 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ tired /'taiəd/ a. 疲倦的,累的,厌倦的,厌烦的 ]


Quote:
引用第3楼老子124于2008-01-07 20:34发表的  :
这个也太简单了吧,  

蝈蝈给做一个嘛。。。我数学实验算是白学了。。。
大三了!!!???
顶端 Posted: 2008-01-07 20:35 | [4 楼]
老子124



性别: 保密 状态: 该用户目前不在线
等级: 希望之光
家族: 睡觉睡到自然醒
发贴: 1701
威望: 0
浮云: 1169
在线等级:
注册时间: 2005-09-23
最后登陆: 2008-05-19

5come5帮你背单词 [ innocent /'inəsnt/ a. 清白的,无罪的,幼稚的,单纯的,没有恶意的 ]


Quote:
引用第4楼negative于2008-01-07 20:35发表的  :

蝈蝈给做一个嘛。。。我数学实验算是白学了。。。

偶在清水河,看不到你的那个图是啥子...
顶端 Posted: 2008-01-07 20:37 | [5 楼]
woofuzhe



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 630
威望: 0
浮云: 1340
在线等级:
注册时间: 2007-07-25
最后登陆: 2009-07-16

5come5帮你背单词 [ method /'meθəd/ n. 方法,办法 ]


是要得到  泰勒级数  吗?

好好学习  天天向上
    早起的鸟儿有虫吃,早起的虫儿被鸟吃

顶端 Posted: 2008-01-07 20:37 | [6 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ announcement /ə'naunsmənt/ n. 布告,通告,预告,声明 ]


我晕。。。。
sin(x)=求和k从1到年n,(-1)^(k-1)*x^(2k-1)/(2k-1)!
能看懂否?
大三了!!!???
顶端 Posted: 2008-01-07 20:39 | [7 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ reunion // n. 团聚,重聚 ]


Quote:
引用第6楼woofuzhe于2008-01-07 20:37发表的  :
是要得到  泰勒级数  吗?

用matlab程序实现上面的要求。
大三了!!!???
顶端 Posted: 2008-01-07 20:40 | [8 楼]
老子124



性别: 保密 状态: 该用户目前不在线
等级: 希望之光
家族: 睡觉睡到自然醒
发贴: 1701
威望: 0
浮云: 1169
在线等级:
注册时间: 2005-09-23
最后登陆: 2008-05-19

5come5帮你背单词 [ addict /ə'dikt/ vt. 使成瘾,热衷于 ]


Quote:
引用第6楼woofuzhe于2008-01-07 20:37发表的  :
是要得到  泰勒级数  吗?

是让你把一个数字的正弦函数用泰勒级数的n次展开,其中n是给定的,这个数字也是给定的,后面再比较它了matlab里面的sin函数的值的差
顶端 Posted: 2008-01-07 20:40 | [9 楼]
woofuzhe



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 630
威望: 0
浮云: 1340
在线等级:
注册时间: 2007-07-25
最后登陆: 2009-07-16

5come5帮你背单词 [ supplement /'sΛplimənt/ n. 补充(物),增刊,副刊,附录;vt. 增补,补充 ]


如果是要的泰勒级数
不重过程 倒好办

好好学习  天天向上
    早起的鸟儿有虫吃,早起的虫儿被鸟吃

顶端 Posted: 2008-01-07 20:41 | [10 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ remedy /'remidi/ n. 治疗,治疗法,补救法;vt. 医治,补救,纠正 ]


Quote:
引用第9楼老子124于2008-01-07 20:40发表的  :

是让你把一个数字的正弦函数用泰勒级数的n次展开,其中n是给定的,这个数字也是给定的,后面再比较它了matlab里面的sin函数的值的差

蝈蝈正解。。。
大三了!!!???
顶端 Posted: 2008-01-07 20:43 | [11 楼]
woofuzhe



性别: 帅哥 状态: 该用户目前不在线
等级: 栋梁之材
发贴: 630
威望: 0
浮云: 1340
在线等级:
注册时间: 2007-07-25
最后登陆: 2009-07-16

5come5帮你背单词 [ ore /o:/ n. 矿石,矿砂 ]


matlab有个工具箱可以直接的到泰勒级数

好好学习  天天向上
    早起的鸟儿有虫吃,早起的虫儿被鸟吃

顶端 Posted: 2008-01-07 20:43 | [12 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ total /'təutl/ a. 总的,全部的;n. 总数,总计;vt. 计算…的总和;vi. 总计,合计 ]


Quote:
引用第10楼woofuzhe于2008-01-07 20:41发表的  :
如果是要的泰勒级数
不重过程 倒好办

关键就是要程序,我搞不出来,原理其实很简单。。。
大三了!!!???
顶端 Posted: 2008-01-07 20:43 | [13 楼]
negative



性别: 保密 状态: 该用户目前不在线
头衔: 奋斗啊~。
等级: 栋梁之材
家族: 菠韬汹勇
发贴: 943
威望: 0
浮云: 1123
在线等级:
注册时间: 2006-09-17
最后登陆: 2015-09-12

5come5帮你背单词 [ political /pə'litikəl/ a. 政治的 ]


Quote:
引用第12楼woofuzhe于2008-01-07 20:43发表的  :
matlab有个工具箱可以直接的到泰勒级数

啥工具箱?
大三了!!!???
顶端 Posted: 2008-01-07 20:43 | [14 楼]
« 1 234» Pages: ( 1/4 total )
我来我网·5come5 Forum » 电子设计·数学建模

Total 0.023709(s) query 5, Time now is:05-12 04:23, Gzip enabled
Powered by PHPWind v5.3, Localized by 5come5 Tech Team, 黔ICP备16009856号