- 在线时间
- 6 小时
- 最后登录
- 2017-2-16
- 注册时间
- 2011-3-28
- 听众数
- 3
- 收听数
- 0
- 能力
- 0 分
- 体力
- 143 点
- 威望
- 0 点
- 阅读权限
- 20
- 积分
- 48
- 相册
- 0
- 日志
- 0
- 记录
- 0
- 帖子
- 10
- 主题
- 1
- 精华
- 0
- 分享
- 0
- 好友
- 0
升级   45.26% 该用户从未签到
|
題目如下, 請高手幫幫忙 ^^
4 d( O ?- G3 _- _2 m6 m1. Write a function that as input has an expression f, and returns the logarithmic derivate 1/f (d f)/(d x) . Use a conditional or pattern test to make your function accept any symbols as input except for lists. 0 @* Q" x2 R; X2 \$ R+ R& P" g
6 {& ?# z, J& @; [: E5 W
2. * ]" y& y+ s, u8 I) H& ~
a) Write a recursive function that computes the function f[n] defined by 6 n f[n]=f[n-1]+n! for n>0, and f[0]=7. Restrict the argument to positive integers.
8 H5 j% H4 n1 d2 i# _% T$ Lb) Write and test a program that computes f[n] using Module and a While loop.
9 d" r" ~7 r8 ?8 Nc) Compare the timings of the two methods by computing f[n] in both cases for very large values of n and/or doing the computation many times. You may have to use Clear or restart to clear Mathematica's memory of previous calculations. Explain your results.
3 ?" C! a7 b2 V- b# g0 h% q, u
) Q4 Z8 {( w& X0 V3 `Consider the iterative map Subscript[x, n] == 1/2 Subsuperscript[x, n-1, 2] -\[Mu]. 8 }, c! V5 D) M
a) Compute its fixed points and 2-cycles as a function of \[Mu].
5 K: w: n7 g; d9 Wb) Using linear stability analysis, compute the range of stability of both the fixed points as well as the 2-cycles.
0 H/ g f9 C$ Y) ec) Show cobweb diagrams for representative parameters illustrating the (un)stable fixed point and 2-cycle.
6 t& r& f( o& g, ]6 ^& gd) Graphically demonstrate the onset of a stable 3-cycle.
' d6 E" ?. @0 W! w2 U( _e) Produce the bifurcation diagram. |
|