Mathematics
Prepared by Dr. Israa Lewaa
Lecture 10
MAT 112
Math by Python
Lecture
10 Lecture Objectives
Study how to download python
Learn how to run different codes with Python for factorization
Learn how to run different codes with Python for graphing functions
Learn how to run different codes with Python for solving limits
Learn how to run different codes with Python for differential
Learn how to run different codes with Python for Integration
Lecture
10 Lecture Objectives
1- Download Python
2- Python for factorization
3- Python for graphing functions
4- Python for solving limits
5- Python for differential
6- Python for Integration
Lecture
10 Steps to Download Python
we will show how to install Python on your system. The
Python is free of cost
(https://www.anaconda.com/distribution/)
Lecture
10 Step 1 – Download Python
Step 1:
Open your browser and go to Anaconda website
(https://www.anaconda.com/distribution/) to download and install Anaconda. You will
see a page like this. Click on download.
Lecture
10 Step 2 – Download Python
Step 2:
You will see that following page appears. By default, Anaconda shows you the download link
for Mac operating system. If you have Mac, then you can click “64-Bit Graphical Installer”
under Python 3.7 version to start downloading the file. In this computer, Windows is the
operating system, so we will select Windows as shown below. If you have Linux as operating
system, then you can select Linux option and download file in similar manner as Mac. Mac
and Linux users can skip Step 3 & 4
Lecture
10 Step 2 Con’d – Download Python
After clicking on Windows button, the following page will appear.
Lecture
10 Step 3 – Download Python
Step 3:
You can see that there are two options for Windows: 64-Bit and 32-Bit. You need to find
out whether your system is 64-Bit or 32-Bit and accordingly you need to select the file for
your system. To do so, go to your desktop home screen, right click on ‘Computer’ icon,
then select Properties.
Lecture
10 Step 3 Con’d – Download Python
This will show you basic information about your system. Look for
“System Type” as shown below and check whether it is 64-bit or 32-bit.
For this computer, we see that Windows system type is 64 -bit.
Lecture
10 Step 4 – Download Python
Step 4:
Now, go back to your browser and then click “64-Bit Graphical Installer (662 MB)” as
this computer is 64 bit (as identified in Step 3)
Lecture
10 Step 4 Con’d – Download Python
The installer will start downloading the file (this may take a while) and will
appear in bottom left of your browser (if you are using google chrome) as shown
below.
Lecture
10 Step 5 – Download Python
Step 5:
When the file is completely downloaded, click on the file. You will see that following
window appears. Click on ‘Run’, and then click ‘Next’ button.
Lecture
10 Step 5 con’d – Download Python
A new window will appear asking you to accept the terms of agreement, select “I Agree”
Lecture
10 Step 5 con’d – Download Python
Select ‘Just Me’ which is recommended and then click Next
Lecture
10 Step 6 – Download Python
Step 6:
Make sure you have the required free space for software installation. which you can
check as shown below. Then click Next. (If you don’t have required space, then you
need to delete some of your items to free the space)
Lecture
10 Step 7 – Download Python
Step 7:
You will see that following window appears. Click on Install.
Lecture
10 Step 7 con’d – Download Python
This will lead you to installation page showing the progress of installation. It will take some
time for the software to get installed.
Lecture
10 Step 7 con’d – Download Python
After all the files are extracted, the “Next” button will get enabled. Click on Next button
Lecture
10 Step 7 con’d – Download Python
Then following window will appear. Click on Finish button to complete the
installation. Now Anaconda has been installed on your computer.
Lecture
10 Step 8 – Download Python
Step 8:
Type ‘anaconda navigator’ in search box and click on the icon indicated below
Lecture
10 Step 9 – Download Python
Step 9:
Lecture
10 Example
Lecture
10 Jupyter Interface
Lecture
10 Open new file in Jupyter
Lecture
10 Open new file in Jupyter
Lecture
10 New Notebook
Lecture
10 New Notebook
Lecture
10 Sympy Package
Lecture
10 Sympy Package
Lecture
10 Solving Equation
Lecture
10 Factorization by Python
Lecture
10 Graph function
Lecture
10 Writing Root
Lecture
10 Limits by Python
Lecture
10 Python for differential
Lecture
10 Integration by Python
Lecture
10 Integration by Python
Lecture
10 Lecture Summary
1- Download Python
2- Python for factorization factor(f)
3- Python for graphing functions plot(f)
4- Python for solving limits limit(f,x,3)
5- Python for differential diff(f)
6- Python for Integration integrate(f)