Username: 
Password: 
Restrict session to IP 
Questions  |  score: 2  |  4.12 4.14 5.32 |  Solved By 1892 People  |  96611 views  |  since Dec 07, 2010 - 23:58:47

Training: Math Pyramid (Math, Training)

Math - Math Pyramid
This is the first release of a math challenge.
You have to come up with the shortest solution (9 chars or less) for a geometric function.
And the story goes like:

Pharao momo wants a square-based pyramid, where all the eight edges are of the same length 'a'.
Please support him with a formula to calculate the volume for a given side length.
Your co-workers already drew a sketch how the pyramid looks like from front-view:
pyramid.png

Example Formula: a^3/3*sqrt(a*a)
Notation Hints: sqrt(), a^2, etc.

Enjoy!

Thanks go out to momo for the idea, Jinx for testing, paipai for a copy of EvalMath and Miles Kaufmann for writing the EvalMath class.
Your formula:
© 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 and 2024 by Gizmore