Commit f5e46532 authored by Taddeüs Kroes's avatar Taddeüs Kroes

Fixed Newton-Raphson method.

parent e1c1d809
#include "func_ptr.h"
#define MAX_STEPS 1000
double newton_raphson(func_ptr f, func_ptr df, double x_start, int *steps) {
double x = x_start, last_x = x - 1;
......
......@@ -4,7 +4,6 @@
#include "newton_raphson.h"
#define EPSILON 1e-11
#define MAX_STEPS 1000
#define BISEC_STEPS 5
/*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment