Alec Mihailovs

Dr. Aleksandrs Mihailovs

4420 Reputation

21 Badges

18 years, 152 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

fprintf gives the best formatting options. Also, ExportMatrix can be used (especially for data in Matlab format). For example, in its simple form,
A:=Matrix(10,3,(i,j)->rhs(dsol1(0.1*i)[j])):
ExportMatrix("data.txt",A):
Yes, in html specification, <pre> tag allows typing html inside the preformatted text. That means that < and > signs are not allowed, the same as in html outside of the <pre> block. It is a convenient feature, because it allows to make links in the text etc. Actually, only < sign creates problem and should be replaced with &lt; The > sign (including Maple prompts) can be left unchanged. It would be much better (at least for me) if <pre> worked as usual in html and <code> was changed to verbatim instead.
Joe, What multicharacter symbols do you mean, for example? Say, int Ctrl+Space seems to be working OK.
Joe, What multicharacter symbols do you mean, for example? Say, int Ctrl+Space seems to be working OK.
That's true.
That's true.
The error message like that usually occurs if a NAG or other dll function was called with either wrong number of parameters, or wrong order of them, or wrong type of them, or not using standard call, or dll function contains some errors in the code.
The error message like that usually occurs if a NAG or other dll function was called with either wrong number of parameters, or wrong order of them, or wrong type of them, or not using standard call, or dll function contains some errors in the code.
Currently, a kind of a workaround for products is either manual adding of &middot; in the MathML export, or using something like that,
t := sin( 5*`&middot;`*10^x ):
with(Maplets[Elements]):
maplet := Maplet([
   [MathMLViewer('value' = MathML[Export](t))],
   [Button("OK", Shutdown())]
]):
Maplets[Display](maplet);
In some simple cases including this example, the replacing of InvisibleTimes with middot works,
MLdot:=a->StringTools[RegSubs]("InvisibleTimes"="middot",MathML[Export](a)):
t:=sin(5*10^x):
with(Maplets[Elements]):
maplet := Maplet([
   [MathMLViewer('value' = MLdot(t))],
   [Button("OK", Shutdown())]
]):
Maplets[Display](maplet);
That wouldn't work for expressions in which InvisibleTimes is used for other purposes though.
part Ctrl+Space works even better.
part Ctrl+Space works even better.
To hide output, use : instead of ; at the end.
N1:=convert(N1,list):
Depending on your values of z, series may be useful. Such as
f:=Int(1/sqrt((1+zz)^(2*(1-beta))*(1+sigma*(1+zz)^lambda)^P+B*(1+zz)^3),zz=0..z):
g:=series(f,z):
h:=convert(g,polynom):
CodeGeneration:-C(h);
Depending on your values of z, series may be useful. Such as
f:=Int(1/sqrt((1+zz)^(2*(1-beta))*(1+sigma*(1+zz)^lambda)^P+B*(1+zz)^3),zz=0..z):
g:=series(f,z):
h:=convert(g,polynom):
CodeGeneration:-C(h);
It may be considered as a bug - they should be protected to avoid such problems.
First 175 176 177 178 179 180 Page 177 of 180