MaplePrimes Commons General Technical Discussions

The primary forum for technical discussions.

Hello All:

I hope I don't get flamed here, but I have run into a lot of difficulty trying to do something that I consider a basic required feature of any analysis and visualization tool. I'm talking about labelling plots (titles, captions, axes, legends, etc.) with both text and greek symbols (at least!). Anyways, I have become very frustrated at this, and now I am trying to make a case for why this should be clarified and simplified for those of us who have Maple (I have both Maple 10 and Maple 11 for what it's worth) in the hopes that the powers that be make this a priority.

solve(piecewise(Or(x=1,x=2),1,0)=1);

                       {x = 1}, {x = 2, x <> 1}

The expected answer is 1, 2. That would be consistent with

solve(piecewise(Or(x=1),1,0)=1);

                                  1

solve(piecewise(x=1,1,0)=1);

                                  1

Alec

is(1+I in ComplexRange(0,2+2*I));

                                false

I couldn't find any value giving true.

Alec

Hi, there,

I am using Maple and Excel to handle a huge amount of data.  The problem is, every time after I change some parameters, I need to select the cell which contains a Maple add-in, and press the "enter" key to execute the Maple calculation.  The whole Excel sheet won't do the calculation job automatically only because of the Maple add-ins.

Does any one have any solution?  It is too annoying and tedious to hit the enter for handreds and thousands of times.

My Maple is Version 11 and Excel is Version 2003.

Cheers,

Dear All, On doing the following integral I get different results analytically and numerically. # Define the integrand P3 := proc (x, m) options operator, arrow; -(1/2)*(-1+4*x^2*m^2+8*x^3*m+2*x*m-3*x^2+m^2)/((2*x^2+1+2*sqrt((x+m)^2/((x+m+1)*(x+m-1)))*x^2)*(x+m+1)*(x+m-1)*sqrt(x)) end proc; IntegralP3 := proc (m) options operator, arrow; Int(P3(x, m), x = 0 .. infinity) end proc; evalf(IntegralP3(1.0)); -2.262741700 int(P3(x,1),x=0..infinity); 0 evalf(-8*sqrt(2)/5); -2.262741699

Hi,

 

I have problems with starting [x]maple on gentoo.

First of all my debuged installation:

I have moved the issue here, since my original post in the "how do I" forum generated no help.

The omexample.c file for calling Maple from C has no make file.

The READEME.txt file in the directory containing omexample.c suggests: "Refer to ?OpenMaple,Examples"

The result of  "?OpenMaple,Examples" does not seem to explicitly specify the required magic to make things work...  Following what appears to be intimated, I typed (to bash):

export MAPLE=/home/dpaddy/bin/maple12

View 1292_$rlm Maple 12 Style - Georgia - colors.1.0.mw on MapleNet or Download 1292_$rlm Maple 12 Style - Georgia - colors.1.0.mw
View file details

Pardon me if you find this difficult to read; it is my first attempt to use the MaplePrimes files interface.

So, how come in command line, if I enter a/(b*c), I am returned with a/b/c?  Is there anyway to preserve 'intelligent' denominator groupings?

I have a problem in cpu usage.
My PC: X86- Intel Core 2 duo 2.2GHz - WinXP-SP2-RAM 2GB FSB 1066

This isn't strictly a Maple question, however, it arises because I'm trying to convert a Maple postscript plot to a png and it is not working; the result has no background color so is essentially impossible to view.  I use ImageMagick's convert to convert from eps to png.  Previously I hadn't had a problem with that, probaby one of my upgrades has changed something (ImageMagick).  Any ideas?  Presumably there is a way to force a background color with the ImageMagick convert command, but the obvious guesses haven't worked. 

I have been trying to get Maple12 to generate C code to implement the
quadratic formula (to produce a root of a second degree polynomial).

My failure to make any progress leads me to conjecture that even
though C is Turing complete as a programming language, Maple12
believes C is incapable of dealing with complex numbers.

* Is that conjecture correct?

I subsequently attempted to use "Re(x)" and "Im(x)" in two procedures
(the first procedure to return the real part, and the second procedure

I am trying to develop a solution to a problem which consists of taking a given vector field (force) and converting that field from one domain to another while maintaining an equivalent system of forces. The real world problem occurs in posttensioning design where steel tendons are place in concrete members and then a tensile force is applied to the tendon, which is then restrained at the end points, creating a compressive vector field in the concrete.

If I evaluate :

assume(0 <= a); full := integrate((sin(t)-t*cos(t))^2*cos(a*t)/t^5, t = 0 .. infinity)

I seem to be getting the wrong result. Not only does the expression look strange (imaginary parts for a real integrand), but it seems also to give wrong results e.g.:

I was reminded of this by another thread.

It is faster to add in-place a large size storage=sparse float[8] Matrix into a new empty storage=rectangular float[8] Matrix than it is to convert it that way using the Matrix() or rtable() constructors.

Here's an example. First I'll do it with in-place Matrix addition. And then after that with a call to Matrix(). I measure the time to execute as well as the increase in bytes-allocated and bytes-used.

> with(LinearAlgebra):

> N := 500:
> A := RandomMatrix(N,'density'=0.1,
>                   'outputoptions'=['storage'='sparse',
>                                    'datatype'=float[8]]):

> st,ba,bu := time(),kernelopts(bytesalloc),kernelopts(bytesused):

> B := Matrix(N,'datatype'=float[8]):
> MatrixAdd(B,A,'inplace'=true):

> time()-st,kernelopts(bytesalloc)-ba,kernelopts(bytesused)-bu;
                            0.022, 2489912, 357907
First 38 39 40 41 42 43 44 Last Page 40 of 78