Mark Wells

Results 34 comments of Mark Wells

@giordano Thanks for the reply but I don't see a type declaration that would allow me to do something like `f(x::UnitfulAngles.Angle) = sin(x)` where `x` could be `x=2u"°"` or `x=2u"rad"`

@giordano The method you suggest yields the following ```julia julia> using Unitful julia> const Angle{T} = Quantity{T,NoDims,u"rad"} Quantity{T,NoDims,rad} where T julia> f(x::Angle) = sin(x) f (generic function with 1 method)...

I like your type definition of ```julia julia> const Angle{T} = Quantity{T, NoDims, typeof(u"rad")} Quantity{T,NoDims,Unitful.FreeUnits{(rad,),NoDims,nothing}} where T ``` Would this be something worth considering for inclusion in [Unitful](https://github.com/ajkeller34/Unitful.jl)?

I've opened a (fairly ambitious) pull request #221. I would appreciate feedback.

Showing how to change the default REPL formatter could be a great addition to the documentation.

Maybe something like `all(isapprox.(x,y))`?

Perhaps but it could serve as a fallback for now instead of the current always `false` method.

Seems rather straight forward to implement. ```julia julia> using Unitful Unitful.register(@__MODULE__); @unit bit "bit" Bit 1 true; julia> 1u"kbit/s" 1 kbit s^-1 julia> 2u"J/bit" 2 J bit^-1 julia> typeof(u"bit") Unitful.FreeUnits{(bit,),NoDims,nothing}...

This doesn't seem to fit in the base Unitful package but could potentially (if there was someone motivated to do so) be apart of a new package. There are already...

I like the idea of UnitfulBase. However, it seems to me that it would be impossible to use UnitfulGauss and Unitful (the SI defaults) together as they would have overriding...