Seite - XXI - in Programming for Computations – Python - A Gentle Introduction to Numerical Simulations with Python 3.6, Band Second Edition
Bild der Seite - XXI -
Text der Seite - 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, Band Second Edition
- Titel
- Programming for Computations – Python
- Untertitel
- A Gentle Introduction to Numerical Simulations with Python 3.6
- Band
- Second Edition
- Autoren
- Svein Linge
- Hans Petter Langtangen
- Verlag
- Springer Open
- Datum
- 2020
- Sprache
- englisch
- Lizenz
- CC BY 4.0
- ISBN
- 978-3-319-32428-9
- Abmessungen
- 17.8 x 25.4 cm
- Seiten
- 356
- Schlagwörter
- Programmiersprache, Informatik, programming language, functional, imperative, object-oriented, reflective
- Kategorie
- Informatik