MaplePrimes Questions

Hi,

I have two Sum as:

f:=t->Sum(A[m]*cos(m*w*t+m*t0),m=0..mm);

g:=phi->Sum(B[n]*cos(n*phi+n*phi0),n=0..nn);

I want to get the product of f*g as

h:=(t,phi)->Sum(Sum(C[m,n]*cos(m*w*t+n*phi+cmn),n=0..nn),m=0..mm);

Is it possible and how to do that ?

Thanks

A simple timing program

st:=time():
for i to 35 do
  i;
end do;
time()-st;

On M16 seems to display after 7 seconds, the time reads 0.010
On M12 it displays in roughly 2 seconds with the time as 0.170

It is physically longer with M16.  Do others get the same results?

**edit add**
No comments?  I should add that it is a laptop 1.4Ghz single core.  Not that it matters but maybe M16 is set up to work more efficiently...

Hello,

I am trying to read some text filw with maple. But the first few lines in this file are nothing I need to read. Do you have any Idea how to skip? If I use readdata I get some lines from header too, because there are some numbers.

So text looks like:

.............................................................................
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
........................................................................ ...

I simplified the real task and

the principal problem is how to assign a condition( if x < 3 then t := 0 elif x >= 3 then t := 5 end if) to a variable t which depends on x (x is a argument of function g(x))?

Is it possible at all without writing the procedure?

Here is the code:

g := proc (x) options operator, arrow; 2*x+t end proc; if x < 3 then t := 0 elif x >= 3 then t := 5 end if; plot(g(x))

Hi, may I know how do I change only the diagonal to certain values please? Thank you.

with(LinearAlgebra):
M:=RandomMatrix(6):
G:=DiagonalMatrix(RandomVector(6)):

Question 1: How do I change the diagonal part to a certain value for example 'a'?
Question 2: How do I change the diagonal part to the vector G?

 

Hi, I have a statement and when b is greater than 3, I would like two outputs which are z and y. But I can't seem to have it working. Please help. Thanks.

a:=2:b:=4:c:=7:d:=2:

this is what i wrote:
if b>3 then z:=a and y:=c elif b<3 then z:=d and y:=a end if:

Hi, may I know what is the function "ismember" in matlab called in maple please? Thanks.

With the command, subpicture,I take the portion of it that interests me.
How I manage to include this sub-image in another image (img)?

Preview(correctedT)

imgs := GetSubImage(correctedT, 100, 125, 20, 120)
Preview(imgs)

Hey there,

i have an System in the form below.

I try to plot s over the angle t which is used in the functions (S,DS and DDS) but because maple uses t in the functions (s, v and a) as the time the calculated eigenfrequency doesnt fit to the System.

The eigenfrequency should be omega:=sqrt(c[0]/m[1])=1035 (over 360 degrees) but because of the angle time switch the eigefrequency is 1035 (over 1).

Has someone an idea how i can tell maple that t is an angle in degree? ...

Hi, here is what I have, I would like to get A[1],A[2],A[3]...A[20] which are 18x18 matrix.
Then I would like to specify certain value for example A[4](2,3), or A[5](1,8) etc.... But there seem to be something wrong with my definition of A[m], I could not write A[m](i,j).
When i type A[4], it does not give me a 18x18 matrix. Please help. Thanks. 

with(LinearAlgebra):
interface(rtablesize=infinity):

lam:=RandomMatrix(18);

I’ve created a basic model of a two-lane road.

Is there a way to get Maple 16 into my linux menu (Linux Mint)?  My workaround has been to copy the Maple executable to the desktop.

What changes should I make to make it sum up?

with(LinearAlgebra):
interface(rtablesize=infinity):

for k from 2 to 21 do
A[k]:=Matrix(18);
P[k]:=Matrix(18);
Ct[k]:=Matrix(18);
for i from 1 to (k-1) do
Ct[k]:=A[k-i].P[i];    ####what changes to make here? 
end do:
end do:

I would like to get
Ct[2]=A[1].P[1]
Ct[3]=A[2].P[1]+A[1].P[2]
Ct[4]=A[3].P[1]+A[2].P[2]+A[1].P[3]
.....
Ct[21]=A[20].P[1...

Hi everyone,

 

I need to expand a sum inside a single multiple integral into separate integrals, as in:


  /                          /                  /
 |                 ...


I need to solve some  transcendental equations, using Maple 16 which i need to transform or bind with java later. My problem is I cant evaluate.

Equation I would like to evaluate is  k= ln((M-m)/m(k-1))offcourse I  defined m and M, prior to c.
Both  eval(k) and evalf (k)  only return k,  I need value for further calculations.

First 1721 1722 1723 1724 1725 1726 1727 Last Page 1723 of 2434