Intro to Singular Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009

Size: px
Start display at page:

Download "Intro to Singular Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009"

Transcription

1 Intro to Singular Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009 The point of this brief document is to get you computing in Singular quickly. For more advanced topics, you should check out the user guide/manual or, even better, talk to an expert user. Where to find help Go to and click on Online manual. In my experience, sections 1 7,A E are well written and interesting, but the index (section F) is the place to go for specific help on a given topic. There are a few other tutorials out there, but those that I have seen contact information similar to what I will include in this document. In particular, you could check out the notes by Luis David Garcia Puente (at Sam Houston St.), which depend on those by Anton Leykin (at UIC), which depend on those on the Singular website and in the notes of Stefan Steidel (at Kaiserslautern, Singular s home base). These last two (Singular and Steidel) both contain lots of nice background and implementation information, too. Finally, you could always type help TOPIC; at the prompt. If you choose your wording correctly and installed Singular correctly, this should open up a text help file (like a man page). Personally, I like the online manual... Getting started Zube has graciously installed both Singular and Macaulay on nine machines in WB 205. Look for the most recent machines (those with the largest screens and the name containing the letter nearest Z (either O or P, as I recall). To run Singular, open a terminal and type singular. If that doesn t work, type cygwin and then singular in the new terminal. You ll know that singular has started when several lines identifying the sofware, version, and authors are printed to the screen. Zube, being the nice guy that he is, made it so that you can open Singular from the Start menu. Point to Start/All Programs/Singular CAS, and click on Singular (terminal). This will open Singular in a new terminal. The other way of opening Singular in WB 205 is through Cygwin, though it is a bit nasty. First, run cmd to get terminal access to your file system. Type../cygwin and then Cygwin to launch Cygwin. Cygwin is just a linux emulator for Windows, so you have just moved from one file system to another (though one is technically contained in the other, blah, blah, blah). I suggest that you then navigate to My documents/ and create a new directory, tmp, by typing mkdir tmp. Go into tmp (cd tmp) and type Singular to get Singular started. You ll see later why I am having you open Singular from a fresh directory. By the way, there is a way to run Singular from within emacs, but I prefer vi (no emacs on my machine), so I ll stick to the command line interface. Messing around From here on, I will just provide some things to try and some running commentary. Type in the commands that look > like this and see what happens. I neglected to include output so that you have to think a little. 1

2 As usual, feel free to veer off course and chase down topics of interest to you (with the caveat that there will be at least a couple problems in the homework requiring the use of Singular). > 2+2 Not 4? Try including a ; at the end of the line (or on the next line). Singular will wait until you provide this (or some other end-of-line character). Singular has some nice data types which should remind you of C: > int i=5; > i; > i++; > i; > i==3; 0 means false. > i==6; 1 means true. > i=3; i; Be careful = is assignment while == is comparison. Also, notice that you can put multiple commands on one line. > i:=3; := means nothing, so think of C rather than Maple. Singular supports matrices: > intmat m[2][2] = 1,2,3,4; > m; This gives you less attractive output with fewer keystrokes. > print(m); This gives you more attractive output with the cost of a few more keystrokes. As you will see in all software packages, there are limitations and workarounds. > m^2; > m2; > m*m; Aha. > m[1,2]; > m[1,2]=6; m; intvec is similar. By the way, if you make a mistake, just hit the up arrow to grab the latest line of input (and repeat that for previous lines). _ refers to the latest line of output. 2

3 > 2+2; > _+672; Also, in case I have bored you and you want to quit and go home, try > quit; // Very polite software! Oh yeah, // is the comment character in Singular. WARNING: If you opened Singular from the Start menu, it is not so polite the screen just disappears. From Cygwin, it kindly says Auf iedersehen. In case you care to play with strings, they are handled nicely: > string s="hey, how you"; s; Oops: > s=s+" doin?"; s; > s[5]; Why was there no output? > s[4]; s[6]; Oh. One last thing before we get to more serious math: You can write procedures (as in Maple). Here s one that I ripped from Steidel s notes: > proc GCD(int a, int b). {. int r = a%b;. while (r!= 0). {. a = b;. b = r;. r = a%b;. }. return(b);. } > GCD(21,15); You can stick these sorts of things in text (ASCII) files and load them into singular by running, for example, singular FILENAME (.sing is the standard suffix). This is why I had you go to a new directory in which you have read/write permission. This won t work if you open it from the Start menu (or, at least, it is much more difficult for a few reasons). You can load files on the fly, too. read(filename); will grab the contents of the file and display them to the screen (without execution, as in C). To execute them, use execute. To put it all together, to run a script while Singular is open, try execute(read(filename));. In any case, this is a very nice way to collect and correct your input from session to session. Rings and such > 1.5; 3

4 Toto, we re not in Maple anymore. One problem with Maple is that it was never clear which ring was being used. There is no question in Singular you have to pick one up front! > ring R=0,(x,y,z),dp; Let s parse the syntax. We re defining a ring, called R. It has three attributes it has characteristic zero (Q, unless we specify otherwise) and three variables. The dp refers to grevlex. lex is lp and others may be found in the manual. > R; This gives you some information on the current ring. Singular is software for commutative algebra/algebraic geometry, so it wants to work over polynomial rings (or localizations of rings, quotient rings, or tensor products). Let s define a polynomial: > poly f=2x2+y3; f; An integer immediately following a variable is an exponent for the variable only. > 2x2; 2x^2; Be careful! Also, I would advise that you do not use indexed variable names, or, if you do, use x(1),x(2),... OK, let s change to the polynomial ring in variables a and b over the reals, with lex: > ring R2=real,(a,b),lp; > 1.5; Ah, that s better. You can get more precision by specifying (real,25,50) rather than real in the declaration (for example). This would give you 50 digits of precision and 25 digits of accuracy. What s the difference? Ask me in class, or wait until we start in on numerical algebraic geometry next week... > f; What happened? The instance f was in scope for the ring R, which is no longer the active ring. Let s switch back to R (from R2): > setring R; f; That s better. Now go back. > setring R2; We can bring the definition of f into the current ring as follows: > poly g=fetch(r,f); By the way, you can work over a finite field by replacing real with a prime number (32003 is nice) or over the complex numbers by replacing real with complex. Note that i is 1 in Singular. You can also work over transcendental or algebraic extensions of rings... Gröbner bases and Elimination Now we can get serious. First though, a word about libraries. You ll need to use these. For example, many important procedures are included in the library general.lib. 4

5 > LIB general.lib ; Notice that this includes library files like matrix.lib, poly.lib, ring.lib, and random.lib. It seems that you may have access to some of the contents of these libraries (but not all!) without loading them, though the help pages certainly require that the appropriate library be loaded. Now then, let s compute a Gröbner basis: > ring R=0,(x,y),dp; > poly f = x3-2xy; > poly g = x2y-2y2+x; > ideal I = f,g; > groebner(i); Singular has two options for the computation of a Gröbner basis Buchberger s algorithm (no doubt with the modifications in [CLO1], and others) and Mora s algorithm (which we didn t discuss). So far, Faugère s algorithms are only in Magma and Maple (as far as I know). Straight from Garcia-Puente s notes, let s check and see if the point (x, y, z) = (1, 2, 0) lies on the variety defined by a couple of polynomials. We ll just substitute the values into the variables and see whether the polynomials evaluate to 0. This is just a way of evaluating, really: > poly f = x3+y3+(x-y)*x2y2+z2; f; > poly g = f^2*(2x-y); > ideal I=f,g; > ideal J=subst(I,var(1),1); > J=subst(J,var(2),2); > J=subst(J,var(3),0); > J; Neat, huh? We can also manage the division of a polynomial by a Gröbner basis: > ideal K = groebner(f); > reduce(g,k); Now, let s try elimination: > ring R = complex,(x,y,z),dp; > ideal I = x2-y-z-1, x-y2-z-1, x-y-z2-1; > ideal G = groebner(i); > G; Now we spot the univariate, solve it, and backtrack, right? Wait where s the univariate polynomial? What went wrong? Fix it, and then move along (once you get G). To solve the univariate polynomial, just do the following: > LIB "solve.lib"; > list L = laguerre_solve(g[1],100,100); That puts the list of numerically-computed solutions into L. From there, you can backtrack (using substitution). 5

6 Moving on Cool stuff, huh? Now that you have the basics under your belt, why not play around a bit. Here are a couple ideas: 1. Write a script to do elimination automatically (rather than doing each step manually). This could be tricky you ll need to detect which polynomials are univariate... Check out eliminate, solve, and such in the online manual. 2. Dig into the online manual to find a topic that interests you. 3. Dig into one of the tutorials that I mentioned above. 4. Find an example that chokes Maple (many primes in the coefficients, high degree, etc.) and try it in Singular. Try several of these and keep track of the timings. 5. Type up one of our three-resolute serial-link planar robotic arm examples and try to solve it... 6

Intro to Macaulay 2 Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009

Intro to Macaulay 2 Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009 Intro to Macaulay 2 Math 676 (Computational Algebraic Geometry) Dan Bates, CSU, Spring 2009 The point of today s lab is to interact a bit with Macaulay 2. I am no expert with M2, so much of this is ripped

More information

An introduction to Singular

An introduction to Singular An introduction to Singular Daniel Andres Sevilla October 02 & 04, 2012 Overview 2 / 27 1 A general introduction to Singular 2 D-modules and Singular Overview 3 / 27 1 A general introduction to Singular

More information

Congruence Arithmetic

Congruence Arithmetic Module 4 Congruence Arithmetic Popper 4 Introduction to what is like Modulus choices Partitions by modulus Mod 5 Mod 7 Mod 30 Modular Arithmetic Addition Subtraction Multiplication INTEGERS! Mod 12 Cayley

More information

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet.

The name of our class will be Yo. Type that in where it says Class Name. Don t hit the OK button yet. Mr G s Java Jive #2: Yo! Our First Program With this handout you ll write your first program, which we ll call Yo. Programs, Classes, and Objects, Oh My! People regularly refer to Java as a language that

More information

, has the form T i1i 2 i m. = κ i1i 2 i m. x i1. 1 xi2 2 xim m (2)

, has the form T i1i 2 i m. = κ i1i 2 i m. x i1. 1 xi2 2 xim m (2) CS61B, Fall 2002 Project #1 P. N. Hilfinger Due: Friday, 4 October 2002 at 2400 This first project involves writing a calculator program that can perform polynomial arithmetic. We ll do only a very limited

More information

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia

Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia Matlab for FMRI Module 1: the basics Instructor: Luis Hernandez-Garcia The goal for this tutorial is to make sure that you understand a few key concepts related to programming, and that you know the basics

More information

An Introduction to Open-Source Mathematics Software

An Introduction to Open-Source Mathematics Software 1 An Introduction to Open-Source Mathematics Software (Specifically: GAP,, Macaulay2 and Sage) Jason B. Hill Slow Pitch Colloquium University of Colorado March 17, 2010 2 Outline 1 Introduction 2 GAP -

More information

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 11

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 11 INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 11 RAVI VAKIL Contents 1. Products 1 1.1. Products in the category of affine varieties, and in the category of varieties 2 2. Coming soon 5 Problem sets can be

More information

An Interface between Mathematica and Singular

An Interface between Mathematica and Singular An Interface between Mathematica and Singular Manuel Kauers and Viktor Levandovskyy The authors acknowledge support by the grants SFB F1305 (Kauers) and SFB F1301 (Levandovskyy) of the Austrian FWF. Mission

More information

Annotated Examples 4

Annotated Examples 4 Annotated Examples 4 Generic example similar to example 3 but with rational numbers to reconstruct This is almost like example 3, except that there are non-trivial rational numbers occurring as coefficients.

More information

CSE341: Programming Languages Lecture 9 Function-Closure Idioms. Dan Grossman Winter 2013

CSE341: Programming Languages Lecture 9 Function-Closure Idioms. Dan Grossman Winter 2013 CSE341: Programming Languages Lecture 9 Function-Closure Idioms Dan Grossman Winter 2013 More idioms We know the rule for lexical scope and function closures Now what is it good for A partial but wide-ranging

More information

singular the GAP interface to Singular Version Marco Costantini Willem A. de Graaf 28 April 2012

singular the GAP interface to Singular Version Marco Costantini Willem A. de Graaf 28 April 2012 singular the GAP interface to Singular Version 12.04.28 28 April 2012 Marco Costantini Willem A. de Graaf Marco Costantini Email: costanti@science.unitn.it Homepage: http://www-math.science.unitn.it/~costanti/

More information

Introduction to Unix

Introduction to Unix Introduction to Unix Part 1: Navigating directories First we download the directory called "Fisher" from Carmen. This directory contains a sample from the Fisher corpus. The Fisher corpus is a collection

More information

Module 2 Congruence Arithmetic pages 39 54

Module 2 Congruence Arithmetic pages 39 54 Module 2 Congruence Arithmetic pages 9 5 Here are some excellent websites that can help you on this topic: http://mathcentral.uregina.ca/qq/database/qq.09.98/kupper1.html http://nrich.maths.org/public.viewer.php?obj_id=50

More information

John Perry. Spring 2016

John Perry. Spring 2016 MAT 305: Introduction to Sage University of Southern Mississippi Spring 2016 Outline 1 2 3 4 5 Outline 1 2 3 4 5 Sage? Software for Algebra and Geometry Exploration Computer Algebra System started by William

More information

Java Programming. Computer Science 112

Java Programming. Computer Science 112 Java Programming Computer Science 112 Review: Problem solving Class 4 is the Whole Point of Programming. Is there any particular one you'd like to go through? If you are desperately confused still, now

More information

Spectroscopic Analysis: Peak Detector

Spectroscopic Analysis: Peak Detector Electronics and Instrumentation Laboratory Sacramento State Physics Department Spectroscopic Analysis: Peak Detector Purpose: The purpose of this experiment is a common sort of experiment in spectroscopy.

More information

Using GitHub to Share with SparkFun a

Using GitHub to Share with SparkFun a Using GitHub to Share with SparkFun a learn.sparkfun.com tutorial Available online at: http://sfe.io/t52 Contents Introduction Gitting Started Forking a Repository Committing, Pushing and Pulling Syncing

More information

Algebra 1 Review. Properties of Real Numbers. Algebraic Expressions

Algebra 1 Review. Properties of Real Numbers. Algebraic Expressions Algebra 1 Review Properties of Real Numbers Algebraic Expressions Real Numbers Natural Numbers: 1, 2, 3, 4,.. Numbers used for counting Whole Numbers: 0, 1, 2, 3, 4,.. Natural Numbers and 0 Integers:,

More information

Introduction to Scientific Python, CME 193 Jan. 9, web.stanford.edu/~ermartin/teaching/cme193-winter15

Introduction to Scientific Python, CME 193 Jan. 9, web.stanford.edu/~ermartin/teaching/cme193-winter15 1 LECTURE 1: INTRO Introduction to Scientific Python, CME 193 Jan. 9, 2014 web.stanford.edu/~ermartin/teaching/cme193-winter15 Eileen Martin Some slides are from Sven Schmit s Fall 14 slides 2 Course Details

More information

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)...

