Skip to main content Accessibility help
×
Hostname: page-component-84b7d79bbc-fnpn6 Total loading time: 0 Render date: 2024-07-25T20:44:00.460Z Has data issue: false hasContentIssue false

10 - Front end programming

Published online by Cambridge University Press:  21 March 2011

Paul R. Wellin
Affiliation:
Wolfram Research Inc., Illinois
Richard J. Gaylord
Affiliation:
University of Illinois, Urbana-Champaign
Samuel N. Kamin
Affiliation:
University of Illinois, Urbana-Champaign
Get access

Summary

In this chapter we extend the programming concepts we have covered thus far to the objects that comprise the user interface, or front end. Because the objects that the Mathematica user interacts with are themselves Mathematica expressions, all of the tools that you use to do computations can also be used to create, manipulate, and alter cells and notebooks themselves. We will first look at the underlying structure of these objects and then discuss ways of manipulating them directly from within Mathematica.

Introduction

Up until this point, we have been primarily concerned with learning about programming constructs and styles so that we can write programs to manipulate data or solve problems from science, engineering, or mathematics. We have taken for granted that the space in which we do our experimenting, prototyping, and documenting has been the Mathematica notebook, an interface that has some similarities to a word processor document.

It is not uncommon now to add interactive elements to your documents to make them more useful for yourself or the intended reader of your documents. With programs, documentation, and papers all being created and used in electronic format, Mathematica provides a seamless and well-integrated interface to these elements.

Another tool that is useful, especially for educators, are buttons that allow you to hide your program code behind a familiar and easy-to-use interface element – the button. The user clicks on a button and an action happens that is determined by the underlying code.

Type
Chapter
Information
Publisher: Cambridge University Press
Print publication year: 2005

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.

  • Front end programming
  • Paul R. Wellin, Wolfram Research Inc., Illinois, Richard J. Gaylord, University of Illinois, Urbana-Champaign, Samuel N. Kamin, University of Illinois, Urbana-Champaign
  • Book: An Introduction to Programming with Mathematica®
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511801303.010
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.

  • Front end programming
  • Paul R. Wellin, Wolfram Research Inc., Illinois, Richard J. Gaylord, University of Illinois, Urbana-Champaign, Samuel N. Kamin, University of Illinois, Urbana-Champaign
  • Book: An Introduction to Programming with Mathematica®
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511801303.010
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.

  • Front end programming
  • Paul R. Wellin, Wolfram Research Inc., Illinois, Richard J. Gaylord, University of Illinois, Urbana-Champaign, Samuel N. Kamin, University of Illinois, Urbana-Champaign
  • Book: An Introduction to Programming with Mathematica®
  • Online publication: 21 March 2011
  • Chapter DOI: https://doi.org/10.1017/CBO9780511801303.010
Available formats
×