{"id":23774,"date":"2021-10-03T20:27:20","date_gmt":"2021-10-03T14:57:20","guid":{"rendered":"https:\/\/python-programs.com\/?p=23774"},"modified":"2021-11-22T18:33:25","modified_gmt":"2021-11-22T13:03:25","slug":"python-program-to-calculate-area-and-volume-of-a-tetrahedron","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-calculate-area-and-volume-of-a-tetrahedron\/","title":{"rendered":"Python Program to Calculate Area and Volume of a Tetrahedron"},"content":{"rendered":"

Tetrahedron:<\/strong><\/p>\n

A Tetrahedron is nothing more than a pyramid with a triangular base. It has four triangular faces, three on the sides or lateral faces, one on the bottom or base, and four vertices or corners. If all of the faces are congruent equilateral triangles, the tetrahedron is said to be regular.<\/p>\n

Formula:<\/strong><\/p>\n

Area of Tetrahedron =sqrt(3)*side*side<\/p>\n

Volume = (side<\/span>\u00a0**<\/span> 3<\/span> \/<\/span> (<\/span>6<\/span> *<\/span> math.<\/span>sqrt(<\/span>2<\/span>)<\/span>)<\/span>)<\/span><\/p><\/blockquote>\n

Given the side of a tetrahedron and the task is to calculate the area and volume of the given tetrahedron in python.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side = 5<\/pre>\n

Output:<\/strong><\/p>\n

The Area of Tetrahedron with the given side { 5 } = 43.301\r\nThe volume of Tetrahedron with the given side { 5 } = 14.731<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

Given side = 10<\/pre>\n

Output:<\/strong><\/p>\n

The Area of Tetrahedron with the given side { 10 } =  173.205\r\nThe volume of Tetrahedron with the given side { 10 } =  117.851<\/pre>\n

Program to Calculate Area and Volume of a Tetrahedron in Python<\/h2>\n

Below are the ways to calculate the area and volume of the given tetrahedron in python:<\/p>\n