Essentials of Programming in Mathematica 无水印pdf

所需积分/C币:9 2017-09-28 13:32:38 8.04MB PDF

Essentials of Programming in Mathematica 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Essentials of Programming in Mathematica PAUL WELLIN EH H CAMBRIDGE 喝 UNIVERSITY PRESS CAMBRIDGE UNIVERSITY PRESS University printing house, Cambridge cb2 8Bs, United Kingdom Cambridge University Press is part of the University of Cambridge. It furthers the University's mission by disseminating knowledge in the pursuit of education, learning and research at the highest international levels of excellence C Paul wellin 2016 This publication is in copyright. Subject to statutory exception nd to the provisions of relevant collective licensing agreements, no reproduction of any part may take place without the written permission of Cambridge University Press First published 2016 Printed in the United Kingdom by Bell Bain Ltd Page 267. Quotation from "The Library of Babel by Jorge Luis Borges. Translated by James E Irby, from LABYRINTHS, copyright@ 1962, 1964 by New Directions Publishing Corp Reprinted by permission of New Directions Publishing Corp Page 296. Marcel Duchamp, Roue de bicyclette?@ 2012 Artists Rights Society (ARS ew York/ADAGP, Paris/Succession Marcel Duchamp Wolfram Mathematica is a registered trademark of Wolfram Research, Inc a catalogue record for this publication is available from the british Library Library of congress Cataloguing in Publication data IsbN 978-1-107-11666-5 Hardback Text set in dtL albertina 11/13; code set in Inconsolata; captions set in Syntax Lt Std System Mathematica, version 10.2 Designed and typeset by the author Cambridge University Press has no responsibility for the persistence or accuracy and does not guarantee that any content on such websites is, or will remai lion, of URLs for external or third-party internet websites referred to in this pub lica accurate or approprlate To the memory of my father whose love of books curiously led to this Contents Preface 1 Programming with mathematica Introduction to programming Your first Mathematica program Programming paradigms Creating programs 1.2 Getting started Starting and running Mathematica Mathematical expressions· Functions· Lists· Semicolons· Alternative input syntax· Comments· Exercises 1.3 Getting help Errors Getting out of trouble. Function information Documentation 1.4 Notes and further reading 2 The mathematica language 2.1 Expressions Evaluation of expressions Compound expressions Atoms. Normal expressions Display of expression Nesting expressions. Exercises 2.2 Numbers Types of numbers Digits and number bases Random numbers· Exercises 2.3 Definitions Defining variables and functions Immediate vs delayed assignments Compound functions Functions with multiple definitions Exercises 2.4 Predicates and boolean operations Predicates Relational and logical operators. Exercises 2.5 Attributes Listable. hold attributes. Protected. exercises 2.6 Notes and further reading 3 Lists and associations 3.1 Creating and displaying lists List structure and syntax List construction Displaying lists. Arrays. Exercises 3.2 Testing and measuring lists Testing a list. Measuring lists. Exercises 3.3 Operations on lists Extracting elements Applying functions to lists Rearranging lists List component assignment. Multiple lists· Exercises 3. 4 Associations Creating and displaying associations Operations on associations Creating a bibliography. Exercises 3.5 Differences from other languages 3.6 Notes and further reading 4 Patterns and rules 4.1 Patterns Blanks Pattern matching by type. Explicit pattern matching Structured patterns Sequence pattern matching Conditional pattern matching Shorthand notation Alternatives Repeated patterns. Functions that use patterns· Exercises 4.2 Transformation rules Creating and using replacement rules Applying transformation rules. Exercises 4.3 Examples Counting coins Filtering and extracting data Perimeter Triangle area Finding parts of expressions Sorting a list Sunspot activity. Exercises 4.4 Notes and further reading 5 Functions 5.1 Functions for manipulating expressions Map· Apply· Thread and Map Thread· Listability·Iner and outer· Select and pick· Exercises 5.2 Iterating functions Nest· Fixedpoint· Nest While·Fold· Exercises 5.3 Recursive functions Fibonacci numbers Thinking recursively. Dynamic programming. Exercises 5.4 Loops and flow control Conditional functions Piecewise-defined functions Which and Switch Argument checking. Do and For loops. While loops· Exercises 5.5 Pure functions Syntax of pure functions Multiple arguments Pure predicate functions Indexing with pure functions Newton revisited. Example: searching for attributes Exercises 5. 6 Examples Hamming distance The Josephus problem Protein interaction networks Operating on arrays. Enumerating binary matrices Clustering data. Exercises 5.7 Notes and further reading 6 Programs 6.1 Scoping constructs Localizing names: Module. Localizing values: Block Localizing constants With. Matrix manipulation Exercises 6.2 Options and messages Options· Messages· Exercises 6.3 Examples Sieve of eratosthenes Radius of gyration Lag plots Random walks. Exercises 6. 4 Notes an d further reading 7 Strings 7.1 Structure and syntax Display of strings Testing strings Measuring strings Character codes. Exercises 7.2 Operations on strings Basic string operations Strings vs lists Encoding text Anagrams· Exercises 7.3 String patterns Finding subsequences with strings Alternatives. Exercises


关注 私信 TA的资源