# Solving a system of two equations

**URL:** <https://forum.kirupa.com/t/solving-a-system-of-two-equations/220609>\
**Category:** flash\
**Created:** [March 27, 2007, 6:23pm UTC](https://forum.kirupa.com/t/solving-a-system-of-two-equations/220609 "2007-03-27T18:23:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![raven\_gm](https://avatars.discourse-cdn.com/v4/letter/r/54ee81/32.png) [@raven\_gm](https://forum.kirupa.com/u/raven_gm)\
**Post date:** [March 27, 2007, 6:23pm UTC](https://forum.kirupa.com/t/solving-a-system-of-two-equations/220609/1 "2007-03-27T18:23:36Z")

</div>

Me again!

Ok, so I have a system of two equations like so:  
xcent = (-1\*(2\*(y1-y3)_ycent-y1^2+y3^2-x1^2+x3^2))/(2_(x1-x3));  
ycent = (-1\*(2\*(x1-x3)_xcent-x1^2+x3^2-y1^2+y3^2))/(2_(y1-y3));  
is there any easy way to solve for xcent and ycent in actionscript?
