Fast algorithm to find root of strictly decreasing function

In summary, The fastest algorithm to find the closest root for a strictly decreasing function is the Newton-Raphson Method. If the derivative of the function is not known, the secant method can be used instead.
  • #1
dabd
25
0
What is the fastest algorithm to find the closest root (such that the function value at that point is positive to an error but never negative, if not exactly zero) for a strictly decreasing function?
 
Technology news on Phys.org
  • #2
If you can find the derivative of the function, Newton's tangent method, otherwise secant method.
 
  • #3
dabd said:
What is the fastest algorithm to find the closest root (such that the function value at that point is positive to an error but never negative, if not exactly zero) for a strictly decreasing function?

In the Newton-Raphson Method, you do not need to find the derivative instead

Code:
private static double df(double x) {
		double del=0.000001;
		double x0=f(x+del)-f(x);
		x0=x0/del;
		return x0;
	}
 

1. What is a strictly decreasing function?

A strictly decreasing function is a mathematical function that always decreases as the input values increase. In other words, as the input values increase, the output values always decrease.

2. Why is it important to find the root of a strictly decreasing function?

Finding the root of a strictly decreasing function is important because it allows us to determine where the function crosses the x-axis, or where the input value is equal to 0. This can be useful in many applications, such as finding the break-even point in business or determining the equilibrium point in physics.

3. What is an algorithm?

An algorithm is a set of step-by-step instructions for solving a problem or completing a task. In the case of finding the root of a strictly decreasing function, an algorithm would be a series of steps that can be followed to determine the input value that produces an output value of 0.

4. How does a fast algorithm differ from a regular algorithm?

A fast algorithm is designed to complete the task or solve the problem in a shorter amount of time compared to a regular algorithm. This is achieved by using more efficient processes and techniques, such as reducing the number of calculations or using parallel processing.

5. Can a fast algorithm be used to find the root of any strictly decreasing function?

Yes, a fast algorithm can be used to find the root of any strictly decreasing function. However, the efficiency of the algorithm may vary depending on the complexity of the function and the techniques used in the algorithm. In some cases, a regular algorithm may be just as effective.

Similar threads

  • Programming and Computer Science
Replies
30
Views
4K
Replies
9
Views
1K
  • Programming and Computer Science
Replies
14
Views
2K
  • Programming and Computer Science
Replies
1
Views
953
  • Programming and Computer Science
Replies
2
Views
895
  • Programming and Computer Science
Replies
1
Views
1K
  • Programming and Computer Science
Replies
4
Views
983
  • Programming and Computer Science
Replies
2
Views
1K
Replies
16
Views
1K
  • General Math
Replies
5
Views
843
Back
Top