MaplePrimes Questions

The problem I'm having is that I have a large system of linear equations, the solution to which I know must be integers between 1 and 9. I have tried applying bounds etc., but the problem is that when I use solve, it said 'evaluating' for around half an hour, and still came out with nothing. Does anyone have any ideas as to how to make this faster, because I suspect that it's trying to find all solutions, and then eliminating the ones of the wrong form, rather than only looking for solutions where each variable is an integer between 1 and 9.

Hello Maple experts,

I'm currently trying to get more familiar with semidefinite programs (SDP), i.e. I want to minimize/maximize a linear objective matrix function over linear equality/inequality constraints with a positive semidefinite matrix condition.

It seems that there are a number of Matlab packages available but so far I couldn't really see how I could do this with Maple (which I would prefer to Matlab if there is a reasonable solution...)

I am in a mode with a red arrow on the left.

How do I define f to be an algebraic function of x over C, the complex numbers, such as

f(x)=x+7+I

I want to be able to plug in complex numbers for x and have a complex number

returned, say

f(9-5*I)=16-4*I

Is there a way to change the background color of a plot viewing area different from the white?

 

 

Thanks!

Hey,

I am trying to animate this code, I have a loop that makes a matrix of random numbers
 

with(RandomTools):for i from 1 to 20 do
>   for j from 1 to 2 do
>   p[i, j] := i+Generate(float, 0..1);
>   od;
> od;   
 

and if I try to plot the following this works such as

points:= {seq([p[T,1], p[T, 2], T],T=1..20)};
pointplot3d(points, symbol=box);

This gives me all 20 points on the plot

Hello,

I am trying to do some basic plots with maple, but when I plot them they look strange and do not look like they should, what am I doing wrong?

The plot I tried to do is:

plot(cos(20*Pi*t), t = -5 .. 5)

I am having this problem with most of the plots I try to do, they do not come out symmetrical and have strange anomalies in them.

 

Thanks,

 

Hi all,

I have the following function:

phiS := (C,q) -> w*(int(a*f*g(x), x=0..a*f) + int(x*g(x), x=a*f..((w+pi2)*q-pi2*C)/w) + int(q*g(x), x=((w+pi2)*q-pi2*C)/w..infinity)) - s*q - pi1*(f-C) - pi2*int((C-q)*g(x), x=((w+pi2)*q-pi2*C)/w..infinity);

when I type the command:

simplify(diff(phiS(C,q),C));

I get the correct output (I've differentiated phiS on paper): pi1- pi2*int(g(x), x=((w+pi2)*q-pi2*C)/w..infinity);

***************

Is it possible to write questions of MapleTA just from maple 11?

I mean, I know is possible to write questions and export them to Maple T.A. but every "execution group" will be a diferent query for the maple and setences like

RandomTools[Generate](integer(range=0..4));

will return always the same number, an i cannot use sentence like parse(time) because parse is restricted.

Thanks.

When I solve the equation like so;

fsolve(x^3-6x^2-7x+58=0) I get an answer in real numbers

and when I solve the equation like this;

solve(x^3-6x^2-7x+58=0) I get an answer in complex numbers.

How is it possible that when solving the same equation I get two different answers one with real numbers and the other with complex?

eqn1:= 1.x+1.y+1.z=0

eqn2:= a.x + b.y + c.z=0

eqn3:= b.c.x+c.a.y+a.b.z=1

When I try to solve this system of equations as:

solve( {eq1,eqn2,eqn3},{x,y,z} )

I get the message "Warning, solutions may have been lost"

Can you please help me to solve these equations and express my solutions in "factored form" ?

Dear all,

I would like to solve the following equation (linearized Poisson-Boltzmann in 2D) in Maple:

diff(u(x,y),x,x)+diff(u(x,y),y,y)-k^2*u(x,y)=0;

subject to the boundary condition:

u(x,a*cos(bx))=0 and  u(x,y)|y->infinity=0

(a,b and k are parameters)

I succeed to get the solution with pdsolve, my problem is how to solve the boundary condition problem.

Thanks!





 

Gurus...

Any idea why I get the "Parts of the expression are ambiguous. Please select one of the suggested meanings." alert on some of this code, but not other parts? I want them all to be "table assignments" not "function definitions" (per my options in the window). I would really like to not have it keep asking me the question on each run, so is there a way for me to be more specific? Thanks in advance!

Fred

deq(i,XMethanol):=M*diff(X[i](t),t)=(L*(X[i-1](t)-X[i](t))+V*(Y[i+1](t)-Y[i](t)));

deq(i,XWater):=XW[i](t)=1-X[i](t);

I have these 3 equations i am trying to rearrange into real and imaginarry parts. This is pretty easy execpt I am unable to rearrange C(k) into real and imaginary parts.

C(k)= H1(k)/ (H1(k) + iH0(k))

Is it possible to solve piecewise equations in maple? All I get is 'warning, solutions may have been lost'.

solve((piecewise(x<0,x,x>=0,x^2)=0));

Thanks.

 

I am trying to evaluate the hypergeometric function : hypergeom([1],[1.5],-z) where z is in the order of 1e-6. Its taking very long time where as if I use maple through matlab, then its quite fast !!. Evaluation of Gauss-hypergeometric functions for the similar arguments in maple is quite fast.  Is there any trick I can use for the fast computation of the confluent hypergeom in the case above?.

Thanks for any help

First 2239 2240 2241 2242 2243 2244 2245 Last Page 2241 of 2401