Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I have the simplified version of what I want to do:

restart: with(LinearAlgebra):
d:=4:

product(MatrixExponential(I*Matrix(d,{(l,l)=1})*A[l,l]),l=1..d):

 

But I get the following error:

Error, (in Matrix) integer indices required for Matrix

Help appreciated.

 

 

 

Hello friends,

I would like to obtain the "n" for which the second column reaches its maximum and minimum (in the case of my example below, n= 5, 11 and 17 (for -10) and n = 8 and 14 (for 10))

 

restart:
interface(rtablesize=20):
Matrix([  seq([ n,round(10*sin(n)),round(10*cos(n))], n=1..20)]  );

How can I do that?

 

Thanks a lot for you attention,

 

Jean-Jacques

Hello,

I use the following commands to generate some complex numbers:

equ := 2+(s+1)*exp(tau*s) = 0;

a := [0, .8, 2*Pi/(3*sqrt(3)), 4*Pi/(3*sqrt(3))];

for i to nops(a) do

   evalf(solve(subs(tau = a[i], equ), s));

end do

then maple output four complex numbers. I want to get a list which contains the four output complex numbers,how can I do that without retyping the output numbers manually?

By the...

I am trying to use Maple 14.01 for implementing the computation of some cooperative game solutions with transferable utility.

As a first step for computing the CORE, I need to be able to draw the 2-simplices ( a triangle in R^2 with vertices (1,0,0), (0,1,0), (0,0,1) and 3-simplices ( a tetrahedron  with vertices  (1,0,0,0), (0,1,0,0), (0,0,1,0), (0,0,0,1) ). Certainly, I would like to be able to rotate and to visualize from different angles the figure.

restart:
with(LinearAlgebra):
with(ArrayTools):
with(Statistics):
randomize():
with(plots):
with(combinat):

n := 100:
nstock := 7:
corr := .8:

R := Matrix(nstock, nstock, proc (i, j) options operator, arrow; `if`(i = j, 1, corr) end proc):
CD := Matrix(LUDecomposition(evalf(R), 'method' = 'Cholesky'), datatype = float[8]):

ev := [seq((1/5)*(rand(-3 .. 4))(), i = 1 .. nstock)]:
st := [seq((rand(1 .. 2))(), i = 1 .. nstock)]:

A small question:

When I send the following command, I can see the matrix of 10 x 2:

Matrix( [seq( [ n , sum( evalf(1/(n+1)), k=(1/3*n)..(2/3*n) )], n= 1..10)]);

 

However, when I want to evaluate for  n=1..50.. I cannot see any numbers but only a description of a matrix.

How may I can I see the matrix for n=1..50?

 

Thanks a lot for your attention,

 

Jean-Jacques

 

Hi; every body

i have a problem with fsolve using fours equestion. i use fsolve to slove four equestions and it doesnot give any soltion even if i determent the period of solution as follow,

x1=0..3, x2=0..2, x3=0..1/2, x4=0..5.

i have increased the digit to 100 but it still does not give solution where i am sure there is solution in this interval.

 

I am looking to create a list-of-lists with all the combinations of 1..7.
The order is not important so for example [1,7] [7,1] should only return [1,7]

ie

[[1],[2],[3],[4],[5],[6],[7],[1,2],[1,3],[1,4],[1,5],[1,6],[1,7],

[2,2], [3,3], [4,4] ......................
[3,2]...................
.......
[7,2].............

[1,2,1]........

[1,2,2].......     ]

 

I am no sure I am explaining...

I just bought an HP 8500A 910A printer. So far every other application except Maple prints correctly and well. When I print, each (whole) page is printed in the upper left hand quarter of a letter size sheet of paper. This never happened with my old HP LaserJet 4L. After much search, there do not seem to be any setable preferences that could lead to this result.

On the HP forum, there is another user with the same problem except the application is different....

Hey folks I need some help with basic string manipulation.

 

Say I want to find the sum of the digits of 123

 

What I've been doing is the loooong way of converting 123 to a string, breaking it up into 3 seperate numbers, converting these back to their decimal value, then adding them up.

 

How could I make this more efficient? Is there some part of StringTools that would do this for me?

 

Then...

a. How to write a  proc(a,h,A,B,C) procedure which calculates the area of the projection of the pyramid OKLMS on the plane p:A*x+B*y+C*z+D=0,where O(0,0,0), K(a,0,0), L(a,a,0), M(0,a,0), and S(a/2,a/2,h)?
b.  How to write a  proc(r,h,A,B,C) procedure which calculates the area of the projection of the cone
with the base {(x,y,z): x^2+y^2<=r^2,z=0} and the vertex S(0,0,h) on the plane p:A*x+B*y+C*z+D=0?

I would like to have some help to write the maple code (hopefully compiled) for

An Exact Polynomial Algorithm for the 0/1 Knapsack Problem , Edouard Petrounevitch
http://www.optimset.com/knapsack.pdf


I think such algorithm looks promising but I am no expert when it comes to optimization :-)

Is there a function or procedure within Maple (v13) that will return the highest power of a polynomial?

 

Related to this, how do I determine the error return value from coeff(a,x,i) ?

 

TIA

Dears,  I want to generate a following matrix

g:=proc(i,k); if 86<=i<=100    then if i+1<=k<=100  then Y   end if end if end proc:

A:=Matrix(100,100,g);

Is this true (Can i use two if statments)

Could any one help me

Amr

Coon's patch defines a patch from 4 curves forming a chain. 4-examples to Coon's patch are given following worksheet. Boundary curves in the examples are constructed by parametric cubic curves (in Bezier and Hermite form). First example is in 3D and comparable to parametric bicubic surface. Rest of examples are in 2D (abstract surface) which can be described shortly as:

  • 2D Example#1: 4 circular-arc like curves are combined by Coon's patch to form a circular-like region
First 1741 1742 1743 1744 1745 1746 1747 Last Page 1743 of 2224