Solver Distance Between 2 points
Algebra
->
Coordinate-system
-> Solver Distance Between 2 points
Log On
Algebra: Coordinate systems, graph plotting, etc
Section
Solvers
Solvers
Lessons
Lessons
Answers archive
Answers
Source code of 'Distance Between 2 points'
This Solver (Distance Between 2 points)
was created by by
Shin123(626)
:
View Source
,
Show
,
Put on YOUR site
About Shin123
:
Just a kid who solves math problems for fun :)
==section input This solver will help you find the distance between 2 points, (*[input x1=2],*[input y1=4]) and (*[input x2=8],*[input y2=12]) ==section solution The distance formula is {{{sqrt(((x[2]-x[1])^2)+((y[2]-y[1])^2))}}}. Plug in the numbers, {{{sqrt((($x2-($x1))^2)+(($y2-($y1))^2))}}} *[assign x3=$x2-($x1)] *[assign y3=$y2-($y1)] {{{sqrt($x3^2+$y3^2)}}} *[assign xy1=sqrt($x3^2+$y3^2)] The distance is $xy1. ==section output x3,y3,xy1 ==section check