IMPORTING MODULES IN PYTHON ||Math module ||OS module||NumPy & SymPy modules ||Matplotlib modules
Автор: Lekhana S
Загружено: 2023-08-27
Просмотров: 69
MATH MODULE :The ‘math’ module in python is a built-in module that provide a wide range of mathematical function and constant. It is a part of python standard library and does not require any external installation to use it.
1. Mathematical Constants:
math.pi
math.e
2. Basic Mathematical Functions:
math.sqrt(x)
math.pow(x,y)
math.exp(x)
math.log(x) etc..
OS MODULES:
The OS module in Python is a built-in module that provides a way to interact with the operating system. It allows you to perform various operations related to the file system, directories, and process management.
1. File and Directory operations:
OS.getcwd(): Returns the current working directory.
OS.remove():Removes a file at the specified path.
OS.chdir(path):Changes the current working directory to the specified path etc…….
2. File Path Operations:
OS.path.join(path,*paths):Joins one or more path components intelligently
OS.path.exists(path):checks if the specified path exists.
OS.path.isfile(path):checks if the specified path is a regular file.
OS.path.isdir(path):checks if the specified path is a directory. Etc….
MATHPOLTLIB:
matplotlib is a widely used Python library for creating 2D plots and visualizations. It provides a powerful and flexible plotting toolkit that allows you to create a wide range of plots, charts, and graphs to visualize data.
Matplotlib supports various types of plots, including:
Line plots
Scatter plots
Bar plots
Histograms
Pie charts
Box plots
Heatmaps
3D plots, and more.
NUMPY:
NumPy is a powerful Python library used for numerical computing.
It stands for "Numerical Python" and provides support for large, multi-dimensional arrays and matrices, along with an extensive collection of high-level mathematical functions to operate on these arrays efficiently.
SYMPY:
Sympy is a Python library for symbolic mathematics. Unlike NumPy, which is focused on numerical computations with arrays, Sympy deals with symbolic mathematics, where mathematical expressions and equations are represented as symbolic objects.
#educationalvideo #educationalvideo #pythonmodules
#pythonosmodules #pythonmathmodules
#engineering
Доступные форматы для скачивания:
Скачать видео mp4
-
Информация по загрузке: