You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Base.:+(a::Group{:Measures,T,S,N}where {T,S},b::Group{:Measures,T,S,N}where {T,S}) where N =product(a)+product(b)
183
+
Base.:+(a::Number,b::Group{:Measures,T,S,N}where {T,S}) where N = a+product(b)
184
+
Base.:+(a::Group{:Measures,T,S,N}where {T,S},b::Number) where N =product(a)+b
185
+
Base.:+(a::Constant,b::Group{:Measures,T,S,N}where {T,S}) where N = a+product(b)
186
+
Base.:+(a::Group{:Measures,T,S,N}where {T,S},b::Constant) where N =product(a)+b
187
+
Base.:-(a::Group{:Measures,T,S,N}where {T,S},b::Group{:Measures,T,S,N}where {T,S}) where N =product(a)-product(b)
188
+
Base.:-(a::Number,b::Group{:Measures,T,S,N}where {T,S}) where N = a-product(b)
189
+
Base.:-(a::Group{:Measures,T,S,N}where {T,S},b::Number) where N =product(a)-b
190
+
Base.:-(a::Constant,b::Group{:Measures,T,S,N}where {T,S}) where N = a-product(b)
191
+
Base.:-(a::Group{:Measures,T,S,N}where {T,S},b::Constant) where N =product(a)-b
192
+
Base.:*(a::Group{:Constants,T,S,N}where {T,S},b::Group{:Measures,T,S,N}where {T,S}) where N =Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(:Measures))
193
+
Base.:*(a::Group{:Measures,T,S,N}where {T,S},b::Group{:Constants,T,S,N}where {T,S}) where N =Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(:Measures))
194
+
Base.:/(a::Group{:Constants,T,S,N}where {T,S},b::Group{:Measures,T,S,N}where {T,S}) where N =Group(a.v-b.v,coefprod(coef(a),coef(b)),Val(:Measures))
195
+
Base.:/(a::Group{:Measures,T,S,N}where {T,S},b::Group{:Constants,T,S,N}where {T,S}) where N =Group(a.v-b.v,coefprod(coef(a),coef(b)),Val(:Measures))
196
+
#Base.:+(a::Group{:Constants,T,S,N} where {T,S},b::Group{:Measures,T,S,N} where {T,S}) where {N,G} = Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(G))
197
+
#Base.:+(a::Group{:Measures,T,S,N} where {T,S},b::Group{:Constants,T,S,N} where {T,S}) where N = Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(:Measures))
198
+
#Base.:-(a::Group{:Constants,T,S,N} where {T,S},b::Group{:Measures,T,S,N} where {T,S}) where {N,G} = Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(G))
199
+
#Base.:-(a::Group{:Measures,T,S,N} where {T,S},b::Group{:Constants,T,S,N} where {T,S}) where N = Group(a.v+b.v,coefprod(coef(a),coef(b)),Val(:Measures))
200
+
Base.:*(a::Measurements.Measurement,b::Constant{D}) where D = a*D
201
+
Base.:*(a::Constant{D},b::Measurements.Measurement) where D = D*b
151
202
Base.:/(a::Measurements.Measurement,b::Constant{D}) where D = a*inv(b)
152
203
Base.:/(a::Constant{D},b::Measurements.Measurement) where D = a*inv(b)
153
-
Base.:+(a::Measurements.Measurement,b::Constant{D}) where D = a+constant(D)
154
-
Base.:+(a::Constant{D},b::Measurements.Measurement) where D =constant(D)+b
155
-
Base.:-(a::Measurements.Measurement,b::Constant{D}) where D = a-constant(D)
156
-
Base.:-(a::Constant{D},b::Measurements.Measurement) where D =constant(D)-b
157
-
#=Base.:*(a::Measurements.Measurement,b::Similitude.Constant{D}) where D = a*Constant{D}()
158
-
Base.:*(a::Similitude.Constant{D},b::Measurements.Measurement) where D = Constant{D}()*b
159
-
Base.:/(a::Measurements.Measurement,b::Similitude.Constant{D}) where D = a*inv(b)
160
-
Base.:/(a::Similitude.Constant{D},b::Measurements.Measurement) where D = a*inv(b)=#
161
-
Base.:*(a::Similitude.Constant{A},b::Constant{B}) where {A,B} =Constant{A*B}()
162
-
Base.:*(a::Constant{A},b::Similitude.Constant{B}) where {A,B} =Constant{A*B}()
163
-
Base.:/(a::Similitude.Constant{A},b::Constant{B}) where {A,B} =Constant{A/B}()
164
-
Base.:/(a::Constant{A},b::Similitude.Constant{B}) where {A,B} =Constant{A/B}()
204
+
Base.:+(a::Measurements.Measurement,b::Constant{D}) where D = a+D
205
+
Base.:+(a::Constant{D},b::Measurements.Measurement) where D = D+b
206
+
Base.:-(a::Measurements.Measurement,b::Constant{D}) where D = a-D
207
+
Base.:-(a::Constant{D},b::Measurements.Measurement) where D = D-b
0 commit comments