65 Reputation

One Badge

1 years, 117 days

MaplePrimes Activity

These are questions asked by Zeineb


I would like to plot the region of solution of the following system defined by some equations.

restart; with(Optimization);

inequal({-5 <= 4*y1+2*y2+3*y3, -2 <= 3*y1+5*y2+2*y3, -1 <= y1+2*y2+y3, 0 <= y2, y1 <= 0}, {y1, y2, y3}, color = "Nautical 1");

Many thanks for any help

Dear all;

I have a function  C(S,t)  and I would like to show that this function is the solution of Partial differential equation ( denotes by PDES). I introduce all my function but when I try to simplify my PDES, I can not get zero as result. 

Many thanks for your help to simplify the PDES to get PDES=0. So, that C(S,t) is the solution of my PDEs.




I have the transition matrix used in Markov chain

A := Matrix([[alpha, beta, gamma], [delta, epsilon, zeta], [eta, theta, mu]])

I would like to write a system of equations that can be solved  to get a Markov chain  irreducible and aperiodic

All the entries of the transition matrix are in the interval [0,1)


Many tanks for any help


Can Maple compute the weak derivative of piecewise function like

f:=x->piecewise(0<x and x<0.5,x,0.5<x and x<1,1-x,  elsewhere 0);

Many thanks



I have a nonlinear PDEs, solved using finite difference in the square

I get the following nonlinear system of equation. Is there any idea how correct the code and display the solution.

I will appreciate any help in this question.



# Boundary condition

for j from 0 by 1  to n+1 do
u[0, j] = 0;
u[n+1, j] = 0;
u[j, 0] = 0;
u[j, n+1] = 0 ;
end do;
## Loop for interior point in the square
for i from 1 by 1 to  n do
for j from 1 by 1 to  n do
(u[i+1, j]-u[i, j])*(u[i+1, j]-2*u[i, j]+u[i-1, j])+h*(u[i, j+1]-2*u[i, j]+u[i, j-1]) = 0;
end do;
end do;

How can I solve this system of equations with unknown u[i,j], where i,j=1,..,n


Many thanks for any help

1 2 3 4 5 6 Page 1 of 6