1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 | ############################################################
# #
# Virtual Laboratory of Geomathematics in Python #
# #
# Calculating the volume of Mount Fuji #
# (30.09.2017) #
# #
# Complutense University of Madrid, Spain #
# #
# THIS SCRIPT IS PROVIDED BY THE AUTHORS "AS IS" AND #
# CAN BE USED BY ANYONE FOR THE PURPOSES OF EDUCATION #
# AND RESEARCH. #
# #
############################################################
from sympy import integrate, Symbol, pi, sqrt
# Definicion de variables simbolicas
z = Symbol('z')
# Modelo matematico
f=pi*((400*z)/3 - (800*sqrt(z))/sqrt(3)+400)
# Calculo de la integral
v=integrate(f,(z,0,3))
print(v.evalf())
|