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

If * is omitted, Maple considers that expression as a function of 3*x-2, something like
(f+g)(3*x-2);
                       f(3 x - 2) + g(3 x - 2)
with f = 2*x and g = -1 . The constants are considered to be constant functions, so
(-1)(anything) = -1
.
If * is omitted, Maple considers that expression as a function of 3*x-2, something like
(f+g)(3*x-2);
                       f(3 x - 2) + g(3 x - 2)
with f = 2*x and g = -1 . The constants are considered to be constant functions, so
(-1)(anything) = -1
.
It was also discussed earlier in Plotting the Dirac function thread.
It was also discussed earlier in Plotting the Dirac function thread.
The difference is that the arguments of unapply (and almost all other functions) are evaluated in Maple, but the right hand side of the arrow operator is not evaluated. If you write C[k] there, it stays as C[k], values of k are not substituted there. By the way, a natural Maple way of doing what you tried to do is something like
C:=[$-3..3];

                    C := [-3, -2, -1, 0, 1, 2, 3]

C[];

                        -3, -2, -1, 0, 1, 2, 3

gg:=map(c->x->x^3+c,C):
gg[3](4);

                                  63
The difference is that the arguments of unapply (and almost all other functions) are evaluated in Maple, but the right hand side of the arrow operator is not evaluated. If you write C[k] there, it stays as C[k], values of k are not substituted there. By the way, a natural Maple way of doing what you tried to do is something like
C:=[$-3..3];

                    C := [-3, -2, -1, 0, 1, 2, 3]

C[];

                        -3, -2, -1, 0, 1, 2, 3

gg:=map(c->x->x^3+c,C):
gg[3](4);

                                  63
You are right, parameters and flags can not remove *s from the printf output. Following Will's idea, one can create his/her own version of printf for doing that though,
printf1:=()->printf("%s",StringTools:-SubstituteAll(sprintf(args),"*","")):
For example,
z:=(2*x-1)*(3*x-2):

printf1("%a",z);

(2x-1)(3x-2)
You are right, parameters and flags can not remove *s from the printf output. Following Will's idea, one can create his/her own version of printf for doing that though,
printf1:=()->printf("%s",StringTools:-SubstituteAll(sprintf(args),"*","")):
For example,
z:=(2*x-1)*(3*x-2):

printf1("%a",z);

(2x-1)(3x-2)
Seems like a good idea. Just 2 suggestions. The icons for 200 points and for 10 points look very similar. I think, a green color for 10 points would be more appropriate. The shapes also could be different - for black and white printing.
It would be also interesting to know who wrote that piece of code.
In cases like that, I replace < with &lt;
The situation has changed - I decided to switch to Mathematica starting today, and am not going to continue providing Maple support anymore, on this site or anywhere else. What that means for this problem - you have to find another Maple expert interested in doing it. There are few people besides me who can do that, so that shouldn't be a problem. Or, you can also switch to Mathematica in which Pattern Matching is effectively working.
However, pdf printer driver supports only printing. It can't convert hyperlinks, bookmarks, as well as components, such as buttons etc. That's why it is certainly not the proper way. In Windows, I export a worksheet to rtf and then convert it to pdf through Acrobat. That works OK with hyperlinks and bookmarks. I didn't try that with buttons.
I think, they are working on that, and it should be much better in Maple 11.
Well, James S. Milne wrote in his Apocrypha that
    In a discussion with Grothendieck, Messing mentioned the formula expressing the integral of exp(-x^2) in terms of pi, which is proved in every calculus course. Not only did Grothendieck not know the formula, but he thought that he had never seen it in his life.
And Grothendieck is definitely a mathematician. That proves that my test is better!
First 161 162 163 164 165 166 167 Last Page 163 of 180