pyramid

pyramid(x, y, h), pyramid(b, h)

Implémentation d'une pyramide.
Une pyramide est définie par :

Attributs disponibles :

base (surface)
basearea, base, b
longueur
x
largeur
y
hauteur
height, h
volume
volume, v

Exemples

pyramid(6,10)
{'volume': 20.0,
'base': 6,
'hauteur': 10}
pyramid(6,10).volume
20
pyramid(2,3,10)
{'volume': 20.0,
'longueur': 2,
'largeur': 3,
'base': 6,
'hauteur': 10}

SciCalc