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

Edit detail for SandBoxRalf revision 4 of 4

1 2 3 4
Editor: hemmecke
Time: 2020/04/14 00:03:07 GMT+0
Note:

added:
e continuedFraction(3, repeating [1], repeating [3, 6])

fricas
(1) -> E ==> Expression Integer
Type: Void
fricas
OF ==> OutputForm
Type: Void
fricas
macro R == Record(OUTPUTFORM:OF,_
                  SEXPRESSION: SExpression,_
                  SEXPRESSION: SExpression,_
                  TEXFORMAT: TexFormat)
Type: Void
fricas
macro e x == (_
    o:=x::OF;_
    print(([o,_
            outputTran(o)$Lisp,_
            outputTran(precondition(o)$OutputFormTools)$Lisp,
            o::TexFormat_
           ]$R)::OF);_
    x)
Type: Void

fricas
e continuedFraction(3, repeating [1], repeating [3, 6])
[ OUTPUTFORM = 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 3 + +---+ + +---+ + +---+ + +---+ + +---+ + +---+ + +---+ + +---+ | 3 | 6 | 3 | 6 | 3 | 6 | 3 | 6 + 1 | 1 | +---+ + +---+ + ... | 3 | 6 ,
SEXPRESSION = (+ 3
(+
(+
(+
(+
(+
(+
(+ (+ (+ (+ (ZAG 1 3) (ZAG 1 6)) (ZAG 1 3)) (ZAG 1 6)) (ZAG 1 3))
(ZAG 1 6))
(ZAG 1 3))
(ZAG 1 6))
(ZAG 1 3))
(ZAG 1 6))
...) ) ,
SEXPRESSION = (+ 3 (ZAG 1 3) (ZAG 1 6) (ZAG 1 3) (ZAG 1 6) (ZAG 1 3) (ZAG 1 6) (ZAG 1 3) (ZAG 1 6) (ZAG 1 3) (ZAG 1 6) ...) ,
TEXFORMAT = ["$$", "3+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ ", "\zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+\ldots ", "$$"] ]

\label{eq1}3 + \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \zag{1}{3}+ \zag{1}{6}+ \ldots(1)
Type: ContinuedFraction?(Integer)
fricas
e [i for i in 1..]
[OUTPUTFORM = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, ...], SEXPRESSION = (BRACKET (AGGLST 1 2 3 4 5 6 7 8 9 10 ...)), SEXPRESSION = (BRACKET (AGGLST 1 2 3 4 5 6 7 8 9 10 ...)),
TEXFORMAT = ["$$", "\left[", "1, \: 2, \: 3, \: 4, \: 5, \: 6, \: 7, \: 8, \: 9, \: {10}, \: \ldots " , "\right]", "$$"] ]

\label{eq2}\left[ 1, \: 2, \: 3, \: 4, \: 5, \: 6, \: 7, \: 8, \: 9, \:{1
0}, \: \ldots \right](2)
Type: Stream(PositiveInteger?)