Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello guys
I'm having trouble solving a PDE using pdsolve-numerical. Here's a notebook attached.

I'm grateful if anyone can help.

Regards,

Oliveira

                   PDE1.mw

I would appreciate any help to solve the following Partial Differential Equation, which is a mix of partial and regular derivatives as coefficients.

How to solve it with/without initial conditions?

How to read the topological structure of chemical from a SMILES file in Maple 

As I want only the physical structure of the molecule

Like in molecular data it gives the bonds of topology {1,2} like the structure it gives

As SMILES can give 2D structure to me 

Kind help how to do 

I am new to both the variational formulation of GR and Maple. Attached is the worksheet I am working on. I am wanting to calculate the variation with respect of u and the metric tensor.

Download Temp.mw

Let us begin with few simulations: 
 

restart;

CodeTools:-Usage(plots['pointplot3d'](Matrix((proc (_) options operator, arrow; [_[() .. (), 1]-_[() .. (), 3], _[() .. (), 2]-_[() .. (), 4], _[() .. (), 5]] end proc)(convert(ssystem("wolframscript -code \"RandomPoint[Simplex[IdentityMatrix[5]], 2*^4]\"")[-1], FromMma)), scan = [rectangular, columns], datatype = float[4]), scaling = constrained))

memory used=0.57TiB, alloc change=91.51MiB, cpu time=18.77m, real time=15.86m, gc time=4.91m

 

CodeTools:-Usage(plots['pointplot3d'](Matrix((proc (_) options operator, arrow; [_[() .. (), 1]-_[() .. (), 3], _[() .. (), 2]-_[() .. (), 4], _[() .. (), 5]] end proc)(convert(ssystem("wolframscript -code \"RandomPoint[Sphere[5], 2*^4, ConstantArray[List[0, 1], 5]]\"")[-1], FromMma)), scan = columns, datatype = float[4]), scaling = constrained))

memory used=0.56TiB, alloc change=-12.08MiB, cpu time=18.70m, real time=15.11m, gc time=5.69m

 

NULL


 

Download iDistributionVector.mws

Well, I'd like to prove (through the use of Maple): 

transform((x1, x2, x3, x4, x5) -> [x1 - x3, x2 - x4, x5])(inequal(And((x || (1 .. 5)) >=~ 0, norm([x || (1 .. 5)], 1) = 1))) # not Maple syntax

is equivalent to a filled pyramid

ImplicitRegion((X, Y, Z), 0 <= Z <= 1 - abs(X) - abs(Y)) # not SymPy syntax

transform((x1, x2, x3, x4, x5) -> [x1 - x3, x2 - x4, x5])(inequal(And((x || (1 .. 5)) >=~ 0, norm([x || (1 .. 5)], 2) = 1))) # not Maple syntax

is equivalent to a hemi-ball

ImplicitRegion((X, Y, Z), 0 <= Z <= sqrt(1 - X**2 - Y**2)) # not SymPy syntax

, and 

transform((x1, x2, x3, x4, x5) -> [x1 - x3, x2 - x4, x5])(inequal(And((x || (1 .. 5)) >=~ 0, norm([x || (1 .. 5)], 'infinity') = 1))) # not Maple syntax

is equivalent to a solid cuboid

ImplicitRegion((X, Y, Z), -1 <= X <= 1 & -1 <= Y <= 1 & 0 <= Z <= 1) # not SymPy syntax

. (Here, for the convenience of the descriptions, I utilize some non-standard notation from .) 
Note that ”two regions are equal" is a two-way property, which means the following proof 

is(Z >= 0) and is(Z <= 1 - abs(X) - abs(Y)) assuming (X, Y, Z) =~ (x1 - x3, x2 - x4, x5), x || (1 .. 5) >=~ 0, add(x || (1 .. 5)) = 1;
                              true
(*Accordingly, the latter region is a subset of the former one.*) 

