Approximate roots of an equation:

input output
f(x)= =0
Minimun difference between roots=
b=
a=

Intoduction:

The table above can compute the approximate values of the roots of a function between x= a and b. However, all roots must be larger than the "minimun difference between roots". Also, this program cannot find double, quadruple, etc, roots due to the defect of this program.

Rule:
Please input any function of x into f(x)=..., (e.g. x+1). If you want to use power of x, log..., please read the table below.
The value of b must be not equal to a. The "minimun difference between roots"cannot be too large, otherwise the calculation will be too slow.

f(x)=... Please input
x^n (n is a natural number) Math.pow(x,n)
ln(x) Math.log(x)
square root of x Math.sqrt(x)
cos x Math.cos(x)
arc-cos x Math.acos(x)
PI Math.PI

For example, if you want to insert f(x)=x^9+cosx+1, you need to input "Math.pow(x,9)+Math.cos(x)+1" into the box of f(x)=...

Hosted by www.Geocities.ws

1