## How do I solve a set of differential equations in ...

Hi, my dear friend,

i am solving 9 ODE with boundary conditionsNigam.mw

 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 (5)
 >
 (6)
 >
 (7)
 >
 (8)
 >
 (9)
 >
 (10)
 >
 (11)
 >
 (12)
 >
 (13)
 >
 (14)
 >
 >

Maple Worksheet - Error

Failed to load the worksheet

then i got this error

Error, (in dsolve/numeric/bvp) initial Newton iteration is not converging

i dont know where i need to change.. could you help me..

## expand without simplify...

hi:

i'm using expand cmd, but surprisingly, not only execute the expand but execute simplify cmd. Is there any cmd only execute expand withoud simplify?

Best wishes,

from China

## How do I get a State Space representation from sys...

I've derived some system matrices from a equation which represents the dynamics of a mechanical system, I've searched for a way to convert this or represented in state space form but I can't figure out how to do it.

## issue with fsolve and Directsearch command in mapl...

Hi,

I have three simultaneous equations  with three unknown variables (E, W, T). When I solve these  simultaneous equations with fsolve command without specifying any range for variables, I don't get desirable root ( equation sol4 in maple worksheet- {E = 0.1007672475e-2, T = .7969434549, W = 0.1937272759e-2}). For this problem, I know the correct root {E = 2843.916504, T = .2782913990, W = 5344.844134} beforehand which maximize the objective function TP (equation sol8 in maple worksheet) and when I specify the narrow range of variables around the already known correct root in the fsolve command, then I get correct root ( equation sol5 in maple worksheet). If I don't know the actual answer (correct roots of the simultaneous equation) beforehand, How  could I get the correct root with fsolve command because it is very tedious work to specify different range in fsolve command repetitively to solve it by trial and error.

I also tried Direct Search method as suggested in this forum  but DirectSearch is also not able to provide the correct root (equation sol6 in maple worksheet). If I specify the narrow range around known root in direct search method ( equation sol6a in maple worksheet), then it would provide close to optimal root but if I don't know the correct root beforehand, then I couldn't specify the narrow range of variables, then how can I get correct root through direct search command.

Equation sol10 in maple worksheet  (objective function value at correct root) confirms that {E = 2843.916504, T = .2782913990, W = 5344.844134} is the correct root because it provide the value of objective function (TP) equal to 78285.85621 as opposed to negative value (TP value -12.53348074 in equation sol9)  produced by incorrect root  {E = 0.1007672475e-2, T = .7969434549, W = 0.1937272759e-2}).

Is there any method which would provide all the roots of these simultaneous equations which also include correct root. Maple worksheet is attached.

I am trying fsolve and direct search method with known root so that I could get the proper procedure to get the correct root which I can apply to another problem (set of similar simultaneous equations) for which I don't know correct root beforehand.

Thanks for your anticipated help.fsolve_question.mw

## How can I group certain variables and integers of ...

I'm still quite new to maple and I'm working calculating some dynamic equations.

I want to be able to selectively group certain variables or numbers depending on how I need the equations to be showed, I don't know if that's possible, I´ll explain further.

In typewritting extended format one equation is shown like this:

And maple standard:

The fisrt thing I want is to show the time derivatives in the dot representation, but I also want the 1/2 multiplyting each term of the whole equation like in the maoke standard format.

I also need to group certain variables in some other equations I have and I was wondering if there is a way to do this.

I have made a small package in a workbook and want to upload it as a package to MapleCloud. According to the help pages, I should select Save To Cloud from the File menu and select the package option for Application Type in the dialog that appears. However, no matter what I do the only option availlable is Maple. What is going on?

## Maple not evaluating symbolic variables?...

Dear Maple users,

I have very interesting problem with evaluating of only symbolic equations.

The problem is: (In document mode)
When I try to evaluate all numeric values for example typing 1+2 and press Enter it successfuly evaluates 3.
But when I try to evaluate symbolic values for example x + y nothing happens.

I tried lots of things to solve this, but no luck.
Shortly if the equation contains only numbers it evaluates successfuly.
And if the equation contains one or more symbolic variables like (x, y, z, variable1, test1), it does nothing.

What could be the problem?

