L2 - CGN 3421 Computer Methods Gurley Lecture 2 Mathcad Basics Operators Addition Subtraction Specify evaluation order Multiplication Division ^

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
CGN 3421 - Computer Methods Gurley Lecture 2 Mathcad Basics page 12 of 20 Lecture 2 Mathcad Basics Operators + Addition, - Subtraction, * Multiplication, / Division, ^ Power ( ) Specify evaluation order Order of Operations ( ) ^ highest level, first priority * / next priority level + - last operations to be performed y := 2 x := 3 * y^2 x = 12 y := 2 x := (3*y)^2 x = 36 y := 2 x := 3 * y + 2 x = 8 z := 3*6+6*2/4 z = 21 x := 5^2/2 x = 12.5 Homework Format and Template: We’ll each develop a simple template to use to start any new homework. The idea of a template is to lay- out the basic structure of what goes into a homework assignment, minus the actual input, calculations, and output necessary for a specific assignment. To create template: Simply start a new worksheet and type in what you want on the template. Then use Save As and pick the mathcad Template option. To use template: From mathcad, open the template through the File --> Open command and change the Files of Type box at the bottom to Mathcad Template. Before adding any information to the template, save it as a standard worksheet of desired name by using File --> Save As. Note that the Save as Type box at the bottom auto- matically is set to standard Mathcad Worksheet format. Choose a name and save. Now the original tem- plate is preserved for the next use, and you can begin work on your new assignment.
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
CGN 3421 - Computer Methods Gurley Lecture 2 Mathcad Basics page 13 of 20 The basic structure and ingredients for every homework is given below. We’ll base our template on this. Title Page: Info: Name, Course, Assignment Number and Title. Summary/Observations: A brief summary (description) of the assignment. What did the assignment ask for? What did you learn? Did you discover anything easy/difficult with the assignment? It doesn’t have to be long, just clear and concise. Pseudocode: Pseudocode is a detailed description of the steps needed to solve the prob- lem from beginning to end. Work Page(s): Standard Code: Any Mathcad statements needed in every worksheet. (e.g. ORIGIN=1) Input Section: Scalars, vectors, matrices needed to begin calculations. Includes both per- manent assignments and user prompted information as well as data file loading. Calculation Section: Manipulations of the input information Output Section: This should include all your results (vectors, graphs, etc.). Clearly label what each piece of output is. Hand Verification: A sample problem by hand or other means independent of Mathcad. You need not verify every calculation, just samples to show your Mathcad results work. Fundamental Program Structure Labeling the program using comments program title student information program summary executable statements program input (load data from external files, assignment statements, etc.) perform operations needed (sequential execution, loops, etc.) display program output (graphs, numbers, output files, etc.) intersperse comments to explain program
Background image of page 2
CGN 3421 - Computer Methods Gurley Lecture 2 Mathcad Basics page 14 of 20 Sample Homework Template Computer Methods in Civil Engineering CGN 3421 Fall Semester, 2001 Kurt Gurley HW#: HW Title: Problem Statement: Observations: Pseudocode: ORIGIN 1 INPUT SECTION CALCULATIONS SECTION OUTPUT SECTION page break
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/18/2011 for the course CGN 3421 taught by Professor Long during the Spring '08 term at University of Florida.

Page1 / 9

L2 - CGN 3421 Computer Methods Gurley Lecture 2 Mathcad Basics Operators Addition Subtraction Specify evaluation order Multiplication Division ^

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online