File tree Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Expand file tree Collapse file tree 2 files changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ parse a <ci> node
73
73
function parse_ci (node)
74
74
# c = Symbol(Meta.parse(strip(node.content)))
75
75
c = Symbol (string (strip (node. content)))
76
- Num ( Variable (c))
76
+ ( @variables $ c)[ 1 ]
77
77
end
78
78
79
79
# ######### Parse piecewise ###################################################
Original file line number Diff line number Diff line change @@ -20,15 +20,6 @@ function mathml_to_nums(xml::EzXML.Document)
20
20
mathml_to_nums (doc_root)
21
21
end
22
22
23
- function mathml_to_nums (node:: EzXML.Node )
24
- namespace (node) != mathml_ns && error (" need to provide mathml node" )
25
- cs = findall (" //x:ci/text()" , node, [" x" => mathml_ns])
26
- vars = @. Symbol (strip (string (cs)))
27
- unique! (vars)
28
- @. Num (Variable {Symbolics.FnType{Tuple{Any},Real}} (vars))
29
- end
30
-
31
-
32
23
"""
33
24
extract_mathml()
34
25
You can’t perform that action at this time.
0 commit comments