GCD of Complex Numbers Matlab script

SPONSORED LINKS

    Specification

  • Version:
  • File size: 0 KB
  • File name: CMPLX_GCD_2_Squares_July2005.zip
  • Last update:
  • Platform: Windows / Linux / Mac OS / BSD / Solaris
  • Language: Matlab
  • Price:Freeware
  • Company: Sundar Krishnan (View more)

GCD of Complex Numbers script description:




Publisher review:
GCD of Complex Numbers - Similar to gcd_SK_GHB.m's modification over gcd.m Additional (Success) Note on Simplification :Similar to gcd_SK_GHB.m's modification over gcd.m, here too, we suppress u2, v2 and t2 calcs at intermediate steps to avoid calculations on the "0, 1" part. Refer Bradley's suggestion as given in Knuth, 4.5.2, Vol2 / P342, 343.However, in tests involving upto 20000 random numbers in the Time Diff Test below, the time taken by the Suppressed case has surprisingly come out to be higher !

I developed CMPLX_GCD.m because I could not find a Matlab's Standard function which could find the GCD for complex numbers. CMPLX_GCD is on the lines of Matlab's standard gcd.m ; I developed CMPLX_GCD.m mainly to solve some Exercise problems of I.2, specially Problem 15, in Pages 15 - 18 of the book : A course in Number Theory and Cryptography by Neal Koblitza and b are input complex vectors of the same size, whose GCD is output as g. c and d output vectors are such that a.*c b.*d = g str_q_limit is by default = 'round' ; other choices are 'floor' and ' ceil'. It is used to get Gaussian Integers (complex numbers whose real and imag are integers) of the quotient at every intermediate step. The Default chosen is round (q).You may also refer to Gen_Primes_Eq_2_Sqs.m where I "generate / discover" a series of primes which are sum of squares of 2 integers.The Usage Egs below show many variations of applying this programme. More explanation of Problems 15a,b, c of Exercise I.2 of the book is given in my notes at the end. A good explanation of the concept can also be had in Gen_Primes_Eq_2_Sqs.m
GCD of Complex Numbers is a Matlab script for Mathematics scripts design by Sundar Krishnan. It runs on following operating system: Windows / Linux / Mac OS / BSD / Solaris.
GCD of Complex Numbers - Similar to gcd_SK_GHB.m's modification over gcd.m

Operating system:
Windows / Linux / Mac OS / BSD / Solaris

Latest script and internet news

222

222

22

Posted on: 18 Jul 2023 22:27 by A. Brown

111

111

111

Posted on: 18 Jul 2023 22:24 by A. Brown

The permanently active Push system offered by the new Google Chrome 42

The permanently active Push system offered by the new Google Chrome 42

Hacked By !Sc-sT

Posted on: 17 Mar 2015 07:57 by A. Brown

SPREAD THE WORD

User Rating


Rating: 2.2 out of 5
Based on 13 ratings. 13 user reviews.

  • Currently 2.15 out of 5
  • 1
  • 2
  • 3
  • 4
  • 5