Problem
Given the lengths of the edges of a tetrahedron calculate the radius of a sphere inscribed in that tetrahedron (i.e. a sphere tangent to all the faces).
Input
An integer t, 1<=t<=30, denoting the number of test cases, followed by t lines, each containing 6 integers describing the lengths of the edges of a tetrahedron separated by single spaces. The edges are not longer than 1000 and for the tetrahedron WXYZ, the order of the edges is: WX, WY, WZ, XY, XZ, YZ.
Output
t lines, each consisting of a real number given with four digits decimal precision equal to the radius of a sphere inscribed in the given tetrahedron.
Example
Input:
2
1 1 1 1 1 1
1000 999 998 5 5 6
Output:
0.2041
1.4189
Given the lengths of the edges of a tetrahedron calculate the radius of a sphere inscribed in that tetrahedron (i.e. a sphere tangent to all the faces).
Input
An integer t, 1<=t<=30, denoting the number of test cases, followed by t lines, each containing 6 integers describing the lengths of the edges of a tetrahedron separated by single spaces. The edges are not longer than 1000 and for the tetrahedron WXYZ, the order of the edges is: WX, WY, WZ, XY, XZ, YZ.
Output
t lines, each consisting of a real number given with four digits decimal precision equal to the radius of a sphere inscribed in the given tetrahedron.
Example
Input:
2
1 1 1 1 1 1
1000 999 998 5 5 6
Output:
0.2041
1.4189
Java Hyd Team pinned ยซclick on the link mentioned below and do follow me so that you can get more n more amazing projects https://github.com/aman0990/My-Resume.com/wikiยป
https://hexaware.ripplehire.com/candidate/?token=OemOglOoUb4uPFNYTJeO&lang=en#detail/job/333492
Opening available 116 kindly try and grab it ๐๐
Opening available 116 kindly try and grab it ๐๐
Ripplehire
Hexaware Technologies Careers | Latest jobs at Hexaware Technologies - Ripplehire.com
Apply Now! This is a wonderful opportunity. Help your friends by sharing this role with them.