search for: x_rng

Displaying 2 results from an estimated 2 matches for "x_rng".

2012 May 11
1
domain/number line/range reduction problem
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 ranges that don't overlap the s ranges. The examples below demonstrate what I mean. I'm glossing over an obvious endpoint inclusion/exclusion issue here for simplicity, but in a perfe...
2012 May 12
2
range segment exclusion using range endpoints
...ts). I didn't get any replies last time...hoping for some this time. :) Currently I'm only coming up with brute force solutions to this issue (loops). I'm wondering if anyone has a better way to do this. Thank you for your help in advance! The problem: I have endpoints of one x range (x_rng) and an unknown number of s ranges (s[#]_rng) also defined by the range endpoints. I'd like to remove the x ranges that overlap with the s ranges. The examples below demonstrate what I mean. What is the best way to do this? Ex 1. For: x_rng = c(-100,100) s1_rng = c(-25.5,30) s2_rng = c(0.77,...