Why Loops Endbefore the loop, the loop must end.if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b ( i != e ) { claim i < e; ++i; } }if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b ( i != e ) { claim i < e; ++i; } }if ( b <= e ) { counting_theorem( b, e ); int i = b; while ( i != e ) ++i; } void counting_theorem( const int b, const int e ) interface { extend_stability b0 码力 | 134 页 | 1.30 MB | 6 月前3
Six Impossible Thingsthe goal of providing a solid foundation for all of mathematics. In 1931 Gödel’s Incompleteness Theorem shattered the dream, showing that for any consistent axiomatic system there will always be theorems0 码力 | 144 页 | 6.47 MB | 6 月前3
C++ Under the HoodPointer to (virtual) Member Function 91 godbolt.org/z/jTqzxGeeoC++ Under the Hood Fundamental Theorem of Software Engineering: Any problem can be solved by adding a layer of indirection. 92C++ Under0 码力 | 168 页 | 13.55 MB | 6 月前3
Behavioral Modeling in HW/SW Co-design Using C++ Coroutinesconditions well • Could use a scoped lock or latch/barrier, but need application of DeMorgan’s theorem • Example: std::mutex lock[100]; // Needs to be an ‘inverted’ mutex … std::scoped_lock joint_lock(lock[1]0 码力 | 44 页 | 584.69 KB | 6 月前3
Performance Mattersvariables is approximately normally distributed. STABILIZER repeatedly randomizes layoutCentral Limit Theorem execution times are normally distributed The sum of a sufficient number of independent, identically0 码力 | 197 页 | 11.90 MB | 6 月前3
Python 标准库参考指南 3.6.15 0: m, n = m // P, n // P if n % P == 0: hash_value = sys.hash_info.inf else: # Fermat's Little Theorem: pow(n, P-1, P) is 1, so # pow(n, P-2, P) gives the inverse of n modulo P. hash_value = (abs(m) % while waiting for a network connection to be set up. This means that it is difficult to build an interactive Web client using these functions without using threads. • The data returned by urlopen() or urlretrieve() had either no max-age or expires cookie-attribute, or an explicit discard cookie-attribute). For interactive browsers, the end of a session usually corresponds to closing the browser window. Note that the0 码力 | 1886 页 | 8.95 MB | 10 月前3
Python 标准库参考指南 3.6.15 0: m, n = m // P, n // P if n % P == 0: hash_value = sys.hash_info.inf else: # Fermat's Little Theorem: pow(n, P-1, P) is 1, so # pow(n, P-2, P) gives the inverse of n modulo P. hash_value = (abs(m) % while waiting for a network connection to be set up. This means that it is difficult to build an interactive Web client using these functions without using threads. • The data returned by urlopen() or urlretrieve() had either no max-age or expires cookie-attribute, or an explicit discard cookie-attribute). For interactive browsers, the end of a session usually corresponds to closing the browser window. Note that the0 码力 | 1886 页 | 8.95 MB | 10 月前3
Conan 2.8 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 785 页 | 4.95 MB | 10 月前3
Conan 2.7 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 779 页 | 4.93 MB | 10 月前3
Conan 2.6 Documentationdef confirmation(message): return args.force or ui.request_boolean(message) ui = UserInput(non_interactive=False) out = ConanOutput() remote = conan_api.remotes.get(args.remote) if args.remote else None classes to manage user input and user output: ui = UserInput(non_interactive=False) out = ConanOutput() • UserInput(non_interactive): class to manage user inputs. In this example we’re us- ing ui.request_boolean("Do proceed? (yes/no): in the command prompt. Note: you can use UserInput(non_interactive=conan_api.config.get("core:non_interactive")) too. • ConanOutput(): class to manage user outputs. In this example,0 码力 | 777 页 | 4.91 MB | 10 月前3
共 115 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12













