Troubleshooting Maple Worksheets: Common Problems

Similar documents
Lesson 3: Solving Equations; Floating-point Computation

An Introduction to Maple This lab is adapted from a lab created by Bob Milnikel.

Choose the file menu, and select Open. Input to be typed at the Maple prompt. Output from Maple. An important tip.

Skill 1: Multiplying Polynomials

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM

Basic stuff -- assignments, arithmetic and functions

What's the Slope of a Line?

CS103 Spring 2018 Mathematical Vocabulary

MITOCW watch?v=zm5mw5nkzjg

Lesson 16: Integration

PROFESSOR: Last time, we took a look at an explicit control evaluator for Lisp, and that bridged the gap between

Section 1: Numerical Calculations

MITOCW watch?v=se4p7ivcune

2: Functions, Equations, and Graphs

MITOCW watch?v=0jljzrnhwoi

MITOCW ocw f99-lec12_300k

Post Experiment Interview Questions

1 Getting used to Python

Instructor: Craig Duckett. Lecture 04: Thursday, April 5, Relationships

BEGINNER PHP Table of Contents

AHHHHHHH!!!! NOT TESTING! Anything but testing! Beat me, whip me, send me to Detroit, but don t make me write tests!

MITOCW watch?v=hverxup4cfg

In our first lecture on sets and set theory, we introduced a bunch of new symbols and terminology.

MITOCW watch?v=rvrkt-jxvko

Formal Methods of Software Design, Eric Hehner, segment 24 page 1 out of 5

Square Roots: Introduction & Simplification

Iteration. The final line is simply ending the do word in the first line. You can put as many lines as you like in between the do and the end do

In this first example, we build a question that asks for the derivative of sec(x) and uses Maple to grade the response.

In further discussion, the books make other kinds of distinction between high level languages:

Lesson 4: Numerical Computations; Newton's method

John's Tutorial on Everyday Mathcad (Version 9/2/09) Mathcad is not the specialist's ultimate mathematical simulator

MITOCW ocw f99-lec07_300k

MITOCW watch?v=9h6muyzjms0

The Stack, Free Store, and Global Namespace

The following content is provided under a Creative Commons license. Your support

Linked Lists. What is a Linked List?

Part 1 Your First Function

MITOCW watch?v=4dj1oguwtem

MITOCW watch?v=kz7jjltq9r4

Introduction. What is Maple? How to use this tutorial. Where can I find Maple?

Maple Quick Start. Maplesoft, a division of Waterloo Maple Inc.

Formal Methods of Software Design, Eric Hehner, segment 1 page 1 out of 5

Instructor: Craig Duckett. Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables

Note: Please use the actual date you accessed this material in your citation.

Slide 1 CS 170 Java Programming 1

Watch the video below to learn more about number formats in Excel. *Video removed from printing pages. Why use number formats?

Part 1 Simple Arithmetic

How To Factory Reset Iphone 4 When Locked Out Without A Computer

Problem One: A Quick Algebra Review

Civil Engineering Computation

Max and Programming Is Max a Programming Language?

MITOCW watch?v=yarwp7tntl4

CONTENTS: What Is Programming? How a Computer Works Programming Languages Java Basics. COMP-202 Unit 1: Introduction

How to Improve Your Campaign Conversion Rates

This lesson is part 5 of 5 in a series. You can go to Invoice, Part 1: Free Shipping if you'd like to start from the beginning.

PROFESSOR: Well, now that we've given you some power to make independent local state and to model objects,

Introduction to Mathcad

4. Write sets of directions for how to check for direct variation. How to check for direct variation by analyzing the graph :

Week 1: Introduction to R, part 1

Solve, RootOf, fsolve, isolve

The following content is provided under a Creative Commons license. Your support

Most of the class will focus on if/else statements and the logical statements ("conditionals") that are used to build them. Then I'll go over a few

MITOCW watch?v=sdw8_0rdzuw

Starting. Read: Chapter 1, Appendix B from textbook.

Chris' Makefile Tutorial

Back to the main page Back to the Tutorial Page Digital Audio Rules of Audacity Setup, Audio Import and Playback Recording with Audacity

