Changeset 2ad754 in git for Singular/LIB/latex.lib


Ignore:
Timestamp:
Feb 21, 2013, 7:02:39 PM (11 years ago)
Author:
Yue Ren <ren@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
8c2815d19daf34708c2cbc2cf44f8a95b28e3a28
Parents:
0c516e37d47da9dbc827d68d2253f7289dfbfd3c
git-author:
Yue Ren <ren@mathematik.uni-kl.de>2013-02-21 19:02:39+01:00
git-committer:
Yue Ren <ren@mathematik.uni-kl.de>2013-02-25 10:56:53+01:00
Message:
chg: added brackets around floating numbers

fixed latex lib and updated res files

for long coefficients.tst, note that
286391521141683198701331939250003266767738632875
/12103947791971846719838321886393392913750065060875
=0.02366...

and not

=24.12...

which was the previous result.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/LIB/latex.lib

    r0c516e r2ad754  
    13111311{
    13121312  string t;
    1313   if (s=="      Inf") { return("\\infty",3);}
    1314   if (s=="     -Inf") { return("\\-infty",6);}
    1315   if (s[7]=="-"){t ="-";}
    1316   if (s[8]<>"0"){t = t + s[8];}
    1317   if (s[9]<>"0" or s[8]<>"0"){t = t + s[9];}
     1313  if (s=="(      Inf)") { return("\\infty",3);}
     1314  if (s=="(     -Inf)") { return("\\-infty",6);}
     1315  if (s[8]=="-"){t ="-";}
     1316  if (s[9]<>"0"){t = t + s[9];}
     1317  if (s[10]<>"0" or s[9]<>"0"){t = t + s[10];}
    13181318  if (size(t))
    1319   { if (t=="1") {return(s[1,5]+"*10",21);}
    1320     if (size(t)>1) {return(s[1,5]+"*10^{"+t+"}",21+2*size(t));}
    1321     else {return(s[1,5]+"*10^"+t,23);}
     1319  { if (t=="1") {return(s[1,6]+"\\cdot 10",21);}
     1320    if (size(t)>1) {return(s[1,6]+"\\cdot 10^{"+t+"}",21+2*size(t));}
     1321    else {return(s[1,6]+"\\cdot 10^"+t+")",23);}
    13221322  }
    13231323  else
    13241324  {
    1325     return(s[1,5],12);
     1325    return(s[2,5],12);
    13261326  }
    13271327}
Note: See TracChangeset for help on using the changeset viewer.