Define computation tasks with automatic caching and dependency tracking.