Problems dimensions D10 30 50 Range of variables 100100 Numb
Problems’ dimensions: D=10, 30, 50
 Range of variables: [-100,100]
 Number of runs: 51
 Termination condition: Max_NFC= 5000*D
Please implement this equation in Python and Plot 3D map of the 2D function
ALL THIS **PYTHON**
Solution
class sympy.plotting.plot.Plot(*args, **kwargs)[source]
 The central class of the plotting module.
For interactive work the function plot is better suited.
This class permits the plotting of sympy expressions using numerous backends (matplotlib, textplot, the old pyglet module for sympy, Google charts api, etc).
The figure can contain an arbitrary number of plots of sympy expressions, lists of coordinates of points, etc. Plot has a private attribute _series that contains all data series to be plotted (expressions for lines or surfaces, lists of points, etc (all subclasses of BaseSeries)). Those data series are instances of classes not imported by from sympy import *.
The customization of the figure is on two levels. Global options that concern the figure as a whole (eg title, xlabel, scale, etc) and per-data series options (eg name) and aesthetics (eg. color, point shape, line type, etc.).
The difference between options and aesthetics is that an aesthetic can be a function of the coordinates (or parameters in a parametric plot). The supported values for an aesthetic are: - None (the backend uses default values) - a constant - a function of one variable (the first coordinate or parameter) - a function of two variables (the first and second coordinate or parameters) - a function of three variables (only in nonparametric 3D plots) Their implementation depends on the backend so they may not work in some backends.
If the plot is parametric and the arity of the aesthetic function permits it the aesthetic is calculated over parameters and not over coordinates. If the arity does not permit calculation over parameters the calculation is done over coordinates.
Only cartesian coordinates are supported for the moment, but you can use the parametric plots to plot in polar, spherical and cylindrical coordinates.
The arguments for the constructor Plot must be subclasses of BaseSeries.
Any global option can be specified as a keyword argument.
The global options for a figure are:
title : str
 xlabel : str
 ylabel : str
 legend : bool
 xscale : {‘linear’, ‘log’}
 yscale : {‘linear’, ‘log’}
 axis : bool
 axis_center : tuple of two floats or {‘center’, ‘auto’}
 xlim : tuple of two floats
 ylim : tuple of two floats
 aspect_ratio : tuple of two floats or {‘auto’}
 autoscale : bool
 margin : float in [0, 1]
 The per data series options and aesthetics are: There are none in the base series. See below for options for subclasses.
Some data series support additional aesthetics or options:
ListSeries, LineOver1DRangeSeries, Parametric2DLineSeries, Parametric3DLineSeries support the following:
Aesthetics:
line_color : function which returns a float.
 options:
label : str
 steps : bool
 integers_only : bool
 SurfaceOver2DRangeSeries, ParametricSurfaceSeries support the following:
aesthetics:
surface_color : function which returns a float.
 append(arg)[source]
 Adds an element from a plot’s series to an existing plot.
See also extend
 Examples
Consider two Plot objects, p1 and p2. To add the second plot’s first series object to the first, use the append method, like so:
Run code block in SymPy Live
 >>> from sympy import symbols
 >>> from sympy.plotting import plot
 >>> x = symbols(\'x\')
 >>> p1 = plot(x*x)
 >>> p2 = plot(x)
 >>> p1.append(p2[0])
 >>> p1
 Plot object containing:
 [0]: cartesian line: x**2 for x over (-10.0, 10.0)
 [1]: cartesian line: x for x over (-10.0, 10.0)
 extend(arg)[source]
 Adds all series from another plot.
Examples
Consider two Plot objects, p1 and p2. To add the second plot to the first, use the extend method, like so:
Run code block in SymPy Live
 >>> from sympy import symbols
 >>> from sympy.plotting import plot
 >>> x = symbols(\'x\')
 >>> p1 = plot(x*x)
 >>> p2 = plot(x)
 >>> p1.extend(p2)
 >>> p1
 Plot object containing:
 [0]: cartesian line: x**2 for x over (-10.0, 10.0)
 [1]: cartesian line: x for x over (-10.0, 10.0)
![Problems’ dimensions: D=10, 30, 50 Range of variables: [-100,100] Number of runs: 51 Termination condition: Max_NFC= 5000*D Please implement this equation in Py Problems’ dimensions: D=10, 30, 50 Range of variables: [-100,100] Number of runs: 51 Termination condition: Max_NFC= 5000*D Please implement this equation in Py](/WebImages/22/problems-dimensions-d10-30-50-range-of-variables-100100-numb-1052615-1761548599-0.webp)
![Problems’ dimensions: D=10, 30, 50 Range of variables: [-100,100] Number of runs: 51 Termination condition: Max_NFC= 5000*D Please implement this equation in Py Problems’ dimensions: D=10, 30, 50 Range of variables: [-100,100] Number of runs: 51 Termination condition: Max_NFC= 5000*D Please implement this equation in Py](/WebImages/22/problems-dimensions-d10-30-50-range-of-variables-100100-numb-1052615-1761548599-1.webp)
