Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

Hello everyone

I have a cost function I would like to minimize. It is a fairly simple function that only contains multiplications and additions.

Only problem is, this function has about a hundred variables, but they can only be between the interval [0,1] so I guess it makes the problem easier.

Is it possible to write a little program in maple that can be ran as much as I want it to run and that could try to find an approximation of the actual solution? (By trying random numbers between 0 and 1)

Thank you very much

Hello,

If I define two arrays in the following way:

for i from 0 to 2 do

for j from 0 to 2 do

A[i,j]:=[i+j]:

B[i,j]=[i-j]:

od: od:

 

Then if I try to add them and look at the 0,0th component of the result:

C:=evalm(A+B):

C[0,0];

 

I don't get an answer. (I've tried both the LinearAlgebra package and the linalg package.

What would I have to do to get them to add successfully ?

 

Thanks

Hi i am trying to code a procedure which sorts a list such that the smallest element is the first element and the largest element is the second elemnt then the next smallest element is the third element and the next largest element is the fourth element. For example:

 

L:=[ 2, 3, 5, 2, 7, 9 ]:
 

sorted:= [ 2, 9, 2, 7, 3, 5] :
 

this is what i have coded so far how do i make the process continue??
 

Hi!

 

I have an expression that involves an unknown function, say g:

expr:=a*x[1]+b*x[2]+cx[3]+g(x[1],x[2],x[3]);

where a, b and c are the coefficients I'm actually interested in. These coefficients are not constants but usually expressions in some constant parameters. The function g is an expression involving derivatives of some more fundamental function (in my problem).

Example:

expr:=(q/r-sqrt(2))*x[1] + x[2] - (w*r+4)*x[3] + D(G)(x[1]) - D(G)(x[3]);

Hi

I have som 2D and 3D plots where I would like to change some parameters/constants interactively so that the plot updates automaticly.

I expect that some sort of scroll bar could be used to change a constant interactivly but I need a little help for what it is called in maple and a hint for how it is programmed.

Thanks in advance

regards Brian

Hi all I'd like to construct a phase portrait of a DE system with several different solutions on one plot. To do this I've been using odeplot for each solution and then displaying each plot with display(). Now I'd like for there to be arrows on each solutions, resulting in a phase portrait which will show the direction of phase flow for each orbit, but I couldn't find a way to add arrows to each individual plot. Is there a way to do that ? If not, is there a different approach to achieve this kind of phase portrait ? Thanks LR

 

I want to write a loop, which can give me the appropriate roots of a long equation.

I have tired to use a very simple loop, but the problem is that there are multiple solutions of the equation.

I want a loop which use newton methods to give me the satisfactory roots.

The funtion which I am dealing with is of the form sigma(l).

Plz help me out.

I have attached the maple file.

Hi everyone,

when I use:

c:=2e-6*Unit(A*s/V);

then maple answers with the unit [F]. but when I use:

epsilon[0]:=8.85e-12*Unit(A*s/V/m);

then in the middle of a large document, Maple (Version 12) ignores [m] and still gives me [F]. On a blank (new) document the same command results in correct units [m^-3 kg^-1 s^4 A^2]. The behaviour is reproducible.

anyone knows why?

cheers :-)

 

 

I want to graph a real-valued function e.g. plot y=x^2 from x=1 to 2.  There used to be a function called "plot2D". But it does not exist any more. When I call up the glossary or Help list, I get hundreds of plot-related functions - countourplot, loglogplot, etc - but not a plot for doing a real-valued function.  It is not under with(plots): 

In Advanced Engineering Mathematics there are a lot of math symbols within the text that don't execute. They're not simply an inert math statement, like Int or Diff, but rather the symbolic math used solely as text. How is this done?

Can I store data in a 3D Matrix in Maple ?

 

 

I want to solve the following PDE with boundary conditions, but unfortunately I do not know the meaning of _F1 and _F2 in this stuation. Would you please help me to find these arbitrary functions?

> PDE := diff(U(y, z), y, y)+diff(U(y, z), z, z) = 0;

> with(PDEtools);

Hi,all, I found a weird problem. When I use alias of RootOf in a procedure, it seem that it cannot work correctly. The code is as following: > restart; > cf := proc (n, ir) local P; alias(x = RootOf(ir)); P := evala(Expand(x^4)) mod 2; print(P); end; >cf(4,x^4+x+1); x^4 ---------------------> should be x+1 However, when I use it in seperate commands, it works fine. > restart; >alias(x = RootOf(x^4+x+1)); >P := evala(Expand(x^4)) mod 2; >print(P); x+1 I have no idea what is wrong here Thanks Gepo

The following program produces a plot in the 4th quadrant.

S1:=unapply(u*FresnelS(u)+((1/Pi)*cos((1/2)*Pi*u^2))-(1/Pi),u);

C1:=unapply(u*FresnelC(u)-((1/Pi)*sin((1/2)*Pi*u^2)),u);

R1:=1;

u1:=evalf(sqrt(0.4));

E1:=evalf(Pi*R1*S1(u1)+R1);

D1:=evalf(Pi*R1*C1(u1));

with(plottools);

with(plots);

c1 := circle([D1, 0], R1);

a:=evalf(Pi*R1*u1);

p1:=plots[display](plot([1+a*FresnelC(u),a*FresnelS(u)-E1,u=0..u1]),c1,scaling=constrained);

p3:=plot(0,x=-1..0);

display(p1,p3);

 

First 1856 1857 1858 1859 1860 1861 1862 Last Page 1858 of 2233