Discrete plot in máxima
To create a discrete plot in Maxima, you can use the `plot2d` function with the `discrete` option. Here is an example code that creates a discrete plot of some sample data points:
```maxima
/* Define some sample data points */
data_points: [[1, 2], [2, 3], [3, 5], [4, 7], [5, 11]];
/* Create a discrete plot of the data points */
plot2d(
points(data_points, point_type = filled_circle),
[discrete, true],
[xlabel, "X-axis"],
[ylabel, "Y-axis"],
[title, "Discrete Plot"]
);
```
In this code:
- `data_points` is a list of data points where each point is represented as a list `[x, y]`.
- `plot2d` function is used to create the plot.
- `points` function is used to plot the data points with filled circles.
- The `discrete` option is set to `true` to create a discrete plot.
- Additional options like `xlabel`, `ylabel`, and `title` are used to label the axes and provide a title to the plot.
You can run this code in a Maxima environment to generate a discrete plot of the sample data points.