The Mathematica Journal
Volume 10, Issue 2

Search

In This Issue
Articles
In and Out
Trott's Corner
Beyond Sudoku
New Products
New Publications
Calendar
News Bulletins
New Resources
Classifieds

Download This Issue 

About the Journal
Editorial Policy
Staff and Contributors
Submissions
Subscriptions
Advertising
Back Issues
Contact Information

In and Out
Edited by Paul Abbott

Working with Intervals

Q: A list of times of the form represents the periods when a particular system is not working. For two such lists, how can I determine the periods when both systems are not working?

A: Carl Woll (carlw@wolfram.com) answers: The function timelist simulates non-overlapping timing data of the form .

Here are two lists of timing data.

After converting each period into an Interval using Apply, IntervalIntersection returns those periods when both systems are not working.



     
About Mathematica | Download Mathematica Player 
© Wolfram Media, Inc. All rights reserved.