We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db66e2a commit 85d119dCopy full SHA for 85d119d
ext/ModelingToolkitUnitfulExt.jl
@@ -20,6 +20,8 @@ function MT._get_unittype(u::Unitful.Unitlike)
20
return Val(:Unitful)
21
end
22
23
+MT._oneunit(x::Unitful.FreeUnits) = x(1)
24
+
25
# Base operations for mixing Symbolic and Unitful
26
Base.:*(x::Union{MT.Num, Symbolic}, y::Unitful.AbstractQuantity) = x * y
27
Base.:/(x::Union{MT.Num, Symbolic}, y::Unitful.AbstractQuantity) = x / y
0 commit comments