2SKILL. Variables Lesson 6. Remembering numbers (and other stuff)... Remembering numbers (and other stuff)... Let s talk about one of the most important things in any programming language. It s called a variable. Don t let the name scare you. What it does is really simple.

More information

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

YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM YOGYAKARTA STATE UNIVERSITY MATHEMATICS AND NATURAL SCIENCES FACULTY MATHEMATICS EDUCATION STUDY PROGRAM TOPIC 1 INTRODUCING SOME MATHEMATICS SOFTWARE (Matlab, Maple and Mathematica) This topic provides

More information

John Perry. Spring 2017

John Perry. Spring 2017 MAT 305: Introduction to Sage University of Southern Mississippi Spring 2017 Outline 1 2 3 4 Outline 1 2 3 4 Sage? Software for Algebra and Geometry Exploration Computer Algebra System started by William

More information

MAT 003 Brian Killough s Instructor Notes Saint Leo University

MAT 003 Brian Killough s Instructor Notes Saint Leo University MAT 003 Brian Killough s Instructor Notes Saint Leo University Success in online courses requires self-motivation and discipline. It is anticipated that students will read the textbook and complete sample

More information

Lecture 2: SML Basics

Lecture 2: SML Basics 15-150 Lecture 2: SML Basics Lecture by Dan Licata January 19, 2012 I d like to start off by talking about someone named Alfred North Whitehead. With someone named Bertrand Russell, Whitehead wrote Principia

