SlideShare ist ein Scribd-Unternehmen logo
1 von 25
Downloaden Sie, um offline zu lesen
Boey Pak Cheong B. Sc. (Hons)
pcboey@pytech.com.my
http://pytechresources.comSpecialized in Python Training
Since 2006
Learning to write programs stretches your mind, and 
helps you think better, creates a way of thinking 
about things that I think is helpful in all domains
­ Bill Gates, Microsoft Co­founder
“
”
What is Python?
●
A programming language
●
Interpreted
●
Object-oriented
●
High-level
●
Developed by Guido van Rossum from
1989
●
Cross-platform
●
Open-source, freely distributable
Python 2 or 3
●
Python 2 or 3 ?
●
Python 2.x is legacy, Python 3.x is the
present and future of the language.
●
Where can I get Python from?
●
Python Official Website
– Standard Python installation
●
Third Party Packagers
– Anaconda
– Enthought Canopy
Who uses Python?
Engineering Companies Using Python
Saving Energy with Python
SMS Siemag AG
Lift off with Python
DLR German Aerospace Center
VAMPzero: Aircraft Conceptual Design
with Python
●
Johnson Space Center
●
Integrated Planning System
– Uses Python as standard scripting language
●
modular collection of tools for assisting
shuttle pre-mission planning
●
For more info visit :
https://www.python.org/about/success/u
sa/
Why Python?
●
Easy to learn
●
Simple, clean syntax
●
As readable as English
●
Write less code
●
3 to 5 time shorter than Java
●
5 to 10 times shorter than C++
●
Higher productivity
Why Python? (2)
●
Impressive Standard Libraries
●
Extensive Third Party Libraries
●
Excellent Documentation
●
Powerful & Versatile
●
Build websites
●
Analyze and visualize data
●
Scientific and numeric computing
Why Python? (3)
●
Free & Open-source
●
Great community
Job Trends from Indeed.com
Some other considerations
●
TIOBE index – October 2016
●
Python – 5th
Position
●
Fortran – 28th
Position
●
Intel released its Python distribution in
2016
Fortran Vs Python
●
Fortran
●
Heavily optimized static typed compiler
●
World's oldest yet still used language
●
Python
●
Dynamic typed interpreted language
●
Created 1990
Fortran Vs Python (2)
●
Fortran
●
Synonymous with scientific computing
●
Only real alternative was C++
●
Including C, only languages supported by
Intel
– Until their Python came along
●
Huge amount of scientific and engineering
code written in Fortran
– And still in use
Fortran Vs Python (3)
●
Computer processing time vs
programming time
●
Much easier to learn Python
●
Faster to develop code using Python
1960/70's (Fortran days) Today
Computer Processing
Time
Expensive Cheap
Programming Time Relatively Cheap Expensive
Fortran Vs Python (4)
●
Compared with Fortran, the core Python
arrays (lists) are not fast
●
But Python with SciPy and NumPy is a
game changer
●
>90,000 Python packages in pypi
●
Scientific/Engineering Category
●
> 5500 packages
●
In 16 sub-categories
Fortran Vs Python
Conclusion
●
Fortran will still be around for some years
●
Existing software needs maintenance
●
But for new software ...
●
Python is a good alternative
– Easy to learn
– Free, open-source
– Numerous packages
– Strong community
What can you do with Python?
●
Python by itself not suitable for typical
engineering calculations
●
You also need the numeric, scientific and
plotting libraries
●
NumPy
●
SciPy
●
Matplotlib
●
Anaconda and Enthought Canopy
distributions provide all
●
Some engineering calculations you can do
●
Linear algebra
●
Root finding (non-linear algebra)
●
Linear or nonlinear regression
●
Integration and ordinary differential
equations
●
statistics
●
plotting
Example Jupyter Notebooks
●
Quickstart Python Tutorial
●
Using the integrate module from scipy
●
Digital Signal Processing

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
 
Python ppt
Python pptPython ppt
Python ppt
 
Introduction to python 3
Introduction to python 3Introduction to python 3
Introduction to python 3
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Introduction To Python | Edureka
Introduction To Python | EdurekaIntroduction To Python | Edureka
Introduction To Python | Edureka
 
Python: the Project, the Language and the Style
Python: the Project, the Language and the StylePython: the Project, the Language and the Style
Python: the Project, the Language and the Style
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Fundamentals of Python Programming
Fundamentals of Python ProgrammingFundamentals of Python Programming
Fundamentals of Python Programming
 
Python course syllabus
Python course syllabusPython course syllabus
Python course syllabus
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming Language
 
Python by Rj
Python by RjPython by Rj
Python by Rj
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python made easy
Python made easy Python made easy
Python made easy
 
Programming
ProgrammingProgramming
Programming
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
Programming with Python
Programming with PythonProgramming with Python
Programming with Python
 
Python
PythonPython
Python
 

Ähnlich wie Python, the Language of Science and Engineering for Engineers

Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 

Ähnlich wie Python, the Language of Science and Engineering for Engineers (20)

Why learn python in 2017?
Why learn python in 2017?Why learn python in 2017?
Why learn python in 2017?
 
Python workshop
Python workshopPython workshop
Python workshop
 
Python workshop
Python workshopPython workshop
Python workshop
 
All you need to know about Python | BJIT
All you need to know about Python | BJITAll you need to know about Python | BJIT
All you need to know about Python | BJIT
 
Welcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdfWelcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdf
 