The Bisection Method versus Newton s Method in Maple (Classic Version for Windows)

Blitz2D Newbies: Definitive Guide to Types by MutteringGoblin

BBC Learning English Face up to Phrasals Mark's Mistake

Lesson 3 Transcript: Part 1 of 2 - Tools & Scripting

Windows 7 Will Not Load On My Computer Says Its

Microsoft's latest OS is a lot better than its predecessor, but it still has some annoying quirks. We help you solve them.

Out for Shopping-Understanding Linear Data Structures English

Getting to Know Maple

MITOCW ocw apr k

Who am I? I m a python developer who has been working on OpenStack since I currently work for Aptira, who do OpenStack, SDN, and orchestration

Direct Variations DIRECT AND INVERSE VARIATIONS 19. Name

Debugging. CSE 2231 Supplement A Annatala Wolf

The computer goes blank before the Word document was saved. The browser window freezes for no reason. You can't hear anything from your speakers.

CS/IT 114 Introduction to Java, Part 1 FALL 2016 CLASS 10: OCT. 6TH INSTRUCTOR: JIAYIN WANG

INTRODUCTION (1) Recognize HTML code (2) Understand the minimum requirements inside a HTML page (3) Know what the viewer sees and the system uses

NetLogo Lab 3 Tutorial: Finding Peaks

Name: Dr. Fritz Wilhelm Lab 1, Presentation of lab reports Page # 1 of 7 5/17/2012 Physics 120 Section: ####

mid=81#15143

Java Programming. Computer Science 112

Instructions I Lost My Iphone 4 Password Yahoo

The inverse of a matrix

NetLogo Tutorial Series: Langton's Ant. Nicholas Bennett Grass Roots Consulting

A Short Introduction to Maple

Basic Fiction Formatting for Smashwords in OpenOffice L. Leona Davis. Copyright 2012 L. Leona Davis All Rights Reserved

Create your first workbook

Learning to Program with Haiku

USING DRUPAL. Hampshire College Website Editors Guide

Contents. What's New. Version released. Newsletter #31 (May 24, 2008) What's New New version released, version 4.3.3

Getting Started With Mathematica

IDM 232. Scripting for Interactive Digital Media II. IDM 232: Scripting for IDM II 1

Hi everyone. Starting this week I'm going to make a couple tweaks to how section is run. The first thing is that I'm going to go over all the slides

Assignment 10 Solutions Due May 1, start of class. Physics 122, sections and 8101 Laura Lising

An Introduction to Maple and Maplets for Calculus

Slide 1 CS 170 Java Programming 1 Testing Karel

Transcription:

Troubleshooting Maple Worksheets: Common Problems So you've seen plenty of worksheets that work just fine, but that doesn't always help you much when your worksheet isn't doing what you want it to. This worksheet is full of commands that don't work as you'd expect them to; common errors that come up frequently with a mistyped expression and strange output types that require a little more work. This should give you some clues to look for when your own worksheet gives you strange output or no output at all. My command does nothing! This is one of the most common problems: you enter in a command, everything looks fine, but your output looks almost exactly like your command. I'd like to generate a random matrix, so I'll use the following command: (1.1) You've entered in what looks like a perfectly good command, but when you try to execute it, your output is the same as what you entered in the first place. This could be caused by a few things. Did you use the correct case? Remember that Maple is case sensitive, so type your command into Maple Help and make sure that you used the correct case and spelling! I should have used a capital M, so the correct command is actually: but that didn't work either, so we need to try something else. (1.2) Did you load all of the packages you need? Many commands are not available by default, so you may need to load them. Go back to Maple Help and see if this command is part of a package. This one is in LinearAlgebra, so load that using the with command: Now we have something different, but there's still something weird going on. (1.3) Did you check your spacing? Maple will automatically format as you type, so it can be difficult to pick up subtle differences like spacing. Here, I have an extra space after RandomMatrix, so if I adjust the command, I get: (1.4)

