Dynamic demonstration algorithm for polar coordinate function mapping
Through the dynamic demonstration algorithm of polar coordinate function drawing, polar radius and point motion are dynamically drawn, which solves the problem of difficulty in drawing complex polar coordinate form functions, improves the drawing speed and efficiency, and provides a good foundation for learning polar coordinate integral knowledge. .
Patent Information
- Application Number
- CN202310344528.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
AI Technical Summary
In advanced mathematics, it is difficult to plot complex polar coordinate functions in a plane Cartesian coordinate system. Especially for students, the traditional conversion method results in slow plotting speed and makes it difficult to effectively learn relevant integral knowledge.
Through a polar coordinate function drawing dynamic demonstration algorithm, the change of polar radius and point movement on the image are dynamically drawn, the function image is drawn directly in the plane rectangular coordinate system, and the positions of points and line segments are updated by setting the polar angle range and looping , to achieve dynamic drawing.
It improves the speed and efficiency of polar coordinate function graphing, lays a good foundation for learning integral knowledge related to polar coordinates, and simplifies the graphing process of complex functions.
Smart Images

Figure CN118779033A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to an algorithm, in particular to a polar coordinate function drawing dynamic demonstration algorithm Background Art
[0002] Since functions given in polar coordinate form in advanced mathematics are graphed in a plane rectangular coordinate system, students usually convert polar coordinate form into rectangular coordinate form first, and then use the point tracing method to graph. However, this method is particularly difficult for complex polar coordinate forms. This algorithm simulates human work in a dynamic form, directly graphs through special angles and polar radii, improves the graphing speed, and lays a good foundation for the subsequent study of double integrals, triple integrals, etc. related to polar coordinates. Summary of the invention
[0003] In order to solve the above technical problems, the present invention provides the following technical solutions: a polar coordinate function drawing dynamic demonstration algorithm, including two aspects: drawing the function image on the plane, the dynamic change of the polar radius and the movement of the points on the image along the image.
[0004] Drawing the graph of a function on a plane includes the following steps: Step A (1): setting the polar angle θ to a range of 0 to 2π, with an angle interval of 0.02, where 0.02 can be adjusted according to actual needs; Step A(2): Input the function in polar coordinate form; Step A(3): Let x = rcos θ, y = rsin θ (r is the polar radius of the input function, θ is the polar angle corresponding to the input function); Step A (4): draw a graph of the function with x as the horizontal coordinate and y as the vertical coordinate in a rectangular coordinate system; Step A(5) keeps the current axis and image without refreshing; Furthermore, the dynamic change of the polar radius and the movement of the points on the image along the image includes the following steps: Step B(1): Draw a line segment from point (0, 0) to (0, 1); Step B (2): keep the current axis and image without refreshing; Step B (3): set the polar angle θ=0; Step B (4): Set the cycle i from 1 to 1000 (the interval is determined by the system and can also be set according to the situation. Adjusting the value of 1000 can change the number of circles of the point movement on the image); Step B(5): Set θ to increase by 0.1 each time according to the cycle of step B(4) (0.1 can be changed according to the specific situation, and the change of 0.1 will change the speed of the point movement on the image); Step B (6): Input the function in polar coordinate form; Step B (7): Let x = rcos θ, y = rsin θ; Step B (8): The initial position of the drawing point is (0,0), and the point size is set to 20; Step B(9): Mark the position of the point, and update the position of the point with the coordinates of step B(7); Step B (10): mark the position of the line segment, and update the line segment of step B (1) with the end point as (rcos θ, rsin θ); Step B (11): continuously updating the image; Step B (12): the loop statement ends; Step B (13): Pause for 0.1 seconds; Step B(14): Continuously update the image. BRIEF DESCRIPTION OF THE DRAWINGS
[0005] The present invention is further described in detail below in conjunction with the accompanying drawings.
[0006] Figure 1 : This is a screenshot of the algorithm of the present invention (taking the polar coordinate function r=10*(1-sin θ) as an example) Figure 2 : This is a screenshot of the algorithm of the present invention (taking the polar coordinate function r=10*(1-sin θ) as an example) Implementation
[0007] Step A (1): setting the polar angle θ to a range of 0 to 2π, with an angle interval of 0.02, where 0.02 can be adjusted according to actual needs; Step A(2): Input the function in polar coordinate form; Step A(3): Let x = rcos θ, y = rsin θ (r is the polar radius of the input function, θ is the polar angle corresponding to the input function); Step A (4): draw a graph of the function with x as the horizontal coordinate and y as the vertical coordinate in a rectangular coordinate system; Step A(5): keep the current axis and image without refreshing; Step B(1): Draw a line segment from point (0, 0) to (0, 1); Step B (2): keep the current axis and image without refreshing; Step B (3): set the polar angle θ=0; Step B (4): Set the cycle i from 1 to 1000. The interval is determined by the system and can also be set according to the situation. The change of 1000 can change the number of movement circles of the line segment and the point. Step B(5): Set θ to increase by 0.1 each time according to step B(4). The change of 0.1 can change the movement speed of the point and line segment; Step B (6): Input the function in polar coordinate form; Step B (7): Let x = rcos θ, y = rsin θ; Step B (8): The initial position of the drawing point is (0,0), and the point size is set to 20; Step B(9): Mark the position of the point, and update the position of the point with the coordinates of step B(7); Step B (10): mark the position of the line segment, and update the line segment of step B (1) with the end point as (rcos θ, rsin θ); Step B (11): continuously updating the image; Step B (12): the loop statement ends; Step B (13): Pause for 0.1 seconds; Step B(14): Continuously update the image.
Claims
1. A dynamic demonstration algorithm for polar coordinate function drawing, including two aspects: drawing the function image on the plane, the dynamic change of the polar radius and the movement of the points on the image along the image.
2. A polar coordinate function plotting dynamic demonstration algorithm according to claim 1, characterized in that: The dynamic change of polar radius and the movement of points on the image along the image are as follows: Step B(1): Draw a line segment from point (0, 0) to (0, 1); Step B (2): keep the current axis and image without refreshing; Step B (3): set the polar angle θ=0; Step B (4): Set the cycle i from 1 to 1000 (the interval is determined by the system and can also be set according to the situation. Adjusting the value of 1000 can change the number of circles of the point movement on the image); Step B(5): Set θ to increase by 0.1 each time according to the cycle of step B(4) (0.1 can be changed according to the specific situation, and the change of 0.1 will change the speed of the point movement on the image); Step B (6): Input the function in polar coordinate form; Step B (7): Let x = rcos θ, y = rsin θ; Step B (8): The initial position of the drawing point is (0,0), and the point size is set to 20; Step B(9): Mark the position of the point, and update the position of the point with the coordinates of step B(7); Step B (10): mark the position of the line segment, and update the line segment of step B (1) with the end point as (rcos θ, rsin θ); Step B (11): continuously updating the image; Step B (12): the loop statement ends; Step B (13): Pause 0.1 seconds Step B(14): Continuously update the image.
