Alec Mihailovs

Dr. Aleksandrs Mihailovs

4495 Reputation

21 Badges

20 years, 341 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

Roman,

I think that the problem is caused by writing on the hard drive (and reading from it) instead of RAM. Every time when Maple does that, it slows down significantly.

Printing (including plotting) a large amount of data in the worksheet is also very slow, even from RAM.

Alec

 

Roman,

I think that the problem is caused by writing on the hard drive (and reading from it) instead of RAM. Every time when Maple does that, it slows down significantly.

Printing (including plotting) a large amount of data in the worksheet is also very slow, even from RAM.

Alec

 

David,

As one can see, 0.2 is located between the horizontal lines drawn at 0.1 and 0.3, and 0.5 is located between the horizontal lines drawn at 0.4 and 0.6. That tells that neither 0.7 would overlap with 0.5, nor 0.8 would overlap with 1.0.

Besides, if there are only 3 labels between 0 and 1, it would be natural to place them more equally spaced - either at 0.3, 0.7 and 1.0, or at 0.2, 0.6, and 1.0.

Alec

PS It is not a problem for me to fill the SCR beside spending 5 or 10 minutes doing that and not exactly understanding the legal notice at the end of it - just I still don't understand why I have to do that. If I understood Laurent Bernardin's last post in his blog correctly, this site is monitored, and there is a person who enters the bugs reported in various posts in the bug database. -Alec

Just tried the last example (an animation) in Classic. Strangely enough, the fonts were not changed, but the scaling changed - it is not constrained in the animation,

135_abs3.gif

Also, Helvetica (the title font) in Classic looks very different than Helvetica in Standard.

Alec

The given example worked OK in Maple 12.02,

solve({b = RootOf(_Z^3+c^2+1),c = RootOf(_Z^2+_Z+1), 
b = RootOf(_Z^3-RootOf(_Z^2+_Z+1))});

                3            2                          2
  {b = RootOf(_Z  - RootOf(_Z  + _Z + 1)), c = RootOf(_Z  + _Z + 1)}

allvalues(%);

                  1/2 1/3
       (-4 + 4 I 3   )                        1/2
  {b = ------------------, c = - 1/2 + 1/2 I 3   }, {
               2

                         1/2 1/3
              (-4 + 4 I 3   )             1/2            1/2 (1/3)
        b = - ------------------ + 1/4 I 3    (-4 + 4 I 3   )     ,
                      4

                           1/2
        c = - 1/2 + 1/2 I 3   }, {

                         1/2 1/3
              (-4 + 4 I 3   )             1/2            1/2 (1/3)
        b = - ------------------ - 1/4 I 3    (-4 + 4 I 3   )     ,
                      4

                           1/2
        c = - 1/2 + 1/2 I 3   },

                        1/2 1/3
             (-4 - 4 I 3   )                        1/2
        {b = ------------------, c = - 1/2 - 1/2 I 3   }, {
                     2

                         1/2 1/3
              (-4 - 4 I 3   )             1/2            1/2 (1/3)
        b = - ------------------ + 1/4 I 3    (-4 - 4 I 3   )     ,
                      4

                           1/2
        c = - 1/2 - 1/2 I 3   }, {

                         1/2 1/3
              (-4 - 4 I 3   )             1/2            1/2 (1/3)
        b = - ------------------ - 1/4 I 3    (-4 - 4 I 3   )     ,
                      4

                           1/2
        c = - 1/2 - 1/2 I 3   }

Alec

Well, Sage is free, and for such things as graphics, LaTeX, and document preparation, its capabilities are much greater than Maple has.

Regarding your question about LaTeX in Maple - yes, it uses eps for graphics, so one has to use something like eps2pdf for converting it to pdf. Also, conversion to LaTeX is not great - the formulas are displayed differently than in the worksheet, and other features also have various problems - the produced tex files need a lot of manual work. When I produced pdf from a worksheet, the easiest way was to export it to rtf, and then use Acrobat (full version, not a Reader) for producing a pdf from it. As I already said, it is much easier in Sage.

Alec

I just checked export formats for plots in Standard Maple in Windows. For 2d-plots, they are bmp, gif, jpg, eps, and wmf. For 3d-plots - the same as for 2d-plots, plus pov and dxf.

That is much less than any other competitor has, such as Mupad, or Mathematica, or Sage.

