Why some polygons disappear when applying sin function?

some polygons disappear when applying sin function in Curve.Offset, Curve.Offset polygons are in blue and the original polygons are black.

@abdelgawad See if using a code block instead of the formula node helps.
The formula node seems to be throwing up extremely large values and the generated geometry is probably very large (and hence seem to disappear)


aMath.Sin(bx);

@abdelgawad this has been discussed before on this post Why Math.sin values are different from sin values in formula?

Sorry for disturbance, I have found the solution , I must decrease step value to generate number of items => number of polygons