is incomplete (because it's hard to determine whether the is routine always performs equivalent transformations in internal evaluation). 

So, can I execute such eliminations in Maple?

As the code:

poly := x^4 + 8*x + 12:
galois(poly, x)

"4T4", {"A(4)"}, "+", 12, {"(1 2 4)", "(2 3 4)"}

 Then I know it's Galois group has to be (isomorphic to) A4. And I can draw its Subgroup Lattice:

DrawSubgroupLattice(GaloisGroup(poly, x), 'indices')

But according to Galois's theory, each subgroup represents an intermediate field. As far as I know, ⑤⑥⑦⑧ are Q(r1),Q(r2),Q(r3) and Q(r4), respectively, where ri is the root of equation x^4+8x+12. But I have no idea what fields ②③④⑨ means. How do you calculate out those intermediate fields with maple?

Dear researchers,

Greetings, I have unable to apply Nonlinear Least-Squares Methods  for an SIR parameter estimation. May you share me your Maple code model as a  sample parameter estimation ?

Thank you in advance!!!

Dear people,

I have resolved the primitives of the equation of the odometric model.

I have plotted them to the Maple interface and I was thinking that it can have been done by the solver.

Nevertheless it has not been possible to do it.

Can you tell me if a package of Maple can resolve it ?

Best regards,

Edern Ollivier.

Hi,

May  I please get a Maple code to solve the below Perturbation Iteration Solutions for Volterra Integral Equations? 

I shall be very much grateful if I can get the Maple Code.

And possible plotting

Thanks

What does the following message imply?

"Error, (in Engine:-Dispatch) invalid boolean expression: 0"

I was introduced to DataFrame by some kind people here the other day and I thought I understood.  Then I tried this

M := DataFrame(<0,0,0;0,1,a;0,a,1>,rows=[0,1,a],columns=[0,1,a])

Now M[1, a] returns 0.  What's going on here? 

Hello guys,

I created a palette, but when I click on an entry, the following occurs:

If the entry line, where the mouse cursor is, is empty, insertion takes place on this line.
If the input line has any expression and the mouse cursor is to the left of the expression, insertion takes place on the line above.

If the input line has any expression and the mouse cursor is to the right of the expression, insertion takes place on the line below.

Does anyone know how to fix this?

Sincerely,

Oliveira

Before answering, Please Note,

Do not suggest I use

maple <filename.maple>

The conversion in maple to convert an ".mw" file in xmaple for a text file to be executed with

maple command

does not work and I therefore need a way to execute and operate a ".mw" workksheet straight in terminal without the need for X.

This is a Linux based question.

I have batches of about 50 maple processes that I run in parallel accross several 32-core and 64-core servers.
I am not using the built in spawning process commands, but rather run a new instance of maple.

Some of these batches need to be developed in xmaple it is just not feasable to do it in a text editor to be executed by "maple"

QUESTION:

Is there any switches in maple that I can run a ".mw" maple file as a terminal operation without starting the interface ?

e.g. how can I run

xmaple <mystery switches> maplefile.mw   such that the interface doesnt load but the file is executed completely in terminal without the need for X.

Thanks

So I have a problem when copying multiple output from Maple to Word. I am using a simple example here. 

When I copy each part of the output as an image SEPERATELY, it comes out much cleaner than if I highlight everything together and then copy. Is there a reason this is the case and is there a way to fix this problem?

Here is the Maple Code:

with(plottools);
with(plots);
ttt1 := textplot([0, 1, "3  +  5  =  __", color = "black", font = ["Arial", "bold", 120]]);
display(ttt1, size = [1000, 200], axes = none);
ttt1 := textplot([0, 1, "1  +  3  =  __", color = "black", font = ["Arial", "bold", 120]]);
display(ttt1, size = [1000, 200], axes = none);

I also uploaded the Maple Worksheet

Here is the output:

There are TWO imges in the output in this example. I tried copying both together and pasting them, and then I tried copying them individually. The output is very different in quality.

The one copied alot is much cleaner once copied and pasted in Word. Does anyone why this is happening? I don't want to have to copy images individally for obvoius reasons. I know this example is only two images but what if there was alot more, etc.

Thank you

NULL

with(plottools); with(plots); ttt1 := textplot([0, 1, "3  +  5  =  __", color = "black", font = ["Arial", "bold", 120]]); display(ttt1, size = [1000, 200], axes = none); ttt1 := textplot([0, 1, "1  +  3  =  __", color = "black", font = ["Arial", "bold", 120]]); display(ttt1, size = [1000, 200], axes = none)

 

 

NULL

Download Copy_Images.mw

Hello,

    I am manually re-creating the TS diagram for phase plot of fluid=air for use in a report as a pretty plot.   The TemperatureEntropyChart function is colored in grayscale.  I really need to change to colorized for additional data being added.

   The code to generate the various isobars color gradient is shadebetween two curves.   

    Using the code method to plot leaves white gaps in the discontinutiy of the plot curves returned from the Property function at the liquid and vapor lines.   I have manually connected the horizontal "under the dome" in a matrix of X,Y for each of two isobar curves.

   However, the shadebetween doesn't seem to like the two X,Y matrices for the curves as inputs to shadebetween.

    So,...   Q:   1.)  Can the color be changed using the TempertureEntropyChart function,..or
                      2.)  Can matrices of unequal X,Y values (scatterplot type data sets) be used for the curves in shadebetween command?  The help infers the Y (v, of (u,v))  values need to match.

Thanks,
Bill

Ref:    worksheet contained at:  https://www.mapleprimes.com/maplesoftblog/203462-Computing-With-Thermophysical-Data

1 2 3 4 5 6 7 Last Page 1 of 1982