Alec Mihailovs

Dr. Aleksandrs Mihailovs

4495 Reputation

21 Badges

20 years, 336 days
Mihailovs, Inc.
Owner, President, and CEO
Tyngsboro, Massachusetts, United States

Social Networks and Content at Maplesoft.com

Maple Application Center

I received my Ph.D. from the University of Pennsylvania in 1998 and I have been teaching since then at SUNY Oneonta for 1 year, at Shepherd University for 5 years, at Tennessee Tech for 2 years, at Lane College for 1 year, and this year I taught at the University of Massachusetts Lowell. My research interests include Representation Theory and Combinatorics.

MaplePrimes Activity


These are replies submitted by Alec Mihailovs

I don't exactly understand. These sums are not empty - they have one term, with j=0.

Empty sums seem to be OK,

sum(a,j=0..-1);

                                  0

add(a,j=0..-1);

                                  0

as well as empty products,

product(a,j=0..-1);

                                  1

mul(a,j=0..-1);

                                  1

Alec

Everything that I tried seems to work nicely, and ?help works.

If I recall correctly, Who's new used to be under Who's online (in the menu at the lhs). Now they are in the opposite order. So the templates are changed, too?

Alec

fsolve({1/(p1-6)-
    1/2*(1-exp((12-p1)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0, 
    1/(p2-5)-
    1/2*(1-exp((10-p2)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0, 
    1/(p3-6)-
    1/2*(1-exp((12-p3)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0},
    {p1=10,p2=10,p3=10});

        {p1 = 9.147664039, p2 = 7.742670270, p3 = 9.147664039}

Alec

fsolve({1/(p1-6)-
    1/2*(1-exp((12-p1)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0, 
    1/(p2-5)-
    1/2*(1-exp((10-p2)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0, 
    1/(p3-6)-
    1/2*(1-exp((12-p3)*(1/2))/(exp((12-p1)*(1/2))+
    exp((10-p2)*(1/2))+exp((12-p3)*(1/2)))) = 0},
    {p1=10,p2=10,p3=10});

        {p1 = 9.147664039, p2 = 7.742670270, p3 = 9.147664039}

Alec

Actually, in addition to max_connections, there is also max_user_connections, which could be set to 0 allowing unlimited number of connections.

Alec

I hope that max_connections is also increased.

Alec

Statistical functions are in scipy. I'm not sure if it is available for Python 3.1. Python(x,y) is using Python 2.6.3, and it has scipy and other useful things already installed - no need to install them manually. Also, documentation is provided, so it is easier to start with it than with a basic Python distribution. It is OK to have different Python versions on the same computer (I have 7 or 8, I think, including IronPython etc.) Support groups are quite good.

An older statistics manual is available online. Since then, more statistical functions were added.

Alec

It is really much faster in Numpy (in Python). And scipy (also in Python) has more statistical functions than Maple. And rpy provides a convenient interface to R. Try it. Python(x,y) is quite easy to install.

Alec

That can be done as

g:=proc(A::Array(datatype=float[8]),n::integer[4])
local i::integer[4],s::float[8];
option autocompile;
s:=0.;
for i to n do s:=s+100.; A[i]:=s od 
end;

A:=Array(1..1,datatype=float[8]);

                              A := [0.]

g(A,1);

                                 100.

A:=Array(1..10^6,datatype=float[8]);

time(g(A,10^6));

                                0.015

time(seq(g(A,10^6),i=1..100));

                                2.168

It is faster than using Statistics:-CumulativeSum,

A:=Vector(10^6,100.,datatype=float[8]);

time(Statistics:-CumulativeSum(A));

                                0.062

Also, creating Arrays and Vectors is slow in Maple,

time(Vector(10^6,i->100.*i,datatype=float[8]));

                                2.636

Alec

Still, it can be used in the second example as

f:=proc() if 5 then 1 else 2 end if end:
            
subs(5=true,op(f))();

                                  1

subs(5=false,op(f))();

                                  2

Alec

Frankly, I didn't think about collusion in particular.

I don't have much free time unfortunately. And if I wanted to publish something on the collusion (or other topic), I would probably do that in a form of a Python package. Why do such things in Maple?

Alec

Frankly, I didn't think about collusion in particular.

I don't have much free time unfortunately. And if I wanted to publish something on the collusion (or other topic), I would probably do that in a form of a Python package. Why do such things in Maple?

Alec

Still, usually speculation is considered to be a kind of gambling. What you wrote about gambling is true only for a rather small part of the game theory.

Alec

Still, usually speculation is considered to be a kind of gambling. What you wrote about gambling is true only for a rather small part of the game theory.

Alec

The situation in trading is different. Using gambling terminology, there is such thing as "rush" - for example, if a coin fell down heads up 3 times in a row, it is more probable that it will fall down heads up next time (because the person fliiping it might have a pattern making the coin falling down heads up more probable). Or, say, if a woman had 2 daughters, it is more probable that her next child will be a daughter as well - again, because the average 50% probability of having a daugter doesn't mean that a concrete person has also that probability. Some may have probability 30%, and some - 70%.

Alec

First 38 39 40 41 42 43 44 Last Page 40 of 180