In this solution Bold&underlined are vectors.
ABC is a triangular park in XY plane with lengths a,b and c of sides BC, AC and AB respectively. Let take 'A' at the origin and B at X axis. So the coordinates of A and B are (0,0,0) and (c,0,0) respectively. Now as it is clear from the figure (See the figure below for clarity) A,B and C are in XY plane so their Z coordinates are zeroes. C is somewhere in the middle of XY plane from 'b' distance to A, so the coordinate of C is (bCosA, bSinA,0). AA' =x , BB'= x + y, CC'= x + z are three poles at A,B and C points (marked with blue colour). The coordinates of A', B' and C' can be obtained by adding only Z component in A, B and C respectively.
A'(0,0,x) B'(c,0,x+y) C'(bCosA, bSinA,x+z)
To get the angle between these two planes (ABC and A'B'C') it's the simple work to get the angle between normals to these planes. Let n1 and n2 are normal to ABC and A'B'C' planes.
By vector algebra n1 = AB x AC =
| i | j | k |
| c | 0 | 0 |
| bCosA | bSinA | 0 |
n1= bc SinA k
Same way we can calculate the normal to the plane A'B'C' = n2 = A'B' x A'C' =
| i | j | k |
| c | 0 | y |
| bCosA | bSinA | z |
(Please solve it yourself) and you will get
n2 = bySinA i - (cz-byCosA) j + bcSinA k
Now angle between these two normals is
Cosq = (n1 . n2 ) / (|n1| |n2|)
= (b2c2Sin2A)/[Ö( b2c2Sin2A) Ö(b2y2Sin2A + c2z2+b2y2cos2A-2bcyzCosA+ b2c2Sin2A)]
As cos2A+Sin2A =1 so the above quantity is equal to
Cosq = (b2c2Sin2A)/[Ö( b2c2Sin2A) Ö(b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A)]
Or
Cosq = (bcSinA)/[Ö(b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A)]
Now Sinq = Ö(1- Cos2q)
= Ö[ 1- (b2c2Sin2A)/(b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A)
= Ö[ (b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A- b2c2Sin2A)/( b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A)]
=Ö[( b2y2 + c2z2 -2bcyzCosA)/ ( b2y2 + c2z2 -2bcyzCosA+ b2c2Sin2A)]
so Tanq = Sinq/ Cosq = Ö( b2y2 + c2z2 -2bcyzCosA)/ bcSinA
dividing both numerator and denominator by bc we get
Tanq = Ö(y2/ c2 + z2/ b2 -2yzCosA/bc) / SinA
Or
Tanq = (y2/ c2 + z2/ b2 -2yzCosA/bc)½ / SinA