Geometry: Difference between revisions
Jump to navigation
Jump to search
Created page with "Categoy:Python <syntaxhighlight lang=python> XpointA = 1 YpointA = 1 XpointB = 2 YpointB = 2 distance = ( ( XpointA - XpointB ) ** 2 ) + ( ( YpointA - YpointB ) ** 2 ) **..." |
No edit summary |
||
| Line 1: | Line 1: | ||
[[ | [[Category:Python]] | ||
<syntaxhighlight lang=python> | <syntaxhighlight lang=python> | ||
Revision as of 16:13, 10 January 2022
XpointA = 1
YpointA = 1
XpointB = 2
YpointB = 2
distance = ( ( XpointA - XpointB ) ** 2 ) + ( ( YpointA - YpointB ) ** 2 ) ** 0.5
KMonearth = distance * 100 # Very rough estimate for when using longtitude and latitude (in the Netherlands)