Scientific Computing (Psychology 9040a)
Fall, 2021
Week 1: Basic data types, operators & expressions
Prep work
read
Basic data types, operators & expressions
read
Getting user input & printing output
read these sections in the MATLAB documentation on Floating-Point numbers:
Largest and Smallest Values
Accuracy of Floating-Point Data
Avoiding Common Problems with Floating-Point Arithmetic
play with the
IEEE-754 Floating Point Converter
(e.g. lookup the representation of 0.1, 0.2, and 0.3)
Coding exercises
overflow demo
Volume of a sphere
Temperature converter
Assignment
A1