POV-Ray : Newsgroups : povray.general : CNRS : Re: CNRS Server Time
26 Apr 2024 15:52:52 EDT (-0400)
  Re: CNRS  
From: Le Forgeron
Date: 21 Oct 2019 13:30:20
Message: <5dadeb2c$1@news.povray.org>
Le 19/10/2019 à 17:55, Francois LE COAT a écrit :
> Hi,
> 
> Is it possible to translate the following equation with POV-Ray ?
> 
>     <https://imaginary.github.io/80-cnrs/>
> 
> I don't know how to begin ... It's an interesting problem :-)
> 
> Best regards,
> 

Equation is:

((((x+2*a)²+(y+2*b)²-1)²-c+2*z²+d*(y+2*b)²))*((((x+2*a)²+(y-2*b)²-1)²-c+2*z²+d*(y-2*b)²))*((((x-2*a)²+(y/(2*b+1))²-1)²-c+2*z²+d*(y/(2*b+1))²))-10*e

a, b, c, d & e are the sliders, but I cannot get their values from the page.

Yet, the "i" link open a subpage with

((((x+1)²+(y+1)²-1)²-1/2+2*z²+1/2*(y+1)²))*
((((x+1)²+(y-1)²-1)²-1/2+2*z²+1/2*(y-1)²))*
((((x-3/2)²+(y/2)²-1)²-1/2+2*z²+1/2*(y/2)²))-1

which is fine enough to ask wolfram to expand to get a polynomial
expression;

81/4 x^4 y^4 z^2 + 12 x^4 z^4 + 8 x^3 z^4 + 21/2 x^2 y^6 z^2 + 18 x^2
y^2 z^4 + 94 x^2 z^4 + 11 x y^6 z^2 + 26 x y^2 z^4 + 2 x z^4 + (9 y^8
z^2)/4 - (11 y^6 z^2)/8 + (33 y^4 z^4)/4 + 55 y^2 z^4 + 8 z^6 + (49
z^4)/4 + ... + x^12 + 2 x^11 - (17 x^10)/2 - (55 x^9)/2 - (47 x^8)/16 +
(157 x^7)/2 + (427 x^6)/4 + (37 x^5)/2 - (565 x^4)/8 - (129 x^3)/2 - (75
x^2)/4 + x - 12 y^2 + 1/16
(84 terms)

And it is just a transcription away from povray SDL with either poly syntax

http://wiki.povray.org/content/Reference:Poly

(good luck with the ordering of the coefficients) or polynomial syntax
(same object, easier to input)

http://wiki.povray.org/content/Documentation:Tutorial_Section_3.2#Polynomial_made_easy

You can of course experiment more with wolfram, keeping a to e if you dare.


Post a reply to this message

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