46 | | * we declare function `f` which returns the exponential of `x`: this is the function we want to approximate. |
47 | | * we create a `RemezSolver` object for '''4th-degree polynomials''' and '''real numbers'''. |
48 | | * we run the solver on the '''[-1,1] range''', approximating '''function `f`''' for '''30 iterations'''. |
| 46 | * We declare function `f` which returns the exponential of `x`: this is the function we want to approximate. |
| 47 | * We create a `RemezSolver` object for '''4th-degree polynomials''' and '''real numbers'''. As of now, no other number types are supported. |
| 48 | * We run the solver on the '''[-1,1] range''', approximating '''function `f`''' for '''30 iterations'''. More iterations mean more precise results, but you will find that 30 to 50 are usually enough. |