Alec Mihailovs

Dr. Aleksandrs Mihailovs

4495 Reputation

21 Badges

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

It can be done the same way as in my previous example,
with(Spread):
f:=(A,B)->fsolve({x^2-y^2=A,x^2+y^2=B},{x,y}):
CreateSpreadsheet(S):
SetCellFormula(S,A2,3);
SetCellFormula(S,B1,4);
SetCellFormula(S,A1,'eval(x,f(~A2,~B1))');
SetCellFormula(S,B2,'eval(y,f(~A2,~B1))');
EvaluateSpreadsheet(S);
Now, changing values in A2 and B1 should change values in A1 and B2 automatically. You have to click on them to see the results though. In Excel it is very similar to that, just cell formulas have to be entered manually. They can be entered manually in Maple as well (click on the cell and enter the formula, then click again.) The difference is that when you enter formulas manually, you don't need quotes, i.e., they should be entered as eval(x,... and not as 'eval(x,... . By the way, similar thing can be also done with Maplets, see my Maple Programs for Binary Tensor Invariants and Outerplanar Graphs where I use both Spreadsheets and Maplets. _________ Alec Mihailovs http://mihailovs.com/Alec/
It can be done the same way as in my previous example,
with(Spread):
f:=(A,B)->fsolve({x^2-y^2=A,x^2+y^2=B},{x,y}):
CreateSpreadsheet(S):
SetCellFormula(S,A2,3);
SetCellFormula(S,B1,4);
SetCellFormula(S,A1,'eval(x,f(~A2,~B1))');
SetCellFormula(S,B2,'eval(y,f(~A2,~B1))');
EvaluateSpreadsheet(S);
Now, changing values in A2 and B1 should change values in A1 and B2 automatically. You have to click on them to see the results though. In Excel it is very similar to that, just cell formulas have to be entered manually. They can be entered manually in Maple as well (click on the cell and enter the formula, then click again.) The difference is that when you enter formulas manually, you don't need quotes, i.e., they should be entered as eval(x,... and not as 'eval(x,... . By the way, similar thing can be also done with Maplets, see my Maple Programs for Binary Tensor Invariants and Outerplanar Graphs where I use both Spreadsheets and Maplets. _________ Alec Mihailovs http://mihailovs.com/Alec/
She didn't upload any files. It can be seen by clicking on her name and then on 'View uploaded files'. If I didn't lose interest to that topic, I might even post the procedure that I was actually using for that :) _________ Alec Mihailovs http://mihailovs.com/Alec/
I have still problems in IE7. Both in messages and in comments - the textbox is shifted to the right. I could upload a screenshot, but it looks very similar to that one that I uploaded with IE6 on it (IE6 seems to be fixed). __________ Alec Mihailovs http://mihailovs.com/Alec/
For example,
t:=StringTools:-Substitute(
  MathML:-ExportPresentation(sin( 5*`·`*10^x )),
  "<mrow>",
"<mtext>Find the derivative of</mtext><mrow><mo>&InvisibleTimes;</mo>");

with(Maplets:-Elements):
maplet := Maplet([
   [MathMLViewer('value' = t)],
   [Button("OK", Shutdown())]
]):
Maplets:-Display(maplet);


            
Multiplication signs are just multiplication signs. They are invisible in the output. Backward quotes create a name (included in them). __________ Alec Mihailovs http://mihailovs.com/Alec/
For example,
t:=StringTools:-Substitute(
  MathML:-ExportPresentation(sin( 5*`&middot;`*10^x )),
  "<mrow>",
"<mtext>Find the derivative of</mtext><mrow><mo>&InvisibleTimes;</mo>");

with(Maplets:-Elements):
maplet := Maplet([
   [MathMLViewer('value' = t)],
   [Button("OK", Shutdown())]
]):
Maplets:-Display(maplet);


            
Multiplication signs are just multiplication signs. They are invisible in the output. Backward quotes create a name (included in them). __________ Alec Mihailovs http://mihailovs.com/Alec/
Axel, Great work! __________ Alec Mihailovs http://mihailovs.com/Alec/
There was a good story about that in Scientific Computing Blogspot, with a lot of screenshots. __________ Alec Mihailovs http://mihailovs.com/Alec/
Sorry, I am not a Maplesoft support person (even if some people seem to think so), and I usually comment only on problems that are interesting to me, and your problem doesn't belong to that category. I suggest you to wait for 72 hours (business hours - not including weekends and Canadian holidays), it is the company policy to reply after not longer than 72 hours. Also, you may send your question directly to support@maplesoft.com __________ Alec Mihailovs http://mihailovs.com/Alec/
Sorry, I am not a Maplesoft support person (even if some people seem to think so), and I usually comment only on problems that are interesting to me, and your problem doesn't belong to that category. I suggest you to wait for 72 hours (business hours - not including weekends and Canadian holidays), it is the company policy to reply after not longer than 72 hours. Also, you may send your question directly to support@maplesoft.com __________ Alec Mihailovs http://mihailovs.com/Alec/
Will, The signature didn't get erased. I noticed the following thing about it: it appears automatically in the comments, but not in the first post in the thread, both in the forums and in a blog. My login hadn't been changed, I think, when I noticed the change of my profile. That happened after I read some old blog posts (more than a year old - but on www, not on beta, I think), and clicked my account link from there. Thank you for mentioning about my profile on Maplesoft web site - I'll change it, too, when I'll have time. __________ Alec Mihailovs http://mihailovs.com/Alec/
Some choices that were made, either originally, or in Maple 6, seem very strange. In mathematics, dot is only used occasionally for the dot products of vectors of the same orientation (either both vertical, or both horizontal). In all other cases the usual multiplication sign is used, for matrix product, and for the product of a matrix and a vector. It is very strange to see matrices multiplied by using a dot. From other point of view, in object oriented languages the standard use of a dot is the same as for :- in Maple. Wouldn't it be natural to overload multiplication sign for matrix multiplication and use a dot instead of :-? || is a rather standard symbol for or. Again, wouldn't it be more natural to use the multiplication sign for string concatenation, as many other languages do (or continue using a dot)? For a Perl programmer, it is very strange to see the way Maple uses :: Wouldn't one colon look better than two? That couldn't be done without changing the undisplayed output sign from a colon to something different, but that would be only natural - it is not that easy to explain to students why a colon means that the output is not displayed, and a semicolon - displayed (and not in the opposite way as one would think.) __________ Alec Mihailovs http://mihailovs.com/Alec/
Here is an example of using a timer for making a splashscreen,
Calc:=proc()
  local t;
  global m,Timer;
  uses Maplets, Maplets:-Elements;
    Timer:=proc() 
      t:=iolib(25);
      while iolib(25)-t<3 do od end;
    m:=Maplet(
      'onstartup'=Action(RunWindow('Splash'),
        Evaluate(function="Timer"), RunWindow('Main'), 
        CloseWindow('Splash')),      
      Window['Splash']('title'="Welcome",
        [Label(Image(cat(kernelopts(datadir),
           "/help/ImageTools/fjords.jpg")))]),
      Window['Main']('title'="Calculator",
        'width'=640, 'height'=480, []));
    Display(m) end:

Calc();
It works in Maple 10, but it doesn't work in earlier versions. I don't have Maple 9 on this computer, but I checked that the following works in Maple 9.5,
Calc:=proc()
  local t;
  global m,Timer;
   use Maplets, Maplets:-Elements in
    Timer:=proc() 
      t:=iolib(25);
      while iolib(25)-t<3 do od end;
    m:=Maplet(
      'onstartup'=Action(RunWindow('Splash'),
        Evaluate(function="Timer"), CloseWindow('Splash'), 
        RunWindow('Main')),      
      Window['Splash']('title'="Welcome",
        [Label(Image("E:\\image.jpg"))]),
      Window['Main']('title'="Calculator",
        'width'=640, 'height'=480, []));
    Display(m) end use end:

Calc();
One should replace E:\\image.jpg with a link to the image. __________ Alec Mihailovs http://mihailovs.com/Alec/
Here is another simple example of using the same toolbar in all windows, and switching between windows using it,
with(Maplets:-Elements):

t:=i->ToolBar(
ToolBarButton("Window1",'onclick'=Action(CloseWindow('i'),RunWindow('W1'))),
ToolBarSeparator(),
ToolBarButton("Window2",'onclick'=Action(CloseWindow('i'),RunWindow('W2'))),
ToolBarSeparator(),
ToolBarButton("Window3",'onclick'=Action(CloseWindow('i'),RunWindow('W3')))):

m:=Maplet('onstartup'=RunWindow('W1'), 
Window['W1']('title'="Window1", 'toolbar'=t('W1'),[]),
Window['W2']('title'="Window2", 'toolbar'=t('W2'),[]),
Window['W3']('title'="Window3", 'toolbar'=t('W3'),[])):

Maplets:-Display(m);
Closing Windows is not necessary for running new windows. They could be made invisible if desirable. __________ Alec Mihailovs http://mihailovs.com/Alec/
I just noticed that TomM posted a comment that has appeared in the 'Recent comments' short list at the rhs, but hasn't appeared in the recent posts. In the first post in that thread the Category is missing. __________ Alec Mihailovs http://mihailovs.com/Alec/
First 149 150 151 152 153 154 155 Last Page 151 of 180