78185 - Computer Laboratory for Mechanical Engineering

Academic Year 2018/2019

  • Docente: Niccolò Moggi
  • Credits: 3
  • SSD: ING-IND/18
  • Language: Italian
  • Teaching Mode: Traditional lectures
  • Campus: Bologna
  • Corso: First cycle degree programme (L) in Mechanical Engineering (cod. 0927)

Learning outcomes

On completion of this course the students will be able to develop Python scripts and will be familiar with numeric and graphic libraries

Course contents

Introduction to the Python language:

variables and expressions

types and objects

flow control structures

built-in data structures

the standard library and modules

functions

I/O operations

classes

Practical applications on random number generators, statistics and data analysis, plots and histograms, search and sorting algorithms, linear algebra and numeric integration.

Some fundamental Python libraries as NumPy, SciPy, Matplotlib will be introduced and used.

Readings/Bibliography

An introductory Python manual may be usefull. Some indications will be given during the first lecture.

A lot of documentation may be found online https://docs.python.org/3/

Lecture slides will be provided.

Teaching methods

Lectures will be hold in laboratory where a computer will be available for each student. Large parte of the time will be devoted to exercises and practicing.

Assessment methods

Some of the practical exercises done during lectures will be graded.

A final practice test is due at the end of the course.

Those students that already have some knowledge of Python may replace the exercises during the course with the development of a new project that they should preliminarly agree upon with the lecturer.

Teaching tools

Videoprojector, computer, overhead projector

Office hours

See the website of Niccolò Moggi