Maple 18 Questions and Posts

These are Posts and Questions associated with the product, Maple 18

how to download  wkptest from http://cpc.cs.qub.ac.uk/summaries/ADTY_v1_0.html and install on maple?

write a maple script to find whether the given function is one one or onto

given a binary sequence of length n ,how many sequence of length n can be generated such that there are no 2 adjacent 0's.

write a procedure to find the permutation of word LEADING considering {E,I,A} together .

I have a matirx

where ci and si represent cos(θi) and sin(θi), respectively. I need to substitute

What is the right way of using trigsubs command?

 

write a maple script to find the relation on set s is

1)reflexsive

2)symmetric

3)trasitive

CodeGeneration returns round brackets when converting a matrix to numpy. According to Python syntax it should return square brackets. I am using Maple 18, so maybe this issue has been solved in more recent releases.

MWE

----------------
>restart:
>with(CodeGeneration):
>QLoc:=proc()
local Q:
Q:= Matrix(2,2):
Q(1,1) := 1E5:
Q(2,2) := 1E4:
Q(1,2) := 1E3:
Q(2,1) := 1E3:
return Q:
end proc:
 

>Python(QLoc);

import numpy

def QLoc ():
    Q = numpy.mat([[0,0],[0,0]])
    Q(1, 1) = 0.1e6
    Q(2, 2) = 0.1e5
    Q(1, 2) = 0.1e4
    Q(2, 1) = 0.1e4
    return(Q)

------------

Dear All,

I wanted to check the calcultations carried out in a Journal Article I was reading as I was not very convinced.

The objective is to find q1i, q2i, q3i in terms of px, py, and pz and constant parameters φ, a, b, h, and r.

I have realised that the results given by the article do not match with the solution to the dsolve command.

Could you please spot where the mistake is?

My Solution: IK_equations.mw

restart; with(PDEtools);
U := diff_table(Psi(`ψ_2`, `ψ_1`));
pde := `ψ_2`*(diff(Psi(`ψ_2`, `ψ_1`), `ψ_1`))+`ψ_1`*U[`ψ_1`]+2*U[] = 0;
ψ_2 Psi(ψ_2 + 1, ψ_1)

   + ψ_1 Psi(ψ_2 + 1, ψ_1) + 2 Psi(ψ_2, ψ_1) = 

  0
pdsolve(pde);
Error, (in pdsolve/info) first argument is not a differential equation

How can i solve it?

how do i solve a system of PDE's with variable coeffiecients in Maple?

Hi everyone

I have a problem with differentiating an equation. I have the following code:


(sum((x(i)-M)^3, i = 1 .. n))/(n*((sum((x(i)-M)^2, i = 1 .. n))/(n-1))^(3/2));


The values of x(i) is available in Excel and I want to import that. For this case, I copy the column and paste in maple and it seems work fine. But, I want to calculate the differentiate of the summation with respect to x(i) and M and find the answer. I don't know how to write the code appropriately.

In other words, how could I differetiate the following function with respect to x(i) and put the values from excel into it.

(sum((x(i)-M)^3, i = 1 .. n))/(n*((sum((x(i)-M)^2, i = 1 .. n))/(n-1))^(3/2));

 

Thank you so much for your kind attentions  in advance

 

I'm trying to create the set of monomials in n variables (given as a list var), up to a given degree d. Her eis my code. Any comments to make it better?

mondeg:=proc(var::list,d)
local n, mon, moni, i, j, m1, m;

   n:=nops(var);
   mon:={1};
   moni:={1};
   for i to d do
        for m1 in moni do
             #print(m1);
             moni:=moni minus {m1};
             #print(moni);
             for j to n do
                #print(var[j]);
                 m:=m1*var[j];
                 moni:=moni union {m};
                #print("moni=",moni);
             od;
        od;
        mon:=mon union moni;
        #print(mon);
   od;

mon;
end:

Much of this topic is developed using traditional techniques. Maple modernizes and optimizes solutions by displaying the necessary operators and simple commands to solve large problems. Using the conditions of equilibrium for both moment and force we find the forces and moments of reactions for any type of structure. In spanish.

Equlibrium.mw

https://www.youtube.com/watch?v=7zC8pGC4F2c

Lenin Araujo Castillo

Ambassador of Maple

Hello. I have a question on plotting discrete time plot. When I try to plot the equation below I get an error. Can't figure out where is the problem. If for example I choose for vector A () there is no error. I would appreciate your help.

 


Error, invalid input: DynamicSystems:-DiscretePlot expects its 2nd argument, v2, to be of type {realcons, list(extended_numeric), ('Vector')(extended_numeric)}, but received Vector(4, {(1) = 1+sin(1), (2) = 1+sin(2), (3) = 1+sin(3), (4) = 1+sin(4)})

Regards,

Tadej

Hello everyone,

I am trying to solve a differential equation using dsolve command for laplace transform.

In Equation 2, a is a constant and x(t), b(t), u(t) are functions.

What is the "_U1" in the output (4)? Is it because I have defined x(t), b(t), u(t) as functions?

Thank you in advance!

1 2 3 4 5 6 7 Last Page 1 of 53