1 years, 44 days

## Comment...

With all due respect, I am aware that I am making mistakes. As I mentioned before, I am a beginner and I am putting in my best effort to learn Maple. I kindly request your assistance in implementing all the changes you mentioned above to achieve the desired result.

Regards...

## NM222.mw i'm just talking about any ...

NM222.mw
i'm just talking about any general nonlinear equation. I wrote k^3-1 as an example.
And even if it doesn't find root for an equation i already shared an equation exp(k)-k-1 with initial guess 0.5 and multiplicity 2.
You can check it in the previously attached file.

 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 >
 >

## correction...

I apologize for mixing up so many things.
In this file, I have created a program file for an iterative method. The purpose of this program is to find the roots of a function. To use the program, you need to call it and provide the function ('f_exp'), the initial guess ('t0'), and the multiplicity ('m'). The program will then provide the root within the specified tolerance.

Now, I would like to know how to call this program for a specific function (mentioned (K^3-1)) and obtain its basin of attraction.
Also i used Maple 21 this time.

nm(2).mw

 >
 >
 (1)
 >
 (2)
 >
 (3)
 >
 (4)
 >
 >

## My Goal...

@acer I am trying to plot basins of attraction for the three step iterative scheme NM-1. I am rewriting my problem to clear the confusion if any.  My problem is:
Consider the polynomial f(x) = (x2− 1)2 , which has zeros {±1} with multiplicity two. I want to use a grid of 400 × 400 points in a rectangle D ∈ C of size [−2, 2] × [−2, 2] and assign color green to each initial point in the basin of attraction of zero '-1' and the color red to each point in the basin of attraction of zero ‘1' when using NM-1 method with x0 as initial guess, m is multiplicity. The inner do-loop evaluates the values of w,u,v,r and s which are used in three step iterative method having steps y, z and x as first, second and third steps.  The attachement was saved in maple 21 as some of the commands in maple 18 were not working properly. So i'm using both now.

I am quite happy by the response and thankfull for giving your precious time and knowledge. Stay blessed

## Modifying Basins of Attraction code...

Here is my three step iterative method but its not working as required. Giving error. Here is the code attached.

## Plotting Basins of attraction...

Thank you for your response. The code you suggested doesn't work properly at Maple 18 software. My problem is:
Consider the polynomial p1(z) = (z2− 1)2 , which has zeros {±1} with multiplicity two. I want to use a grid of 400 × 400 points in a rectangle D ∈ C of size [−2, 2] × [−2, 2] and assign color green to each initial point in the basin of attraction of zero '-1' and the color red to each point in the basin of attraction of zero ‘1' when using Newton method.

 Page 1 of 1
﻿