Academic Year 2023/2024 - Teacher: Roberto GRIMAUDO

Expected Learning Outcomes

At the end of the course the students should be able to use the coding languages of both Mathematica and Python to analyse and visualize data. They shoud be further able to autonomously write elementary scripts for numerical analysis and to write a text in LaTex.

Course Structure

Lectures should be followed in classroom in person.

Required Prerequisites

No prerequisites are required.

Attendance of Lessons

To attend the course is commonly required.

Detailed Course Content

Introduction to Mathematica and Python and their basic functions.

Elements of basic coding.

Introduction to LaTex.

Course Planning

 SubjectsText References
1Introduction to Mathematica
2Introduction to Python
3Itroduction to Latex
4Input-output instructions
5For and while cicles
6If instruction
7Visualization: generate a graphic
8Using functions
9Writing a report with LaTex

Learning Assessment

Learning Assessment Procedures

The exam consists in a discussion about the scripts realized by the students during the course. 

Examples of frequently asked questions and / or exercises


(a) Write a script that calculates the number of seconds, s, given the number of hours, h, according to the formula s = 3600 * h.

(b) Use the script to find the number of seconds in 1.5, 12 and 24 hours.


(a) Write a script that calculates the mass, m, of a sphere given its radius r and mass density ρ according to the formula m=(4π/3) ρ r3

 (b) Use the script to find the mass of a sphere of steel of radius r = 1 cm, r = 1 m and r = 10 m.


(a) Write a function that for a point (x,y) returns the angle θ from the x-axis by using the formula θ = arctan(y/x)

(b) Find the angles θ for the points (1,1), (1,-1), (-1,1), (-1,-1).