Problem 52679. Easy Sequences 16: Volume of Embedded Octahedron
An octahedron (not regular) is formed by joining the centers of the faces of a rectangular parallelepiped (see below figure).
Given the dimensions of the rectangular parallelepiped (length, width and height), calculate the volume of the embedded octahedron. Please output the integer part of the volume in modulo 1000003.
Solution Stats
Problem Comments
-
2 Comments
David Hill
on 11 Sep 2021
I can not get your answers for test4 and test5. I checked using symbolic and obtained different answers from yours after passing tests 1-3 (my volume equation is correct).
Ramon Villamangca
on 12 Sep 2021
Hi David, can you publish your solution, please? Thanks.
Solution Comments
Show commentsProblem Recent Solvers8
Suggested Problems
-
How to find the position of an element in a vector without using the find function
2749 Solvers
-
1406 Solvers
-
What is the distance from point P(x,y) to the line Ax + By + C = 0?
542 Solvers
-
Detect a number and replace with two NaN's
193 Solvers
-
Easy Sequences 9: Faithful Pairs
17 Solvers
More from this Author116
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!