Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Using the Plot Component it is possible to obtain
an interactive worksheet for drawing visually plane geometry
elements, e.g. select a triangle and draw its incircle.
Do you know if such worksheets are available somewhere?

I am trying to use Maple 18 to do some computations with matrices over a ring of polynomials in one variable over the integers $\mathbb{Z}[x]$, or the corresponding field of fractions $\mathbb{Q}(x)$.

 

The matrices in question are of dimension approximately 5000 and are sparse. The algorithm requires at least as many matrix multiplications as the dimension of the space.

Doing some small examples, of dimension 674, with a laptop (i7-3520 M CPU @2.9GHz with 8GB of Ram) gave the following disappointing result:

time(LinearAlgebra[MatrixMatrixMultiply](A,A);

34.694

 

When a colleague with access to a Mathematica license performed an identical calculation using sparse matrices in Mathematica, we found that Mathematica performed the calcuation in fractions of a second.

 

In small dimensional examples, constructing the matrices over the field of fractions as sparse in Maple 18 resulted in a four fold decrease in the already disappointing performance of the LinearAlgebra package in Maple 18.

 

Is there any way to improve the computational performance of Maple 18 for symbolic linear algebra? Alternatively, is the performance of Maple 2015 for symbolic linear algebra noticably better than Maple 18?

 

Thanks in advance.


Dave

 

 

Hello

I have this function:

 

f(x)=80x-2x2

I want to plot it (and ofcourse define it)

 

I then need to find A'(x)= 0 which has to give 20, but my maple wont do that.

 

Help me thanks.

Hello everybody

In the attached file, I tried to solve the system of equations and obtain the parametric solution for my unknowns that are A1, A2, A3, A4, A5, A6, A7 and A8. I have 8 equations and 8 unknowns. The other variables are all known and parametric. I thought Maple could solve these system of equations easily but when I ran the program and waited for about 2 hours, unfortunately it returned no answer and it was in evaluating mode and I closed the program forcely. Does my file have any problem or Maple cannot solve these system of equations.

Thanks in advance

SOE.mw

Hello

 

How do I define this function? s(t) = 5*t1/2

This function shows the pace of a particle. I have to decide the time when the pace of the particle is 2 m/s

 

help 

Is there a way to loop over an entire worksheet I already have? I am too lazy to retype everything into one for loop, and I couldn't just copy and paste everything into one command thing (the space you make when you shift-enter). Is there something I can put before my worksheet that runs it, changes one variable, runs it again, etc.?

Thanks! I hope it is clear what I am asking. 

I want to make a dot product like

Eq6 := (sum(delta[i].v[i], i = 1 .. 3)).(sum(delta[j].w[j], j = 1 .. 3))

and get the complete result like

Eq7 := v[1].w[1]+v[2].w[2]+v[3].w[3]

but instead I get

Eq6 := ((Vector(3, {(1) = 1, (2) = 0, (3) = 0})).v[1]+(Vector(3, {(1) = 0, (2) = 1, (3) = 0})).v[2]+(Vector(3, {(1) = 0, (2) = 0, (3) = 1})).v[3]).((Vector(3, {(1) = 1, (2) = 0, (3) = 0})).w[1]+(Vector(3, {(1) = 0, (2) = 1, (3) = 0})).w[2]+(Vector(3, {(1) = 0, (2) = 0, (3) = 1})).w[3])

Is there a way to force the dot product operation all the way?

 DotProductCommutativity.mw

Hi MaplePrimes,

I want to find the minimum x value for an elipse.  Namely -

x^2 + x*y + y^2 = 2.

I'm sure that the first steps are to differentiate with respect to y and set equal to zero.  This gives

x = -2y.

I'm not sure where to go from there.

Regards,

Matt

Here is a screenshot of my maple worksheet.

I’m trying to use Maple to develop tensor operations using the epsilon-delta notation as used in the attached document, which makes use of the following relationships

permutations.pdf    epsilondelta.pdf

I see how to generate permutations in Maple, and I see there is some mention of what I am trying to do in Maples definition of a signature.  But I am unable to see how to implement it.  Does anyone have any ideas?

Collatz := proc (n)

    local count;

       while n != 1 do

           if `mod`(n, 2) = 0 then n := (1/2)*n

           else n := 3*n+1

           end if;

           count := count+1;

       end do;

print(count);

end proc:

 

I wanna correct 'illegal use of formal parameter' error.

'n' always goes to 1 through 'while statement'.

Hello,

I am trying to use Apollonius procedure from geometry package. Here is an example:

restart;
with(geometry):
circle( c1, [ point( c1c, 0 , 0 ), 5 ] );
circle( c2, [ point( c2c, 5 , 4 ), 2 ] );
circle( c3, [ point( c3c, 13 , 0 ), 3 ] );
A := Apollonius( c1, c2, c3 );

Unfortunatelly the Apollonius method does not give any result. The only message is:

intersection: there is no point of intersection

 

Anyone know what is wrong in my code?

Best regards

Rafał Nowak

about the help menu of maple2015

I cannot find the help-manual menu at th maple2015

but I can find it at maple18.

how can I use the help-manuals..-List of Packages  from maple2015?

 

 

 

The black point correction for xyY to sRGB was incorrect in my original post. It should be done the same ways as for xyY to aRGB which was correct. Hope nobody was inconvenienced. 

 

I would be curious if others have found a more elegant way to index through an Array to perform an operation on a set of vectors. I had to use the single quote to get the operation performed first and the index increment second.

 

Corrections to the original version of theis document;
• Make the scaling for a nonzero black point the same for all RGB color spaces.
• Clip negative RGB values to zero.
• Remove the redundant Array container from matrix multiplications.
Use map in place of the $ to apply a function to each element of an Array.

Pixel_Conversion_B.mw

Dear Maple users

An engineering student asked me how Maple is handling complex numbers in polar form. He told me that his fellow students are using another CAS, whereas he himself prefer Maple. When making calculations with AC currents having different phases the other students were using the easy notation depicted in the first line on the picture below. Obviously here the angle (argument) is measured in degrees. I tried to perform the same calculations in Maple, but found it to require a very heavy notation: the other three lines on the picture. Now my question is: Does it really have to be that messy, or maybe there are some package, which will accomplish the task in a more neat way? I mean it is a rather common operation in the engineering sciences.

NB! Of couse one can argue about the educational value of using the notation of the other CAS! From that viewpoint they will probably not learn anything ...

 

 

Regards,

Erik

 

Why does the collect command work for some expressions and not for others. Here is a screen shot

I assume the collect command is supposed to rewrite the expression in terms of the variable descending order.

p := expand((a^2+2*x)*(a^2+2*x));
                        4      2        2   2
                       a  + 4 a  x + 4 x

collect(p, x);
                        4      2        2   2
                       a  + 4 a  x + 4 x

Does not work.

But if you look at the screenshot , it works for other expressions.

First 1202 1203 1204 1205 1206 1207 1208 Last Page 1204 of 2224