Page - XXI - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
Image of the Page - XXI -
Text of the Page - XXI -
ListofExercises
Exercise1.1:ErrorMessages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Exercise1.2:Volumeofa Cube. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Exercise1.3:AreaandCircumferenceofa Circle. . . . . . . . . . . . . . . . . . . . . . . . 37
Exercise1.4:VolumesofThreeCubes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Exercise1.5:Averageof Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Exercise1.6:FormattedPrint toScreen . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Exercise2.1: InteractiveComputingofVolume. . . . . . . . . . . . . . . . . . . . . . . . . . 56
Exercise2.2: InteractiveComputingofCircumferenceandArea . . . . . . . . . . . 56
Exercise2.3:UpdateVariableat CommandPrompt . . . . . . . . . . . . . . . . . . . . . . 56
Exercise2.4:MultipleStatementsonOneLine. . . . . . . . . . . . . . . . . . . . . . . . . . 56
Exercise2.5:BooleanExpression—EvenorOddNumber?. . . . . . . . . . . . . . . . 57
Exercise2.6:PlottingArrayData . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Exercise2.7:SwitchingValues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Exercise2.8:DrawingRandomNumbers. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
Exercise3.1:AforLoopwithErrors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Exercise3.2:TherangeFunction. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Exercise3.3:AwhileLoopwith Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Exercise3.4:whileLoopInsteadof forLoop . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Exercise3.5:Compare Integersaandb . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Exercise3.6:AreaofRectangleVersusCircle. . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Exercise3.7:FrequencyofRandomNumbers . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Exercise3.8:Game21 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Exercise3.9:SimpleSearch:Verification. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Exercise3.10:SortArraywithNumbers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Exercise3.11:Computeπ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Exercise4.1:ErrorswithColon, Indent,etc. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Exercise4.2:ReadingCode1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Exercise4.3:ReadingCode2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Exercise4.4:FunctionsforCircumferenceandAreaofa Circle . . . . . . . . . . . . 98
Exercise4.5:FunctionforAddingVectors. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Exercise4.6:FunctionforAreaofa Rectangle . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Exercise4.7:Averageof Integers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Exercise4.8:WhenDoesPythonCheckFunctionSyntax? . . . . . . . . . . . . . . . . 99
Exercise4.9:FindCrossingPointsofTwoGraphs . . . . . . . . . . . . . . . . . . . . . . . 99
xxi
Programming for Computations – Python
A Gentle Introduction to Numerical Simulations with Python 3.6, Volume Second Edition
- Title
- Programming for Computations – Python
- Subtitle
- A Gentle Introduction to Numerical Simulations with Python 3.6
- Volume
- Second Edition
- Authors
- Svein Linge
- Hans Petter Langtangen
- Publisher
- Springer Open
- Date
- 2020
- Language
- English
- License
- CC BY 4.0
- ISBN
- 978-3-319-32428-9
- Size
- 17.8 x 25.4 cm
- Pages
- 356
- Keywords
- Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
- Category
- Informatik