(Because of this problem I cannot use the document mode, so I'm using the worksheet mode. Worksheet mode works good, but sometimes it is not calculating like document mode)

System is Windows 7 x64
Maple 2016
8 x 3.50GHz Xeon CPU
128 GB RAM
Windows Language is Turkish, (I tried with also USA English, but no luck either)
Keyboard is Turkish TR, (I tried with also US English, but no luck either)

## field plot command ...

Hi every body,

I’m a new member. I have a question about plot command in Maple. My question is “how to plot a vector field v = [v1,v2]=[x^2+y^2,x+y] with (x,y) within an elliptic domain defined by x^2/1+y^2/2 = 1” .

lqh

## GraphTheory: creating a minimum spanning tree star...

Suppose,  there are

• 50 vertices

• list of coordinates of these 50 vertices

Now I want to create a graph with minimum distance.

The starting point of the graph should be vertice 1. From there,  the closest point has to be added to a list X. and from this point, it should calculate again the closest point and add this value to the same list X.

So actually I want to start in point 1 and I want to see the sequence of how the graph (I think minimum spanning tree?) is created

How can I code this in Maple?

## Exact symbolic solution of a system of partial dif...

Hi Everybody,

I have a simple question: Does Maple solve systems of partial differential equations with boundary conditions?

Can somebody give me an example?

I have only found numerical solutions to this kind of systems but no symbolic example.

Thanks a lot for yor help.

## Trouble with Dagger?!...

To my amazement, the following code hangs

```restart:
with(Physics):
Physics:-Version();
Setup(anticommutativeprefix = psi):
Dagger(psi);```

at the last line, or produces the output "Error, (in sprintf) too many levels of recursion" if I wait long enough.

What is going on? Am I just being stupid? The version line verifies to me that I am using the Physics package as shipped with Maple 2017, version date 17th of May 2017. If I outcomment the Setup line, then Dagger does not hang. Do others experience the same behaviour?

## Problem with codegen applied to a rectangular (Arr...

Hey,

I am using codegen to generate code from Maple expressions. More specifically I want to export non quadratic matix. The export works for matrices that have more columns than rows, but not for matrices with more rows than columns. There I receive the error:

Error, (in codegen/array/entry) 2nd index, 3, larger than upper array bound 2

A workaround would be to transpose the matrix before the export, and to transpose on the import (in Matlab) but I don't want to overcomplicate my code. Thanks for your help!

I have attached a demonstration worksheet below.

 > ## test codegen non quadratic returnarray
 > ## works #Myfun := Matrix(3,3)
 > ## works #Myfun := Matrix(2,3):Myfun(2,3):= 3*b;
 > ## does not work Myfun := Matrix(3,2):Myfun(3,2):= 3*b;
 (1)
 > Myfun(1):= 7*a;
 (2)
 > ## codegen works best with arraybased matrices, and call by reference becomes possible
 > returnArray:= convert(Myfun,matrix)
 (3)
 > codegen[makeproc](Myfun,[a,b])
 > codegen[makeproc](returnArray,[returnArray,a,b])
 > codegen[makeproc](returnArray,[a,b])
 >

## How can plot3d a sub-surface from surface ?...

Hi, everybody.

I have a problem when I try to plot3d a sub-surface from a surface as follows:

 >
 (1)
 >
 (2)
 >
 > p:= proc(u,v) if u
 > h:= proc(u) 2*u  end proc:
 >
 >

sub-surface.mw

Thanks and have a nice day.

## plot tangent function without Asymptote...

how can i plot tangent function without its Asymptote on kPi/2s ? actuallt i want to plot without its vertical Asymptote, could anybody help? tnx

 > restart:
 > plot(tan(x),x=-2*Pi..2*Pi,style = line,color = "Blue",legend = "tangent Plot",axes=boxed,gridlines);
 >

## area under pdsolve diagram ...

i want to know the area under a diagram plotted by pdsolve, how can i do that? for example in below , what is the area under p1 diagram?

 > restart:k:=5;
 (1)
 > EQ:=diff(u(x,t),t)=k*diff(u(x,t),x\$2);
 (2)
 > ibc:=u(0,t)=0,u(1,t)=0, u(x,0) = x;
 (3)
 > sol:=pdsolve({EQ},{ibc},numeric);
 (4)
 > p1:=sol:-plot(u,x=0.5,t=0...10,style = line,color = "Blue",legend = "heat Plot",axes=boxed);
 > M:=op(1,op(1,p1));
 (5)
 >
 >
 >
 >