More information

1 Installation (briefly)

1 Installation (briefly) Jumpstart Linux Bo Waggoner Updated: 2014-09-15 Abstract A basic, rapid tutorial on Linux and its command line for the absolute beginner. Prerequisites: a computer on which to install, a DVD and/or USB

More information

Part 6b: The effect of scale on raster calculations mean local relief and slope

Part 6b: The effect of scale on raster calculations mean local relief and slope Part 6b: The effect of scale on raster calculations mean local relief and slope Due: Be done with this section by class on Monday 10 Oct. Tasks: Calculate slope for three rasters and produce a decent looking

More information

Lecture 3: Recursion; Structural Induction

Lecture 3: Recursion; Structural Induction 15-150 Lecture 3: Recursion; Structural Induction Lecture by Dan Licata January 24, 2012 Today, we are going to talk about one of the most important ideas in functional programming, structural recursion

More information

AN INTRODUCTION TO MAPLE

AN INTRODUCTION TO MAPLE AN INTRODUCTION TO MAPLE CHRISTOPHER J HILLAR Introduction This document introduces Maple, a commercial computer program for mathematical computation. You can learn about Maple from its website http://www.maplesoft.com/.

More information

CSci 1113, Fall 2015 Lab Exercise 4 (Week 5): Write Your Own Functions. User Defined Functions

