POV-Ray : Newsgroups : povray.text.scene-files : greatest common divisor : greatest common divisor Server Time
2 Dec 2023 14:36:20 EST (-0500)
  greatest common divisor  
From: jr
Date: 13 Jan 2022 11:35:00
Message: <web.61e053bc97dcb06aea8869266cde94f1@news.povray.org>

posting my (naive) implementation of the "Euclidean"[*] method to calculate the
gcd, in case it'll be of use to others.  googling for "gcd" (and spelled out) on
the news.povray site, surprising to me, got zero results.

[*] <https://en.wikipedia.org/wiki/Greatest_common_divisor#Euclidean_algorithm>

regards, jr.

Post a reply to this message

Download 'gcd.pov.txt' (1 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.