Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Implement a Matlab function that creates a Newton basin image with the following inputs and outputs: Inputs cThe c oordinates of a polynomial p(x) ax

image text in transcribed

Implement a Matlab function that creates a Newton basin image with the

following inputs and outputs:

Inputs cThe c oordinates of a polynomial p(x)

ax = [r1 r2m1m2] the limits of the plane [r1 r2][im1 im2] of inital values in the

complex plane.

ng = [nr ni] the number of grid points in the real and imaginary direction, respec-

tively.

N - A maximum number of newton iterations.

Outputs

An image of ord(p)+1 colors, where each color corresponds to a dierent converged

root, and black corresponds to no root being found. While you may use any color

mapping you like (for example, the hsv, built-in color array) to correspond to

the dierent roots, please use black to denote that no root was found. Put the

polynomial in the title of the image. (Use a tolerance of 10??6 to check convergence)

The rst line of your code should read

function newton basin(c,ax,ng,N)

2. (35 points) Implement a Matlab function that creates a Newton basin image with the following inputs and outputs: Inputs CE Cn The coordinates of a polynomial p(z) stio fo n th i M . ax r r2 mi mal the limits of the plane [r1 r2] x [imi ?m2] of inital values in the complex plane. ng nr ni] the number of grid points in the real and imaginary direction, respec- tively. . N - A maximum number of newton iterations. Outputs . An image of ord(p)+1 colors, where each color corresponds to a different converged root, and black corresponds to no root being found. While you may use any color mapping you like (for example, the hsv, built-in color array) to correspond to the different roots, please use black to denote that no root was found. Put the polynomial in the title of the image. (Use a tolerance of 10-6 to check convergen The first line of your code should read function newton basin(c,ax, ng,N) 2. (35 points) Implement a Matlab function that creates a Newton basin image with the following inputs and outputs: Inputs CE Cn The coordinates of a polynomial p(z) stio fo n th i M . ax r r2 mi mal the limits of the plane [r1 r2] x [imi ?m2] of inital values in the complex plane. ng nr ni] the number of grid points in the real and imaginary direction, respec- tively. . N - A maximum number of newton iterations. Outputs . An image of ord(p)+1 colors, where each color corresponds to a different converged root, and black corresponds to no root being found. While you may use any color mapping you like (for example, the hsv, built-in color array) to correspond to the different roots, please use black to denote that no root was found. Put the polynomial in the title of the image. (Use a tolerance of 10-6 to check convergen The first line of your code should read function newton basin(c,ax, ng,N)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

The Database Experts Guide To SQL

Authors: Frank Lusardi

1st Edition

0070390029, 978-0070390027

More Books

Students also viewed these Databases questions

Question

Explain the difference between coaching and counseling.

Answered: 1 week ago