

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A computational physics lab project where students are required to write a c++ program to generate points for the sierpinski carpet using given rules and plot the results. The project includes instructions for creating an html page to post the exercise, including a short description, a link to the source code file, the source code text, and the plot image.
Typology: Study Guides, Projects, Research
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Remember the “Sierpinski Carpet” from last week! Part 1 Write a C++ program to generate (x, y) points according to the following rules: (xnew, ynew) r (0.5, 0.27y) for r<0. (-0.139x+0.263y+0.57, 0.246x+0.224y-0.036) for 0.02<=r<=0. (0.17x-0.215y+0.408, 0.222x+0.176*y+0.0893) for 0.17 For your web images, make sure that the image is sized so that it reasonably fits on your html page. This can be done using the height and width options of the image html tag; example: __ For text regions use the html object tag; example: __