cplusplus.com cplusplus.com
cplusplus.com   C++ : Forums : UNIX/Linux Programming : center
  Search:
- -
C++
Information
Documentation
Reference
Articles
Sourcecode
Forums
Forums
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programm...
Articles
Lounge
Jobs

-

post  center

baba (1)
write a c++ program to find the centre of a circle passing through 3 given points

Ex.
Input:
(0,1),(0,-1),(1,0)

OUTPUT:
(0,0)
| Last edited on
jsmith (958)
Why?
|
melkiy (52)
Maybe you would be satisfied with that an equation of a circle passing through points (x1,y1), (x2,y2), (x3,y3) is
1
2
3
4
| x^2 + y^2   x    y    1 |
| x1^2+y1^2   x1   y1   1 | = 0
| x2^2+y2^2   x2   y2   1 |
| x3^2+y3^2   x3   y3   1 |
|
Zaita (1577)
http://www.cplusplus.com/forum/articles/1295/
|

This topic is archived - New replies not allowed.
Home page | Privacy policy
© cplusplus.com, 2000-2009 - All rights reserved - v2.2
Spotted an error? contact us