Did you execute your previous commands? Remember that order matters in Maple; if you saved your worksheet previously, you'll need to execute all of your previous commands. You may know what y is, but Maple has nothing stored until you execute the command: You will get different output if you execute these two commands in opposite order. 0 (1.5) (1.6) Why doesn't it simplify? I have an equation I'd like to simplify: (1.7) This looks as though it should simplify, but nothing happened. A few things are wrong here. Maple variables can be more than one letter long, the zx here is interpreted as a new variable instead of z times x. When in doubt, use a multiplication symbol: (1.8) Maple also does not recognize this e; it is assumed to be a variable and not the constant. You can use autocomplete or the palette to select the constant e, or use the exp function: (1.9) (1.10) We have a similar problem with pi. Maple identifies 'pi' as a variable and 'Pi' as a constant; case matters! You can also use autocomplete or the palette: (1.11) (1.12) Now we expect to see x, but here Maple is interpreting x(1) as a function so we have a multiplication problem again: x (1.13)

Weird output I got a bunch of extra stuff! I want to set up an equation: (2.1) but I got a bunch of extra t's and my y's disappeared. Something is stored to one of our variables, so you have a couple of options. A restart command will reset everything in your entire worksheet. (2.2) This is why it's a good idea to start every worksheet with a restart, but this might not be a good idea if you need to use any of your previous work. To clear out just one variable, you can use the following: My output has RootOf instead of the solution Let's say you're trying to solve an equation or a system of equations, here I'm going to solve a system of equations for x and y but instead of a set of solutions, you get this RootOf output instead. You could solve this yourself by hand and get a solution with no problem, what happened? Maple uses RootOf to represent the roots of an equation when the solutions are for a polynomial equation with degree greater than one. It is also used when Maple is unable to find an exact solution. You can find the values of all of the roots using the allvalues command: You might have trouble finding an exact solution to something like this: (2.3) (2.4) (2.5) (2.6) (2.7) That looks even worse, but if you look carefully, you'll see that this time, it included decimal approximations with each RootOf. You can use evalf to display only decimal approximations: (2.8) Be careful! If you use evalf too early, it will only give you the principal root: (2.9)

The dreaded pink error text Error text often means that you have something in the wrong place, or forgot to type something. Usually you can click on an error and it will take you to a webpage explaining what's wrong. In some cases, it will highlight the problem area, as with an invalid sequence or an unable to parse error: Error, invalid sequence Error, unable to parse You might encounter an unable to match delimiters error, this means that your brackets don't match up; check to see if you have too many or too few: Error, unable to match delimiters If you enter the wrong kind of information into a function, you'll probably get something like the following. It will usually tell you what sort of input the function expects, and at the end it will list the problem input: Error, invalid input: plot expects its 1st argument, p, to be of type {set, array, list, rtable, algebraic, procedure, And (`module`, appliable)}, but received 2*x = 4*y In this case, 2x = 4y is causing the problem.

Nothing is working! Sometimes you just get weird output even when you can't find anything wrong. This usually means that there's something subtle happening in one of your functions or it's a typing error that's impossible to see with the automatic formatting. Try typing it out again Don't copy and paste, but type out your command again on a separate line. Make sure that you're in math mode! When you select the command, make sure that Math is highlighted in the toolbar. I separate my text from commands using Maple input prompts to avoid this problem. If you're using the standard input boxes for commands, you may run into more problems. Check your packages If you're using commands from many different packages, sometimes they interact with each other in unexpected ways. Load only the packages you need! If it's a package causing you trouble, you can use the unwith command to unload a package that you were using previously. VecCalc has a lot of strange interactions with other commands, so if you're using this package, try to use only commands in this package. If I want to use VectorCalculus for the first half of the assignment and VecCalc for the second half, I could do the following to switch to VecCalc: (4.1) Initializing Package: VecCalc Version 8.0 All HELP is linked from?veccalc To use aliases, execute: VCalias; Loading packages: student plots Check the input and output types Maple help can give you information about what parameters various functions expect, and what they give as output. If you're not sure what sort of output you're getting from a function, you can use whattype to find out: symbol (4.2) Santa Barbara City College Mathematics Department, Allison Chapin 2011