Write a program using Bisection method and method of false position.

Click For Summary

Discussion Overview

The discussion revolves around writing a program that implements the Bisection method and the method of false position to find the roots of an equation f(x)=0. The context includes programming challenges faced by a student who is not a computer science major and is seeking guidance on how to approach the assignment.

Discussion Character

  • Homework-related
  • Technical explanation

Main Points Raised

  • A participant expresses concern about their programming assignment and seeks guidance on starting to write a program for finding roots of an equation.
  • Another participant suggests beginning with pseudo code for the two methods required.
  • There is a request for clarification on the programming language needed for the assignment.
  • A further inquiry is made about whether the polynomial equation f(x) needs to be included in the code.
  • One participant provides an example of pseudo code to illustrate the concept of coding structure.

Areas of Agreement / Disagreement

The discussion does not present any consensus, as participants are still clarifying the requirements and seeking foundational guidance on the assignment.

Contextual Notes

There are limitations regarding the specific programming language required and the exact form of the polynomial equation that needs to be implemented, which remain unresolved.

DaisyShafi
Messages
2
Reaction score
0
Hello everyone.
I'm new here and I'm not not a computer science student.
But, I have to take programming to complete my degree.
So, now I'm in a great depression about this assignment.
My lecturer ask me to write a program to find root of an equation f(x)=0 for specific f. Both methods are need to be in my assignment.
So, where should I start?
 
Physics news on Phys.org
Hello DaisyShafi,

First, write your two methods using pseudo code.

What language do you need to use?

J.
 
What language ? English.
Can you show me the step?
Do I need to include the f(x) polynomial equation into the coding?
 
What computer language?

Pseudo code is writing something like:

Code:
for the integer n given as an argument:
while n > 0 do
     n <- n -1
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
Replies
4
Views
2K
Replies
11
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 8 ·
Replies
8
Views
3K