CSci 1113, Fall 2015 Lab Exercise 4 (Week 5): Write Your Own Functions. User Defined Functions CSci 1113, Fall 2015 Lab Exercise 4 (Week 5): Write Your Own Functions User Defined Functions In previous labs, you've encountered useful functions, such as sqrt() and pow(), that were created by other

More information

(Refer Slide Time: 00:26)

(Refer Slide Time: 00:26) Programming, Data Structures and Algorithms Prof. Shankar Balachandran Department of Computer Science and Engineering Indian Institute Technology, Madras Module 07 Lecture 07 Contents Repetitive statements

More information

Post Experiment Interview Questions

Post Experiment Interview Questions Post Experiment Interview Questions Questions about the Maximum Problem 1. What is this problem statement asking? 2. What is meant by positive integers? 3. What does it mean by the user entering valid

More information

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

In this first example, we build a question that asks for the derivative of sec(x) and uses Maple to grade the response. Writing Maple-graded questions and questions with Maple plots Maple T.A. can use the Maple engine to grade students responses. One advantage of this is that the system will give credit for any response

More information

SIMPLIFYING Judo Math Inc.

SIMPLIFYING Judo Math Inc. SIMPLIFYING 2013 Judo Math Inc. 6 th grade Ratios and Expressions Discipline: Black Belt Training Order of Mastery: Simplifying Expressions (6EE3-4) 1. Terms and combining like terms 2. Order of Operations

More information

Getting started with UNIX/Linux for G51PRG and G51CSA

Getting started with UNIX/Linux for G51PRG and G51CSA Getting started with UNIX/Linux for G51PRG and G51CSA David F. Brailsford Steven R. Bagley 1. Introduction These first exercises are very simple and are primarily to get you used to the systems we shall