And some of these few export options in Maple have serious bugs - in particular, eps in grey mode inverses colors, the wmf export doesn't have a background, pov and dxf also had various problems when I checked them last time (in Maple 10), and I am pretty sure that they were not fixed since then.

Alec

combine does almost what you wanted,

combine(%);

      -1/2 exp(-t beta) cos(t alpha) + 1/4 + 1/4 exp(-2 t beta)

Alec

My guess is that the same formats that are available for export, are available for import. Maple doesn't export plots in png, svg, or pdf, so I don't think that it can import them as well. Gif should be available though.

Sage exports and imports anything.

Alec

That can be explained by the inheritance of local names. Changing the name of the variable prevents that,

a:=unapply(1,x);
                             a := x -> 1

b:=unapply(a(x),x);

                             b := x -> 1

c:=unapply(a(y),y);

                             c := y -> 1

a(1):=2;

                              a(1) := 2

b(1);

                                  2

c(1);

                                  1

That looks like a bug to me.

Alec

Yes. You can reassign p:=1, q:=2, f:=.3, and also a, and then use fsolve to get q1, q2. And repeat that. Again, some solutions will be, probably, lost.

For example,

P,Q,F,A:=[1,2,3],[2,3,4],[.3,.4,.5],[1,2,3];

for i to 3 do 
p,q,f,a:=[P,Q,F,A][1..,i][];
print(i,fsolve({eq1,eq2})) od:

               1, {q1 = 12.04379556, q2 = 0.5721334514}

               2, {q1 = 7.735072203, q2 = 0.5389853209}

               3, {q1 = 5.836962050, q2 = 0.5246573352}

Alec

Yes. You can reassign p:=1, q:=2, f:=.3, and also a, and then use fsolve to get q1, q2. And repeat that. Again, some solutions will be, probably, lost.

For example,

P,Q,F,A:=[1,2,3],[2,3,4],[.3,.4,.5],[1,2,3];

for i to 3 do 
p,q,f,a:=[P,Q,F,A][1..,i][];
print(i,fsolve({eq1,eq2})) od:

               1, {q1 = 12.04379556, q2 = 0.5721334514}

               2, {q1 = 7.735072203, q2 = 0.5389853209}

               3, {q1 = 5.836962050, q2 = 0.5246573352}

Alec

Jean-Marc,

Thank you.

I wonder why something like that has not been included in Maple in addition to StringTools:-ParseTime, StringTools:-FormatTime, and iolib(25).

Alec

In Linux, there is no need in producing a dll for calling mktime manually. It can be called from libc using a WRAPPER.

mktime := define_external('mktime', 
    WRAPPER, 
    'tm'::REF(STRUCT(
        'tm_sec'::integer[4], 
        'tm_min'::integer[4], 
        'tm_hour'::integer[4], 
        'tm_mday'::integer[4], 
        'tm_mon'::integer[4], 
        'tm_year'::integer[4], 
        'tm_wday'::integer[4], 
        'tm_yday'::integer[4], 
        'tm_isdst'::integer[4], 
        'tm_gmtoff'::integer[8], 
        'tm_zone'::REF(string))), 
    'RETURN'::integer[4], 
    'LIB' = "/lib/libc.so.6");

One can call it using a table. For example,

T := table([tm_mon = 0, tm_mday = 31, tm_year = 109, 
    tm_hour = 22, tm_min = 28, tm_sec = 30, 
    tm_wday = 6, tm_yday = 30, tm_isdst = -1, tm_gmtoff = 0, tm_zone = ""]):

mktime(T);
                                 1233462510
iolib(25);
                                 1233462520

StringTools:-FormatTime("%c", timestamp = %);

                         "Sat Jan 31 22:28:40 2009"
op(T);

    table([tm_min = 28, tm_zone = "CST", tm_hour = 22, tm_wday = 6, 
        tm_year = 109, tm_sec = 30, tm_mon = 0, tm_yday = 30, 
        tm_mday = 31, tm_gmtoff = -21600, tm_isdst = 0])

As we can see, the values of tm_isdt, tm_gmtoff, and tm_zone get corrected.

Alec

Well, searching this site for, say, "premature", using the search box at the top, would give a lot of examples :) It is one of the typical problems that people have.

Alec

First 73 74 75 76 77 78 79 Last Page 75 of 180