Re: [R] domain/number line/range reduction problem

2012-05-11 Thread Ben quant
Clarification/correction: Ex 5 isn't consistent with the other examples To be consistent with the other examples the resulting ranges would be something like: xa_rng = c(-100,-100) xb_rng = c(100,100) or just... xa_rng = -100 xb_rng = 100 However, my original Ex 5 would be a good solution if

[R] domain/number line/range reduction problem

2012-05-11 Thread Ben quant
Hello, Currently I'm only coming up with brute force solutions to this issue. Wondering if anyone knows of a better way to do this. The problem: I have endpoints of one x range (x_rng) and an unknown number of s ranges (s[#]_rng) also defined by endpoints. What I want are the parts of the x range