0%

# （1）Background and Application

We often need to draw a function image for our analysis in the learning and application of advanced mathematics, mathematical analysis and visualization and other scenarios. This can be easily achieved through Python3, which is much more portable and easy to use than MATLAB.

• matplotlib
• numpy

# （3）General code

Demand analysis

We need a can in the function of the multiple function image is drawn with a picture at the same time, in order to show at the same time, contrast and analysis of law, so we first create the canvas, then according to the plot function is adopted to improve the rendering, according to the number of functions to achieve multiple functions at the same time drawing on the canvas, with design code is as follows：

Relevant parameters and image adjustment can be referred to the Matplotlib manual. This paper aims to provide a method and idea.

# （4）Advanced Mathematical Function Test

Take the function f (x)= sine (1/x) as an example, first define a function and the scope of its definition:

For complex trigonometric functions, see the figure below：

If we want to know the graph of this function and how it differs from the sine of 1/x above, we just need to define it as follows:

This function can also be further extended, can be used to achieve the original function of the drawing, the drawing of the first derivative function and other functions.

Other functions can be explored/improved on their own.

-------------结束啦 我可是有底线的~ -------------