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?
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
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.