EssayGhost Assignment代写,Essay代写,网课代修,Quiz代考

EssayGhost-Essay代写,作业代写,网课代修代上,cs代写代考

一站式网课代修,论文代写

高质量的Assignment代写、Paper代写、Report代写服务

EG1hao
网课代修代上,cs代写代考
数学代写案例
您的位置: 主页 > 理科代写案例 > 数学代写案例 >
数学代写:Julia Set代写 加工程序代写 Homework代写 - math代写
发布时间:2021-07-25 16:49:18浏览次数:
· an abs() method which returns the absolute value of the complex number as a float or a double· a toString method that returns complex numbers such as (.7, 1.3) in the form .7 + 1.3i Julia sets Julia.pde  Julia Set代写Write code that displays the Julia set for the function f(x) = x2+ C for a given C (make C a variable that changes when the mouse is clicked, so that it is easy to produce any Julia set).Set the escape radius to 2, but make it a constant in your code that is easy to change.Set the bailout to 10 initially, and add code so that the up and down arrows increase and decrease the bailout value.Color code each complex number based on its escaping or not escaping:· Points that don t escape should all be the same color· Points that escape should be based on the number of iterations required for it to escape, somehow scaling the color (see lerpColor() as one way to scale colors)Use the ComplexNumber class to support your code.  See earlier in this document for details on the ComplexNumber class.In many ways, this code will be identical to the 1D Julia Sets we made in the lab, but instead of floats, you are using ComplexNumbers.Display the C value in the sketch itself using the text() method.Add some additional visual features to your sketch.  For example:· You could show the orbit of a seed (my code showed a hollow circle for each number in the orbit, with the circles getting smaller with each iteration)· You could allow zooming (if you do, it would be useful to be able to reset the zoom)· You could think of something else.Zip everything together and submit it to Canvas.  See next page for some advice Advice    Julia Set代写Use Processing s map() function to help you easily convert the values in one range to the values in another range.  Specifically, we are trying to map the interval of numbers [-2, 2] to the interval of numbers [0, width].Your sketch will work much better if you write your data to the pixels[] array rather than using Processing s point() command (this is similar to what you did with your image processing filters).Recall that my Julia Set sketch allowed zooming in.In case you are interested one of the challenges in doing all of the computations is that it can take a while.  So, I actually don t plot my fractals pixel by pixel directly on the screen.  Rather, I create a PImage object in Processing (see http://processing.org/reference), and compute all the pixels behind the scenes .  Then, once I have made that image, I display it in the Processing window.It s expensive to recalculate your Julia set 60 times per second.  This approach also made it much easier for me to implement the zooming effect without this approach, I would need to repeatedly calculate the entire fractal, 60-ish times per second.  But by storing the fractal as a pre-calculated image, I could re-display it 60-ish times per second without needing to recalculate it.  The only time I recalculated it was when it was time to zoom in or out.Julia Set代写Julia Set代写更多其他:code代写 CS代写 cs作业代写 C语言代写 Data Analysis代写 homework代写 java代写 java代码代写 app代写  assignment代写 C++代写 CS代写合作平台:315代写 315代写  写手招聘 Essay代写

所有的数学代写范围:essayghost为美国、加拿大、英国、澳洲的留学生提供数学代写、math代写、数学作业代写、math作业代写、数学代考、math代考等留学生数学作业代写、exam代考服务。