962 Reputation

16 years, 192 days
University of Kent
Dr

Finding first and last none zero entries...

Maple 16

Hi all,

Is there an easy way to find first and last entries of a vector which is non zero?

fa:=proc(x)
local i;
while x[i]<>1 do
i:=i+1;
end do;
end proc;

fa(<1|0|0|1|0|0>);

That does not work. I have also tried to use

while 'x'[i]<>1 do

keeps getting error saying: Error, (in fa) bad index into Vector

What's the best way to get result 1 (in this case...

equivalent algebraic substitution...

Maple 16

testing.mw

Hi all,

Basically, I want to substitute everthing in m using the s .

More or less, I am doing a reparameterization.

I have looked into subs command, but it does not quite does what I want.

It seems to me the Maple wont be substituting exp(-mu) to s1 ( or exp(mu) to 1/s1 ) if the exp has some other powers in it, such as exp(mu+tau).

Any ideas?

Thanks.

Casper

Find all unknowns (parameters) from an e...

Maple 16

Hi all,

Is there a quicker way to find all unknows from an expression?

unknowns.mw

Say I want a list contains ALL parameters. In this case, it would return

[w1,w2,mu,tau[2],tan[3],tan[4],eta[1],eta[2]]

Is there a way to do this?

Thanks!

Casper

Formulate equation with different classe...

Maple 16

test.mw

Hi all,

Here is the problem, I will try my best to describe it:

Firstly of all,

log(p[j,c]/(1-p[j,c]))=mu+tau[j]+eta[c];

In this system, the 'j' is a time varying parameter, and the...

Large Matrix Display (save as infinite s...

Maple

Hi all,

This is really a quite general question.

I am not asking to change "interface(rtablesize=30)" or any other similar command.

I just wonder, sometimes, we want to see a symbolic matrix. And when the matrix gets really large in dimension, it does not display nicely on the whole screen.

Occasionally, with reasonably "small" matrix, we can still see it by "zoom out" to 50% view or even smaller view, to see the FULL matrix.

 First 15 16 17 18 19 20 21 Last Page 17 of 31
﻿