header
Calculate area and perimeter of a polygon

Tag:
Edit edit   Starstar

Program Information

Name: Calculate area and perimeter of a polygon
Domain: Geometry
Functionality: To calculate area and perimeter of a polygon.
Input: $V_{1},V_{2},V_{3}$:The three sides of the triangle(Type: Double)
Output: P:The perimeter of the triangle(Type: Double) A:The area of the triangle(Type:Double)

Reference

 Research on Metamorphic Testing: A Case Study in Integer Bugs Detection http://dx.doi.org/10.1109/ISDEA.2013.516 

MR Information

MR1------

Description:
Property:
Source input: $V_{1},V^s_{2},V^s_{3}$
Source output: $P_s,A_s$
Follow-up input: $V_{1},V^f_{2},V^f_{3}$
Follow-up output: $P_f,A_f$
Input relation: $\overrightarrow{V_{1}V^s_{2}}=2\overrightarrow{V_{1}V^f_{2}}$ $\overrightarrow{V_{1}V^s_{3}}=2\overrightarrow{V_{1}V^f_{3}}$
Output relation: $\frac{P_s}{P_f}=2$ $\frac{A_s}{A_f}=4$
Pattern:
Insert title here