August 2026
Intermediate
144 pages
4h 23m
English
Before we can devise an algorithm for a function, we must know its purpose—the same principle at work when we prompt an artificial intelligence (AI) tool. We thus specify the function’s assumed initial state—its preconditions—and the desired end state—postconditions. This chapter explains how and where to provide this information. We first explain the type of language used to express preconditions and postconditions.
Specifications ...
Read now
Unlock full access