File: root-03.out

package info (click to toggle)
haskell-typst 0.8.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 16,624 kB
  • sloc: haskell: 8,567; xml: 32; makefile: 3
file content (216 lines) | stat: -rw-r--r-- 9,774 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
--- parse tree ---
[ Code
    "typ/math/root-03.typ"
    ( line 1 , column 2 )
    (Let
       (BasicBind (Just (Identifier "test")))
       (FuncExpr
          [ NormalParam (Identifier "x") , NormalParam (Identifier "y") ]
          (Block
             (CodeBlock
                [ If
                    [ ( Equals (Ident (Identifier "x")) (Ident (Identifier "y"))
                      , Block (Content [ Text "\9989" ])
                      )
                    , ( Literal (Boolean True)
                      , Block
                          (Content
                             [ Text "\10060"
                             , Text "("
                             , Code
                                 "typ/math/root-03.typ"
                                 ( line 1 , column 47 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "x")) ])
                             , Space
                             , Text "/"
                             , Text "="
                             , Space
                             , Code
                                 "typ/math/root-03.typ"
                                 ( line 1 , column 59 )
                                 (FuncCall
                                    (Ident (Identifier "repr"))
                                    [ NormalArg (Ident (Identifier "y")) ])
                             , Text ")"
                             ])
                      )
                    ]
                ]))))
, SoftBreak
, Comment
, Equation
    True
    [ Code
        "typ/math/root-03.typ"
        ( line 3 , column 3 )
        (FuncCall
           (Ident (Identifier "sqrt"))
           [ BlockArg
               [ Code
                   "typ/math/root-03.typ"
                   ( line 3 , column 8 )
                   (FieldAccess
                      (Ident (Identifier "l"))
                      (FieldAccess
                         (Ident (Identifier "double")) (Ident (Identifier "bracket"))))
               , Text "x"
               , MAttach
                   Nothing
                   (Just (Text "2"))
                   (Code
                      "typ/math/root-03.typ"
                      ( line 3 , column 11 )
                      (FieldAccess
                         (Ident (Identifier "r"))
                         (FieldAccess
                            (Ident (Identifier "double")) (Ident (Identifier "bracket")))))
               , Text "+"
               , Code
                   "typ/math/root-03.typ"
                   ( line 3 , column 18 )
                   (FieldAccess
                      (Ident (Identifier "l"))
                      (FieldAccess
                         (Ident (Identifier "double")) (Ident (Identifier "bracket"))))
               , Text "y"
               , MAttach
                   Nothing
                   (Just (Text "2"))
                   (Code
                      "typ/math/root-03.typ"
                      ( line 3 , column 21 )
                      (FieldAccess
                         (Ident (Identifier "r"))
                         (FieldAccess
                            (Ident (Identifier "double")) (Ident (Identifier "bracket")))))
               ]
           ])
    , Text "<"
    , Code
        "typ/math/root-03.typ"
        ( line 3 , column 29 )
        (FieldAccess
           (Ident (Identifier "l"))
           (FieldAccess
              (Ident (Identifier "double")) (Ident (Identifier "bracket"))))
    , Text "z"
    , Code
        "typ/math/root-03.typ"
        ( line 3 , column 32 )
        (FieldAccess
           (Ident (Identifier "r"))
           (FieldAccess
              (Ident (Identifier "double")) (Ident (Identifier "bracket"))))
    ]
, SoftBreak
, Equation
    True
    [ Text "v"
    , Text "="
    , Code
        "typ/math/root-03.typ"
        ( line 4 , column 7 )
        (FuncCall
           (Ident (Identifier "sqrt"))
           [ BlockArg
               [ MFrac
                   (MGroup (Just "(") (Just ")") [ MFrac (Text "1") (Text "2") ])
                   (MGroup Nothing Nothing [ MFrac (Text "4") (Text "5") ])
               ]
           ])
    , Text "="
    , Code
        "typ/math/root-03.typ"
        ( line 5 , column 6 )
        (FuncCall
           (Ident (Identifier "root"))
           [ BlockArg [ Text "3" ]
           , BlockArg
               [ MFrac
                   (MGroup
                      (Just "(")
                      (Just ")")
                      [ MFrac (MFrac (Text "1") (Text "2")) (Text "3") ])
                   (MGroup
                      Nothing Nothing [ MFrac (MFrac (Text "4") (Text "5")) (Text "6") ])
               ]
           ])
    , Text "="
    , Code
        "typ/math/root-03.typ"
        ( line 6 , column 6 )
        (FuncCall
           (Ident (Identifier "root"))
           [ BlockArg [ Text "4" ]
           , BlockArg
               [ MFrac
                   (MGroup
                      (Just "(")
                      (Just ")")
                      [ MFrac
                          (MGroup (Just "(") (Just ")") [ MFrac (Text "1") (Text "2") ])
                          (MGroup Nothing Nothing [ MFrac (Text "3") (Text "4") ])
                      ])
                   (MGroup
                      Nothing
                      Nothing
                      [ MFrac
                          (MGroup (Just "(") (Just ")") [ MFrac (Text "1") (Text "2") ])
                          (MGroup Nothing Nothing [ MFrac (Text "3") (Text "4") ])
                      ])
               ]
           ])
    ]
, ParBreak
]
--- evaluated ---
document(body: { text(body: [
]), 
                 math.equation(block: true, 
                               body: { math.sqrt(radicand: { text(body: [⟦]), 
                                                             text(body: [x]), 
                                                             math.attach(b: none, 
                                                                         base: text(body: [⟧]), 
                                                                         t: text(body: [2])), 
                                                             text(body: [+]), 
                                                             text(body: [⟦]), 
                                                             text(body: [y]), 
                                                             math.attach(b: none, 
                                                                         base: text(body: [⟧]), 
                                                                         t: text(body: [2])) }), 
                                       text(body: [<]), 
                                       text(body: [⟦]), 
                                       text(body: [z]), 
                                       text(body: [⟧]) }, 
                               numbering: none), 
                 text(body: [
]), 
                 math.equation(block: true, 
                               body: { text(body: [v]), 
                                       text(body: [=]), 
                                       math.sqrt(radicand: math.frac(denom: math.frac(denom: text(body: [5]), 
                                                                                      num: text(body: [4])), 
                                                                     num: math.frac(denom: text(body: [2]), 
                                                                                    num: text(body: [1])))), 
                                       text(body: [=]), 
                                       math.root(index: text(body: [3]), 
                                                 radicand: math.frac(denom: math.frac(denom: text(body: [6]), 
                                                                                      num: math.frac(denom: text(body: [5]), 
                                                                                                     num: text(body: [4]))), 
                                                                     num: math.frac(denom: text(body: [3]), 
                                                                                    num: math.frac(denom: text(body: [2]), 
                                                                                                   num: text(body: [1]))))), 
                                       text(body: [=]), 
                                       math.root(index: text(body: [4]), 
                                                 radicand: math.frac(denom: math.frac(denom: math.frac(denom: text(body: [4]), 
                                                                                                       num: text(body: [3])), 
                                                                                      num: math.frac(denom: text(body: [2]), 
                                                                                                     num: text(body: [1]))), 
                                                                     num: math.frac(denom: math.frac(denom: text(body: [4]), 
                                                                                                     num: text(body: [3])), 
                                                                                    num: math.frac(denom: text(body: [2]), 
                                                                                                   num: text(body: [1]))))) }, 
                               numbering: none), 
                 parbreak() })