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
The current usage of s to indicate left/right limit is error prone. It should be replaced by a special type DirectedNumber, which special functions like log, etc. override.
(I want to think about whether a more general notion of choice of branch would be better.)
The text was updated successfully, but these errors were encountered:
"""`Directed` represents a number that is a limit from either left (s=true) or right (s=false)"""
immutable Directed{s,T}
x::Tend
Base.convert{s}(::Type{Directed{s}},x) =Directed{s,eltype(x)}(x)
*{s}(a::Directed{s},b::Number) =Directed{s}(a.x*b)
*{s}(b::Number,a::Directed{s}) = a*b
const ⁺ =Directed{true}(true)
const ⁻ =Directed{false}(true)
1⁺
1⁻
I think all it takes then is to consider log, etc. oriented from [0,-∞) not (-∞,0], at least for _2F1 where we need to use -z.
The current usage of
s
to indicate left/right limit is error prone. It should be replaced by a special typeDirectedNumber
, which special functions likelog
, etc. override.(I want to think about whether a more general notion of choice of branch would be better.)
The text was updated successfully, but these errors were encountered: