A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://TheAlgorithms.github.io/C-Plus-Plus/d6/d2d/modular__inverse__simple_8cpp_source.html below:

TheAlgorithms/C++: math/modular_inverse_simple.cpp Source File

Go to the documentation of this file. 21

uint64_t

imod

(uint64_t x, uint64_t y) {

38

std::cout <<

"First case testing... \n"

;

40

assert(

imod

(3, 11) == 4);

41

std::cout <<

"\nPassed!\n"

;

43

std::cout <<

"Second case testing... \n"

;

45

assert(

imod

(3, 26) == 9);

46

std::cout <<

"\nPassed!\n"

;

48

std::cout <<

"Third case testing... \n"

;

50

assert(

imod

(7, 26) == 15);

51

std::cout <<

"\nPassed!\n"

;

53

std::cout <<

"\nAll test cases have successfully passed!\n"

;

uint64_t imod(uint64_t x, uint64_t y)

for assert

static void test()

self-test implementations

int main()

Main function.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4