Jupyter notebook assignments/Week1/Herons_formula.ipynb
Kernel: Python 2 (SageMath)
In [5]:
Out[5]:
--------------------------------
Heron's Formula
--------------------------------
Supply the coordinates (x1, y1) of the first vertex:
x1 = 10
y1 = 0
Supply the coordinates (x2, y2) of the second vertex:
x2 = 0
y2 = 0
Supply the coordinates (x3, y3) of the third vertex:
x3 = 0
y3 = 10
A triangle with vertices (10,0), (0,0), and (0,10) has an area of 50.0.
In [ ]:
In [ ]: