Book Image

Sage Beginner's Guide

By : Craig Finch
1 (1)
Book Image

Sage Beginner's Guide

1 (1)
By: Craig Finch

Overview of this book

Table of Contents (17 chapters)
Sage Beginner's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Sage and NumPy


One potential source of confusion in this chapter is that Sage incorporates functions from NumPy, Maxima, the GNU Scientific Library (GSL), and other sources. Whenever possible, we will use functions in Sage. However, sometimes we need to go to NumPy to perform a particular calculation. To minimize the possibility of confusion, do not use the syntax from numpy import * . This imports every name from NumPy into Sage, overriding some pre-defined Sage functions and objects. Use the syntax shown in the examples, which keeps NumPy functions separate from Sage functions.