[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"detail-sidebar-cat-0-en-105":3,"doc-seo-692232-105":59,"doc-detail-692232-en":134,"doc-similar-692232":162},{"code":4,"msg":5,"data":6},0,"success",[7,13,18,23,28,33,38,43,48,51,55],{"id":8,"doc_module":4,"doc_module_name":9,"category_name":10,"show_sort_weight":11,"slug":12},1,"Document","Story & Novel",90,"story-novel",{"id":14,"doc_module":4,"doc_module_name":9,"category_name":15,"show_sort_weight":16,"slug":17},2,"Literature",80,"literature",{"id":19,"doc_module":4,"doc_module_name":9,"category_name":20,"show_sort_weight":21,"slug":22},4,"Exam",70,"exam",{"id":24,"doc_module":4,"doc_module_name":9,"category_name":25,"show_sort_weight":26,"slug":27},5,"Comic",60,"comic",{"id":29,"doc_module":4,"doc_module_name":9,"category_name":30,"show_sort_weight":31,"slug":32},6,"Technology",50,"technology",{"id":34,"doc_module":4,"doc_module_name":9,"category_name":35,"show_sort_weight":36,"slug":37},7,"Healthcare",40,"healthcare",{"id":39,"doc_module":4,"doc_module_name":9,"category_name":40,"show_sort_weight":41,"slug":42},8,"Research & Report",30,"research-report",{"id":44,"doc_module":4,"doc_module_name":9,"category_name":45,"show_sort_weight":46,"slug":47},9,"Religion & Spirituality",20,"religion-spirituality",{"id":46,"doc_module":4,"doc_module_name":9,"category_name":49,"show_sort_weight":46,"slug":50},"World Cup","world-cup",{"id":52,"doc_module":4,"doc_module_name":9,"category_name":53,"show_sort_weight":52,"slug":54},10,"Lifestyle","lifestyle",{"id":56,"doc_module":4,"doc_module_name":9,"category_name":57,"show_sort_weight":24,"slug":58},19,"General","general",{"code":4,"msg":60,"data":61},"ok",{"site_id":62,"language":63,"slug":64,"title":65,"keywords":66,"description":67,"schema_data":68,"social_meta":127,"head_meta":129,"extra_data":131,"updated_unix":133},105,"en","a-students-guide-to-python-for-physical-modeling-second-edition","A Student’s Guide to Python for Physical Modeling - Second Edition","","A Student’s Guide to Python for Physical Modeling (Second Edition) is an instructional book that teaches Python with a focus on physical and computational modeling. It introduces algorithmic thinking, launching Python, modules, expressions, and good programming practices. It then covers data organization, control structures, data I/O, and visualization, including scripts, plotting, axes, error bars, and 3D graphs. The guide continues with labs, numerical methods, random simulation, histograms, contour and surface plots, nonlinear equation solving, linear systems, and numerical integration.",{"@graph":69,"@context":126},[70,84,105],{"@type":71,"itemListElement":72},"BreadcrumbList",[73,77,79,82],{"item":74,"name":75,"@type":76,"position":8},"https://docshare.wps.com","Home","ListItem",{"item":78,"name":9,"@type":76,"position":14},"https://docshare.wps.com/document/",{"item":80,"name":30,"@type":76,"position":81},"https://docshare.wps.com/document/technology/",3,{"item":83,"name":65,"@type":76,"position":19},"https://docshare.wps.com/document/a-students-guide-to-python-for-physical-modeling-second-edition/692232/",{"url":83,"name":65,"@type":85,"image":86,"author":91,"headline":65,"publisher":94,"fileFormat":97,"inLanguage":63,"description":67,"dateModified":98,"datePublished":99,"encodingFormat":97,"isAccessibleForFree":100,"interactionStatistic":101},"DigitalDocument",{"url":87,"@type":88,"width":89,"height":90},"https://docshare.wps.com/thumbnails/a-students-guide-to-python-for-physical-modeling-second-edition/692232.png","ImageObject",300,407,{"name":92,"@type":93},"SundayMiles","Person",{"url":74,"name":95,"@type":96},"DocShare","Organization","application/pdf","2026-11-27","2026-11-09",true,{"@type":102,"interactionType":103,"userInteractionCount":39},"InteractionCounter",{"@type":104},"ViewAction",{"@type":106,"mainEntity":107},"FAQPage",[108,114,118,122],{"name":109,"@type":110,"acceptedAnswer":111},"What programming foundations does the guide cover in the beginning chapters?","Question",{"text":112,"@type":113},"It covers algorithmic thinking, launching Python, using modules, working with expressions, and establishes good practices such as logging and variable naming.","Answer",{"name":115,"@type":110,"acceptedAnswer":116},"How does the book help readers organize and manipulate data in Python?",{"text":117,"@type":113},"It teaches objects and methods, lists/tuples/arrays, NumPy arrays and slicing/reshaping, along with strings and common formatting approaches.",{"name":119,"@type":110,"acceptedAnswer":120},"Which topics are included for modeling workflows and visualization?",{"text":121,"@type":113},"It includes importing/exporting data, plotting with log axes and multiple graphs, error bars, and 3D graphs, then moves into computer labs for applying these ideas.",{"name":123,"@type":110,"acceptedAnswer":124},"What numerical and simulation techniques are introduced later?",{"text":125,"@type":113},"It covers writing functions, random number generation and simulation, histograms and contour/surface plots, solving nonlinear equations and linear systems, and numerical integration.","https://schema.org",{"og:url":83,"og:type":128,"og:title":65,"og:site_name":95,"og:description":67},"article",{"robots":130,"canonical":83},"index,follow",{"doc_id":132,"site_id":62},692232,1794186384,{"code":4,"msg":5,"data":135},{"doc_id":132,"user_id":136,"nickname":92,"user_avatar":137,"doc_module":4,"category_id":29,"category_name":30,"doc_title":65,"doc_description":67,"doc_content":138,"file_id":139,"file_url":140,"file_type":141,"file_size":142,"view_count":39,"is_deleted":4,"is_public":8,"is_downloadable":8,"audit_status":8,"page_count":143,"language":144,"language_code":63,"site_id":62,"html_lang":63,"table_of_contents":145,"faqs":146,"seo_title":147,"seo_description":67,"update_tm":133,"read_time":148,"preview_page_count":81,"preview_urls":149},1099529839202,"https://ap-avatar.wpscdn.com/davatar_a8503ba1806abce46bf441b54a3ca4cd","A Student’s Guide to Python for Physical Modeling  \nSecond Edition  \nA Student’s Guide to Python for Physical Modeling  \nSecond Edition  \nJesse M. Kinder and Philip Nelson  \nPrinceton University Press  \nPrinceton and Oxford  \nCopyright © 2015, 2018, 2021 by Princeton University Press.  \nAll rights associated with the computer code in this work are retained by Jesse M. Kinder and Philip Nelson.  \nPrinceton University Press is committed to the protection of copyright and the intellectual property our authors entrust to us. Copyright promotes the progress and integrity of knowledge. Thank you for supporting free speech and the global exchange of ideas by purchasing an authorized edition of this book.  \nIf you wish to reproduce or distribute any part ofit in any form, please obtain permission.  \nRequests for permission to reproduce material from this work should be sent [to](to permissions@press.princeton.edu)[ permissions@press.princeton.edu](to permissions@press.princeton.edu) .  \nPublished by Princeton University Press, 41 William Street,  \nPrinceton, New Jersey 08540  \nIn the United Kingdom: Princeton University Press, 6 Oxford Street,  \nWoodstock, Oxfordshire OX20 1TR  \n[press.princeton.edu](press.princeton.edu)  \nAll Rights Reserved  \nOriginal edition published by Princeton University Press 2015  \nUpdated edition published 2018  \nISBN 978-0-691-21928-8  \nISBN (e-book) 978-0-691-22366-7  \nISBN (pbk.) 978-0-691-22365-0  \nLibrary of Congress Control Number 2021934834 .  \nBritish Library Cataloging-in-Publication Data is available.  \nThis book has been composed using the LATEX typesetting system.  \nThe publisher would like to acknowledge the authors of this volume for providing the camera-ready copy from which this book was printed.  \nPrinted on acid-free paper. ∞  \nPrinted in the United States of America  \n1 2 3 4 5 6 7 8 9 10  \nThe front cover shows a Mandelbrot set, an image that you will be able  \nto generate for yourself after you work through this book.  \nAlthough the authors have sought to provide accurate and up-to-date information, they assume no responsibility for errors or omissions, nor any liability for damages resulting from the use of the information  \ncontained within this document. The authors make no claim that  \nsuggestions and code samples described herein will work in future  \nversions of Python or its extended environments.  \nFor Oliver Arthur Nelson—PN  \nContents  \nLet's Go xiii  \n 1  Getting Started with Python 1  \n1.1 Algorithms and algorithmic thinking 1  \n1.1.1 Algorithmic thinking 1  \n1.1.2 States 2  \n1.1.3 What does a = a + 1 mean? 3  \n1.1.4 Symbolic versus numerical 3  \n1.2 Launch Python 4  \n1.2.1 IPython console 6  \n1.2.2 Error messages 10  \n1.2.3 Sources of help 10  \n1.2.4 Good practice: Keep a log 11  \n1.3 Python modules 11  \n1.3.1 import 12  \n1.3.2 from ... import 12  \n1.3.3 NumPy and PyPlot 13  \n1.4 Python expressions 14  \n1.4.1 Numbers 14  \n1.4.2 Arithmetic operations and prede􀀜ned functions 14  \n1.4.3 Good practice: Variable names 15  \n1.4.4 More about functions 16  \n 2  Organizing Data 19  \n2.1 Objects and their methods 19  \n2.2 Lists, tuples, and arrays 21  \n2.2.1 Creating a list or tuple 21  \n2.2.2 NumPy arrays 21  \n2.2.3 Filling an array with values 23  \n2.2.4 Concatenation of arrays 24  \n2.2.5 Accessing array elements 25  \n2.2.6 Arrays and assignments 26  \n2.2.7 Slicing 27  \n2.2.8 Flattening an array 28  \nviii  \n2.2.9 Reshaping an array 28  \n2.2.10 T2 Lists and arrays as indices 29  \n2.3 Strings 29  \n2.3.1 Raw strings 31  \n2.3.2 Formatting strings with the format() method 31  \n2.3.3 T2 Formatting strings with % 32  \n 3  Structure and Control 35  \n3.1 Loops 35  \n3.1.1 for loops 35  \n3.1.2 while loops 37  \n3.1.3 Very long loops 37  \n3.1.4 In􀀜nite loops 37  \n3.2 Array operations 38  \n3.2.1 Vectorizing math 38  \n3.2.2 Matrix math 40  \n3.2.3 Reducing an array 41  \n3.3 Scripts 42  \n3.3. 1 The Editor 42  \n3.3.2 T2 Other editors 42  \n3.3.3 First steps to debugging 43  \n3.3.4 Good practice: Comme","cbCair4lvGtNu7Wh","https://ap.wps.com/l/cbCair4lvGtNu7Wh","pdf",6427653,25,"English","# Contents\n## Let's Go\n## 1 Getting Started with Python\n## 2 Organizing Data\n## 3 Structure and Control\n## 4 Data In, Results Out\n## 5 First Computer Lab\n## 6 Random Number Generation and Numerical Methods","[{\"question\":\"What programming foundations does the guide cover in the beginning chapters?\",\"answer\":\"It covers algorithmic thinking, launching Python, using modules, working with expressions, and establishes good practices such as logging and variable naming.\"},{\"question\":\"How does the book help readers organize and manipulate data in Python?\",\"answer\":\"It teaches objects and methods, lists/tuples/arrays, NumPy arrays and slicing/reshaping, along with strings and common formatting approaches.\"},{\"question\":\"Which topics are included for modeling workflows and visualization?\",\"answer\":\"It includes importing/exporting data, plotting with log axes and multiple graphs, error bars, and 3D graphs, then moves into computer labs for applying these ideas.\"},{\"question\":\"What numerical and simulation techniques are introduced later?\",\"answer\":\"It covers writing functions, random number generation and simulation, histograms and contour/surface plots, solving nonlinear equations and linear systems, and numerical integration.\"}]","A Student’s Guide to Python for Physical Modeling - Second Edition | PDF",63,[150,154,158],{"page_no":8,"url":151,"width":152,"height":153},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/62d55776aa1b1c33bdf787ff65821c4d.webp",983,1228,{"page_no":14,"url":155,"width":156,"height":157},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/acdb2ed710448ba73ee8ebd367fe5cd7.webp",982,1178,{"page_no":81,"url":159,"width":160,"height":161},"https://res-academy.cache.wpscdn.com/upload/kdocshare/2026-11-09/def8652f7b7e69157efc280aa58fbc61.webp",981,1177,{"list":163,"token":66},[164,170,176,182,189,196,202,209,215,222],{"doc_id":165,"doc_title":166,"file_type":141,"home_preview_img_url":167,"slug":168,"view_count":19,"category_name":30,"create_tm":169},685807,"Introductory Scientific Computing with Python - Interactive Plotting - Lists and Plotting Points","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230000213234/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=SAapU3QjZb5L%2FPnCXCXZ49QKNxc%3D","introductory-scientific-computing-with-python-interactive-plotting-lists-and-plotting-points",1794018712,{"doc_id":171,"doc_title":172,"file_type":141,"home_preview_img_url":173,"slug":174,"view_count":14,"category_name":30,"create_tm":175},718147,"Hands-on Algorithmic Problem Solving - A Data Structures & Algorithms Guide","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110230019197453/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=Zt5g%2FwAUxaY0ydPf1ztDC%2FG%2Fx0w%3D","hands-on-algorithmic-problem-solving-a-data-structures-algorithms-guide",1794854116,{"doc_id":177,"doc_title":178,"file_type":141,"home_preview_img_url":179,"slug":180,"view_count":19,"category_name":30,"create_tm":181},669188,"homepage - statistical graphics, ANOVA, and probability plots","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229987930870/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=nFETzXtxTStVqfmMJ3nkvt9qBss%3D","homepage-statistical-graphics-anova-and-probability-plots",1793533286,{"doc_id":183,"doc_title":184,"file_type":141,"home_preview_img_url":185,"slug":186,"view_count":187,"category_name":30,"create_tm":188},315162,"General Mathematics UDF Guide - Version 1.5","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229907388238/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=xv0qMLLLQE0wPJLriiaQCvPim5g%3D","general-mathematics-udf-guide-version-15",28,1789903563,{"doc_id":190,"doc_title":191,"file_type":141,"home_preview_img_url":192,"slug":193,"view_count":194,"category_name":30,"create_tm":195},116482,"Python for Finance - Third Edition - With Early Release ebooks","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229834331922/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=WqJOjbZ2lpqcRB59pGbdoGgW4z0%3D","python-for-finance-third-edition-with-early-release-ebooks",26,1785659634,{"doc_id":197,"doc_title":198,"file_type":141,"home_preview_img_url":199,"slug":200,"view_count":39,"category_name":30,"create_tm":201},654574,"SECTION 1 - DRAFTING STANDARDS - Version 1 - drafting standards","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229974490633/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=PRf0f6LzQqUtnko0hEKc1r%2B5h%2Fo%3D","section-1-drafting-standards-version-1-drafting-standards",1792926252,{"doc_id":203,"doc_title":204,"file_type":141,"home_preview_img_url":205,"slug":206,"view_count":207,"category_name":30,"create_tm":208},127010,"Machine-learning-enhanced femtosecond-laser machining - towards an efficient and deterministic process control","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229839404306/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=EGJUlionMkICeXJwVjhO%2F4AAjPI%3D","machine-learning-enhanced-femtosecond-laser-machining-towards-an-efficient-and-deterministic-process-control",15,1785936266,{"doc_id":210,"doc_title":211,"file_type":141,"home_preview_img_url":212,"slug":213,"view_count":44,"category_name":30,"create_tm":214},656115,"ORACLE SQL DEVELOPER DATA MODELER - Key Features and Benefits","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229975300707/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=93CdDwXIGzqEl%2FNAUs2e%2FdLXOTc%3D","oracle-sql-developer-data-modeler-key-features-and-benefits",1792966469,{"doc_id":216,"doc_title":217,"file_type":141,"home_preview_img_url":218,"slug":219,"view_count":220,"category_name":30,"create_tm":221},115355,"Claude AI Bible - The Complete Guide to Mastering Claude, Claude Code, Claude Cowork, MCP, AI Agents, Automation & Advanced Prompting","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229831893665/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=uFMX0Inc1lo8cwzB7cqfq2hQ63w%3D","claude-ai-bible-the-complete-guide-to-mastering-claude-claude-code-claude-cowork-mcp-ai-agents-automation-advanced-prompting",917,1785472614,{"doc_id":223,"doc_title":224,"file_type":141,"home_preview_img_url":225,"slug":226,"view_count":227,"category_name":30,"create_tm":228},185,"XNX Universal Transmitter Installation Manual (Complete Guide) [Honeywell Official]","https://weboffice-temporary-prod-sg.obs.ap-southeast-3.myhuaweicloud.com:443/export/thumbnail/export/thumbnail/110229693710157/last/300/407?AWSAccessKeyId=HPUAE6OPDRI9QZXR6WJG&Expires=1796120459&Signature=%2B5hR2z01RyyekCtKOVcovEpsSf0%3D","xnx-universal-transmitter-installation-manual",856,1776135954]