zfaigl

20 Reputation

6 Badges

10 years, 255 days

MaplePrimes Activity


These are questions asked by zfaigl

Dear All,

 

I have a simple question: having a Matrix A, how to make a copy of this matrix called B, which modifications do not influence the values of Matrix A.

 

Simple example:

 

Hi,

 

I would like to compare different decision methods. All these methods can be described in general with the  following function:

f:= (X::Matrix,C::Vector)-> TerminalScores::Vector

In my comparison I fix C, and X to constant numeric values. The exception is  X[1,1] :=t parameter. Hence with the unapply(f(X,C),t) I can generate a single-parameter function for each method.

Fist, I would like to diffrentiate the methods (f1, f2, f3...

Dear All,

 

I am not an expert in Mapple, also my calculus courses were quite long ago. I would like to compare different decision methods. The simpler ones worked with the code below (even if it was slow). but I have problems with the differentiation and the integration of two complex methods (i.e., dia and topsis).

All these methods can be described in general with the  following function:

f:= (X::Matrix,C::Vector)-> TerminalScores::Vector

Hi,

 

I would like to build a piecewise function automatically.

I would like something like this but with 33 pieces:

> piecewise(0<=t and t<1, f[1](t)[i][j], 1<=t and t<2, f[2](t-1)[i][j], 2<=t and t<3, f[3](t-2)[i][j], ...,0);

I tried to use the seq command, and it worked with the condition argument of piecewise.:

> seq(1-q<=t and t<q,q=1..3);
          -t <=...

Dear All,

I would like to make assumptuions about the input parameters of a procedure. The input parameter of the procedure should be the (1,1) element of a 2-dimensional Matrix. I make the same assumptions for the elements of the Matrix as expected by the procedure. When I  call he procedure with the (1,1) element of the matrix, it gives the following error. How should I use the assumptions or how to pass correctly the parameter to the procedure in this particular case?

1 2 3 Page 2 of 3