The issue is the shape turns out very abruptly for m=1/6,2/6,3/6…& n1=n2=n3=0.3, I just get a circle.
And for the n1=60,n2=55,n3=30 & for odd m I get weird shapes. Somehow the end point & the first point are not matching together.
It works for some values but for many values of n1,n2,n3,m , it doesn’t produce the desired shape.
Checked the code & formula countless times! Don’t know whats the issue?
Thanks.

-a- not try to force it by the CLOSE if math not good
-b- show what you calculate
-c- check on the ?m?/4
actually use m/2 and it might work for all m ( untested )

hi thanks. WIth the m/4 part, i am using the formula as it is. It just gives circle when m is changed to fraction. And for n1,n2,n3 with different values, it works for even m but not for odd m.
Though I looped it twice for m=7 & it gave me different result

Sorry I cant seem to understand. From what I can understand,the issue doesnt seem to be only assymetric. it shows different result for values of m. Check for fractions. it produces only circles.

can you please elaborate on the math rule you are suggesting based on 3points ?
thanks

i mean ‘a’ ‘b’ ‘m’ must be in a way that for
theta = 0 and theta = 2*PI
give same result for r
to give a symmetric shape ?correct? or better CLOSED shape?
( sorry wording )

Your suggestion might work but that would defeat the purpose of getting different shapes with changing these values.
I executed the p5 & processing coding in github too but it produces the same result. I tried the desmos & it works fine.
So the issue seems to be with abs & pow function probably.

I calculated the values (m1/4theta) when m=1/6 ,2/6,3/6…
Turns out it only produces 0.That makes r=1. That explains the circle.
So the issue is not with pow or abs but the way it calculates the fraction.
Its very strange since I haven’t encountered any such problem ever in processing with calculation.

Don’t know if i am missing out on something but something as trivial as m=1/4 is giving me 0.0 value in processing. I have no clue why it’s happening. Any guidance would help. Thanks.

yes @GoToLoop Thanks.Sometimes a simple problem is hard to figure out.

Calculating m with varying n & d with 2dTWO_PI cycles gives interesting results but the asymmetric issue still persists with d=1 & n=odd numbers for just TWO_PI cycle.

@kll you were right. The issue lies in asymmetrical nature of shapes with odd numbers.Working on it.
here are some results: