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

Edit detail for SandboxOutputBug revision 5 of 5

1 2 3 4 5
Editor: Ralf Hemmecke
Time: 2014/07/09 23:56:38 GMT+0
Note:

added:
prime(a+b, 4)

fricas
OF ==> OutputForm
Type: Void
fricas
R ==> Record(OUTPUTFORM:OF, SEXPRESSION: SExpression, TEXFORMAT:TexFormat)
Type: Void
fricas
e x ==> (print(([x::OF, (x::OF) pretend SExpression, x::OF::TexFormat]$R)::OF);x)
Type: Void
fricas
)set output algebra on
a: OF := "a"::Symbol::OF
(4) a

\label{eq1}a(1)
Type: OutputForm?
fricas
aa: OF := "aa"::Symbol::OF
(5) aa

\label{eq2}aa(2)
Type: OutputForm?
fricas
b: OF := "b"::Symbol::OF
(6) b

\label{eq3}b(3)
Type: OutputForm?
fricas
bb: OF := "bb"::Symbol::OF
(7) bb

\label{eq4}bb(4)
Type: OutputForm?

There are parentheses missing in the algebra output.

fricas
e((a+b) rem (aa*bb))
[OUTPUTFORM = (a + b) rem aa bb, SEXPRESSION = (rem (+ a b) (* aa bb)),
TEXFORMAT = ["$$", "rem ", "\left(", "{{a+b}, \: {aa \ bb}} ", "\right)", "$$"] ]
(8) (a + b) rem aa bb

\label{eq5}rem \left({{a + b}, \:{aa \  bb}}\right)(5)
Type: OutputForm?
fricas
e((a+b) quo (aa*bb))
[OUTPUTFORM = (a + b) quo aa bb, SEXPRESSION = (quo (+ a b) (* aa bb)),
TEXFORMAT = ["$$", "quo ", "\left(", "{{a+b}, \: {aa \ bb}} ", "\right)", "$$"] ]
(9) (a + b) quo aa bb

\label{eq6}quo \left({{a + b}, \:{aa \  bb}}\right)(6)
Type: OutputForm?
fricas
e((a+b) exquo (aa*bb))
[OUTPUTFORM = (a + b) exquo aa bb, SEXPRESSION = (exquo (+ a b) (* aa bb)),
TEXFORMAT = ["$$", "exquo ", "\left(", "{{a+b}, \: {aa \ bb}} ", "\right)", "$$"] ]
(10) (a + b) exquo aa bb

\label{eq7}exquo \left({{a + b}, \:{aa \  bb}}\right)(7)
Type: OutputForm?

fricas
differentiate(a+b, 1)
, (11) a + b

\label{eq8}{a + b}^{\prime}(8)
Type: OutputForm?
fricas
differentiate(a*b, 2)
,, (12) a b

\label{eq9}{a \  b}^{\prime \prime}(9)
Type: OutputForm?
fricas
prime(a+b, 4)
,,,, (13) a + b

\label{eq10}{a + b}^{\prime \prime \prime \prime}(10)
Type: OutputForm?
fricas
super(aa+bb, a+b)
a + b (14) aa + bb

\label{eq11}{aa + bb}_{\ }^{a + b}(11)
Type: OutputForm?