6 h3 P8 E3 n( `6 E作者: fantuen 时间: 2011-3-28 22:37
題目如下, 請高手幫幫忙 ^^ 7 K6 A0 T9 |2 a' P1. 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. 8 x, | m6 O; b' [
' i/ W# x5 T. G- |" A* }6 s: D6 T2. ) o! g$ [) P7 }+ p0 v: G6 B" _
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. ' f5 C/ A1 T, n/ S7 d# Z9 E+ o8 J4 Db) Write and test a program that computes f[n] using Module and a While loop.: ^) O1 |2 {+ h w: K
c) 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 x) V6 X9 M; s2 B) o; I9 B
, u0 G3 E( o; c7 \Consider the iterative map Subscript[x, n] == 1/2 Subsuperscript[x, n-1, 2] -\[Mu]. 2 A2 E n; w# e2 E4 K. V0 L7 da) Compute its fixed points and 2-cycles as a function of \[Mu]. + l3 E, L- L" \7 c+ Wb) Using linear stability analysis, compute the range of stability of both the fixed points as well as the 2-cycles. ! G. V+ B ~ u& y/ x6 u7 d: ^c) Show cobweb diagrams for representative parameters illustrating the (un)stable fixed point and 2-cycle. : S. P1 n6 o) ^
d) Graphically demonstrate the onset of a stable 3-cycle.9 @5 r$ t5 z) G @, A
e) Produce the bifurcation diagram.作者: fantuen 时间: 2011-3-28 22:40
似乎貼的不是很好.... v% c- p* }' e! h, Q* Z/ ?8 W6 U
如果有達人願意幫忙, 麻煩+我QQ 860288311 1 u, j* K4 x% [7 J& R* w# N我可以把notebook檔案發給你作者: gaoshanliu水 时间: 2011-3-29 13:35