79821597

Date: 2025-11-16 16:47:26
Score: 1
Natty:
Report link

Python interprets:

[ x1 * ( y3 - y2) + x2 * ( y1 - y3 ) + x3 * ( y2 - y1 )]

as a list, as it is surrounded by square brackets [ ]. That is why your program points out that it is dividing two lists. You may have used them like you would use in math, but the correct way is to use only parenthesis on expressions like this.

So your a should be:

a = ( x1 * ( y3 - y2) + x2 * ( y1 - y3 ) + x3 * ( y2 - y1 )) / (( x1 - x2) * ( x1 - x3) * ( x2 - x3))

Which works properly.

Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: treasurehunt516