Mathematica Cookbook
Sal Mangano
Beijing • Cambridge • Farnham • Köln • Sebastopol • Taipei • Tokyo
Mathematica Cookbook
by Sal Mangano
Copyright © 2010 Salvatore Mangano. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472.
O’Reilly books may be purchased for educational, business, or sales promotional use. Online edi-
tions are also available for most titles (http://my.safaribooksonline.com). For more information,
contact our corporate/institutional sales department: (800) 998-9938 or corporate@oreilly.com.
Editor:
Mike Loukides
Production Editor:
Adam Witwer
Production Services:
Precision Graphics
Cover Designer:
Karen Montgomery
Interior Designer:
David Futato
Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trade-
marks of O’Reilly Media, Inc. Mathematica Cookbook, the image of a solarium seashell, and
related trade dress are trademarks of O’Reilly Media, Inc.
Many of the designations used by manufacturers and sellers to distinguish their products are
claimed as trademarks. Where those designations appear in this book, and O’Reilly Media, Inc.,
was aware of a trademark claim, the designations have been printed in caps or initial caps.
While every precaution has been taken in the preparation of this book, the publisher and author
assume no responsibility for errors or omissions, or for damages resulting from the use of the
information contained herein.
ISBN: 978-0-596-52099-1
Wolfram Mathematica
®
Spikey logo is a registered trademark of Wolfram Research, Inc. The Mathematica software design,
"" look and feel", display, and other graphic elements are copyright of Wolfram Research, Inc.
“
”
is a registered trademark of Wolfram Research, Inc. The Mathematica
To Wa n d a , L e o n a r d o a n d S a l v a t o r e :
My life would not compute without you.