{"id":23715,"date":"2021-10-03T20:27:01","date_gmt":"2021-10-03T14:57:01","guid":{"rendered":"https:\/\/python-programs.com\/?p=23715"},"modified":"2021-11-22T18:33:26","modified_gmt":"2021-11-22T13:03:26","slug":"python-program-for-volume-and-surface-area-of-octahedron","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-for-volume-and-surface-area-of-octahedron\/","title":{"rendered":"Python Program for Volume and Surface Area of Octahedron"},"content":{"rendered":"

Given the side of an octahedron and the task is to calculate the volume and surface area of an octahedron for the given side in python.<\/p>\n

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

A regular octahedron has eight faces, all of which are equilateral triangles. An octahedron’s area is equal to 2 multiplied by the length of an edge squared multiplied by the square root of three.<\/p>\n

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

Surface Area of an Octahedron = 2*(sqrt(3))*(side*side)<\/p>\n

The volume of an Octahedron = \u221a2\/3 \u00d7 side3<\/sup><\/p><\/blockquote>\n

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

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

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

Given side = 5<\/pre>\n

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

The Surface Area of an octahedron for the given side { 5 } =  86.60254037844386\r\nThe volume of an Octahedron for the given side { 5 } =  58.92556509887897<\/pre>\n

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

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

Given side = 10<\/pre>\n

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

The Surface Area of an octahedron for the given side { 10 } =  346.41016151377545\r\nThe volume of an Octahedron for the given side { 10 } =  471.40452079103176<\/pre>\n

Program for Volume and Surface Area of Octahedron in Python<\/h2>\n

Below are the ways to calculate the volume and surface area of an octahedron for the given side in python:<\/p>\n