Fourteen days of drills that turn Fortran's array rules into things you can prove you know.
This is a drill manual, not a narrative course. The programming problems build one real program across the book: flux, a command-line tool that analyses a numerical grid. It starts as a program that prints its own version. By the close of Chapter 14 it reads a grid from a file, reports row and column statistics, runs a stencil over the interior, times its own passes and reduces in parallel. A reader who works the programming problems finishes with a working tool. A reader who skips them still finishes with the language, because the exposition never depends on flux existing.
The fourteen chapters carry the working core of Fortran for numerical computing. The opening chapters fix the program, the compiler and the kind system, then settle whole-array expressions, sections and reductions as rules with failure examples rather than quirks discovered by accident later. The middle chapters cover do concurrent, the intent attribute, modules and submodules, derived types, and the memory rules that decide when a finalizer actually fires. The later chapters cover input and output driven by iostat, format control, IEEE arithmetic, and memory order and timing measured rather than assumed. The book closes on parallelism.
Every claim in the book was compiled. Integer overflow, a rank error, a hidden array temporary, a finalizer that does not fire, an optimiser that deletes a timed loop whose result nothing reads - each is on the page because a compiler on a real machine did it, with the diagnostic or output it actually produced printed underneath.
Every chapter has the same shape. Numbered sections state the rules, and each rule carries its own worked example: a complete, compilable program, the output captured from its run, and a figure drawing the mechanism. Five problem sets close the chapter: Review Questions, Worked Problems and Worked Programming Problems with full solutions, then unassisted Practice Problems in both forms. Review question answers sit at the end of the chapter. The practice problems have no answers anywhere, by design.
A reader who can already program and wants fluency in Fortran under test conditions. Students on a computational science course. Researchers who have inherited a Fortran code base and need to read and change it with confidence. Programmers who need array computation that runs fast. No prior Fortran is assumed, and no mathematics beyond an average and a straight line.
383 runnable listings. 458 figures. 370 pages. Written to Fortran 2023 as GNU Fortran 15.2.0 implements it, with no external library used anywhere in the book.
Install a current GNU Fortran, open Chapter 1, and start compiling the listings.
Die Inhaltsangabe kann sich auf eine andere Ausgabe dieses Titels beziehen.
Anbieter: California Books, Miami, FL, USA
Zustand: New. Print on Demand. Bestandsnummer des Verkäufers I-9798194533374
Anzahl: Mehr als 20 verfügbar
Anbieter: PBShop.store US, Wood Dale, IL, USA
PAP. Zustand: New. New Book. Shipped from UK. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Bestandsnummer des Verkäufers L0-9798194533374
Anzahl: Mehr als 20 verfügbar
Anbieter: Grand Eagle Retail, Bensenville, IL, USA
Paperback. Zustand: new. Paperback. Fourteen days. One compiler. Every program in the book compiled with -std=f2023 before it was printed. Fortran looks like a language everyone half-knows, and that is what makes it dangerous: a kind is a number rather than a promise of precision, a character variable has a length fixed at declaration, and a misspelled name without implicit none becomes a new variable instead of an error. Each of those is a rule with an exact answer, and the book drills the answer. On Day 1 the rule is implicit none, and flux prints only its own name and version. By Day 7 flux is organised into modules with an interface separated from its body. By Day 10 it reads a real grid from a file and checks iostat on every read rather than trusting it silently. By Day 14 flux finishes with a parallel reduction proved with do concurrent, coarrays and OpenMP, all compiled with the compiler of record. Every example in this book was compiled with GNU Fortran 15.2.0 under -std=f2023 before it was printed. 458 figures across 14 chapters carry what a listing alone cannot. 340 output blocks are pasted from a captured compile and run, never typed from memory. 396 pages hold 46 to 56 numbered problems per chapter, drilled rather than assumed. Fourteen chapters, one vehicle, one compiler, one standard, named on every page that needs it. YOUR 14-DAY PATH Day 1 - The Program and the Compiler: flux v0 prints its own name and version.Day 2 - Types, Kinds and Precision: flux gets a typed value reader.Day 3 - Arrays and Whole-Array Expressions: flux gets its grid type and a shape report.Day 4 - Array Sections, Reshape and Reductions: flux gets its row and column statistics.Day 5 - Control Flow and Do Concurrent: flux gets its smoothing stencil loop.Day 6 - Procedures, Arguments and Intent: flux is split into procedures with explicit interfaces.Day 7 - Modules and Submodules: flux gets its module layout.Day 8 - Derived Types and Type-Bound Procedures: the grid becomes a derived type with its own operations.Day 9 - Allocatables, Pointers and Memory: flux gets dynamic grid allocation.Day 10 - File Input and Output: flux gets its grid file reader, with iostat checked on every read.Day 11 - Character Strings and Formatting: flux gets its formatted report.Day 12 - IEEE Arithmetic and Numerical Error: flux gets a tolerance-aware comparison instead of equality.Day 13 - Performance, Memory Order and Timing: flux gets a timing report, measured with system_clock.Day 14 - Parallelism, Do Concurrent, Coarrays and OpenMP: flux finishes with a parallel reduction and its final report. WHO IT IS FOR. A programmer who already writes code in some language and wants modern Fortran -- arrays, modules, derived types, and parallelism -- taught as it is written today, not as it was written in 1977. You need GNU Fortran 15.2.0 or a close compiler, and a command line; no IDE is assumed. You do not need any external numerical library: flux is standard Fortran throughout, and the three F2023 features this compiler does not yet implement are named rather than pretended away. Download book source code from: {GitHub}/{mohammadnsaqib} 396 pages, in colour. This item is printed on demand. Shipping may be from multiple locations in the US or from the UK, depending on stock availability. Bestandsnummer des Verkäufers 9798194533374
Anbieter: PBShop.store UK, Fairford, GLOS, Vereinigtes Königreich
PAP. Zustand: New. New Book. Delivered from our UK warehouse in 4 to 14 business days. THIS BOOK IS PRINTED ON DEMAND. Established seller since 2000. Bestandsnummer des Verkäufers L0-9798194533374
Anzahl: Mehr als 20 verfügbar
Anbieter: CitiRetail, Stevenage, Vereinigtes Königreich
Paperback. Zustand: new. Paperback. Fourteen days. One compiler. Every program in the book compiled with -std=f2023 before it was printed. Fortran looks like a language everyone half-knows, and that is what makes it dangerous: a kind is a number rather than a promise of precision, a character variable has a length fixed at declaration, and a misspelled name without implicit none becomes a new variable instead of an error. Each of those is a rule with an exact answer, and the book drills the answer. On Day 1 the rule is implicit none, and flux prints only its own name and version. By Day 7 flux is organised into modules with an interface separated from its body. By Day 10 it reads a real grid from a file and checks iostat on every read rather than trusting it silently. By Day 14 flux finishes with a parallel reduction proved with do concurrent, coarrays and OpenMP, all compiled with the compiler of record. Every example in this book was compiled with GNU Fortran 15.2.0 under -std=f2023 before it was printed. 458 figures across 14 chapters carry what a listing alone cannot. 340 output blocks are pasted from a captured compile and run, never typed from memory. 396 pages hold 46 to 56 numbered problems per chapter, drilled rather than assumed. Fourteen chapters, one vehicle, one compiler, one standard, named on every page that needs it. YOUR 14-DAY PATH Day 1 - The Program and the Compiler: flux v0 prints its own name and version.Day 2 - Types, Kinds and Precision: flux gets a typed value reader.Day 3 - Arrays and Whole-Array Expressions: flux gets its grid type and a shape report.Day 4 - Array Sections, Reshape and Reductions: flux gets its row and column statistics.Day 5 - Control Flow and Do Concurrent: flux gets its smoothing stencil loop.Day 6 - Procedures, Arguments and Intent: flux is split into procedures with explicit interfaces.Day 7 - Modules and Submodules: flux gets its module layout.Day 8 - Derived Types and Type-Bound Procedures: the grid becomes a derived type with its own operations.Day 9 - Allocatables, Pointers and Memory: flux gets dynamic grid allocation.Day 10 - File Input and Output: flux gets its grid file reader, with iostat checked on every read.Day 11 - Character Strings and Formatting: flux gets its formatted report.Day 12 - IEEE Arithmetic and Numerical Error: flux gets a tolerance-aware comparison instead of equality.Day 13 - Performance, Memory Order and Timing: flux gets a timing report, measured with system_clock.Day 14 - Parallelism, Do Concurrent, Coarrays and OpenMP: flux finishes with a parallel reduction and its final report. WHO IT IS FOR. A programmer who already writes code in some language and wants modern Fortran -- arrays, modules, derived types, and parallelism -- taught as it is written today, not as it was written in 1977. You need GNU Fortran 15.2.0 or a close compiler, and a command line; no IDE is assumed. You do not need any external numerical library: flux is standard Fortran throughout, and the three F2023 features this compiler does not yet implement are named rather than pretended away. Download book source code from: {GitHub}/{mohammadnsaqib} 396 pages, in colour. This item is printed on demand. Shipping may be from our UK warehouse or from our Australian or US warehouses, depending on stock availability. Bestandsnummer des Verkäufers 9798194533374
Anzahl: 1 verfügbar
Anbieter: AHA-BUCH GmbH, Einbeck, Deutschland
Taschenbuch. Zustand: Neu. Neuware. Bestandsnummer des Verkäufers 9798194533374
Anzahl: 2 verfügbar