MaplePrimes Questions

Could someone please explain to me why the procedure GraphTheory:-CycleBasis requires that the vertices of a graph be integers for it to work correctly ?
(while the definition of a graph supports other types of vertex names)


restart:
with(GraphTheory):

#------------------------------------------------------- test 1

g1 := Graph({{"a", 1}, {1, 3}, {"a", 3}});
DrawGraph(g1);
CycleBasis(g1);

Error, (in GraphTheory:-CycleBasis) cannot determine if this expression is true or false: "a" < 1

#------------------------------------------------------- test 2

g2 := Graph({{a, 1}, {1, 3}, {a, 3}});
CycleBasis(g2);

Error, (in GraphTheory:-CycleBasis) cannot determine if this expression is true or false: a < 1

 

#------------------------------------------------------- test 3

g3 := Graph({{4, 1}, {1, 3}, {4, 3}});
CycleBasis(g3);

[[1, 3, 4]]

 
Knowing this limitation I usually rename to integers the vertices of the graphs, next do some operations, and next go back to the original names.


Thanks for any explanation.

Hy Prof.

Please help me or guide me to get idea to solve Nonlinear coupled PDEwith MAPLE.Dr.Sam Dao could please help me as I saw your YOUTUBE lecturer which very helpful to me and please give some idea about my topic.

pde[1] := diff(u(x, t), t)-D(diff(u(x, t), x, x)) = alpha*u(x, t)*(1-v(x, t))

pde[2] := diff(v(x, t), t)-E(diff(v(x, t), x, x)) = beta*v(x, t)*(1-u(x, t))

Thanks in advance and answer is highly appricaited 

 

I have to draw a couple of graphs in Maple 2016. Certain subgraphs must be highlighted and the commands

HighlightEdges() and HighlightSubgraph() are very useful. It seems to me however, that while I can choose the color

of any given edge, it is not possible to change the style or the thickness of the edge. All the edges in my graphs are straight l

ine segments but I do not know if it is possible to have a different style than solid, and/or a different thickness for that matter.

Ideally, I would like to be able to draw certain edges as dot, or dash, or any other options that are available for regular

plotting. 

Does anybody know if this can be done, and if it is possible, how should I do it.

 

Thanks,

 

Dan

restart;
digit := 15;
F[0] := fw;
F[1] := delta*F[2]+epsilon;
F[2] := A;
T[0] := B;
T[1] := -1;
a := 0.01;
m := 1;
M := 1;
lambda := 1;
b := 1;

fw := 1;
epsilon := 1;
delta := 1;
Pr := 6;
Ec := 1;
R := 1;
for k from 0 to 7 do F[k+3] := (a*(sum((i+1)*(i+2)*F[i+2]*(k-i+1)*T[k-i+1], i = 0 .. k))-m(1+a*T[k]-(sum((i+1)*F[i+1]*(k-i+1)*F[k-i+1], i = 0 .. k))+a*(sum(sum(T[i]*(r-i+1)*F[r-i+1]*(k-r+1)*F[k-r+1], i = 0 .. r), r = 0 .. k)))-M*(1-(k+1)*F[k+1]+a*T[k]-a*(sum(T[i]*(k-i+1)*F[k-i+1], i = 0 .. k)))-((m+1)*(1/2))*(sum((i+1)*(i+2)*F[i+2]*F[k-i], i = 0 .. k)+a*(sum(sum(T[i]*F[k-r]*(r-i+1)*(r-i+2)*F[r-i+2], i = 0 .. r), r = 0 .. k)))-lambda*(T[k]+a*(sum(T[i]*T[k-i], i = 0 .. k))))/((k+1)*(k+2)*(k+3)); T[k+2] := (-(1+b/Pr)*(k+1)*T[k+1]-b*(sum(T[i]*(k-i+1)*T[k-i+1], i = 0 .. k))-M*Ec*(1-(2*(k+1))*(k+2)*F[k+2])-Ec*(1+M)*(sum((i+1)*(i+2)*F[i+2]*(k-i+1)*(k-i+2)*F[k-i+2], i = 0 .. k))-(1-2*m)*(sum(T[i]*(k-i+1)*F[k-i+1], i = 0 .. k))-((m+1)*(1/2))*(sum(F[i]*(k-i+1)*T[k-i+1], i = 0 .. k)))/((4/3)*R*(k+1)*(k+2)) end do;
FF := sum(F[j]*y^j, j = 0 .. 5);
TT := sum(T[j]*y^j, j = 0 .. 5);
with(numapprox); pade(FF, y, [4, 4]);
pade(diff(FF, y), y, [4, 4]);
pade(TT, y, [4, 4]);
solve({limit(pade(TT, y, [4, 4]), y = infinity) = 0, limit(pade(diff(FF, y), y, [4, 4]), y = infinity) = 1}, [A, B]);

 

i get these errors in basically all worksheets i write. whats the hardware/software limitations related to this kind of error ?

assuming its not the fault of the way i write code but since thats impossible i assumed that it must be a limit of either ide or computer

i have an example, u[t] = u[xx]^2+u[yy]^2+u[zz]^2 with subject to b.c. u[0](x,y,z,t):=2*sin(x)*sin(y)*sin(z)
i used adomian method to solve this P.D.E, but i failed to construct a code of 2D P.D.E.
kindly help me in this regard

Is there a maple routine or sequence of routines to minimize an energy functional (scalar energy with a function as an argument)?

I'd like to avoid applying calculus of variations/integration by parts by hand.

For example, I'm looking for something like:

E := int(diff(f(x),x)^2,x=0..1);
bc := f(0) = 0, f(1) = 1;
minimize(E,bc);

whose result would be:

       f(x) = x

Is there a way to use dsolve to do this?

Maple's online help pages render all of the inputs (and outputs) as fancy math (MathJax). I guess the assumption is that you're using the visual IDE. However, I only have access to a terminal with ASCII entry (e.g., via SSH).

How can I can convert the online help pages into something that I can enter directly via the command line?

For example, how do I convert the examples from the EulerLagrange help page into command line entry?

I'm looking for a procedural way or ideally a toggle "switch".

what do i call a homogenous  differential equation that is the linear sum of "N" differential of unique classification? ie, the implicit construction of a third homogenous differential by the summation of two known, is it the span of the solution sets of the first two or union? i prefer span because well that leaves the door open for multivariate differential basis definitions, non commutative groups like sets of square matrices and all of the other extra arousing subject content.

Hi,

When I type sin(pi/2) the result is sin(pi/2) (not "1.0)

What should I do to get "1.0" instead of replicating the sin(pi/2) ?!

I mean why the expression contating "pi" can not being simplified?

Is there any solution to this problem?

 

Thanks

Hi! I'm trying to find the way to plot the solution with series representation. I need some help to find the easiest way.

Note: I realized some typing errors, which do not change the question a lot ,and I corrected them.

plot.mw

Hi,

I am unable to see length of rigid body frame in MapleSim Examples - Physical Domain  - Multibody - 5 DOF robot? Is there a way to see them?

Thanks

Onder

If an expression is of the form x^3 + x^2 + x + z + y^3 + y^2 + y + xy=0 ,

How to represent it in the following form,

           x^3 + y^3 + x^2 + y^2 + xy + x + y + z=0 ?

I have exported a maple document to latex, but it only shows the output of the commands used. Rather than the commands, and the procedures.

How do I get both to export together? and show up together?

 

Is there a way to automatically convert and paste my clipboard contents as 2D math?

First 965 966 967 968 969 970 971 Last Page 967 of 2308