Scroll to Top

Virtual Math Learning Center

Virtual Math Learning Center Texas A&M University Virtual Math Learning Center

Numerical Calculations in Python

Author: David Manuel

This video explains how to do basic numerical calculations in Python. In particular, the video explains how to enter logarithmic and exponential functions and gives the syntax necessary to find the decimal value of the expression.

Transcript 01

Problem: Evaluate \(\ln(5)*e^{1.4}.\)

Python Code: 

from sympy import *   

#Evaluate ln(5)*e^1.4  
(ln(5)*exp(1.4)).evalf() 

Open Python Notebook File

See more videos from this section