mml 2.4.0 → 2.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CLAUDE.md +8 -2
- data/TODO.complete/1-v3-autoload.md +63 -0
- data/TODO.complete/2-v2-autoload.md +46 -0
- data/TODO.complete/3-no-require-relative.md +32 -0
- data/TODO.complete/4-remove-duplicate-register-model.md +31 -0
- data/TODO.complete/5-context-options-type-check.md +44 -0
- data/TODO.complete/6-context-configuration-type-check.md +32 -0
- data/TODO.complete/7-specs-for-refactor.md +38 -0
- data/lib/mml/context_configuration.rb +3 -1
- data/lib/mml/context_options.rb +10 -1
- data/lib/mml/v2/configuration.rb +0 -2
- data/lib/mml/v2.rb +382 -246
- data/lib/mml/v3/annotation.rb +0 -1
- data/lib/mml/v3/annotation_xml.rb +0 -1
- data/lib/mml/v3/apply.rb +0 -1
- data/lib/mml/v3/arith.rb +0 -22
- data/lib/mml/v3/bind.rb +0 -1
- data/lib/mml/v3/calculus.rb +0 -7
- data/lib/mml/v3/cbytes.rb +0 -1
- data/lib/mml/v3/cerror.rb +0 -1
- data/lib/mml/v3/ci.rb +0 -1
- data/lib/mml/v3/cn.rb +0 -1
- data/lib/mml/v3/configuration.rb +0 -2
- data/lib/mml/v3/constants.rb +0 -15
- data/lib/mml/v3/constructs.rb +0 -10
- data/lib/mml/v3/cs.rb +0 -1
- data/lib/mml/v3/csymbol.rb +0 -1
- data/lib/mml/v3/deprecated_content.rb +0 -7
- data/lib/mml/v3/elementary_functions.rb +0 -28
- data/lib/mml/v3/functions.rb +0 -6
- data/lib/mml/v3/linear_algebra.rb +0 -9
- data/lib/mml/v3/logic.rb +0 -7
- data/lib/mml/v3/maction.rb +0 -1
- data/lib/mml/v3/maligngroup.rb +0 -1
- data/lib/mml/v3/malignmark.rb +0 -1
- data/lib/mml/v3/math.rb +0 -2
- data/lib/mml/v3/menclose.rb +0 -1
- data/lib/mml/v3/merror.rb +0 -1
- data/lib/mml/v3/mfenced.rb +0 -1
- data/lib/mml/v3/mfrac.rb +0 -1
- data/lib/mml/v3/mfraction.rb +0 -1
- data/lib/mml/v3/mglyph.rb +0 -1
- data/lib/mml/v3/mi.rb +0 -1
- data/lib/mml/v3/mlabeledtr.rb +0 -1
- data/lib/mml/v3/mlongdiv.rb +0 -1
- data/lib/mml/v3/mmultiscripts.rb +0 -1
- data/lib/mml/v3/mn.rb +0 -1
- data/lib/mml/v3/mo.rb +0 -1
- data/lib/mml/v3/mover.rb +0 -1
- data/lib/mml/v3/mpadded.rb +0 -1
- data/lib/mml/v3/mphantom.rb +0 -1
- data/lib/mml/v3/mprescripts.rb +0 -1
- data/lib/mml/v3/mroot.rb +0 -1
- data/lib/mml/v3/mrow.rb +0 -1
- data/lib/mml/v3/ms.rb +0 -1
- data/lib/mml/v3/mscarries.rb +0 -1
- data/lib/mml/v3/mscarry.rb +0 -1
- data/lib/mml/v3/msgroup.rb +0 -1
- data/lib/mml/v3/msline.rb +0 -1
- data/lib/mml/v3/mspace.rb +0 -1
- data/lib/mml/v3/msqrt.rb +0 -1
- data/lib/mml/v3/msrow.rb +0 -1
- data/lib/mml/v3/mstack.rb +0 -1
- data/lib/mml/v3/mstyle.rb +0 -1
- data/lib/mml/v3/msub.rb +0 -1
- data/lib/mml/v3/msubsup.rb +0 -1
- data/lib/mml/v3/msup.rb +0 -1
- data/lib/mml/v3/mtable.rb +0 -1
- data/lib/mml/v3/mtd.rb +0 -1
- data/lib/mml/v3/mtext.rb +0 -1
- data/lib/mml/v3/mtr.rb +0 -1
- data/lib/mml/v3/munder.rb +0 -1
- data/lib/mml/v3/munderover.rb +0 -1
- data/lib/mml/v3/none.rb +0 -1
- data/lib/mml/v3/relations.rb +0 -9
- data/lib/mml/v3/semantics.rb +0 -1
- data/lib/mml/v3/sets.rb +0 -13
- data/lib/mml/v3/statistics.rb +0 -7
- data/lib/mml/v3/vector_calculus.rb +0 -4
- data/lib/mml/v3.rb +451 -73
- data/lib/mml/v4/annotation.rb +0 -1
- data/lib/mml/v4/configuration.rb +0 -2
- data/lib/mml/v4/elementary_functions.rb +0 -1
- data/lib/mml/v4/functions.rb +0 -1
- data/lib/mml/v4.rb +21 -17
- data/lib/mml/version.rb +1 -1
- data/lib/mml.rb +2 -0
- metadata +9 -2
data/lib/mml/v3/statistics.rb
CHANGED
|
@@ -9,7 +9,6 @@ module Mml
|
|
|
9
9
|
|
|
10
10
|
include Base::Content::Mean
|
|
11
11
|
end
|
|
12
|
-
Configuration.register_model(Mean, id: :mean)
|
|
13
12
|
|
|
14
13
|
class Sdev < Lutaml::Model::Serializable
|
|
15
14
|
def self.lutaml_default_register
|
|
@@ -18,7 +17,6 @@ module Mml
|
|
|
18
17
|
|
|
19
18
|
include Base::Content::Sdev
|
|
20
19
|
end
|
|
21
|
-
Configuration.register_model(Sdev, id: :sdev)
|
|
22
20
|
|
|
23
21
|
class Variance < Lutaml::Model::Serializable
|
|
24
22
|
def self.lutaml_default_register
|
|
@@ -27,7 +25,6 @@ module Mml
|
|
|
27
25
|
|
|
28
26
|
include Base::Content::Variance
|
|
29
27
|
end
|
|
30
|
-
Configuration.register_model(Variance, id: :variance)
|
|
31
28
|
|
|
32
29
|
class Median < Lutaml::Model::Serializable
|
|
33
30
|
def self.lutaml_default_register
|
|
@@ -36,7 +33,6 @@ module Mml
|
|
|
36
33
|
|
|
37
34
|
include Base::Content::Median
|
|
38
35
|
end
|
|
39
|
-
Configuration.register_model(Median, id: :median)
|
|
40
36
|
|
|
41
37
|
class Mode < Lutaml::Model::Serializable
|
|
42
38
|
def self.lutaml_default_register
|
|
@@ -45,7 +41,6 @@ module Mml
|
|
|
45
41
|
|
|
46
42
|
include Base::Content::Mode
|
|
47
43
|
end
|
|
48
|
-
Configuration.register_model(Mode, id: :mode)
|
|
49
44
|
|
|
50
45
|
class Moment < Lutaml::Model::Serializable
|
|
51
46
|
def self.lutaml_default_register
|
|
@@ -54,11 +49,9 @@ module Mml
|
|
|
54
49
|
|
|
55
50
|
include Base::Content::Moment
|
|
56
51
|
end
|
|
57
|
-
Configuration.register_model(Moment, id: :moment)
|
|
58
52
|
|
|
59
53
|
class Momentabout < CommonElements
|
|
60
54
|
include Base::Content::Momentabout
|
|
61
55
|
end
|
|
62
|
-
Configuration.register_model(Momentabout, id: :momentabout)
|
|
63
56
|
end
|
|
64
57
|
end
|
|
@@ -9,7 +9,6 @@ module Mml
|
|
|
9
9
|
|
|
10
10
|
include Base::Content::Divergence
|
|
11
11
|
end
|
|
12
|
-
Configuration.register_model(Divergence, id: :divergence)
|
|
13
12
|
|
|
14
13
|
class Grad < Lutaml::Model::Serializable
|
|
15
14
|
def self.lutaml_default_register
|
|
@@ -18,7 +17,6 @@ module Mml
|
|
|
18
17
|
|
|
19
18
|
include Base::Content::Grad
|
|
20
19
|
end
|
|
21
|
-
Configuration.register_model(Grad, id: :grad)
|
|
22
20
|
|
|
23
21
|
class Curl < Lutaml::Model::Serializable
|
|
24
22
|
def self.lutaml_default_register
|
|
@@ -27,7 +25,6 @@ module Mml
|
|
|
27
25
|
|
|
28
26
|
include Base::Content::Curl
|
|
29
27
|
end
|
|
30
|
-
Configuration.register_model(Curl, id: :curl)
|
|
31
28
|
|
|
32
29
|
class Laplacian < Lutaml::Model::Serializable
|
|
33
30
|
def self.lutaml_default_register
|
|
@@ -36,6 +33,5 @@ module Mml
|
|
|
36
33
|
|
|
37
34
|
include Base::Content::Laplacian
|
|
38
35
|
end
|
|
39
|
-
Configuration.register_model(Laplacian, id: :laplacian)
|
|
40
36
|
end
|
|
41
37
|
end
|
data/lib/mml/v3.rb
CHANGED
|
@@ -1,82 +1,460 @@
|
|
|
1
1
|
# frozen_string_literal: true
|
|
2
2
|
|
|
3
3
|
require "lutaml/model"
|
|
4
|
-
require_relative "versioned_parser"
|
|
5
|
-
|
|
6
|
-
require_relative "v3/configuration"
|
|
7
|
-
require_relative "v3/namespace"
|
|
8
|
-
require_relative "v3/common_elements"
|
|
9
|
-
require_relative "v3/maction"
|
|
10
|
-
require_relative "v3/maligngroup"
|
|
11
|
-
require_relative "v3/malignmark"
|
|
12
|
-
require_relative "v3/menclose"
|
|
13
|
-
require_relative "v3/merror"
|
|
14
|
-
require_relative "v3/mfenced"
|
|
15
|
-
require_relative "v3/mfrac"
|
|
16
|
-
require_relative "v3/mfraction"
|
|
17
|
-
require_relative "v3/mglyph"
|
|
18
|
-
require_relative "v3/mi"
|
|
19
|
-
require_relative "v3/mlongdiv"
|
|
20
|
-
require_relative "v3/mn"
|
|
21
|
-
require_relative "v3/mo"
|
|
22
|
-
require_relative "v3/mover"
|
|
23
|
-
require_relative "v3/mpadded"
|
|
24
|
-
require_relative "v3/mphantom"
|
|
25
|
-
require_relative "v3/mprescripts"
|
|
26
|
-
require_relative "v3/mroot"
|
|
27
|
-
require_relative "v3/mrow"
|
|
28
|
-
require_relative "v3/ms"
|
|
29
|
-
require_relative "v3/mscarries"
|
|
30
|
-
require_relative "v3/mscarry"
|
|
31
|
-
require_relative "v3/msgroup"
|
|
32
|
-
require_relative "v3/msline"
|
|
33
|
-
require_relative "v3/mspace"
|
|
34
|
-
require_relative "v3/msqrt"
|
|
35
|
-
require_relative "v3/msrow"
|
|
36
|
-
require_relative "v3/mstack"
|
|
37
|
-
require_relative "v3/mstyle"
|
|
38
|
-
require_relative "v3/msub"
|
|
39
|
-
require_relative "v3/msubsup"
|
|
40
|
-
require_relative "v3/msup"
|
|
41
|
-
require_relative "v3/mtd"
|
|
42
|
-
require_relative "v3/mtable"
|
|
43
|
-
require_relative "v3/mtext"
|
|
44
|
-
require_relative "v3/mtr"
|
|
45
|
-
require_relative "v3/mlabeledtr"
|
|
46
|
-
require_relative "v3/munder"
|
|
47
|
-
require_relative "v3/munderover"
|
|
48
|
-
require_relative "v3/mmultiscripts"
|
|
49
|
-
require_relative "v3/none"
|
|
50
|
-
require_relative "v3/semantics"
|
|
51
|
-
require_relative "v3/math"
|
|
52
|
-
|
|
53
|
-
# Content elements - must be eagerly loaded for Configuration.register_model
|
|
54
|
-
require_relative "v3/apply"
|
|
55
|
-
require_relative "v3/cbytes"
|
|
56
|
-
require_relative "v3/cerror"
|
|
57
|
-
require_relative "v3/cs"
|
|
58
|
-
require_relative "v3/ci"
|
|
59
|
-
require_relative "v3/cn"
|
|
60
|
-
require_relative "v3/csymbol"
|
|
61
|
-
require_relative "v3/annotation_xml"
|
|
62
|
-
require_relative "v3/annotation"
|
|
63
|
-
require_relative "v3/constructs"
|
|
64
|
-
require_relative "v3/bind"
|
|
65
|
-
require_relative "v3/arith"
|
|
66
|
-
require_relative "v3/logic"
|
|
67
|
-
require_relative "v3/relations"
|
|
68
|
-
require_relative "v3/sets"
|
|
69
|
-
require_relative "v3/calculus"
|
|
70
|
-
require_relative "v3/vector_calculus"
|
|
71
|
-
require_relative "v3/functions"
|
|
72
|
-
require_relative "v3/elementary_functions"
|
|
73
|
-
require_relative "v3/constants"
|
|
74
|
-
require_relative "v3/linear_algebra"
|
|
75
|
-
require_relative "v3/statistics"
|
|
76
|
-
require_relative "v3/deprecated_content"
|
|
77
4
|
|
|
78
5
|
module Mml
|
|
79
6
|
module V3
|
|
80
7
|
extend Mml::VersionedParser
|
|
8
|
+
|
|
9
|
+
# Foundational
|
|
10
|
+
autoload :Configuration, "mml/v3/configuration"
|
|
11
|
+
autoload :Namespace, "mml/v3/namespace"
|
|
12
|
+
autoload :CommonElements, "mml/v3/common_elements"
|
|
13
|
+
|
|
14
|
+
# Presentation elements (one class per file)
|
|
15
|
+
autoload :Maction, "mml/v3/maction"
|
|
16
|
+
autoload :Maligngroup, "mml/v3/maligngroup"
|
|
17
|
+
autoload :Malignmark, "mml/v3/malignmark"
|
|
18
|
+
autoload :Menclose, "mml/v3/menclose"
|
|
19
|
+
autoload :Merror, "mml/v3/merror"
|
|
20
|
+
autoload :Mfenced, "mml/v3/mfenced"
|
|
21
|
+
autoload :Mfrac, "mml/v3/mfrac"
|
|
22
|
+
autoload :Mfraction, "mml/v3/mfraction"
|
|
23
|
+
autoload :Mglyph, "mml/v3/mglyph"
|
|
24
|
+
autoload :Mi, "mml/v3/mi"
|
|
25
|
+
autoload :Mlabeledtr, "mml/v3/mlabeledtr"
|
|
26
|
+
autoload :Mlongdiv, "mml/v3/mlongdiv"
|
|
27
|
+
autoload :Mmultiscripts, "mml/v3/mmultiscripts"
|
|
28
|
+
autoload :Mn, "mml/v3/mn"
|
|
29
|
+
autoload :Mo, "mml/v3/mo"
|
|
30
|
+
autoload :Mover, "mml/v3/mover"
|
|
31
|
+
autoload :Mpadded, "mml/v3/mpadded"
|
|
32
|
+
autoload :Mphantom, "mml/v3/mphantom"
|
|
33
|
+
autoload :Mprescripts, "mml/v3/mprescripts"
|
|
34
|
+
autoload :Mroot, "mml/v3/mroot"
|
|
35
|
+
autoload :Mrow, "mml/v3/mrow"
|
|
36
|
+
autoload :Ms, "mml/v3/ms"
|
|
37
|
+
autoload :Mscarries, "mml/v3/mscarries"
|
|
38
|
+
autoload :Mscarry, "mml/v3/mscarry"
|
|
39
|
+
autoload :Msgroup, "mml/v3/msgroup"
|
|
40
|
+
autoload :Msline, "mml/v3/msline"
|
|
41
|
+
autoload :Mspace, "mml/v3/mspace"
|
|
42
|
+
autoload :Msqrt, "mml/v3/msqrt"
|
|
43
|
+
autoload :Msrow, "mml/v3/msrow"
|
|
44
|
+
autoload :Mstack, "mml/v3/mstack"
|
|
45
|
+
autoload :Mstyle, "mml/v3/mstyle"
|
|
46
|
+
autoload :Msub, "mml/v3/msub"
|
|
47
|
+
autoload :Msubsup, "mml/v3/msubsup"
|
|
48
|
+
autoload :Msup, "mml/v3/msup"
|
|
49
|
+
autoload :Mtable, "mml/v3/mtable"
|
|
50
|
+
autoload :Mtd, "mml/v3/mtd"
|
|
51
|
+
autoload :Mtext, "mml/v3/mtext"
|
|
52
|
+
autoload :Mtr, "mml/v3/mtr"
|
|
53
|
+
autoload :Munder, "mml/v3/munder"
|
|
54
|
+
autoload :Munderover, "mml/v3/munderover"
|
|
55
|
+
autoload :None, "mml/v3/none"
|
|
56
|
+
autoload :Semantics, "mml/v3/semantics"
|
|
57
|
+
autoload :Math, "mml/v3/math"
|
|
58
|
+
|
|
59
|
+
# Content elements - one class per file
|
|
60
|
+
autoload :AnnotationXml, "mml/v3/annotation_xml"
|
|
61
|
+
autoload :Annotation, "mml/v3/annotation"
|
|
62
|
+
autoload :Apply, "mml/v3/apply"
|
|
63
|
+
autoload :Bind, "mml/v3/bind"
|
|
64
|
+
autoload :Ci, "mml/v3/ci"
|
|
65
|
+
autoload :Cn, "mml/v3/cn"
|
|
66
|
+
autoload :Csymbol, "mml/v3/csymbol"
|
|
67
|
+
autoload :Cbytes, "mml/v3/cbytes"
|
|
68
|
+
autoload :Cerror, "mml/v3/cerror"
|
|
69
|
+
autoload :Cs, "mml/v3/cs"
|
|
70
|
+
|
|
71
|
+
# Content elements - batch files (multiple classes per file).
|
|
72
|
+
# Each autoload points to the shared file; the file is loaded once.
|
|
73
|
+
# arith.rb
|
|
74
|
+
autoload :Abs, "mml/v3/arith"
|
|
75
|
+
autoload :Conjugate, "mml/v3/arith"
|
|
76
|
+
autoload :Arg, "mml/v3/arith"
|
|
77
|
+
autoload :Real, "mml/v3/arith"
|
|
78
|
+
autoload :Imaginary, "mml/v3/arith"
|
|
79
|
+
autoload :Floor, "mml/v3/arith"
|
|
80
|
+
autoload :Ceiling, "mml/v3/arith"
|
|
81
|
+
autoload :Quotient, "mml/v3/arith"
|
|
82
|
+
autoload :Divide, "mml/v3/arith"
|
|
83
|
+
autoload :Rem, "mml/v3/arith"
|
|
84
|
+
autoload :Minus, "mml/v3/arith"
|
|
85
|
+
autoload :Plus, "mml/v3/arith"
|
|
86
|
+
autoload :Times, "mml/v3/arith"
|
|
87
|
+
autoload :Power, "mml/v3/arith"
|
|
88
|
+
autoload :Root, "mml/v3/arith"
|
|
89
|
+
autoload :Max, "mml/v3/arith"
|
|
90
|
+
autoload :Min, "mml/v3/arith"
|
|
91
|
+
autoload :Gcd, "mml/v3/arith"
|
|
92
|
+
autoload :Lcm, "mml/v3/arith"
|
|
93
|
+
autoload :Sum, "mml/v3/arith"
|
|
94
|
+
autoload :Product, "mml/v3/arith"
|
|
95
|
+
autoload :Factorial, "mml/v3/arith"
|
|
96
|
+
|
|
97
|
+
# calculus.rb
|
|
98
|
+
autoload :Int, "mml/v3/calculus"
|
|
99
|
+
autoload :Diff, "mml/v3/calculus"
|
|
100
|
+
autoload :Partialdiff, "mml/v3/calculus"
|
|
101
|
+
autoload :Limit, "mml/v3/calculus"
|
|
102
|
+
autoload :Lowlimit, "mml/v3/calculus"
|
|
103
|
+
autoload :Uplimit, "mml/v3/calculus"
|
|
104
|
+
autoload :Tendsto, "mml/v3/calculus"
|
|
105
|
+
|
|
106
|
+
# constants.rb
|
|
107
|
+
autoload :Naturalnumbers, "mml/v3/constants"
|
|
108
|
+
autoload :Primes, "mml/v3/constants"
|
|
109
|
+
autoload :Integers, "mml/v3/constants"
|
|
110
|
+
autoload :Rationals, "mml/v3/constants"
|
|
111
|
+
autoload :Reals, "mml/v3/constants"
|
|
112
|
+
autoload :Complexes, "mml/v3/constants"
|
|
113
|
+
autoload :Emptyset, "mml/v3/constants"
|
|
114
|
+
autoload :Exponentiale, "mml/v3/constants"
|
|
115
|
+
autoload :Imaginaryi, "mml/v3/constants"
|
|
116
|
+
autoload :Pi, "mml/v3/constants"
|
|
117
|
+
autoload :Eulergamma, "mml/v3/constants"
|
|
118
|
+
autoload :Mtrue, "mml/v3/constants"
|
|
119
|
+
autoload :Mfalse, "mml/v3/constants"
|
|
120
|
+
autoload :Infinity, "mml/v3/constants"
|
|
121
|
+
autoload :Notanumber, "mml/v3/constants"
|
|
122
|
+
|
|
123
|
+
# elementary_functions.rb
|
|
124
|
+
autoload :Exp, "mml/v3/elementary_functions"
|
|
125
|
+
autoload :Ln, "mml/v3/elementary_functions"
|
|
126
|
+
autoload :Log, "mml/v3/elementary_functions"
|
|
127
|
+
autoload :Logbase, "mml/v3/elementary_functions"
|
|
128
|
+
autoload :Sin, "mml/v3/elementary_functions"
|
|
129
|
+
autoload :Cos, "mml/v3/elementary_functions"
|
|
130
|
+
autoload :Tan, "mml/v3/elementary_functions"
|
|
131
|
+
autoload :Sec, "mml/v3/elementary_functions"
|
|
132
|
+
autoload :Csc, "mml/v3/elementary_functions"
|
|
133
|
+
autoload :Cot, "mml/v3/elementary_functions"
|
|
134
|
+
autoload :Arcsin, "mml/v3/elementary_functions"
|
|
135
|
+
autoload :Arccos, "mml/v3/elementary_functions"
|
|
136
|
+
autoload :Arctan, "mml/v3/elementary_functions"
|
|
137
|
+
autoload :Arccot, "mml/v3/elementary_functions"
|
|
138
|
+
autoload :Arccsc, "mml/v3/elementary_functions"
|
|
139
|
+
autoload :Arcsec, "mml/v3/elementary_functions"
|
|
140
|
+
autoload :Sinh, "mml/v3/elementary_functions"
|
|
141
|
+
autoload :Cosh, "mml/v3/elementary_functions"
|
|
142
|
+
autoload :Tanh, "mml/v3/elementary_functions"
|
|
143
|
+
autoload :Sech, "mml/v3/elementary_functions"
|
|
144
|
+
autoload :Csch, "mml/v3/elementary_functions"
|
|
145
|
+
autoload :Coth, "mml/v3/elementary_functions"
|
|
146
|
+
autoload :Arcsinh, "mml/v3/elementary_functions"
|
|
147
|
+
autoload :Arccosh, "mml/v3/elementary_functions"
|
|
148
|
+
autoload :Arctanh, "mml/v3/elementary_functions"
|
|
149
|
+
autoload :Arccoth, "mml/v3/elementary_functions"
|
|
150
|
+
autoload :Arccsch, "mml/v3/elementary_functions"
|
|
151
|
+
autoload :Arcsech, "mml/v3/elementary_functions"
|
|
152
|
+
|
|
153
|
+
# functions.rb
|
|
154
|
+
autoload :Compose, "mml/v3/functions"
|
|
155
|
+
autoload :Domain, "mml/v3/functions"
|
|
156
|
+
autoload :Codomain, "mml/v3/functions"
|
|
157
|
+
autoload :Image, "mml/v3/functions"
|
|
158
|
+
autoload :Ident, "mml/v3/functions"
|
|
159
|
+
autoload :Domainofapplication, "mml/v3/functions"
|
|
160
|
+
|
|
161
|
+
# linear_algebra.rb
|
|
162
|
+
autoload :Vector, "mml/v3/linear_algebra"
|
|
163
|
+
autoload :Matrix, "mml/v3/linear_algebra"
|
|
164
|
+
autoload :Matrixrow, "mml/v3/linear_algebra"
|
|
165
|
+
autoload :Determinant, "mml/v3/linear_algebra"
|
|
166
|
+
autoload :Transpose, "mml/v3/linear_algebra"
|
|
167
|
+
autoload :Selector, "mml/v3/linear_algebra"
|
|
168
|
+
autoload :Vectorproduct, "mml/v3/linear_algebra"
|
|
169
|
+
autoload :Scalarproduct, "mml/v3/linear_algebra"
|
|
170
|
+
autoload :Outerproduct, "mml/v3/linear_algebra"
|
|
171
|
+
|
|
172
|
+
# logic.rb
|
|
173
|
+
autoload :And, "mml/v3/logic"
|
|
174
|
+
autoload :Or, "mml/v3/logic"
|
|
175
|
+
autoload :Xor, "mml/v3/logic"
|
|
176
|
+
autoload :Not, "mml/v3/logic"
|
|
177
|
+
autoload :Exists, "mml/v3/logic"
|
|
178
|
+
autoload :Forall, "mml/v3/logic"
|
|
179
|
+
autoload :Implies, "mml/v3/logic"
|
|
180
|
+
|
|
181
|
+
# relations.rb
|
|
182
|
+
autoload :Eq, "mml/v3/relations"
|
|
183
|
+
autoload :Neq, "mml/v3/relations"
|
|
184
|
+
autoload :Leq, "mml/v3/relations"
|
|
185
|
+
autoload :Lt, "mml/v3/relations"
|
|
186
|
+
autoload :Geq, "mml/v3/relations"
|
|
187
|
+
autoload :Gt, "mml/v3/relations"
|
|
188
|
+
autoload :Equivalent, "mml/v3/relations"
|
|
189
|
+
autoload :Approx, "mml/v3/relations"
|
|
190
|
+
autoload :Factorof, "mml/v3/relations"
|
|
191
|
+
|
|
192
|
+
# sets.rb
|
|
193
|
+
autoload :Set, "mml/v3/sets"
|
|
194
|
+
autoload :Mlist, "mml/v3/sets"
|
|
195
|
+
autoload :Union, "mml/v3/sets"
|
|
196
|
+
autoload :Intersect, "mml/v3/sets"
|
|
197
|
+
autoload :In, "mml/v3/sets"
|
|
198
|
+
autoload :Notin, "mml/v3/sets"
|
|
199
|
+
autoload :Subset, "mml/v3/sets"
|
|
200
|
+
autoload :Prsubset, "mml/v3/sets"
|
|
201
|
+
autoload :Notsubset, "mml/v3/sets"
|
|
202
|
+
autoload :Notprsubset, "mml/v3/sets"
|
|
203
|
+
autoload :Setdiff, "mml/v3/sets"
|
|
204
|
+
autoload :Card, "mml/v3/sets"
|
|
205
|
+
autoload :Cartesianproduct, "mml/v3/sets"
|
|
206
|
+
|
|
207
|
+
# statistics.rb
|
|
208
|
+
autoload :Mean, "mml/v3/statistics"
|
|
209
|
+
autoload :Sdev, "mml/v3/statistics"
|
|
210
|
+
autoload :Variance, "mml/v3/statistics"
|
|
211
|
+
autoload :Median, "mml/v3/statistics"
|
|
212
|
+
autoload :Mode, "mml/v3/statistics"
|
|
213
|
+
autoload :Moment, "mml/v3/statistics"
|
|
214
|
+
autoload :Momentabout, "mml/v3/statistics"
|
|
215
|
+
|
|
216
|
+
# vector_calculus.rb
|
|
217
|
+
autoload :Divergence, "mml/v3/vector_calculus"
|
|
218
|
+
autoload :Grad, "mml/v3/vector_calculus"
|
|
219
|
+
autoload :Curl, "mml/v3/vector_calculus"
|
|
220
|
+
autoload :Laplacian, "mml/v3/vector_calculus"
|
|
221
|
+
|
|
222
|
+
# constructs.rb (all classes in one file)
|
|
223
|
+
autoload :Bvar, "mml/v3/constructs"
|
|
224
|
+
autoload :Condition, "mml/v3/constructs"
|
|
225
|
+
autoload :Interval, "mml/v3/constructs"
|
|
226
|
+
autoload :Lambda, "mml/v3/constructs"
|
|
227
|
+
autoload :Inverse, "mml/v3/constructs"
|
|
228
|
+
autoload :Degree, "mml/v3/constructs"
|
|
229
|
+
autoload :Piecewise, "mml/v3/constructs"
|
|
230
|
+
autoload :Piece, "mml/v3/constructs"
|
|
231
|
+
autoload :Otherwise, "mml/v3/constructs"
|
|
232
|
+
autoload :Sep, "mml/v3/constructs"
|
|
233
|
+
|
|
234
|
+
# deprecated_content.rb (MathML 2 compatibility classes)
|
|
235
|
+
autoload :Fn, "mml/v3/deprecated_content"
|
|
236
|
+
autoload :Reln, "mml/v3/deprecated_content"
|
|
237
|
+
autoload :Declare, "mml/v3/deprecated_content"
|
|
238
|
+
autoload :Share, "mml/v3/deprecated_content"
|
|
239
|
+
|
|
240
|
+
# Presentation element registrations
|
|
241
|
+
Configuration.register_model(Maction, id: :maction)
|
|
242
|
+
Configuration.register_model(Maligngroup, id: :maligngroup)
|
|
243
|
+
Configuration.register_model(Malignmark, id: :malignmark)
|
|
244
|
+
Configuration.register_model(Menclose, id: :menclose)
|
|
245
|
+
Configuration.register_model(Merror, id: :merror)
|
|
246
|
+
Configuration.register_model(Mfenced, id: :mfenced)
|
|
247
|
+
Configuration.register_model(Mfrac, id: :mfrac)
|
|
248
|
+
Configuration.register_model(Mfraction, id: :mfraction)
|
|
249
|
+
Configuration.register_model(Mglyph, id: :mglyph)
|
|
250
|
+
Configuration.register_model(Mi, id: :mi)
|
|
251
|
+
Configuration.register_model(Mlabeledtr, id: :mlabeledtr)
|
|
252
|
+
Configuration.register_model(Mlongdiv, id: :mlongdiv)
|
|
253
|
+
Configuration.register_model(Mmultiscripts, id: :mmultiscripts)
|
|
254
|
+
Configuration.register_model(Mn, id: :mn)
|
|
255
|
+
Configuration.register_model(Mo, id: :mo)
|
|
256
|
+
Configuration.register_model(Mover, id: :mover)
|
|
257
|
+
Configuration.register_model(Mpadded, id: :mpadded)
|
|
258
|
+
Configuration.register_model(Mphantom, id: :mphantom)
|
|
259
|
+
Configuration.register_model(Mprescripts, id: :mprescripts)
|
|
260
|
+
Configuration.register_model(Mroot, id: :mroot)
|
|
261
|
+
Configuration.register_model(Mrow, id: :mrow)
|
|
262
|
+
Configuration.register_model(Ms, id: :ms)
|
|
263
|
+
Configuration.register_model(Mscarries, id: :mscarries)
|
|
264
|
+
Configuration.register_model(Mscarry, id: :mscarry)
|
|
265
|
+
Configuration.register_model(Msgroup, id: :msgroup)
|
|
266
|
+
Configuration.register_model(Msline, id: :msline)
|
|
267
|
+
Configuration.register_model(Mspace, id: :mspace)
|
|
268
|
+
Configuration.register_model(Msqrt, id: :msqrt)
|
|
269
|
+
Configuration.register_model(Msrow, id: :msrow)
|
|
270
|
+
Configuration.register_model(Mstack, id: :mstack)
|
|
271
|
+
Configuration.register_model(Mstyle, id: :mstyle)
|
|
272
|
+
Configuration.register_model(Msub, id: :msub)
|
|
273
|
+
Configuration.register_model(Msubsup, id: :msubsup)
|
|
274
|
+
Configuration.register_model(Msup, id: :msup)
|
|
275
|
+
Configuration.register_model(Mtable, id: :mtable)
|
|
276
|
+
Configuration.register_model(Mtd, id: :mtd)
|
|
277
|
+
Configuration.register_model(Mtext, id: :mtext)
|
|
278
|
+
Configuration.register_model(Mtr, id: :mtr)
|
|
279
|
+
Configuration.register_model(Munder, id: :munder)
|
|
280
|
+
Configuration.register_model(Munderover, id: :munderover)
|
|
281
|
+
Configuration.register_model(None, id: :none)
|
|
282
|
+
Configuration.register_model(Semantics, id: :semantics)
|
|
283
|
+
Configuration.register_model(Math, id: :math)
|
|
284
|
+
|
|
285
|
+
# Content element registrations
|
|
286
|
+
Configuration.register_model(Annotation, id: :annotation)
|
|
287
|
+
Configuration.register_model(AnnotationXml, id: :"annotation-xml")
|
|
288
|
+
Configuration.register_model(Apply, id: :apply)
|
|
289
|
+
Configuration.register_model(Bvar, id: :bvar)
|
|
290
|
+
Configuration.register_model(Bind, id: :bind)
|
|
291
|
+
Configuration.register_model(Ci, id: :ci)
|
|
292
|
+
Configuration.register_model(Cn, id: :cn)
|
|
293
|
+
Configuration.register_model(Condition, id: :condition)
|
|
294
|
+
Configuration.register_model(Csymbol, id: :csymbol)
|
|
295
|
+
Configuration.register_model(Degree, id: :degree)
|
|
296
|
+
Configuration.register_model(Fn, id: :fn)
|
|
297
|
+
Configuration.register_model(Interval, id: :interval)
|
|
298
|
+
Configuration.register_model(Inverse, id: :inverse)
|
|
299
|
+
Configuration.register_model(Lambda, id: :lambda)
|
|
300
|
+
Configuration.register_model(Otherwise, id: :otherwise)
|
|
301
|
+
Configuration.register_model(Piece, id: :piece)
|
|
302
|
+
Configuration.register_model(Piecewise, id: :piecewise)
|
|
303
|
+
Configuration.register_model(Reln, id: :reln)
|
|
304
|
+
Configuration.register_model(Sep, id: :sep)
|
|
305
|
+
Configuration.register_model(Declare, id: :declare)
|
|
306
|
+
Configuration.register_model(Share, id: :share)
|
|
307
|
+
Configuration.register_model(Cbytes, id: :cbytes)
|
|
308
|
+
Configuration.register_model(Cerror, id: :cerror)
|
|
309
|
+
Configuration.register_model(Cs, id: :cs)
|
|
310
|
+
|
|
311
|
+
# Arith
|
|
312
|
+
Configuration.register_model(Abs, id: :abs)
|
|
313
|
+
Configuration.register_model(Conjugate, id: :conjugate)
|
|
314
|
+
Configuration.register_model(Arg, id: :arg)
|
|
315
|
+
Configuration.register_model(Real, id: :real)
|
|
316
|
+
Configuration.register_model(Imaginary, id: :imaginary)
|
|
317
|
+
Configuration.register_model(Floor, id: :floor)
|
|
318
|
+
Configuration.register_model(Ceiling, id: :ceiling)
|
|
319
|
+
Configuration.register_model(Quotient, id: :quotient)
|
|
320
|
+
Configuration.register_model(Divide, id: :divide)
|
|
321
|
+
Configuration.register_model(Rem, id: :rem)
|
|
322
|
+
Configuration.register_model(Minus, id: :minus)
|
|
323
|
+
Configuration.register_model(Plus, id: :plus)
|
|
324
|
+
Configuration.register_model(Times, id: :times)
|
|
325
|
+
Configuration.register_model(Power, id: :power)
|
|
326
|
+
Configuration.register_model(Root, id: :root)
|
|
327
|
+
Configuration.register_model(Max, id: :max)
|
|
328
|
+
Configuration.register_model(Min, id: :min)
|
|
329
|
+
Configuration.register_model(Gcd, id: :gcd)
|
|
330
|
+
Configuration.register_model(Lcm, id: :lcm)
|
|
331
|
+
Configuration.register_model(Sum, id: :sum)
|
|
332
|
+
Configuration.register_model(Product, id: :product)
|
|
333
|
+
Configuration.register_model(Factorial, id: :factorial)
|
|
334
|
+
|
|
335
|
+
# Calculus
|
|
336
|
+
Configuration.register_model(Int, id: :int)
|
|
337
|
+
Configuration.register_model(Diff, id: :diff)
|
|
338
|
+
Configuration.register_model(Partialdiff, id: :partialdiff)
|
|
339
|
+
Configuration.register_model(Limit, id: :limit)
|
|
340
|
+
Configuration.register_model(Lowlimit, id: :lowlimit)
|
|
341
|
+
Configuration.register_model(Uplimit, id: :uplimit)
|
|
342
|
+
Configuration.register_model(Tendsto, id: :tendsto)
|
|
343
|
+
|
|
344
|
+
# Elementary functions
|
|
345
|
+
Configuration.register_model(Exp, id: :exp)
|
|
346
|
+
Configuration.register_model(Ln, id: :ln)
|
|
347
|
+
Configuration.register_model(Log, id: :log)
|
|
348
|
+
Configuration.register_model(Logbase, id: :logbase)
|
|
349
|
+
Configuration.register_model(Sin, id: :sin)
|
|
350
|
+
Configuration.register_model(Cos, id: :cos)
|
|
351
|
+
Configuration.register_model(Tan, id: :tan)
|
|
352
|
+
Configuration.register_model(Sec, id: :sec)
|
|
353
|
+
Configuration.register_model(Csc, id: :csc)
|
|
354
|
+
Configuration.register_model(Cot, id: :cot)
|
|
355
|
+
Configuration.register_model(Arcsin, id: :arcsin)
|
|
356
|
+
Configuration.register_model(Arccos, id: :arccos)
|
|
357
|
+
Configuration.register_model(Arctan, id: :arctan)
|
|
358
|
+
Configuration.register_model(Arccot, id: :arccot)
|
|
359
|
+
Configuration.register_model(Arccsc, id: :arccsc)
|
|
360
|
+
Configuration.register_model(Arcsec, id: :arcsec)
|
|
361
|
+
Configuration.register_model(Sinh, id: :sinh)
|
|
362
|
+
Configuration.register_model(Cosh, id: :cosh)
|
|
363
|
+
Configuration.register_model(Tanh, id: :tanh)
|
|
364
|
+
Configuration.register_model(Sech, id: :sech)
|
|
365
|
+
Configuration.register_model(Csch, id: :csch)
|
|
366
|
+
Configuration.register_model(Coth, id: :coth)
|
|
367
|
+
Configuration.register_model(Arcsinh, id: :arcsinh)
|
|
368
|
+
Configuration.register_model(Arccosh, id: :arccosh)
|
|
369
|
+
Configuration.register_model(Arctanh, id: :arctanh)
|
|
370
|
+
Configuration.register_model(Arccoth, id: :arccoth)
|
|
371
|
+
Configuration.register_model(Arccsch, id: :arccsch)
|
|
372
|
+
Configuration.register_model(Arcsech, id: :arcsech)
|
|
373
|
+
|
|
374
|
+
# Logic
|
|
375
|
+
Configuration.register_model(And, id: :and)
|
|
376
|
+
Configuration.register_model(Or, id: :or)
|
|
377
|
+
Configuration.register_model(Xor, id: :xor)
|
|
378
|
+
Configuration.register_model(Not, id: :not)
|
|
379
|
+
Configuration.register_model(Exists, id: :exists)
|
|
380
|
+
Configuration.register_model(Forall, id: :forall)
|
|
381
|
+
Configuration.register_model(Implies, id: :implies)
|
|
382
|
+
|
|
383
|
+
# Functions
|
|
384
|
+
Configuration.register_model(Compose, id: :compose)
|
|
385
|
+
Configuration.register_model(Domain, id: :domain)
|
|
386
|
+
Configuration.register_model(Codomain, id: :codomain)
|
|
387
|
+
Configuration.register_model(Image, id: :image)
|
|
388
|
+
Configuration.register_model(Ident, id: :ident)
|
|
389
|
+
Configuration.register_model(Domainofapplication, id: :domainofapplication)
|
|
390
|
+
|
|
391
|
+
# Relations
|
|
392
|
+
Configuration.register_model(Eq, id: :eq)
|
|
393
|
+
Configuration.register_model(Neq, id: :neq)
|
|
394
|
+
Configuration.register_model(Leq, id: :leq)
|
|
395
|
+
Configuration.register_model(Lt, id: :lt)
|
|
396
|
+
Configuration.register_model(Geq, id: :geq)
|
|
397
|
+
Configuration.register_model(Gt, id: :gt)
|
|
398
|
+
Configuration.register_model(Equivalent, id: :equivalent)
|
|
399
|
+
Configuration.register_model(Approx, id: :approx)
|
|
400
|
+
Configuration.register_model(Factorof, id: :factorof)
|
|
401
|
+
|
|
402
|
+
# Sets
|
|
403
|
+
Configuration.register_model(Set, id: :set)
|
|
404
|
+
Configuration.register_model(Mlist, id: :list)
|
|
405
|
+
Configuration.register_model(Union, id: :union)
|
|
406
|
+
Configuration.register_model(Intersect, id: :intersect)
|
|
407
|
+
Configuration.register_model(In, id: :in)
|
|
408
|
+
Configuration.register_model(Notin, id: :notin)
|
|
409
|
+
Configuration.register_model(Subset, id: :subset)
|
|
410
|
+
Configuration.register_model(Prsubset, id: :prsubset)
|
|
411
|
+
Configuration.register_model(Notsubset, id: :notsubset)
|
|
412
|
+
Configuration.register_model(Notprsubset, id: :notprsubset)
|
|
413
|
+
Configuration.register_model(Setdiff, id: :setdiff)
|
|
414
|
+
Configuration.register_model(Card, id: :card)
|
|
415
|
+
Configuration.register_model(Cartesianproduct, id: :cartesianproduct)
|
|
416
|
+
|
|
417
|
+
# Vector calculus
|
|
418
|
+
Configuration.register_model(Divergence, id: :divergence)
|
|
419
|
+
Configuration.register_model(Grad, id: :grad)
|
|
420
|
+
Configuration.register_model(Curl, id: :curl)
|
|
421
|
+
Configuration.register_model(Laplacian, id: :laplacian)
|
|
422
|
+
|
|
423
|
+
# Constants
|
|
424
|
+
Configuration.register_model(Naturalnumbers, id: :naturalnumbers)
|
|
425
|
+
Configuration.register_model(Primes, id: :primes)
|
|
426
|
+
Configuration.register_model(Integers, id: :integers)
|
|
427
|
+
Configuration.register_model(Rationals, id: :rationals)
|
|
428
|
+
Configuration.register_model(Reals, id: :reals)
|
|
429
|
+
Configuration.register_model(Complexes, id: :complexes)
|
|
430
|
+
Configuration.register_model(Emptyset, id: :emptyset)
|
|
431
|
+
Configuration.register_model(Exponentiale, id: :exponentiale)
|
|
432
|
+
Configuration.register_model(Imaginaryi, id: :imaginaryi)
|
|
433
|
+
Configuration.register_model(Pi, id: :pi)
|
|
434
|
+
Configuration.register_model(Eulergamma, id: :eulergamma)
|
|
435
|
+
Configuration.register_model(Mtrue, id: :true) # rubocop:disable Lint/BooleanSymbol
|
|
436
|
+
Configuration.register_model(Mfalse, id: :false) # rubocop:disable Lint/BooleanSymbol
|
|
437
|
+
Configuration.register_model(Infinity, id: :infinity)
|
|
438
|
+
Configuration.register_model(Notanumber, id: :notanumber)
|
|
439
|
+
|
|
440
|
+
# Linear algebra
|
|
441
|
+
Configuration.register_model(Vector, id: :vector)
|
|
442
|
+
Configuration.register_model(Matrix, id: :matrix)
|
|
443
|
+
Configuration.register_model(Matrixrow, id: :matrixrow)
|
|
444
|
+
Configuration.register_model(Determinant, id: :determinant)
|
|
445
|
+
Configuration.register_model(Transpose, id: :transpose)
|
|
446
|
+
Configuration.register_model(Selector, id: :selector)
|
|
447
|
+
Configuration.register_model(Vectorproduct, id: :vectorproduct)
|
|
448
|
+
Configuration.register_model(Scalarproduct, id: :scalarproduct)
|
|
449
|
+
Configuration.register_model(Outerproduct, id: :outerproduct)
|
|
450
|
+
|
|
451
|
+
# Statistics
|
|
452
|
+
Configuration.register_model(Mean, id: :mean)
|
|
453
|
+
Configuration.register_model(Sdev, id: :sdev)
|
|
454
|
+
Configuration.register_model(Variance, id: :variance)
|
|
455
|
+
Configuration.register_model(Median, id: :median)
|
|
456
|
+
Configuration.register_model(Mode, id: :mode)
|
|
457
|
+
Configuration.register_model(Moment, id: :moment)
|
|
458
|
+
Configuration.register_model(Momentabout, id: :momentabout)
|
|
81
459
|
end
|
|
82
460
|
end
|
data/lib/mml/v4/annotation.rb
CHANGED
data/lib/mml/v4/configuration.rb
CHANGED