More information

Setting up my Dev Environment ECS 030

Setting up my Dev Environment ECS 030 Setting up my Dev Environment ECS 030 1 Command for SSHing into a CSIF Machine If you already have a terminal and already have a working ssh program (That is, you type ssh into the terminal and it doesn

More information

How to approach a computational problem

How to approach a computational problem How to approach a computational problem A lot of people find computer programming difficult, especially when they first get started with it. Sometimes the problems are problems specifically related to

More information

Math 25 and Maple 3 + 4;

Math 25 and Maple 3 + 4; Math 25 and Maple This is a brief document describing how Maple can help you avoid some of the more tedious tasks involved in your Math 25 homework. It is by no means a comprehensive introduction to using

More information

(I m not printing out these notes! Take your own.)

(I m not printing out these notes! Take your own.) PT1420 Week 2: Software Program Design I (I m not printing out these notes! Take your own.) Today we'll be discussing designing programs: Algorithms and errors Flowcharts and pseudocode Sequence structures

More information

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications

Hello World! Computer Programming for Kids and Other Beginners. Chapter 1. by Warren Sande and Carter Sande. Copyright 2009 Manning Publications Hello World! Computer Programming for Kids and Other Beginners by Warren Sande and Carter Sande Chapter 1 Copyright 2009 Manning Publications brief contents Preface xiii Acknowledgments xix About this

More information

9 R1 Get another piece of paper. We re going to have fun keeping track of (inaudible). Um How much time do you have? Are you getting tired?

9 R1 Get another piece of paper. We re going to have fun keeping track of (inaudible). Um How much time do you have? Are you getting tired? Page: 1 of 14 1 R1 And this is tell me what this is? 2 Stephanie x times y plus x times y or hm? 3 R1 What are you thinking? 4 Stephanie I don t know. 5 R1 Tell me what you re thinking. 6 Stephanie Well.

More information

GDB Tutorial. A Walkthrough with Examples. CMSC Spring Last modified March 22, GDB Tutorial

GDB Tutorial. A Walkthrough with Examples. CMSC Spring Last modified March 22, GDB Tutorial A Walkthrough with Examples CMSC 212 - Spring 2009 Last modified March 22, 2009 What is gdb? GNU Debugger A debugger for several languages, including C and C++ It allows you to inspect what the program

More information

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies

Paul's Online Math Notes. Online Notes / Algebra (Notes) / Systems of Equations / Augmented Matricies 1 of 8 5/17/2011 5:58 PM Paul's Online Math Notes Home Class Notes Extras/Reviews Cheat Sheets & Tables Downloads Algebra Home Preliminaries Chapters Solving Equations and Inequalities Graphing and Functions

More information

The Definitive Guide to Fractal Awesomeness with J-WildFire!

The Definitive Guide to Fractal Awesomeness with J-WildFire! Installing Java and J-WildFire - by Martin Flink Copyright 2013 Martin Flink All Rights Reserved. No part of this document may be reproduced in any form without permission in writing from the author. Contact:

More information

Using the Zoo Workstations

Using the Zoo Workstations Using the Zoo Workstations Version 1.86: January 16, 2014 If you ve used Linux before, you can probably skip many of these instructions, but skim just in case. Please direct corrections and suggestions

More information

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209 CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System

More information

DECIMALS are special fractions whose denominators are powers of 10.

DECIMALS are special fractions whose denominators are powers of 10. Ch 3 DECIMALS ~ Notes DECIMALS are special fractions whose denominators are powers of 10. Since decimals are special fractions, then all the rules we have already learned for fractions should work for

More information

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to:

Get JAVA. I will just tell you what I did (on January 10, 2017). I went to: Get JAVA To compile programs you need the JDK (Java Development Kit). To RUN programs you need the JRE (Java Runtime Environment). This download will get BOTH of them, so that you will be able to both

More information

SPRITES Moving Two At the Same Using Game State

SPRITES Moving Two At the Same Using Game State If you recall our collision detection lesson, you ll likely remember that you couldn t move both sprites at the same time unless you hit a movement key for each at exactly the same time. Why was that?

More information

LING 408/508: Computational Techniques for Linguists. Lecture 5

LING 408/508: Computational Techniques for Linguists. Lecture 5 LING 408/508: Computational Techniques for Linguists Lecture 5 Last Time Installing Ubuntu 18.04 LTS on top of VirtualBox Your Homework 2: did everyone succeed? Ubuntu VirtualBox Host OS: MacOS or Windows

More information

Part 1 - Your First algorithm

Part 1 - Your First algorithm California State University, Sacramento College of Engineering and Computer Science Computer Science 10A: Accelerated Introduction to Programming Logic Spring 2017 Activity A Introduction to Flowgorithm

More information

Polynomial Functions Graphing Investigation Unit 3 Part B Day 1. Graph 1: y = (x 1) Graph 2: y = (x 1)(x + 2) Graph 3: y =(x 1)(x + 2)(x 3)

Polynomial Functions Graphing Investigation Unit 3 Part B Day 1. Graph 1: y = (x 1) Graph 2: y = (x 1)(x + 2) Graph 3: y =(x 1)(x + 2)(x 3) Part I: Polynomial Functions when a = 1 Directions: Polynomial Functions Graphing Investigation Unit 3 Part B Day 1 1. For each set of factors, graph the zeros first, then use your calculator to determine

More information

Lab 1 Introduction to UNIX and C

Lab 1 Introduction to UNIX and C Name: Lab 1 Introduction to UNIX and C This first lab is meant to be an introduction to computer environments we will be using this term. You must have a Pitt username to complete this lab. The doc is

More information

n = 1 What problems are interesting when n is just 1?

n = 1 What problems are interesting when n is just 1? What if n=1??? n = 1 What problems are interesting when n is just 1? Sorting? No Median finding? No Addition? How long does it take to add one pair of numbers? Multiplication? How long does it take to

More information

Rational Number is a number that can be written as a quotient of two integers. DECIMALS are special fractions whose denominators are powers of 10.

Rational Number is a number that can be written as a quotient of two integers. DECIMALS are special fractions whose denominators are powers of 10. PA Ch 5 Rational Expressions Rational Number is a number that can be written as a quotient of two integers. DECIMALS are special fractions whose denominators are powers of 0. Since decimals are special

More information

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage

Unix File System. Learning command-line navigation of the file system is essential for efficient system usage ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here:

Lab 1. Introduction to R & SAS. R is free, open-source software. Get it here: Lab 1. Introduction to R & SAS R is free, open-source software. Get it here: http://tinyurl.com/yfet8mj for your own computer. 1.1. Using R like a calculator Open R and type these commands into the R Console

More information

ENCM 339 Fall 2017: Editing and Running Programs in the Lab

ENCM 339 Fall 2017: Editing and Running Programs in the Lab page 1 of 8 ENCM 339 Fall 2017: Editing and Running Programs in the Lab Steve Norman Department of Electrical & Computer Engineering University of Calgary September 2017 Introduction This document is a

More information

Introduction to Computational Modeling

Introduction to Computational Modeling Introduction to Computational Modeling Lecture 1 : Introduction to UNIX and Fortran Instructor : Cedric Weber Course : 4CCP1000 General informations Ø Lecture: Thursday, 9-10am Ø Practice: K3.16 (25C),

More information

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages

Week Overview. Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages ULI101 Week 02 Week Overview Unix file system File types and file naming Basic file system commands: pwd,cd,ls,mkdir,rmdir,mv,cp,rm man pages Text editing Common file utilities: cat,more,less,touch,file,find

More information

GUIDELINES FOR COMPLETING THE ASSIGNMENT

GUIDELINES FOR COMPLETING THE ASSIGNMENT RAHWAY HIGH SCHOOL MATHEMATICS DEPARTMENT Algebra 1 Summer Assignment packet Summer 2018 Due date: September 7th GUIDELINES FOR COMPLETING THE ASSIGNMENT This packet was created to help you succeed in

More information

Students received individual feedback throughout year on assignments.

Students received individual feedback throughout year on assignments. ACS108 No exam. Students received individual feedback throughout year on assignments. ACS123 In general, during ACS123 exam session, students have shown satisfactory performance, clear understanding of

More information

Mathematics 4330/5344 #1 Matlab and Numerical Approximation

Mathematics 4330/5344 #1 Matlab and Numerical Approximation David S. Gilliam Department of Mathematics Texas Tech University Lubbock, TX 79409 806 742-2566 gilliam@texas.math.ttu.edu http://texas.math.ttu.edu/~gilliam Mathematics 4330/5344 #1 Matlab and Numerical

More information

MATH 2650/ Intro to Scientific Computation - Fall Lab 1: Starting with MATLAB. Script Files

MATH 2650/ Intro to Scientific Computation - Fall Lab 1: Starting with MATLAB. Script Files MATH 2650/3670 - Intro to Scientific Computation - Fall 2017 Lab 1: Starting with MATLAB. Script Files Content - Overview of Course Objectives - Use of MATLAB windows; the Command Window - Arithmetic operations

More information

Lab 1: Setup 12:00 PM, Sep 10, 2017

Lab 1: Setup 12:00 PM, Sep 10, 2017 CS17 Integrated Introduction to Computer Science Hughes Lab 1: Setup 12:00 PM, Sep 10, 2017 Contents 1 Your friendly lab TAs 1 2 Pair programming 1 3 Welcome to lab 2 4 The file system 2 5 Intro to terminal

More information

Lab #2 Physics 91SI Spring 2013

Lab #2 Physics 91SI Spring 2013 Lab #2 Physics 91SI Spring 2013 Objective: Some more experience with advanced UNIX concepts, such as redirecting and piping. You will also explore the usefulness of Mercurial version control and how to

More information

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209

CSC209. Software Tools and Systems Programming. https://mcs.utm.utoronto.ca/~209 CSC209 Software Tools and Systems Programming https://mcs.utm.utoronto.ca/~209 What is this Course About? Software Tools Using them Building them Systems Programming Quirks of C The file system System

More information

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 10

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 10 INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 10 RAVI VAKIL Contents 1. Schemes 1 1.1. Affine schemes 2 1.2. Schemes 3 1.3. Morphisms of affine schemes 3 1.4. Morphisms of general schemes 4 1.5. Scheme-theoretic

More information

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122

Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 Foundations, Reasoning About Algorithms, and Design By Contract CMPSC 122 I. Logic 101 In logic, a statement or proposition is a sentence that can either be true or false. A predicate is a sentence in

More information

Week - 01 Lecture - 04 Downloading and installing Python

Week - 01 Lecture - 04 Downloading and installing Python Programming, Data Structures and Algorithms in Python Prof. Madhavan Mukund Department of Computer Science and Engineering Indian Institute of Technology, Madras Week - 01 Lecture - 04 Downloading and

More information

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta

Introduction. Overview of 201 Lab and Linux Tutorials. Stef Nychka. September 10, Department of Computing Science University of Alberta 1 / 12 Introduction Overview of 201 Lab and Linux Tutorials Stef Nychka Department of Computing Science University of Alberta September 10, 2007 2 / 12 Can you Log In? Should be same login and password

More information

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) First Name: Last Name: NetID:

CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28)   First Name: Last Name: NetID: CS 1110 SPRING 2016: GETTING STARTED (Jan 27-28) http://www.cs.cornell.edu/courses/cs1110/2016sp/labs/lab01/lab01.pdf First Name: Last Name: NetID: Goals. Learning a computer language is a lot like learning

More information

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #29 Arrays in C

Introduction to Programming in C Department of Computer Science and Engineering. Lecture No. #29 Arrays in C Introduction to Programming in C Department of Computer Science and Engineering Lecture No. #29 Arrays in C (Refer Slide Time: 00:08) This session will learn about arrays in C. Now, what is the word array

More information

COMP s1 Lecture 1

COMP s1 Lecture 1 COMP1511 18s1 Lecture 1 1 Numbers In, Numbers Out Andrew Bennett more printf variables scanf 2 Before we begin introduce yourself to the person sitting next to you why did

More information

Java Programming. Computer Science 112

Java Programming. Computer Science 112 Java Programming Computer Science 112 Review: Problem solving Class 4 is the Whole Point of Programming. You can keep the papers; we gonna go through them on the board. If you are desperately confused

More information

Table of Laplace Transforms

Table of Laplace Transforms Table of Laplace Transforms 1 1 2 3 4, p > -1 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 Heaviside Function 27 28. Dirac Delta Function 29 30. 31 32. 1 33 34. 35 36. 37 Laplace Transforms

