POV-Ray : Newsgroups : povray.text.scene-files : greatest common divisor : greatest common divisor Server Time
14 Aug 2022 03:38:17 EDT (-0400)
  greatest common divisor  
From: jr
Date: 13 Jan 2022 11:35:00
Message: <web.61e053bc97dcb06aea8869266cde94f1@news.povray.org>
hi,

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


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

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