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 idea of adding a number to an interval always sounded odd to me. Maybe mark the add_n/3 predicate as deprecated in the next version of the library?
I haven't forgotten of your comment, I'm still thinking about it.
I remember seeing some examples where one could have added a number N (i.e. a degenerate interval i(N,N) ) to an interval i(M,L).
I'll have to look for that practical example(s) where such a thing could occur in applications.
You're probably right here, and this predicate could be flagged as deprecated in the next release as unnecessary; I'll have to do some more reading till then though, before agreeing with its removal.
ia/interval_arithmetic.lgt
Line 86 in aa5908a
I think that maybe it'd be better to use
add/3
adding the intervalsi(N,N)
andi(Xa,Xb)
instead of rewriting the logic insideadd_n/3
.How it could go like:
What do you think @pmoura ?
The text was updated successfully, but these errors were encountered: