Skip to content

geogebra module for python

rangerdawavs edited this page Dec 10, 2019 · 1 revision

geogebra module for python

this module simplifies math concepts for programming, specifically those referring to the xy plane. code:

variable types:

point: a pair of numbers of the form (x-coordinate,y-coordinate) vector: a pair of points of the form (starting point, final point) p_vector: (magnitud, radius, starting point)

mid_point

takes to points and returns the midpoint

angle_of_vector

takes a vector and returns the angle between it, and the x axis, because we use the built in arctan function, several if statements are used to make sure the function can be used at every point on the xy plane

magnitude_of_vector

takes a vector and returns its magnitud

sum_of_vectors

takes two vectors and returns the sum as a vector, the two vectors must share a origin