0% found this document useful (0 votes)
3 views2 pages

Bisection Method Algorithm Steps

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

Bisection Method Algorithm Steps

Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Algorithm for Bisection Method D1

1. Start
2. Import libraries
3. Create integers variables and parameters
4. Create double variables
5. Assign ans as char
6. Let string func=“null”
7. Let string value equal to nothing to calculate
8. Display bisection method for determining the roots of the equation f(x)=0
9. Display to find the interval we use the intermediate theorem which state that f(a). f(b)<0
10. For log argument xlog10+6=0 press1, for ax-box=0 press2, for ax-bx+c=0 press3.
11. Let parameters equal to argument.
12. If parameters equal to 1
13. Display this function is only for log arguments xlog10 x+a=0
14. Input value for a and b
15. If a and b are valid integers, go to next step else repeat step 13
16. Display do you have to intervals ? Yes/No.
17. If ans is equal to n or N
18. Create an interval for ans=x else provide 1st interval
19. Provide 2nd interval
20. Set how many iterations
21. Let Total equal to total
22. do iteration get intv (1) and intv(2)
23. else if parameter equal 2
24. Display ax-bx=0 as parameter 2
25. Display does your question have any cos,sin or tan? Y/N
26. If ans equal to y or Y
27. Display what does it contain?, input a function
28. Provide value for a
29. Provide power of x
30. Provide value for b
31. Provide power of x
32. Where C equal to 1 and ans equal to x
33. Display do you have the intervals? n/N
34. If ans equal to n or N
35. Let the result of ans equal x, else
36. Provide 1st interval
37. Provide 2nd interval
38. How many iterations?
39. Let Total equal to total, do iteration 2
40. get intv 1 and intv 2
41. let power C equal 1
42. else if parameters equal to 3
43. Display 3 parameters ax-bx+c =0
44. Provide value for a
45. Provide power of x
46. Provide value for b and c
47. Display do you have the interval Y/N
48. Let calculate equal to quadratic
49. If ans equal to n or N
50. For interval 3 let ans equal to x else
51. Provide 1st interval
52. Provide 2nd interval
53. How many iterations?
54. Let Total equal total, do itration 3
55. get intv 1 and intv 2
56. end

You might also like