More information

How to use the Vlookup function in Excel

How to use the Vlookup function in Excel How to use the Vlookup function in Excel The Vlookup function combined with the IF function would have to be some of the most used functions in all my Excel spreadsheets. The combination of these functions

More information

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6

INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6 INTRODUCTION TO ALGEBRAIC GEOMETRY, CLASS 6 RAVI VAKIL Contents 1. Loose ends 1 2. Playing around with the structure sheaf of the plane 2 3. Defining affine varieties and prevarieties 3 At the end, I collected

More information

_APP A_541_10/31/06. Appendix A. Backing Up Your Project Files

_APP A_541_10/31/06. Appendix A. Backing Up Your Project Files 1-59863-307-4_APP A_541_10/31/06 Appendix A Backing Up Your Project Files At the end of every recording session, I back up my project files. It doesn t matter whether I m running late or whether I m so

More information

Lesson 9 Transcript: Backup and Recovery

Lesson 9 Transcript: Backup and Recovery Lesson 9 Transcript: Backup and Recovery Slide 1: Cover Welcome to lesson 9 of the DB2 on Campus Lecture Series. We are going to talk in this presentation about database logging and backup and recovery.

More information

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch

CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch CSCI 1100L: Topics in Computing Lab Lab 11: Programming with Scratch Purpose: We will take a look at programming this week using a language called Scratch. Scratch is a programming language that was developed

More information

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1

Java Program Structure and Eclipse. Overview. Eclipse Projects and Project Structure. COMP 210: Object-Oriented Programming Lecture Notes 1 COMP 210: Object-Oriented Programming Lecture Notes 1 Java Program Structure and Eclipse Robert Utterback In these notes we talk about the basic structure of Java-based OOP programs and how to setup and

More information

A Brief Haskell and GHC Refresher

A Brief Haskell and GHC Refresher A Brief Haskell and GHC Refresher Henrik Nilsson and Neil Sculthorpe School of Computer Science University of Nottingham 24th September 2013 1 Introduction The purpose of this document is to give you quick

More information

The NetBeans IDE is a big file --- a minimum of around 30 MB. After you have downloaded the file, simply execute the file to install the software.

