-
Notifications
You must be signed in to change notification settings - Fork 1
geogebra module for python
rangerdawavs edited this page Dec 10, 2019
·
1 revision
this module simplifies math concepts for programming, specifically those referring to the xy plane. code:
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)
takes to points and returns the midpoint
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
takes a vector and returns its magnitud
takes two vectors and returns the sum as a vector, the two vectors must share a origin