Maple Questions and Posts

These are Posts and Questions associated with the product, Maple

I can solve a [0,1] linear programming problem by using:

LPSolve(Ob, con, assume = binary);


I managed to solve [-1,1] linear programming problem by using the transformation
2*w[i]-1 ie   2*0-1=-1 and 2*1-1=1 as follows:

LPSolve(add(PP[i]*(2*w[i]-1), i = 1 .. NC)-add(Draw[i]*(2*w[i]-1), i = 1 .. NC), {add(w[i], i = 1 .. NC) = PS}, maximize = true, assume = binary);


Now my question is how can I solve a [-1,0,1] problem?
I tried to use:

Hi,

I'm quite new to maple and I'm not really sure how to go about fitting a curve to my data, I have inputed the data by doing;

data := [[1,3],[2,3].........[2,7]]

and then plotted it using a point plot. Now i know I need to fit a resonance curve using LSsolve but I dont know how to go about using that command. Could anyone please enlighten me.

 

Thank you

> restart;
> Fax := 1493/2;
                                    1493
                                    ----

Dear friends,

I generate a table for n=1 to 3.

Matrix(  [ seq ( [n, n^2], n=1..3)]);

I would like to generate the same kind of a table for values of n= 1 to 3, 50, 100  and 1000.

How may I do it?

 

Thanks in advance for your help.

 

Jean-Jacques

I am trying to obtain the points with equal value of a two variable function ,f(x,y), 0.01<x<0.99, 1.01<y<1.99. I tried to dsolve the problem but I have one equation, two variable and infinite answers . Ho can I get these points with interval of 0.01 and insert in a marix. Thank you in advance.

 

 

 

Hello everybody!

I couldn't find this question on the internet.. I hope for a answer here! I have to know this in 4 hours, and nobody here seems to be able to solve it. Thanks a lot in advance!!

What i'm trying to do is to solve these 10 variables. here is my maple:

 



 

I am in a class of combinatorics following two definitions are to be coded in Maple. I have done my best but could not. Kindly help.

Def 1:    Let M=[mij] be a matrix of type m×n, whose entries are subsets of a set A.
Def 2:    A set matrix M is said to be a partition matrix of set A if:

    1. mir∩mis=φ, for every i,r,s, such that r≠s;
    2. m

I am brand new to Maple.  I am using Maple 13.  When I try to create a direction field for the ODE dy/dt=.2ty I get the intended result.  When I try to create the same direction field using the ODE dy/dx=.2xy I recieve the following warning.

"Warning, y is present as both a dependent variable and a name.  Inconsisent specification of the dependent variable is deprecated, and it is assumed that the name is being used in place of the dependent variable".

Test.mw

I have this data (see attached worksheet). I then run the below code
and then I get the output (see below). The problem is that I have explicity
stated in constraints 3 (con3) that w[i] should be larger than or
equal to zero. Still I get negative solution ie w[1]=-1.47*10^(-18).
Why is that?

The funny thing is that when I change constraint 3 to w[i]>=0.01 then I get :

Hi,

I am a new user of Maple. I need help in defining the Sxx and Syy in terms of differential terms of P and Q in the following program. I have attached the worksheet with this mail.

Thanks a lot for your tips.

Thanks,

RPD

 

 

E.g. how do I say "x conditional on w" in Maple. The following doesn't evaluate:

x|w

Error, unable to match delimiters

or:

mu[x|w]=sum(v[i],i=1..n)*f(v[i]|w);

Error, `|` unexpected

Thanks

 

 

alpha := vector([cos(theta), sin(theta), sin(k*theta)]);

alpha1 := map(diff, alpha, theta);
alpha11 := map(diff, alpha1, theta);

with(linalg):
cr := multiply(alpha1, alpha11)/simplify(multiply(alpha1, alpha1));

F := vector([0, 0, -m*g]);
c := multiply(F, alpha1/simplify(multiply(alpha1, alpha1)))/m;

motion := diff(f(theta), theta$2) + cr*diff(f(theta), theta)^2 = c;

pdsolve and dsolve not work, how to solve above motion equation with maple?

Hello,

Is there a way to make Maple display the line where an error has been detected ?

Regards,

RedVivi

hi.

this is my procedure, i think its obvious what its supposed to do, but it doesnt.

 

#plot p to file filename with size width cm x height cm

> makeeps := proc(p, filename, width, height);

>   plotsetup(eps, plotoutput=filename,  

>   plotoptions="portrait,noborder,color,leftmargin=0,bottommargin=0,width="||width||"cm,height="||height||"cm");

>   display(p);

>   plotsetup(default); 

I am trying to solve a piecewise differential equation of the following form:

FOI := diff(r(x), x) = piecewise(r(x) < 0, 1, r(x) > 0, 0)
dsolve({FOI, r(0) = -1})

but MAPLE returns an error stating

Error, (in dsolve) when calling '`property/ConvertProperty`'. Received: 'real is an invalid property'

I do not know what to make of this. I have tried playing around with assumptions...

First 1748 1749 1750 1751 1752 1753 1754 Last Page 1750 of 2234