Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hi, my procedure takes about 163 sec to calculate the list. Are there ways to accelerate this (except lowering the amount of points) ? Does my 4 core processor have an advantage here ?

restart;
f := rsolve({s(1) =0.3, s(n+1) = a*s(n)*(1-s(n))}, s, makeproc):
g := (n, i) -> eval(f(n), a = i):
t := time(): L := [seq(seq([i, g(k, (1/320)*i)], i = 800 .. 1280), k = 200 .. 300)]: time()-t;
 

#leave the plot out if you want

I have to create a procedure that decodes an encoded message using a 2x2 matrix and a row vector.  (Alphanumeric is a 95 character string)

So far I have A:=Matrix(2, 2, [[17,22], [4, 53]]); B:=Vector[row]([19,82]); as my two matricies, and have writtten this as my proc:

 

This a sample program that I wrote which is supposed to test a function that I wrote "proj" to project a function onto a basis.  In particular, in this example I use a Fourier mode.  When I project a function which is a sum of two terms I get an incorrect answer.  When I project each term I get the correct answer.

Any ideas why this yielding an inconsistent result?  Also, if maple has it's own version of proj that is more stable I'm happy to use that.

 

# I want to maximize the following function:
((2*c+a-d-2*b)*delta-(1/2)*c+(1/2)*d-b+a)^2/(9*b-9*a):

# under this constraints:
b-a >= c-d:
c-d-b+a <= (2*b-a-2*c+d)*delta:
(2*b-a-2*c+d)*delta <= 2*b-2*a-2*c+2*d:
a = x[min] .. b:
c = d .. y[max]:

# and I have the following values:
x[max] := 10:
x[min] := 0:
y[max] := 10:
y[min] := 0:
delta := 1:
b:=2:
d:=5:

# I have tried to find the maximum with NLPSolve and the option 'maximize':

I have 5 matrices, Hmatrix[1], and so on.

I can test

map(IsDefinite,Hmatrix)

Maple gives the 5 answers.

How can I test using map the negative_semidefinite property?

Thanks.

In the media today, there continues to be much discussion about how students in North America are moving away from the math, science, and engineering disciplines. It is an established fact that countries such as China, South Korea, and Taiwan graduate a much higher number of engineering students than those in North America. This is a cause for great concern in today’s highly complex world, and schools are attempting to solve the problem with math in a variety of ways, with varying success rates.

In the media today, there continues to be much discussion about how students in North America are moving away from the math, science, and engineering disciplines. It is an established fact that countries such as China, South Korea, and Taiwan graduate a much higher number of engineering students than those in North America. This is a cause for great concern in today’s highly complex world, and schools are attempting to solve the problem with math in a variety of ways, with varying success rates.

Hi,

 

I am kind of new with using maple, and I am hoping that someone can give me some help on nonlinear curve fitting.  I checked out the help topics, and I thought that I had put everything in correctly, as per the help file.  However when I try to do a fit to data, nothing is returned.  Here is what I have input:

 

Hi all, I'm not good at maple, so need a help from experts. I'm using Maple v.12. -part of the code- ... de2:= # Nonlinear DE is here # ics:= X(0) = 1, (D(X))(0) = 1; sol:= dsolve({de2, ics}, numeric, method = rkf45); (or sol := dsolve({de2, ics}, x(t), numeric, stiff = true, range = 0 .. 200);) Error, (in f) unable to store '1.0000000024691*{1.}^2+2000010000.' when datatype=float[8] -end of the code- As you see above, It's a simple process to solve DE. so most of the DE, like (1) below, is solved very well through the code. But my case is (2). I could see error msg as you see above.

Good day, I cannot run this maple, why?

I need help!

I'm trying to plot a sphere, and then shade-in the bottom one-third of it.  Is that possible?

Also, I then need to plot a sphere with 8 approximating disks.

Does anyone have any ideas of how to do these?

I have a Matrix O[n,m]:=Value with n:=1..10 and m:=1..10 How can I present the values in a 3D plot with x->n Y->m and Z->Value. One time I want to make a histogramm out of it and in a second case just connect them to a surface How can I do that Thank you very much in advance!

Hi,

have a look at this plot, i'm using standard worksheet (in classic this problem doesn't exist). 

plot(sin(x),x=-5..5,tickmarks=[default,20]);

Instead of -for example- 0,5 i want decimal points 0.5

Playing with the tickmarks option would do the trick, but a "global switch" would be better.

What to do ?

 

 

Thomas

Hello everybody, I was wondering, is there a way to call procedures from a different worksheet? I am writing a big procedure which calls many smaller ones and that would be really clearer if I keep them in a different worksheet.. Thanks a lot in advance..
First 1971 1972 1973 1974 1975 1976 1977 Last Page 1973 of 2245