Find area of parallelogram if vectors of two adjacent sides are given | Function to calculate area of parallelogram ; Driver Code
function area ( x1 , y1 , z1 , x2 , y2 , z2 ) { area = Math . sqrt ( Math . pow ( ( y1 * z2 - y2 * z1 ) , 2 ) + Math . pow ( ( x1 * z2 - x2 * z1 ) , 2 ) + Math . pow ( ( x1 * y2 - x2 * y1 ) , 2 ) ) ; return area ; } let x1 = 3 ; let y1 = 1 ; let z1 = - 2 ; let x2 = 1 ; let y2 = - 3 ; let z2 = 4 ; a = area ( x1 , y1 , z1 , x2 , y2 , z2 ) ; document . write ( " " ) ; document . write ( a ) ;