The NetBeans IDE is a big file --- a minimum of around 30 MB. After you have downloaded the file, simply execute the file to install the software. Introduction to Netbeans This document is a brief introduction to writing and compiling a program using the NetBeans Integrated Development Environment (IDE). An IDE is a program that automates and makes

More information

CS61B Lecture #2. Public Service Announcements:

CS61B Lecture #2. Public Service Announcements: CS61B Lecture #2 Please make sure you have obtained an account, run register, and finished the survey today. In the future (next week), the password required for surveys and such will be your account password

More information

5 R1 The one green in the same place so either of these could be green.

5 R1 The one green in the same place so either of these could be green. Page: 1 of 20 1 R1 Now. Maybe what we should do is write out the cases that work. We wrote out one of them really very clearly here. [R1 takes out some papers.] Right? You did the one here um where you

More information

To figure this out we need a more precise understanding of how ML works

To figure this out we need a more precise understanding of how ML works Announcements: What are the following numbers: 74/2/70/17 (2:30,2:30,3:35,7:30) PS2 due Thursday 9/20 11:59PM Guest lecture on Tuesday 9/25 o No RDZ office hours next Friday, I am on travel A brief comment

More information

2. Getting Started When you start GeoGebra, you will see a version of the following window. 1

2. Getting Started When you start GeoGebra, you will see a version of the following window. 1 Math 5335 Fall 2018 Lab #0: Installing and using GeoGebra This semester you will have a number of lab assignments which require you to use GeoGebra, a dynamic geometry program. GeoGebra lets you explore

More information

Blackfin Online Learning & Development

Blackfin Online Learning & Development Presentation Title: Multimedia Starter Kit Presenter Name: George Stephan Chapter 1: Introduction Sub-chapter 1a: Overview Chapter 2: Blackfin Starter Kits Sub-chapter 2a: What is a Starter Kit? Sub-chapter

More information

Variables and Data Representation

Variables and Data Representation You will recall that a computer program is a set of instructions that tell a computer how to transform a given set of input into a specific output. Any program, procedural, event driven or object oriented

More information

MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED. Christian Daude 1

MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED. Christian Daude 1 MATLAB COURSE FALL 2004 SESSION 1 GETTING STARTED Christian Daude 1 Introduction MATLAB is a software package designed to handle a broad range of mathematical needs one may encounter when doing scientific

More information

1.7 Limit of a Function

1.7 Limit of a Function 1.7 Limit of a Function We will discuss the following in this section: 1. Limit Notation 2. Finding a it numerically 3. Right and Left Hand Limits 4. Infinite Limits Consider the following graph Notation:

More information

CS1 Lecture 5 Jan. 25, 2019

CS1 Lecture 5 Jan. 25, 2019 CS1 Lecture 5 Jan. 25, 2019 HW1 due Monday, 9:00am. Notes: Do not write all the code at once before starting to test. Take tiny steps. Write a few lines test... add a line or two test... add another line

More information

Startup Notes for Standard CMD 2015.x Setup

Startup Notes for Standard CMD 2015.x Setup Startup Notes for Standard CMD 2015.x Setup The standard CMD program setup refers to the 2015 version of The Church Membership Directory software, which includes the two phone apps (one for staff use and

More information

Section 1.2 Fractions

Section 1.2 Fractions Objectives Section 1.2 Fractions Factor and prime factor natural numbers Recognize special fraction forms Multiply and divide fractions Build equivalent fractions Simplify fractions Add and subtract fractions

More information

Spring Modern Computer Science in a Unix Like Environment CIS c

Spring Modern Computer Science in a Unix Like Environment   CIS c Spring 2009 Modern Computer Science in a Unix Like Environment http://www.seas.upenn.edu/~cis399ux 25/01/09 Slide 1 What is Unix/Linux? Linux itself is an Operating System Kernel Linux is often used to

More information

UKNova s Getting Connectable Guide

UKNova s Getting Connectable Guide UKNova s Getting Connectable Guide Version 1.2 2010/03/22 1. WHAT IS "BEING CONNECTABLE" AND WHY DO I NEED IT? Being connectable means being able to give back to others it is the fundamental principle

More information

Tutorial 1: Unix Basics

Tutorial 1: Unix Basics Tutorial 1: Unix Basics To log in to your ece account, enter your ece username and password in the space provided in the login screen. Note that when you type your password, nothing will show up in the

More information

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters..

A point is pictured by a dot. While a dot must have some size, the point it represents has no size. Points are named by capital letters.. Chapter 1 Points, Lines & Planes s we begin any new topic, we have to familiarize ourselves with the language and notation to be successful. My guess that you might already be pretty familiar with many

More information

Part 1 - Your First algorithm

Part 1 - Your First algorithm California State University, Sacramento College of Engineering and Computer Science Computer Science 10: Introduction to Programming Logic Spring 2016 Activity A Introduction to Flowgorithm Flowcharts

More information