MaplePrimes - Questions and Posts tagged with homework
http://www.mapleprimes.com/tags/homework
en-us2015 Maplesoft, A Division of Waterloo Maple Inc.Maplesoft Document SystemWed, 25 Nov 2015 16:17:06 GMTWed, 25 Nov 2015 16:17:06 GMTThe most recent questions and posts on MaplePrimes tagged with homeworkhttp://www.mapleprimes.com/images/mapleprimeswhite.jpgMaplePrimes - Questions and Posts tagged with homework
http://www.mapleprimes.com/tags/homework
How to create Pascal triangle?
http://www.mapleprimes.com/questions/207188-How-To-Create--Pascal-Triangle?ref=Feed:MaplePrimes:Tagged With homework
<p>hello all!</p>
<p>Pascal := proc (n::posint)</p>
<p>local x, y, i;</p>
<p> for i from 0 to n do print(coeffs(expand((x+y)^i)))</p>
<p>end do end proc;<br>Pascal(4);</p>
<p> </p>
<p style="text-align: center;">1<br> 1, 1<br> 1, 2, 1<br> 1, 3, 3, 1<br> 1, 4, 6, 4, 1</p>
<p> How to create </p>
<p> </p>
<p style="text-align: center;">1<br> 1 1<br> 1 2 1<br> 1 3 3 1<br> 1 4 6 4 1</p>
<p> </p><p>hello all!</p>
<p>Pascal := proc (n::posint)</p>
<p>local x, y, i;</p>
<p> for i from 0 to n do print(coeffs(expand((x+y)^i)))</p>
<p>end do end proc;<br>Pascal(4);</p>
<p> </p>
<p style="text-align: center;">1<br> 1, 1<br> 1, 2, 1<br> 1, 3, 3, 1<br> 1, 4, 6, 4, 1</p>
<p> How to create </p>
<p> </p>
<p style="text-align: center;">1<br> 1 1<br> 1 2 1<br> 1 3 3 1<br> 1 4 6 4 1</p>
<p> </p>207188Wed, 25 Nov 2015 09:48:09 ZsunflowersunflowerHow to find such a matrix?
http://www.mapleprimes.com/questions/207174-How-To-Find--Such-A-Matrix-?ref=Feed:MaplePrimes:Tagged With homework
<p>hello everybody!</p>
<p>I want to create a random symmetric matrix which have det=2. <span>I just made it like this, no better than those ones. Thanks!</span></p>
<p>Doixung := proc (n)</p>
<p>local A, i, j; A := Matrix(n);</p>
<p>n := LinearAlgebra[Dimension](A);</p>
<p>for i to n do A[i, i] := RandomTools[Generate](integer(range = 1 .. 20))</p>
<p> end do;</p>
<p>for i to n do</p>
<p> for j to n do</p>
<p> while j < i do A[i, j] := RandomTools[Generate](integer(range = 1 .. 20)) end do;</p>
<p> while i < j do A[i, j] := A[j, i] end do</p>
<p> end do</p>
<p>end do;</p>
<p>print(A) end proc</p><p>hello everybody!</p>
<p>I want to create a random symmetric matrix which have det=2. <span>I just made it like this, no better than those ones. Thanks!</span></p>
<p>Doixung := proc (n)</p>
<p>local A, i, j; A := Matrix(n);</p>
<p>n := LinearAlgebra[Dimension](A);</p>
<p>for i to n do A[i, i] := RandomTools[Generate](integer(range = 1 .. 20))</p>
<p> end do;</p>
<p>for i to n do</p>
<p> for j to n do</p>
<p> while j < i do A[i, j] := RandomTools[Generate](integer(range = 1 .. 20)) end do;</p>
<p> while i < j do A[i, j] := A[j, i] end do</p>
<p> end do</p>
<p>end do;</p>
<p>print(A) end proc</p>207174Wed, 25 Nov 2015 04:16:37 ZsunflowersunflowerWhat is wrong with algorithm?
http://www.mapleprimes.com/questions/207146-What-Is-Wrong-With--Algorithm?ref=Feed:MaplePrimes:Tagged With homework
<p>Hello! I have written a algorithm. Can you help me find errors? thank you very much. sorry, my English is not very good!</p>
<p>LL:=proc(A::Matrix) <br> uses LA= LinearAlgebra; <br> local i, j, k, n:= LA:-RowDimension(A), <br> L:= Matrix(LA:-Dimensions(A)); <br> L[1,1]:=sqrt(A[1,1]); <br> for j from 2 to n do <br> L[j,1]:=(A[j,1])/(L[1,1]); <br> end do; <br> for i from 2 to n-1 do <br> L[i,i]:=(A[i,i]-add(L[i,k]^(2),k=1..i-1))^(1/(2)); <br> for j from i+1 to n do <br> L[j,i]:=(1/L[i,i])*(A[j,i]-add(L[j,k]*L[i,k],k=1..i-1)); <br> end do; <br> end do; <br> L[n,n]:=(A[n,n]-add((L[n,k])^(2),k=1..n-1)^(1/(2)); <br> L;</p><p>Hello! I have written a algorithm. Can you help me find errors? thank you very much. sorry, my English is not very good!</p>
<p>LL:=proc(A::Matrix) <br> uses LA= LinearAlgebra; <br> local i, j, k, n:= LA:-RowDimension(A), <br> L:= Matrix(LA:-Dimensions(A)); <br> L[1,1]:=sqrt(A[1,1]); <br> for j from 2 to n do <br> L[j,1]:=(A[j,1])/(L[1,1]); <br> end do; <br> for i from 2 to n-1 do <br> L[i,i]:=(A[i,i]-add(L[i,k]^(2),k=1..i-1))^(1/(2)); <br> for j from i+1 to n do <br> L[j,i]:=(1/L[i,i])*(A[j,i]-add(L[j,k]*L[i,k],k=1..i-1)); <br> end do; <br> end do; <br> L[n,n]:=(A[n,n]-add((L[n,k])^(2),k=1..n-1)^(1/(2)); <br> L;</p>207146Tue, 24 Nov 2015 02:01:45 ZsunflowersunflowerHow to solve that recursion?
http://www.mapleprimes.com/questions/207068-How-To-Solve-That-Recursion?ref=Feed:MaplePrimes:Tagged With homework
<p>Given the sequence defined by the recursive relation a[n+1] = r*a[n](1-a[n])<br>You need to use the procedure iterate.<br>Throughout this problem you should choose initial values in the interval 0<a0<1.<br>(a) Let r=3/2. Calculate a moderate number of terms in the sequence (between 10 and 20). Does the sequence appear to be converging? If so to what value? Does the limit depend upon your choice of initial value? Plot the terms you have calculated<br>(b) Let r=2.8. Calculate a moderate number of terms in the sequence (between 10 and 20). Does the sequence appear to be converging? If so to what value? Does the limit<br>depend upon your choice of initial value? Plot the terms you have calculated How does this sequence differ from that in part (a).<br>(c) Let r=3.2. Calculate a moderate number of terms in the sequence (between 10 and 20). Show that the sequence does not appear to converging. Plot the terms you have calculated and describe how the sequence behaves in this case.<br>(d) Consider intermediate values between 2.8 and 3.2 to determine more precisely where the transition in behaviour takes place. Provide a few plots (no more than 4) showing the values you have investigated.<br>(e) Consider the values of r in the range 3.43<r<3.46. Determine as accurately as you can the value of r for which the period of oscillation doubles.<br>(f) As r increase further period doubling occurs. Try to find the when the sequence appears to oscillate between 8 values.<br>(g) Let r =3.65 and calculate a considerable number of terms (at least a few hundred) and plot your values.<br>(h) For r=3.65 choose a0=0.3 and then a0=0.301. Find and plot some terms in the sequence for each initial value. Determine how long the terms in the two sequences remain close together and when they begin to depart significantly from each other.</p><p>Given the sequence defined by the recursive relation a[n+1] = r*a[n](1-a[n])<br>You need to use the procedure iterate.<br>Throughout this problem you should choose initial values in the interval 0<a0<1.<br>(a) Let r=3/2. Calculate a moderate number of terms in the sequence (between 10 and 20). Does the sequence appear to be converging? If so to what value? Does the limit depend upon your choice of initial value? Plot the terms you have calculated<br>(b) Let r=2.8. Calculate a moderate number of terms in the sequence (between 10 and 20). Does the sequence appear to be converging? If so to what value? Does the limit<br>depend upon your choice of initial value? Plot the terms you have calculated How does this sequence differ from that in part (a).<br>(c) Let r=3.2. Calculate a moderate number of terms in the sequence (between 10 and 20). Show that the sequence does not appear to converging. Plot the terms you have calculated and describe how the sequence behaves in this case.<br>(d) Consider intermediate values between 2.8 and 3.2 to determine more precisely where the transition in behaviour takes place. Provide a few plots (no more than 4) showing the values you have investigated.<br>(e) Consider the values of r in the range 3.43<r<3.46. Determine as accurately as you can the value of r for which the period of oscillation doubles.<br>(f) As r increase further period doubling occurs. Try to find the when the sequence appears to oscillate between 8 values.<br>(g) Let r =3.65 and calculate a considerable number of terms (at least a few hundred) and plot your values.<br>(h) For r=3.65 choose a0=0.3 and then a0=0.301. Find and plot some terms in the sequence for each initial value. Determine how long the terms in the two sequences remain close together and when they begin to depart significantly from each other.</p>207068Fri, 20 Nov 2015 12:47:10 Zcz6907cz6907Error in program
http://www.mapleprimes.com/questions/206943-Error-In-Program?ref=Feed:MaplePrimes:Tagged With homework
<p>Hello all! I've just learned about Maple. My English is not very good :( I write matrix A:=L*U program. If you know it, you will understand my mind. But I received "error" from Maple. Thanks for your viewing</p>
<p><a href="/view.aspx?sf=206943_question/A=LU.mw">A=LU.mw</a></p><p>Hello all! I've just learned about Maple. My English is not very good :( I write matrix A:=L*U program. If you know it, you will understand my mind. But I received "error" from Maple. Thanks for your viewing</p>
<p><a href="/view.aspx?sf=206943_question/A=LU.mw">A=LU.mw</a></p>206943Mon, 16 Nov 2015 16:01:37 ZsunflowersunflowerCan you help me with the program
http://www.mapleprimes.com/questions/206920-Can-You-Help-Me-With-The-Program?ref=Feed:MaplePrimes:Tagged With homework
<p>hello eveyone! sorry, my English is not very good</p>
<p>I writed Neville algorithm</p>
<p>I want to creat a table(or a matrix) Q with</p>
<p>example:</p>
<p>f:=X->2^X;</p>
<p>with value of X: -2,1,0,1,2</p>
<p>-2 1/4</p>
<p>-1 1/2</p>
<p>0 1</p>
<p>1 2</p>
<p>2 4</p>
<p>I want to approximate f at x=0.5 by Neville</p>
<p>then: for i:=2,...,n (that case is 5)</p>
<p> for j:=2,...i</p>
<p> </p>
<p> Q[i,j]=(x-X[i-j])*Q[i,j-1]-(x-X[i])*Q[i-1,j-1])/(X[i]-X[i-j])</p>
<p> output(Q)</p>
<p>this is:</p>
<p>-2 1/4 0 0 0 0</p>
<p>-1 1/2 0.875 0 0 0</p>
<p>0 1 1.25 1.3475 0 0</p>
<p>1 2 1.5 1.4375 1.421875 0</p>
<p>2 4 1 1.375 1.40625 <strong>1.412109375</strong></p>
<p><strong><br></strong>do you understand my mind? sorry, my English is not very good</p>
<p>Regards</p>
<p> sunflower</p><p>hello eveyone! sorry, my English is not very good</p>
<p>I writed Neville algorithm</p>
<p>I want to creat a table(or a matrix) Q with</p>
<p>example:</p>
<p>f:=X->2^X;</p>
<p>with value of X: -2,1,0,1,2</p>
<p>-2 1/4</p>
<p>-1 1/2</p>
<p>0 1</p>
<p>1 2</p>
<p>2 4</p>
<p>I want to approximate f at x=0.5 by Neville</p>
<p>then: for i:=2,...,n (that case is 5)</p>
<p> for j:=2,...i</p>
<p> </p>
<p> Q[i,j]=(x-X[i-j])*Q[i,j-1]-(x-X[i])*Q[i-1,j-1])/(X[i]-X[i-j])</p>
<p> output(Q)</p>
<p>this is:</p>
<p>-2 1/4 0 0 0 0</p>
<p>-1 1/2 0.875 0 0 0</p>
<p>0 1 1.25 1.3475 0 0</p>
<p>1 2 1.5 1.4375 1.421875 0</p>
<p>2 4 1 1.375 1.40625 <strong>1.412109375</strong></p>
<p><strong><br /></strong>do you understand my mind? sorry, my English is not very good</p>
<p>Regards</p>
<p> sunflower</p>206920Mon, 16 Nov 2015 01:14:48 Zsunflowersunflower