MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.
When using matrix with real (non integers) coefficients, maple does significant mistakes. Does somebody knows why?
I present the following:
[> restart;
[> a1:= foo = bar;
                             a1 := foo = bar
[> a2:= blam = foo = bar;
Error, `=` unexpected
[> a3:= blam = a1;
                       a3 := blam = (foo = bar)
The fact that the definition of a2 (correctly) throws an error and the definition of a3 does not can lead to some odd errors down the way. I disagree with Maple's choice not to say that the assignment of a3 is in error.
Ok, I'm now using maple 11, previously i was using maple 8. I'm trying to define a coordinate array, in this case i do this by setting the array, Coords:=({x,y,z}); however maple 11 now seems to change the ordering of the array. giving as output: Coords := {y, z, x} How do I make it stay as x,y,z????? Why would it do this??
The student is supposed to use the logistic differential equation given to them (with carrying capacity .52e12), dsolve() the differential equation with a specific initial condition, and then calculate the population at 3 different times. Notice what happens:

[> restart;
[> my_deq := (diff(P(t), t))/P(t) = .789*(1-P(t)/(.52*10^12));

                   d
                   -- P(t)
                   dt                               -11
         my_deq := ------- = 0.789 - 0.1517307692 10    P(t)
                    P(t)

[> dsolve({my_deq,P(2290)=.83*10^10});
I am working on a new package, called "Spacetime", which I intend should be able to treat any physical field, either tensorial (integer-valued spin, like the photon) or spinorial (half-integer valued spin, like the electron) on any curved Riemannian manifold (gravity, according to Einstein). Anyway, for the Maple specific part: I have decided to implement these general fields as multi-dimensional Arrays, analogous to the older package "Gravitation", which "Spacetime" is intended to replace. They may have some symmetries and/or antisymmetries among their various indices. That part, that is, setting up the appropiate indexing functions, even in the general case, I have solved.
The following system of equations can be solved by Maple 9.5 and Maple 10, but either takes a long time in Maple 11 or else simply won't solve. Is anyone else experiencing problems with the solve command? Earlier I noticed that Maple 11 was returning duplicates in solutions, but this is more serious. We tried this system on Maple 9.5 and Maple 10, and it solves easily, but on two computers with Maple 11, in classic worksheet mode, minutes went by with no solution. {2*a[2,6]*a[2,9]-2*a[2,8]*a[2,9], 2*a[1,5]*a[3,1]+2*a[1,7]*a[3,1], 2*a[2,6]*a[3,4]-2*a[2,8]*a[3,4], 2*a[1,5]*a[2,1]+2*a[1,7]*
Under Maple 10, the command densityplot(10-x-y, x = 0 .. 3, y = -x .. x, scaling = constrained, colorstyle = HUE, style = patchnogrid)
I have twelve 4x4 matrices with specific complex-valued entries. I would like to know if they are linear independent over the reals. Is there some feature of Maple that enables me to do that easily? I've tried adding together all the matrices, each separately multiplied by an unspecified algebraic number, and then to use solve(). But I don't trust the result, partly because it becomes rather tedious, partly because the package RealDomain, with which I've no experience, has to be invoked in order to avoid producing a false solution of linear dependence over the complex numbers. I've also tried defining a 12x12 matrix consisting of bilinear traces of the matrices, analogous to the Cartan matrix in Lie algebra theory, and then taking the determinant to test for degeneracy.
Why is something like
V := Vector(2,(i) -> Matrix(3,3));
not equivalent to
V := Vector([Matrix(3,3),Matrix(3,3)]);
which raises the error "Error, (in Vector) initializer list contains elements of width > 1 and depth > 1", but instead equivalent to
V := Vector([[Matrix(3,3)],[Matrix(3,3)]]);
Why the need for extra pairs of [...]?
The following returns 0, which seems less than ideal to me: assume(m::integer,n::integer); int( cos(m*x) * cos(n*x) , x = 0..2*Pi ); Is this intentional or unavoidable - or is it something that could usefully be improved? Toby
Why can't maple integrate exp(arcsin(x)), it is possible to do by hand without a lot of effort.
After successfully installing maple 11 on my computer running Ubuntu I start maple by executing the xmaple command. That will give the splash screen and later start a window which is just grey with no menu bars. In the end the startup tip dialog appears and when I select anything from there it disappears and nothing happens after that. The window stays gray. If I press the location of the window where the menu bar should be (also press F10) I get the menu items. Selecting any of them, like options, will invoke a dialog which is fine but there is nothing happening when opening a file or wanting to run an example or such.
Hi, recently I posted a question regarding the problem that by calling same procedure with same parameters I was getting different results. http://www.mapleprimes.com/forum/function-in-maple-returns-me-different-results#comment-10172 I was playing little bit more with this problem and I found another problem / bug. If I define generalized Gaussian probability density function and set parameters such that it is Gaussian probability density function (definition involves absolute value), my procedure returns number in order 10^131. If I call the same procedure with normally defined Gaussian probability function (definition does not have absolute value), the function return 0.7, which correct results.
Do not understand the answer to this.. eq1:=X=(1/Rp/(1/Rp/Rp+w*w*Cp*Cp)); eq2:=Y=(w*Cp/(1/Rp/Rp+w*w*Cp*Cp)+1/w/A/Cp); expand(solve({eq1,eq2},{Rp,Cp})); {Cp = RootOf(A+1+(-Y*A-2*Y)*_Z+(X^2+Y^2)*_Z^2,label = _L2)/A/w, Rp = -X*A/(Y*RootOf(A+1+(-Y*A-2*Y)*_Z+(X^2+Y^2)*_Z^2,label = _L2)-A-1)} What are the: _Z _Z^2 ? and what is the label = _L2 ? Can I make the answer look like somthing more understandable?
Hi, I am not proficient in Maple, I start to use it one week ago, but it already help me to solve problem that is unimaginable to solve for me by hand. Unfortunately, I encounter a problem which I am unable to solve by myself. I have written a simple function calculating Taylor expansion of two functions and then calculate some statistics of coefficients. Strangely, if I call the function twice consecutively, it always returns me different results. I tried to save intermediate results, but it is even more weird. The input is the same, but then in the middle of iterations results starts to differ. I am desperate.
First 49 50 51 52 53 54 55 Last Page 51 of 78