lecture00_rev01.pdf - EML4930/EML6934 Lecture 00 About...

Info icon This preview shows pages 1–11. Sign up to view the full content.

View Full Document Right Arrow Icon
EML4930/EML6934: Lecture 00 - About Python Python2 vs Python3, Hello World, IPython, Notebooks, Instal- lation Charles Jekel August 24, 2017
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
About me PhD Student in the MDO lab. I look at improving techniques for selecting material parameters. My interests: non-linear finite element (FE) method non-linear material modeling inverse analysis optimization regression and classification digital image correlation (DIC) high performance computing (HPC) Python For more see http://jekel.me 1
Image of page 2
About the course Syllabus available online. The intention of this course is to prepare you to for doing numerical work in Python. Course expectations: 12 out of 14 homework — 60 % 2 quizzes — 10 % 1 final exam — 30 % 2
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Intended audience Course description Python is a general purpose programming language. Course covers the basics, linear algebra, plotting, and more to prepare students for solving numerical problems. Prerequisite: COP 2271 MATLAB or equivalent. You already know how to program in some language. You are interested in doing numerical analysis in Python. 3
Image of page 4
What is Python? - python.org Let’s see what http://python.org has to say about Python. Python is an interpreted, object-oriented, high-level programming language with dynamic semantics very attractive for Rapid Application Development a simple and easy to learn syntax 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Python is a very popular programming language For the first time ever, IEEE Spectrum rated Python the most popular programming language in 2017. http://spectrum.ieee.org/ computing/software/the-2017-top-programming-languages 5
Image of page 6
Built using Python 6
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Why Python? - Free, Open, and Powerful Python is Free and Open Python can be used commercially From research to deployment Libraries to do everything Adapted by scientist and engineers Cross platform support 7
Image of page 8
Python2 vs Python3 There is a syntax difference between Python version 2 and Python version 3. When Python 3.0 was released in 2008 it broke backwards compatibility with Python 2.X. This was a mistake, and resulted in a very slow adaption of Python 3. There are likely Python libraries that have yet to be ported to Python3. Additionally there are libraries that were only written in Python3. All new code should probably be written in a Python3 syntax, but I won’t force you to use Python3. I still primarily use Python 2.7. Choose your version based on your library needs. For more see: https://wiki.python.org/moin/Python2orPython3 8
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Python2 vs Python3 comparison Python2 wins Speed - Python 2.7 will always be faster Legacy Python updates won’t break your code!
Image of page 10
Image of page 11
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern