login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for #324 Bug in width$OutputForm revision 1 of 4

1 2 3 4
Editor:
Time: 2007/11/17 22:26:34 GMT-8
Note:

changed:
-
In 'OutputForm' there is a function 'width' that returns the amount of space taken by some element of 'OutputForm'. For example

\begin{axiom}
width((sin x)::OutputForm)$OutputForm
\end{axiom}

However, the width for squares and fractions seems to be wrong:

\begin{axiom}
width((x^2)::OutputForm)$OutputForm
width((1/2)::OutputForm)$OutputForm
\end{axiom}

The function is unfortunately not implemented in SPAD but rather calls 'outformWidth' coded in BOOT in the 
file 'i-output.boot'.

Martin

Submitted by : (unknown) at: 2007-11-17T22:26:34-08:00 (16 years ago)
Name :
Axiom Version :
Category : Severity : Status :
Optional subject :  
Optional comment :

In OutputForm there is a function width that returns the amount of space taken by some element of OutputForm. For example

axiom
width((sin x)::OutputForm)$OutputForm
LatexWiki Image(1)
Type: Integer

However, the width for squares and fractions seems to be wrong:

axiom
width((x^2)::OutputForm)$OutputForm
LatexWiki Image(2)
Type: Integer
axiom
width((1/2)::OutputForm)$OutputForm
LatexWiki Image(3)
Type: Integer

The function is unfortunately not implemented in SPAD but rather calls outformWidth coded in BOOT in the file i-output.boot.

Martin