This would mean videos can be played in a graphing utility like desmos. Also, attempts can be made to represent entire videos as mathematical equations. Attempts can also be made to animate the curves. In the future, I can learn to incorporate more complex curves like quartic and arc bezier curves. In addition to this, I also managed to explore new libraries in Python and improve my programming skills. Through this I gained a deeper understanding of calculus, finding some real-life applications of it instead of simply learning from a textbook. I had almost no idea how to fix things and had to resort to manually computing some of the curves in order to test the program. I had several first attempts where the graphs looked like this. I am personally proud of the fact that I didn't give up on problems I encountered. The mathematical aspect was made simpler by revisiting an old calculus textbook. I overcame the SVG file formatting problems by using regular expressions instead of XML parsing libraries to extract the paths. In addition, the conversion of the bezier curves posed a challenge due to the mathematical complexity of converting bezier points to parametric equations. The varying formats used made it quite difficult to make the project work for all SVG file formats. One of the main challenges I ran into was understanding the math and the formatting of an SVG file. In addition, Wikipedia and my math textbook were used to understand the math behind the bezier curves. Documentation for SVG files was consulted. The app was built using Python and desmos. For this reason, SVG files are very compact and often used in 2D website design. Since a set of parametric equations give you. See Example below of the graph of the point (2,3). To plot a point (x,y) in Desmos, you simply type in the point with parentheses. Unlike other methods of encoding images, like PNG and JPEG, SVG files encode the image using mathematical equations. Graph functions, plot points, visualize algebraic equations, add sliders, animate graphs, and more. This program takes advantage of a file format called SVG (Scalable Vector Graphics). These are then graphed on demos using its API. This program converts an image into a set of graphable equations. As someone who also liked playing around with mathematical equations on desmos, a graphing tool, I wanted to make use of this unique file format to display images on desmos using equations. These equations would then be graphed by a computer. Unlike other file formats, SVG files use mathematical equations to store an image instead. Compare the equation Desmos generated to yours.When learning about SVG file formats for an Android development class, mobile apps commonly use this format, I came to realize that SVG files held a unique property. To have Desmos create an equation of best fit, in the input bar, add a new equation y1~bx1^2+cx1+d.Adjust your sliders until you get the highest possible value for R². Desmos uses y 1 to represent the y-value in a data table and x 1 to represent the x-values in a table. To have Desmos calculate your R 2 value in a new input line type y1 ~ a(x1-h)^2+k. The closer R2 is to 1, the better the curve matches the data.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |