Maple 13 Questions and Posts

These are Posts and Questions associated with the product, Maple 13

Hey folks I have a question regarding how to fill an Array.

 

Lets say I do this...

 

Array(1..10, [seq(i, i=0..9)]);

 

This produces [0 1 2 3 4 5 6 7 8 9] as output which is fine.

 

Now lets say I want a 2x10 array (2 rows, 10 columns), the top row being the digits 0-9 (as above) and the second row being something else (in this case it is counting the number of times each digit appears in Pi)

Maple cannot find maximum/extrema for this piecewise function?

 

http://img97.imageshack.us/img97/3931/mapleerror.gif

This happens every single time I try to do this and I need to resolve it once and for all.

 

I have a text file called be which is sitting on my desktop. It consists of two columns of data seperated by whitespace. How do I get maple to read this file? The help pages are of no use since it just tells me to do something like...

 

readdata(be,2): or readdata(be,1):


both of give the same "Error, (in readline) file or directory...

Hi

I have a problem with Maple. I would like to see an answer in numbers this equation, but instead I get more equations. I've tried to use evalf but that didn't work for me.

Is there someone who can look at this and help me?

Thanks in advance!

 

This is my Maple output (sorry for the uglyness):

> SomAx := Ax+F2+F6*sin(beta)-F1*sin(gamma) = 0;
print(`output redirected...`); # input placeholder
    ...

I migrate to Mac OS X 10.6.6.

And Maple 13 and 12 (with or without Firewall)

do not work any more : "kernel connection is lost".

(When Firewall is working, it has all the necessary permissions.)

The mserver (64 bits) mobilize 100 % of CPU two or three times

(and I have to wait at least 1 minute each time), then disconnection appears.

I reinstalled Maple 13 and get the same results.

What can I do ?

Hey folks I'm trying to solve equations using isolve for which I want conditions on my two variables x and y. I would like them to be both positive and x>y. The problem I'm having with isolve now is that I can't manipulate the output I get. Perhaps there is a way to do this but I can't see how yet. It would produce something like {x = 1, y = 2} for example and I can't extract the numerical values from it (at least using [] operators). I currently don't have access to maple...

Hi,

I'm quite new to maple and I'm not really sure how to go about fitting a curve to my data, I have inputed the data by doing;

data := [[1,3],[2,3].........[2,7]]

and then plotted it using a point plot. Now i know I need to fit a resonance curve using LSsolve but I dont know how to go about using that command. Could anyone please enlighten me.

 

Thank you

> restart;
> Fax := 1493/2;
                                    1493
                                    ----

I am trying to obtain the points with equal value of a two variable function ,f(x,y), 0.01<x<0.99, 1.01<y<1.99. I tried to dsolve the problem but I have one equation, two variable and infinite answers . Ho can I get these points with interval of 0.01 and insert in a marix. Thank you in advance.

 

 

 

Dear, slamu aleekum

If i have

M=100,    j run from 1 to 15,     i run from 1 to M

How can i use       i-j mod M

                          i+j mod M

thanks for help

Solving the system

 a1 := 2*x2-x3-x4-x5-x6-x7;
 a2 := -2*x1+2*x3-x4-x5-x6-x7;
 a3 := x1-2*x2+2*x4-x5-x6-x7;
 a4 := x1+x2-2*x3+2*x5-x6-x7;
 a5 := x1+x2+x3-2*x4+2*x6-x7;
 a6 := x1+x2+x3+x4-2*x5+2*x7;
 a7 := x1+x2+x3+x4+x5-2*x6; b := x1+x2+x3+x4+x5+x6+x7;
 solve({x1 >= 0, x2 >= 0, x3 >= 0, x4 >= 0, x5 >= 0, x6 >= 0, x7 >= 0,
 b = 1, a1 <= 0, a2 <= 0, a3 <= 0, a4 <= 0, a5 <= 0, a6 <= 0, a7 <= 0},...

Hey folks and (almost) Merry Christmas!

 

How do I check if a number is a permutation of another number (doesn't have to be a cyclic one though)

 

E.g...

 

Let x = 123456789

 

How would I test to see that, for example, 847591236 is a permutation of x without generating every permutation of x?

I feel there should be an obvious command for this but I can't seem to find any...

 

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.

 

 

 

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)]:

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...

First 42 43 44 45 46 47 48 Last Page 44 of 55