Search draw-an-epicycloid-graph-based-on-the-given-integer-values-of-s-a-b-and-n-where-b-cannot-be

Draw an epicycloid graph based on the given integer values of s a b and n where b cannot be

 
 

Top Questions

1.Draw an Epicycloid graph based on the given integer values of s, a, b, and n, where b cannot be ...

onnect a line between every two consecutive points (xi, yi) and (xi+1, yi+1), where 0 <= i <= n. xi = s * ((a + b) * cos (i * PI) - b * cos ((a + b) / b * i * PI)) yi = s * ((a + b) * sin (i * PI) - b * sin ((a + b) / b * i * PI)) Verify with s = 10, a = 19, b = 5, n = 1000 to get this displayed result. Note that the sin and cos trigonometry functions accept a radiant value not angle. For example, 30 degree should be replaced with PI/180*30 instead. Moreover, the divisions inside the functions need to be kept in double not int precision in order to render a correct result.
View More

1.AU MAT 120 Systems of Linear Equations and Inequalities Discussion

mathematicsalgebra Physics