POV-Ray : Newsgroups : povray.text.scene-files : greatest common divisor : greatest common divisor Server Time
28 Mar 2024 16:16:00 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-2023 Persistence of Vision Raytracer Pty. Ltd.