Welcome to Python Programming Language.pptx
Welcome to Python Programming Language.pptxWelcome to Python Programming Language.pptx
Welcome to Python Programming Language.pptx
 
Welcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdfWelcome to Python Programming Language.pdf
Welcome to Python Programming Language.pdf
 
Python for beginners
Python for beginnersPython for beginners
Python for beginners
 
introduction to Python (for beginners)
introduction to Python (for beginners)introduction to Python (for beginners)
introduction to Python (for beginners)
 
IRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming LanguageIRJET- Python: Simple though an Important Programming Language
IRJET- Python: Simple though an Important Programming Language
 
ppt summer training ug.pptx
ppt summer training ug.pptxppt summer training ug.pptx
ppt summer training ug.pptx
 
PYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptxPYTHON TUTORIALS.pptx
PYTHON TUTORIALS.pptx
 
Introduction of python programming
Introduction of python programmingIntroduction of python programming
Introduction of python programming
 
Python programming for beginners
Python programming for beginnersPython programming for beginners
Python programming for beginners
 
python Certification Training in marthahalli
python Certification Training in marthahallipython Certification Training in marthahalli
python Certification Training in marthahalli
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdf
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes
 

Kürzlich hochgeladen

Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
chumtiyababu
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Kandungan 087776558899
 

Kürzlich hochgeladen (20)

Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptxOrlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
Orlando’s Arnold Palmer Hospital Layout Strategy-1.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Verification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptxVerification of thevenin's theorem for BEEE Lab (1).pptx
Verification of thevenin's theorem for BEEE Lab (1).pptx
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKARHAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
HAND TOOLS USED AT ELECTRONICS WORK PRESENTED BY KOUSTAV SARKAR
 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Online food ordering system project report.pdf
Online food ordering system project report.pdfOnline food ordering system project report.pdf
Online food ordering system project report.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
kiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal loadkiln thermal load.pptx kiln tgermal load
kiln thermal load.pptx kiln tgermal load
 
Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 

Python, the Language of Science and Engineering for Engineers

  • 1. Boey Pak Cheong B. Sc. (Hons) pcboey@pytech.com.my http://pytechresources.comSpecialized in Python Training Since 2006
  • 3. What is Python? ● A programming language ● Interpreted ● Object-oriented ● High-level ● Developed by Guido van Rossum from 1989 ● Cross-platform ● Open-source, freely distributable
  • 4. Python 2 or 3 ● Python 2 or 3 ? ● Python 2.x is legacy, Python 3.x is the present and future of the language. ● Where can I get Python from? ● Python Official Website – Standard Python installation ● Third Party Packagers – Anaconda – Enthought Canopy
  • 5.
  • 6.
  • 9. Saving Energy with Python SMS Siemag AG
  • 10. Lift off with Python DLR German Aerospace Center VAMPzero: Aircraft Conceptual Design with Python
  • 11. ● Johnson Space Center ● Integrated Planning System – Uses Python as standard scripting language ● modular collection of tools for assisting shuttle pre-mission planning ● For more info visit : https://www.python.org/about/success/u sa/
  • 12. Why Python? ● Easy to learn ● Simple, clean syntax ● As readable as English ● Write less code ● 3 to 5 time shorter than Java ● 5 to 10 times shorter than C++ ● Higher productivity
  • 13. Why Python? (2) ● Impressive Standard Libraries ● Extensive Third Party Libraries ● Excellent Documentation ● Powerful & Versatile ● Build websites ● Analyze and visualize data ● Scientific and numeric computing
  • 14. Why Python? (3) ● Free & Open-source ● Great community
  • 15. Job Trends from Indeed.com
  • 16. Some other considerations ● TIOBE index – October 2016 ● Python – 5th Position ● Fortran – 28th Position ● Intel released its Python distribution in 2016
  • 17. Fortran Vs Python ● Fortran ● Heavily optimized static typed compiler ● World's oldest yet still used language ● Python ● Dynamic typed interpreted language ● Created 1990
  • 18. Fortran Vs Python (2) ● Fortran ● Synonymous with scientific computing ● Only real alternative was C++ ● Including C, only languages supported by Intel – Until their Python came along ● Huge amount of scientific and engineering code written in Fortran – And still in use
  • 19. Fortran Vs Python (3) ● Computer processing time vs programming time ● Much easier to learn Python ● Faster to develop code using Python 1960/70's (Fortran days) Today Computer Processing Time Expensive Cheap Programming Time Relatively Cheap Expensive
  • 20. Fortran Vs Python (4) ● Compared with Fortran, the core Python arrays (lists) are not fast ● But Python with SciPy and NumPy is a game changer ● >90,000 Python packages in pypi ● Scientific/Engineering Category ● > 5500 packages ● In 16 sub-categories
  • 21. Fortran Vs Python Conclusion ● Fortran will still be around for some years ● Existing software needs maintenance ● But for new software ... ● Python is a good alternative – Easy to learn – Free, open-source – Numerous packages – Strong community
  • 22. What can you do with Python? ● Python by itself not suitable for typical engineering calculations ● You also need the numeric, scientific and plotting libraries ● NumPy ● SciPy ● Matplotlib ● Anaconda and Enthought Canopy distributions provide all
  • 23. ● Some engineering calculations you can do ● Linear algebra ● Root finding (non-linear algebra) ● Linear or nonlinear regression ● Integration and ordinary differential equations ● statistics ● plotting
  • 24.
  • 25. Example Jupyter Notebooks ● Quickstart Python Tutorial ● Using the integrate module from scipy ● Digital Signal Processing