6246 Reputation

17 Badges

9 years, 63 days

MaplePrimes Activity

These are answers submitted by nm

They are all defined. You have not shown what your actual Latex document looks like.

Try this



\frac{-3 n s +\left(\moverset{n}{\munderset{i =1}{\sum}}\frac{b x_{i}^{3}+b s x_{i}^{2}+s^{2} \left(b +1\right) x_{i}+2 s^{3}}{s^{2}+s x_{i}+x_{i}^{2}}\right)}{s^{2}}


which when compiled using Latex gives


which agrees with what is on the screen


I am not sure if is possible to write Q3 = gamma*Q1 + (1-gamma)*Q2 

Maple says it is not possible. You can try simplify with side relations


Q3 := 1/(v)*(    v*pi-  (   (1-alpha*gamma) *pi * r[0]  - (1-pi)*B*alpha  + (gamma*pi + (1-pi)*h)    )   );
eqs:={ 1/v *(  v*pi    -  (   h - (1-pi)*B   )      )=Q2,1/v*(   v*pi     - (   pi*r[0]+ (1-pi)*h  )   )=Q1};


I have not used this command before myself in Maple, but may this is what you want

plots:-conformal(exp(2*z), z=0..1+I);

may be you can use the definition of concave function. From Wiki

 differentiable function f is (strictly) concave on an interval if and only if its derivative function f ′ is (strictly) monotonically decreasing on that interval, that is, a concave function has a non-increasing (decreasing) slope.[3][4]

So just need one counter example. This is your g(x) function which is increasing and concave function g:=x-exp(-x). 

If you plot the derivative of   (2*x+5)*g(x), you will see is not concave.


Why would you load LinearAlgebra and then at same time make call to linalg:- ?

    Important: The linalg package has been deprecated. Use the superseding packages, LinearAlgebra

if you remove that then it works. It might have to do with how linalg works. I do dot know for sure, but this works.

To multiply these matrices/vectors, just use the dot. So intead of what you had

          linalg:-multiply(Ts_sksul, XCin)

you can just do





f := a*b+a*c+a+b+c+2*b*a+99*b*a;
select(t->has(t,a) and not has(t,a*b),{op(f)})

                 {a, a*c}


diff(x^n,x) does not equal n*x^(n-1), but rather 0 if n=1

you probably meant rather 1, and not rather 0..

This seems like a bug to me

it is not a bug. all CAS systems work on a general expressions, not specific values. 




To get derivative for specific you need to give specific value for n.




Maple by default uses 10 decimal points to display real numbers.

This works for 2021.1 on windows 10, using worksheet interface

V := 4;
K := 16.56;
H := 0.5;
q1 := diff(y[1](x), x) = V*y[2](x)/H - K*y[1](x)/H;

Or you could do

V := 4;
K := 16.56;
H := 0.5;
q1 := diff(y[1](x), x) = V*y[2](x)/H - K*y[1](x)/H:

See this post for reference. How-To-Delete-Zeros-After-Decimal-Point

btw, why are using evalf for? Your numbers already real.


When expression is   A+B then operands are A and B. And select selects operand which has what you wanted. So if the expression is t*u[1,1,1]*u[1,1,1,2]+2 then A=t*u[1,1,1]*u[1,1,1,2] and B=2, that is why it returned A.

When the input is t*u[1,1,1]*u[1,1,1,2] then expression is A*B*C and each one is now an operand. So A=t, B=u[1,1,1] and C=u[1,1,1,2] and that is why select now returned only u[1,1,1]

One way could be to do 

LT:=proc(expr, term)
 if type(expr,`+`) or nops(expr)=1 or expr=term then
    select(has, expr, term);
 elif type(expr,`*`) then
      if has(expr,term) then
          return expr;
          return NULL;
     error "not expression?";
end proc;

And now it works for both cases



may be

sys:=Vector(diff(vars,t)) = A.Vector(vars)-b


ofcourse, you could just have done


And got same result.


to answer comment:

Is there another way to set up something from an equation to a matrix? More like an output like the above one?

I am not sure I understand exactly what the question here. May be you mean for display only purposes you want to change how it prints on the screen? You can try this line instead

sys:=Vector(diff(vars,t)) = A %.Vector(vars)%- b

Now it looks like the one you showed.

I do not use 2D math Maple laanguage at all. So not sure if this is what you want.

dsolve gives answer with integrals it could not evaluate. Try numerical 

sys := diff(x1(t), t) = 3*x1(t) - 2/1000*x1(t)*x2(t), diff(x2(t), t) = 6/10000*x1(t)*x2(t) - 1/2*x2(t);
ics := x1(0) = 1000, x2(0) = 500;