Skip to main content Accessibility help
×
Hostname: page-component-848d4c4894-tn8tq Total loading time: 0 Render date: 2024-06-14T17:31:29.058Z Has data issue: false hasContentIssue false
This chapter is part of a book that is no longer available to purchase from Cambridge Core

Appendix B - Computer support

Roland van der Veen
Affiliation:
Leiden University
Jan van de Craats
Affiliation:
University of Amsterdam
Get access

Summary

Using a computer for solving some of the exercises

For solving some of the exercises in this book you should use a computer. There are many suitable commercial packages, such as Maple or Mathematica, but also free packages like Sage (see below). In this appendix we have chosen a free, accessible package for which you only need an internet browser. We use the web site Wolfram Alpha (abbreviated WA):

http://www.wolframalpha.com

WA is a mix of a search machine, a calculator and a computer algebra package. Although it is based upon Mathematica, there is no obligatory standard format or grammar to enter commands. A drawback might be that sometimes you get more results than you expect. The big advantage is that everybody can immediately start using it and that the site in time probably becomes better and better.

WhileWA is suitable for solving all the exercises in this book, the reader who wants to do heavier computations may be interested in the free program Sage. http://www.sagemath.org/. At the end of this appendix we will give a short introduction to this program.

We now will show which WA commands can be used in the exercises.

Chapter 1

Exercise 1.2.To plot a graph of the prime counting function, you enter:

plot primepi[x] x = 0 to 100

primepi is the name of the prime counting function and the numbers 0 and 100 specify the domain on which the function should be plotted. Of course,

you may vary the bounds 0 and 100 at will.

Exercise 1.3.To compute π (40000) you enter primepi[40000]. In Wolfram Alpha two graphs can be plotted together if you put the functions between braces, e.g.:

plot { 2x, primepi[x] } x = 0 to 100

Exercise 1.4.The functions f (x) and T2(x) are written in WA as Log[2,x] and Floor[Log[2,x]]. They can be plotted together by entering:

plot { Log[2,x], Floor[Log[2,x]] } x = 1 to 100

Exercise 1.5.To plot T2(x) together with a power function, e.g., x0.3, you may enter in WA:

plot { x ^ 0.3, Floor[Log[2,x]]} x = 0 to 100

As always, the domain may be adapted by changing the bounds 0 and 100.

Type
Chapter
Information
Publisher: Mathematical Association of America
Print publication year: 2016

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Save book to Kindle

To save this book to your Kindle, first ensure coreplatform@cambridge.org is added to your Approved Personal Document E-mail List under your Personal Document Settings on the Manage Your Content and Devices page of your Amazon account. Then enter the ‘name’ part of your Kindle email address below. Find out more about saving to your Kindle.

Note you can select to save to either the @free.kindle.com or @kindle.com variations. ‘@free.kindle.com’ emails are free but can only be saved to your device when it is connected to wi-fi. ‘@kindle.com’ emails can be delivered even when you are not connected to wi-fi, but note that service fees apply.

Find out more about the Kindle Personal Document Service.

Available formats
×

Save book to Dropbox

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Dropbox.

Available formats
×

Save book to Google Drive

To save content items to your account, please confirm that you agree to abide by our usage policies. If this is the first time you use this feature, you will be asked to authorise Cambridge Core to connect with your account. Find out more about saving content to Google Drive.

Available formats
×