Centre and radius of a circle passing through 3 points in a plane: Difference between revisions
Centre and radius of a circle passing through 3 points in a plane (view source)
Revision as of 21:58, 21 February 2024
, 3 months ago→{{header|Yabasic}}
Line 166:
==={{header|Yabasic}}===
{{trans|FreeBASIC}}
<syntaxhighlight lang="qbasic">findCircle(22.83, 2.07, 14.39, 30.24, 33.65, 17.31)
Line 192 ⟶ 191:
h = -g
k = -f
r =
PRINT "Centre is at (", h, ", ", k, ")"
Line 198 ⟶ 197:
PRINT
PRINT "Check radius as the distance between the centre and the first point:"
PRINT
END SUB</syntaxhighlight>
{{out}}
<pre>Centre is at (18.9785, 16.2654)
Radius is
Check radius as the distance between the centre and the first point:
=={{header|C++}}==
|