Jeff

by

Stopping Times of the Hailstone Sequence Click here to see a graph of the hailstone sequence stopping times. The Collatz conjecture is named after Lothar Collatz who first proposed it in 1937. This conjecture states that the hailstone sequence for any positive integer always converges to one. The hailstone sequence is a series of numbers

by

There are a vast number of programming languages each with their own syntax but most share common features that allow a programmer to control the flow of processing. This laboratory introduces some of the most important programming structures for flow control using the Arduino programming language, which is based on C/C++; The IF Statement An

by

The Arduino Uno (ATmega328) has a single hardware serial connection. If more serial connections are needed, you must implement these in software. Luckily, there is a very easy to use library to implement software serial connections. It is called SoftwareSerial.h and is included with the latest Arduino IDE. The following code demonstrates how to use

by

The following Perl script uses regular expressions to parse a text file called myFile.txt and replace any occurrence of the character sequence REPLACE with the string (or number) stored in $NEWTEXT. The modified text file is saved as myNewFile.txt. #!/usr/bin/perl $NEWTEXT = “New Stuff”; # could also be a number open(INPUT, “< myFile.txt") or die

by

Use a terminal command like the following to runs a MATLAB script in the background under Linux, Mac OS X, etcetera. nohup matlab -nodisplay < runProgram.m > outputFile & The nuhup command tells the OS to ignore hangups so the user who enters this command can log out and the program will still be running