Function implements the Plotter interface, drawing a line for the given function.
| 13 | // Function implements the Plotter interface, |
| 14 | // drawing a line for the given function. |
| 15 | type Function struct { |
| 16 | F func(x float64) (y float64) |
| 17 | |
| 18 | // XMin and XMax specify the range |
| 19 | // of x values to pass to F. |
| 20 | XMin, XMax float64 |
| 21 | |
| 22 | Samples int |
| 23 | |
| 24 | draw.LineStyle |
| 25 | } |
| 26 | |
| 27 | // NewFunction returns a Function that plots F using |
| 28 | // the default line style with 50 samples. |
nothing calls this directly
no outgoing calls
no test coverage detected