A few weeks before I released my first version of Resultant finder which helps you to calculate the resultant of two vectors using a formula.
that is all here is the code:
When I wanted to find the resultant of a big number of vectors I built software with a different logic to find the size and its direction.
In this version:
the software divides the vector into two components along the y-axis and x-axis and lists them into two lists.
after the user finished entering inputs; Python calculates the sum of all x components and y components and
calculate the results of all vectors given with the support of the Pythagoras Theorem and Triangle of vectors.
As the vector triangle is right angled we can simply calculate the tan ratio of the angle, between the resultant and x-axis
that is all here is the code:
Hope You Like it :-)
Happy coding
Kavindu Chamodh Nethsara
Comments
Post a Comment