
An Introduction to SAGE Programming
With Applications to SAGE Interacts for Numerical Methods
- English
- ePUB (mobile friendly)
- Available on iOS & Android
An Introduction to SAGE Programming
With Applications to SAGE Interacts for Numerical Methods
About this book
Features a simplified presentation of numerical methods by introducing and implementing SAGE programs
An Introduction to SAGE Programming: With Applications to SAGE Interacts for Numerical Methods emphasizes how to implement numerical methods using SAGE Math and SAGE Interacts and also addresses the fundamentals of computer programming, including if statements, loops, functions, and interacts. The book also provides a unique introduction to SAGE and its computer algebra system capabilities; discusses second and higher order equations and estimate limits; and determines derivatives, integrals, and summations. Providing critical resources for developing successful interactive SAGE numerical computations, the book is accessible without delving into the mathematical rigor of numerical methods.
The author illustrates the benefits of utilizing the SAGE language for calculus and the numerical analysis of various methods such as bisection methods, numerical integration, Taylor's expansions, and Newton's iterations. Providing an introduction to the terminology and concepts involved, An Introduction to SAGE Programming: With Applications to SAGE Interacts for Numerical Methods also features:
- An introduction to computer programming using SAGE
- Many practical examples throughout to illustrate the application of SAGE Interacts for various numerical methods
- Discussions on how to use SAGE Interacts and SAGE Cloud in order to create mathematical demonstrations
- Numerous homework problems and exercises that allow readers to practice their programming skillset
- A companion website that includes related SAGE programming code and select solutions to the homework problems and exercises
An Introduction to SAGE Programming: With Applications to SAGE Interacts for Numerical Methods is an ideal reference for applied mathematicians who need to employ SAGE for the study of numerical methods and analysis. The book is also an appropriate supplemental textbook for upper-undergraduate and graduate-level courses in numerical methods.
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app.
Information
Chapter 1
Introduction
1.1 What is Sage Math?
http://Sagemath.org [16]. On this website, you can find Quickstart Manuals, Official Documentation Manuals, and Official Binaries that you can use in order to install Sage Math on your own machine. Although the website is very nicely organized, you cannot overestimate the use of the āSearchā, button which is also available. The source code is obtainable there too.1.2 Various Flavors of Sage Math
1.2.1 Sage Math on Your Machine
http://wiki.sagemath.org/SageAppliance.1.2.2 Sage Cell
āSage Version 6.3, Release Date: 2014-08-10ā. Before you start using it, be aware of the following two main limitations: you need to be connected to the Internet, in order to use Sage Cell, and you won't be able to save your work in there. On the positive side it is very easy to use. It works well on desktop/laptop computers as well as on smartphones.1.2.3 Sage Cloud
http://sagenb.org). As the front page of this website mentions, one can use it to ācreate, collaborate on, and publish interactive worksheetsā. Once you register and create a free account, you can create Sage code, save it, access it, and even share it.https://cloud.sagemath.com), which seems to quickly replace Sage Notebook. It adds features and capabilities such as ācollaboratively work with Sage Worksheets, IPython notebooks, LaTeX documentsā, Course Management (an example is a UCLA 400+ student Calculus course), and many others. There is even a Chrome App available that works with it. Sage Cloud is planned to replace Sage Notebook. One can even run code written in other programming languages such as C, C++, Java, and many others, inside Sage Cloud.https://cloud.sagemath.com/). There you will be invited to either sign in or create a free account.āCreate New Projectā button, you will be invited to select a name and an optional description. Then, clicking on the link āCreate or Import a File, Worksheet ...ā, one can select Sage Worksheet, and create a new Sage Worksheet. There, one can type in Sage code and run it.#Here come the "fancy" Interacts
@interact
def myInteract1(
f = input_box(default=e^x ),
n = slider(vmin=0, vmax=10, step_size=1, \
default=3, label="Select the order n: "),
x0 = input_box(default=0 ),
simplified = selector(values = ["Yes", "No"], \
label = "Simplify: ",default = "No" )):
if(simplified == "Yes"):
print f, " = " , f.taylor(x, x0, n).full_simplify()
else:
print f, " = " , f.taylor(x, x0, n)
@interact
def myInteract2(
f = input_box(default=e^x ), \
n = slider( 0, 10, step_size=1, \
default=3, label="Select the order n: "), \
x0 = input_box(default=0 ),
simplified = selector(values = ["Yes", "No"], \
label = "Simplify: ",default = "No" )):
if(simplified == "Yes"):
print f, " = " , f.taylor(x, x0, n).full_simplify()
else:
print f, " = " , f.taylor(x, x0, n)
https://github.com/sagemath/cloud/wiki/Teaching contains a list of links to several courses (such as Calculus, Combinatorics, Statistical Computing, Cryptography, Computer Systems Security, Experimental Gravitational Wave Physics, Linear Algebra, Differential Equations, Abstract Algebra, and many others) that are using Sage Math See also: [1], [2], and [3].Chapter 2
Using Sage Math as a Calculator
Table of contents
- Cover
- Title Page
- Copyright
- Dedication
- Preface
- Chapter 1: Introduction
- Chapter 2: Using Sage Math as a Calculator
- Chapter 3: Introduction to Programming in Sage
- Chapter 4: Sage Interacts for Numerical Methods
- References
- Index
- End User License Agreement