POV-Ray : Newsgroups : povray.pov4.discussion.general : Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0) Server Time
5 Feb 2025 15:08:39 EST (-0500)
  Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0) (Message 1 to 5 of 5)  
From: William F Pokorny
Subject: Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0)
Date: 28 Jan 2025 23:32:16
Message: <6799af50$1@news.povray.org>
Adding new f_round() and f_gcd() inbuilt functions to the yuqk fork. I 
believe the f_round() function will be useful. Less sure of the f_gcd() 
function, but it's there to try.

Attached and image generated with the attached scene file.

Bill P.


Post a reply to this message


Attachments:
Download 'f_round_gcd.png' (98 KB) Download 'f_round_gcd.pov.txt' (1 KB)

Preview of image 'f_round_gcd.png'
f_round_gcd.png

From: Bald Eagle
Subject: Re: Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0)
Date: 29 Jan 2025 10:35:00
Message: <web.679a4a73b996a54c327467e125979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:
> Adding new f_round() and f_gcd() inbuilt functions to the yuqk fork. I
> believe the f_round() function will be useful. Less sure of the f_gcd()
> function, but it's there to try.

gcd is useful.

https://news.povray.org/web.6692de0293217bca1f9dae3025979125%40news.povray.org

https://news.povray.org/web.66a51e9b3bd24dfe1f9dae3025979125%40news.povray.org

Any chance at adding f_lcm()?

- BW


Post a reply to this message

From: William F Pokorny
Subject: Re: Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0)
Date: 29 Jan 2025 12:15:26
Message: <679a622e$1@news.povray.org>
On 1/29/25 10:34, Bald Eagle wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
>> Adding new f_round() and f_gcd() inbuilt functions to the yuqk fork. I
>> believe the f_round() function will be useful. Less sure of the f_gcd()
>> function, but it's there to try.
> 
> gcd is useful.
> 
> https://news.povray.org/web.6692de0293217bca1f9dae3025979125%40news.povray.org
> 
> https://news.povray.org/web.66a51e9b3bd24dfe1f9dae3025979125%40news.povray.org
> 
> Any chance at adding f_lcm()?
> 
> - BW
> 

I apparently missed that first post when you made it.

The second I remember because I used that scene to start chasing some 
bug. A bug-ball I apparently dropped. At the moment I cannot for the 
life of me remember what it was about. :-(

Anyhow. I can add f_lcm(). Do you have applications in mind?

Bill P.


Post a reply to this message

From: Bald Eagle
Subject: Re: Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0)
Date: 29 Jan 2025 13:55:00
Message: <web.679a78d0b996a54c327467e125979125@news.povray.org>
William F Pokorny <ano### [at] anonymousorg> wrote:

> Anyhow. I can add f_lcm(). Do you have applications in mind?

https://news.povray.org/web.6692e0a94551427b1f9dae3025979125%40news.povray.org

But I have also seen some crazy patterns in Desmos using lcm and gcd.

- BW


Post a reply to this message

From: William F Pokorny
Subject: Re: Suggest v4.0 f_round() and f_gcd() functions. (yuqk R18 v0.6.12.0)
Date: 29 Jan 2025 15:15:25
Message: <679a8c5d$1@news.povray.org>
On 1/29/25 13:52, Bald Eagle wrote:
> William F Pokorny <ano### [at] anonymousorg> wrote:
> 
>> Anyhow. I can add f_lcm(). Do you have applications in mind?
> 
> https://news.povray.org/web.6692e0a94551427b1f9dae3025979125%40news.povray.org
> 
> But I have also seen some crazy patterns in Desmos using lcm and gcd.
> 
> - BW
> 
>

Thanks.

Cool. Now that I see it, I vaguely remember your post! :-)

Bill P.


Post a reply to this message

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