وبلاگ بلیان

برنامه‌نویسی عددی عملی به زبان C: کاربردهای مالی، مهندسی و فیزیک

Practical Numerical C Programming : Finance, Engineering, and Physics Applications

جلد کتاب برنامه‌نویسی عددی عملی به زبان C: کاربردهای مالی، مهندسی و فیزیک

معرفی کتاب «برنامه‌نویسی عددی عملی به زبان C: کاربردهای مالی، مهندسی و فیزیک» (با عنوان لاتین Practical Numerical C Programming : Finance, Engineering, and Physics Applications) نوشتهٔ Philip Joyce, (Software engineer)، منتشرشده توسط نشر Apress : Imprint: Apress در سال 2020. این کتاب در فرمت pdf، زبان انگلیسی ارائه شده است.

Master the C code appropriate for numerical methods and computational modeling, including syntax, loops, subroutines, and files. Then, this hands-on book dives into financial applications using regression models, product moment correlation coefficients, and asset pricing. Next, __Practical Numerical C Programming__ covers applications for engineering/business such as supermarket stock reordering simulation as well as flight information boards at airports and controlling a power plant. Finally, the book concludes with some physics including building simulation models for energy and pendulum motion. Along the way, you’ll learn center-of-mass calculations, Brownian motion, and more. After reading and using this book, you'll come away with pragmatic case studies of actual applications using C code at work. Source code is freely available and includes the latest C20 standard release. **What You Will Learn** * Apply regression techniques to find the pattern for depreciation of the value of cars over a period of years * Work with the product moment correlation coefficient technique to illustrate the accuracy (or otherwise) of regression techniques * Use the past stock values of an asset to predict what its future values may be using Monte Carlo methods * Simulate the buying of supermarket stock by shoppers and check the remaining stock: if it is too low print a message to reorder the stock * Create a file of arrivals for an airport and send data to the airport’s display boards to show the current situation for the incoming flights * Simulate the patterns of particles moving in gases or solids **Who This Book Is For** Programmers and computational modelers with at least some prior experience with programming in C as well as programming in general. Table of Contents 4 About the Author 7 About the Technical Reviewer 8 Acknowledgments 9 Introduction 10 Chapter 1: Review of C 11 1.1 Arithmetic 11 1.2 Switches 14 1.3 Arrays 16 1.4 Strings 19 1.5 Mathematical Functions 21 1.6 User-Written Functions 26 1.7 File Creation 29 1.8 File Read 32 1.9 File Create2 34 1.10 File Read2 37 1.11 Common Mathematical and Logical Symbols 41 Part I: Finance Applications 43 Chapter 2: Regression 44 2.1 Capital Asset Pricing Model 52 2.2 CAPM Illustration 52 Chapter 3: PMCC 58 3.1 Theory 58 3.2 Manual Calculation of PMCC 60 3.3 PMCC Program 62 3.4 Comparison of the Two Regression Lines 66 3.5 Manual Calculation of the Two Regression Lines 67 3.6 Program for the Two Regression Lines 69 Chapter 4: Stock Price Prediction 81 4.1 Two Parts to Stock Price Changes 81 4.2 Drift Part of Formula 83 4.3 Simple Example with 5 Day’s Prices 84 4.4 Random Change Part of Formula 85 4.5 Combining the Two Elements 93 Part II: Commercial Applications 101 Chapter 5: Supermarket Stock 102 5.1 What We Are Simulating 102 5.2 Updating the File 106 Chapter 6: Flight Information 116 6.1 Airport Display Boards 116 6.2 Create Flights File 116 6.3 Update Display Boards 121 6.3.1 Not-Rollup Mechanism 122 6.3.2 Rollup Mechanism 123 Chapter 7: Power Plant Control 136 7.1 Simulation 136 7.2 Monitoring Safety Levels 140 Part III: Physics Applications 150 Chapter 8: Energy Transfer 151 8.1 Potential and Kinetic Energy Simulation 151 8.2 Convert Theory to Code 153 Chapter 9: Pendulum Simulation 156 9.1 Pendulum Theory 156 9.2 Euler Method 158 9.3 Euler-Cromer Method 163 Chapter 10: Center of Mass 167 10.1 Center of Mass Theory 167 10.2 Circular Plate 168 10.3 Other Shapes 174 Chapter 11: Brownian Motion 183 11.1 Brownian Motion Theory 183 Chapter 12: Diffusion Lattice Model 189 12.1 Vacancy Lattice Diffusion 189 Chapter 13: Chain Reaction 201 13.1 Chain Reaction Theory 201 13.2 Chain Reaction Program 204 Appendix: Answers to Problems 211 Index 278 "Master the C code appropriate for numerical methods and computational modeling, including syntax, loops, subroutines, and files. Then, this hands-on book dives into financial applications using regression models, product moment correlation coefficients, and asset pricing. Next, Practical Numerical C Programming covers applications for engineering/business such as supermarket stock reordering simulation as well as flight information boards at airports and controlling a power plant. Finally, the book concludes with some physics including building simulation models for energy and pendulum motion. Along the way, you'll learn center-of-mass calculations, Brownian motion, and more. After reading and using this book, you'll come away with pragmatic case studies of actual applications using C code at work. Source code is freely available and includes the latest C20 standard release. You Will: Apply regression techniques to find the pattern for depreciation of the value of cars over a period of years ; Work with the product moment correlation coefficient technique to illustrate the accuracy (or otherwise) of regression techniques ; Use the past stock values of an asset to predict what its future values may be using Monte Carlo methods ; Simulate the buying of supermarket stock by shoppers and check the remaining stock: if it is too low print a message to reorder the stock ; Create a file of arrivals for an airport and send data to the airport's display boards to show the current situation for the incoming flights ; Simulate the patterns of particles moving in gases or solids."--Publisher's description Front Matter ....Pages i-xiii Review of C (Philip Joyce)....Pages 1-32 Front Matter ....Pages 33-33 Regression (Philip Joyce)....Pages 35-48 PMCC (Philip Joyce)....Pages 49-71 Stock Price Prediction (Philip Joyce)....Pages 73-92 Front Matter ....Pages 93-93 Supermarket Stock (Philip Joyce)....Pages 95-108 Flight Information (Philip Joyce)....Pages 109-128 Power Plant Control (Philip Joyce)....Pages 129-142 Front Matter ....Pages 143-143 Energy Transfer (Philip Joyce)....Pages 145-149 Pendulum Simulation (Philip Joyce)....Pages 151-161 Center of Mass (Philip Joyce)....Pages 163-178 Brownian Motion (Philip Joyce)....Pages 179-184 Diffusion Lattice Model (Philip Joyce)....Pages 185-196 Chain Reaction (Philip Joyce)....Pages 197-206 Back Matter ....Pages 207-277
دانلود کتاب برنامه‌نویسی عددی عملی به زبان C: کاربردهای مالی، مهندسی و فیزیک