title: Program Calculate Volume Octahedron
signature: func programCalculateVolumeOctahedron(side float64) float64 {
test_code: package main
  
  import (
      "fmt"
      "reflect"
      "math"
      "sort"
  )
  
  // SOLUTION CODE
  // ===================================
  PLACEHOLDER_CODE_BODY
  
  // TESTING CODE
  // ===================================
  func validateSolution(actual float64, expected float64) bool {
      return math.Abs(actual - expected) < 1e-09
  }
  
  func driver(side float64, expected float64) string {
      if validateSolution(PLACEHOLDER_FN_NAME(side),expected) {
              return "PASSED"
      }
      return "FAILED"
  
  }
  
  func main() {
  
      // Use imports to avoid undefined errors
      var _ = reflect.DeepEqual
      _ = math.Abs
      _ = sort.Sort
      result := ""
      result = driver(3355.322051344013, 17807230335.375374)
      fmt.Printf("TEST-0...%s\n", result)
      
      result = driver(-891.0551553192736, -333508958.9649689)
      fmt.Printf("TEST-1...%s\n", result)
      
      result = driver(8242.699647177868, 263998930936.71603)
      fmt.Printf("TEST-2...%s\n", result)
      
      result = driver(-9259.146104439229, -374202387762.81836)
      fmt.Printf("TEST-3...%s\n", result)
      
      result = driver(7712.806145993083, 216287285897.3415)
      fmt.Printf("TEST-4...%s\n", result)
      
      result = driver(-4998.858862079315, -58885228987.99368)
      fmt.Printf("TEST-5...%s\n", result)
      
      result = driver(9771.127582524628, 439772223071.1617)
      fmt.Printf("TEST-6...%s\n", result)
      
      result = driver(-5415.8106399098115, -74883158892.28471)
      fmt.Printf("TEST-7...%s\n", result)
      
      result = driver(670.0774772280249, 141830229.25431916)
      fmt.Printf("TEST-8...%s\n", result)
      
      result = driver(-7068.634369272122, -166494655500.3635)
      fmt.Printf("TEST-9...%s\n", result)
      
          
  }
source_py: def program_calculate_volume_octahedron(side):
      return (((side * side) * side) * (math.sqrt(2) / 3))
source_cpp: double program_calculate_volume_octahedron(double side) {
    return ( ( side * side * side ) * ( sqrt ( 2 ) / 3 ) );
  }