zakyn's blog

Hello,

I have problem with define external function with dll written in Visual Basic.

Declaration of function is

zakyn's picture

extrema command with inequalities

Hello, I need to find relative extrema of an expression with inequalities.
e.g.
extrema(xi^2-x1^2-x2^2-xp^2-y^2,{xi-x1-x2+xp^2<=y^2},y);

extrema command is not able to compute with inequalities constraints. Could you help me please?

Thank you.

Vladimir

Hello,

I would like to use Socket package to get informaction from HTML page on Website. COuld you help me please? I need to get the part of HTML file to use it in my procedure.

Thank you very much

Vladimir

zakyn's picture

Speed of Statistics computation

Hello,

I would like to use Maple in Statistics, but I have a problem with a speed of base functions, like generation, Mean, Range and Standard deviation. Maple computes slowly than MathCad.

I have 4 test functions:

Test of generation speed
> restart:
>
> Digits :=10:
>
> test3:=proc(N,n)
> local i,a,X;
> use Statistics in
> X := RandomVariable(Normal(0,1)):
> for i from 1 to N do
> a:=Sample(X,n):
> end do:
> end use;
> end proc:
> time(test3(30000,100));


Test of Mean speed

> restart:
> Digits :=10;

Hello,

I need to create a picture in eps format to use it in LaTex Document. I use plotsetup to create it but the output is not worked corretly. In Maple 8 it workes.

plotsetup(ps,plotoutput=`plot.ps`,plotoptions=`portrait,noborder`);

and then I use some plot command. I am not able to compile the maple output in LaTexPdf. I try to open it in CorelDraw and it is opened, but I am not able to work with it like I am able with Maple 8 output. Why? Is it different format of eps?

Could you help me please? How could I create eps file to use in LaTeX?

Thank you very much.

Vladimir

zakyn's picture

Very slow evaluating matrix computation.

Hello,

I would like to use Maple instead of Matlab, well I rewrite the Matlab code to Maple like following. The output is correct, but it spends more time than in Matlab. Is it possible to rewrite my Maple code to get output faster?

restart:
linearni_model:=proc(beta,sigma)
local n1,n2,Y,X,Y1,Y2,se,se2,t1,t2,t3,t4,vbeta,t,si2,e1,e2,e3,e4,Yp,N,s2,n;
use Statistics in
X:=Matrix([[1, 1, 1, 1, 1], [1, 1, 1, 1, -1], [1, 1, 1, -1, 1], [1, 1, 1, -1, -1], [1, 1, -1, 1, 1], [1, 1, -1, 1, -1], [1, 1, -1, -1, 1], [1, 1, -1, -1, -1], [1, -1, 1, 1, 1], [1, -1, 1, 1, -1], [1, -1, 1, -1, 1], [1, -1, 1, -1, -1], [1, -1, -1, 1, 1], [1, -1, -1, 1, -1], [1, -1, -1, -1, 1], [1, -1, -1, -1, -1]]);

Hello,

I would like to use sum command to compute sum.

A := Matrix(3, 2, {(1, 1) = 1, (1, 2) = 2, (2, 1) = 2, (2, 2) = 3, (3, 1) = 3, (3, 2) = 4});
> sum(A[k, 1], k = 1 .. 3);

Error, bad index into Matrix

Why it occures an error? If I use sum over list, it works.

How can I sum members of 1st column of Matrix?

Thanks

Vladimir

zakyn's picture

Rewrite code from Matlab to Maple.

Hello,

I want to rewrite the following Matlab code to Maple

sum(Yp.*X(:,2))

and

si2(:,1)=1/2*(Y1(:,1)-Y2(:,1)).^2;

Could you help me please?

Thanks

Vladimir

zakyn's picture

Concurent version

Hello,

I have a question about concurent version of Maple.
It is needed to install Maple on server with Flexml,
as a licence server. Then I install Maple on client
side with the link to the licence server.

My question is: When I compute something in Maple,
is it computed on server site or on my local machine and
the server is only like licence server?

Thank you

Vladimir

zakyn's picture

Error in plotting tan

Hello,

I found an error in the following plotting.

An error is with discont=true and the range <-5,5>x<-5,5>

In other cases it is OK.

plot(tan, -5 .. 5, -5 .. 5, discont = true);

But when I plot tan as an expression no as a function it works correctly.

plot(tan(x), x = -5 .. 5, -5 .. 5, discont = true);

Syndicate content
}