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/d9/d5d/extended__euclid__algorithm_8cpp_source.html below:

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

Go to the documentation of this file. 24template

<

typename

T,

typename

T2>

27

*r = *r0 - (quotient * temp);

41template

<

typename

T1,

typename

T2>

70template

<

typename

T,

typename

T2>

83

*y = temp - (A / B) * (*y);

93

std::cout <<

gcd

<<

" "

<< x <<

" "

<< y << std::endl;

95

std::cout <<

gcd

<<

" "

<< x <<

" "

<< y << std::endl;

void extendedEuclid_1(T1 A, T1 B, T1 *GCD, T2 *x, T2 *y)

void update_step(T *r, T *r0, const T2 quotient)

void extendedEuclid(T A, T B, T *GCD, T2 *x, T2 *y)

int main()

Main function.

int gcd(int num1, int num2)


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