On Sat, Aug 19, 2006 at 06:32:59PM +0200, Helge Hafting wrote: > > > Index: src/mathed/math_exfuncinset.C > > > =================================================================== > > > --- src/mathed/math_exfuncinset.C (revision 14586) > > > +++ src/mathed/math_exfuncinset.C (working copy) > > > @@ -80,12 +80,15 @@ > > > if (name == "sin") return "Sin"; > > > if (name == "sinh") return "Sinh"; > > > if (name == "arcsin") return "ArcSin"; > > > + if (name == "asin") return "ArcSin"; > > > if (name == "cos") return "Cos"; > > > if (name == "cosh") return "Cosh"; > > > - if (name == "arcos") return "ArcCos"; > > > + if (name == "arccos") return "ArcCos"; > > > + if (name == "acos") return "ArcCos"; > > > if (name == "tan") return "Tan"; > > > if (name == "tanh") return "Tanh"; > > > if (name == "arctan") return "ArcTan"; > > > + if (name == "atan") return "ArcTan"; > > > if (name == "cot") return "Cot"; > > > if (name == "coth") return "Coth"; > > > if (name == "csc") return "Csc"; > > > > Probably my doing initially but it looks like the list is not big enough > > to use a map or such... > > > Looks like this part can be simplified too, just like the lowercase > transformation you suggested further up. > > Basically, uppercase the first character, > and if the length of name is 6, also uppercase the fourth character. > I.e.: > > name[0] &= 0xDF; > if (name.length == 6) name[3] &= 0xDF; > > A two-line approach that works because all function names are > limited to ascii where upper/lower conversions are trivial.
No, these are simply the most common functions that are translated into mathematica form but there are other mathematica functions whose length is 6 and don't have an uppercase fourth character. Doing as you suggest means that one cannot use those functions anymore... -- Enrico