Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Sage Beginner's Guide

You're reading from   Sage Beginner's Guide Unlock the full potential of Sage for simplifying and automating mathematical computing with this book and eBook

Arrow left icon
Product type Paperback
Published in May 2011
Publisher
ISBN-13 9781849514460
Length 364 pages
Edition Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
Craig Finch Craig Finch
Author Profile Icon Craig Finch
Craig Finch
Arrow right icon
View More author details
Toc

Table of Contents (17) Chapters Close

Sage Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
1. What Can You Do with Sage? 2. Installing Sage FREE CHAPTER 3. Getting Started with Sage 4. Introducing Python and Sage 5. Vectors, Matrices, and Linear Algebra 6. Plotting with Sage 7. Making Symbolic Mathematics Easy 8. Solving Problems Numerically 9. Learning Advanced Python Programming 10. Where to go from here Index

Chapter 9. Learning Advanced Python Programming

In Chapter 4, we learned about the basic elements of Python programming that you need to use Sage effectively. Throughout the following chapters, we saw various examples of objects in Sage, such as the ode_solver object we used in the last chapter. In this chapter, you will learn how to define your own classes to create custom objects. Objects are a way to bundle data and algorithms together to help you keep your code organized. You will also learn to handle runtime errors in your programs by using exceptions. Finally, you will learn how unit testing can help you avoid bugs in your code. Many of the concepts in this chapter are used by software engineers on large projects. It might seem to be "overkill" to use these principles on the short scripts you have been writing, but short scripts tend to grow into long programs. A little bit of discipline early in the programming process can save a lot of time later on.

In this chapter, you will learn...

lock icon The rest of the chapter is locked
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Sage Beginner's Guide
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at AU $24.99/month. Cancel anytime
Modal Close icon
Modal Close icon