Welcome to the Math 740 (Computer Applications in Mathematics I) home page. Please click on any of the following to see:

Math 740 Section S1 syllabus

Assignment 1 Due Thursday, January 29 at the beginning of class
 
Assignment 2 Due Thursday, February 5 at the beginning of class  

Assignment 3a Due 2/26/15 and 3b Due 3/5/15 at the beginning of class 

Assignment 4 Due Thursday, March 12 at the beginning of class 

Assignment 5 Due Thursday, March 26 at the beginning of class   (There is no penalty if this assignment is submitted on April 2 by 4:30 pm).

Assignment 6 Due Thursday, April 2 at the beginning of class  

Assignment 7 Due Thursday, April 16 at the beginning of class 

Assignment 8 Due Thursday, April 23 at the beginning of class  (in pdf format)

Assignment 9 Due Thursday, April 30 at the beginning of class ;   Solutions (in pdf format)  New!
Note:  To view or print out pdf files, you may need the Adobe Acrobat reader, which you may download for free if you don't have it yet by clicking  here.

Information abour Programming Contest scheduled for April 13 from 4:30-7:30 pm in Sullivan Building 306 (Math Lab) 

A transcript showing the use of Octave to implement Gram-Schmidt orthogonalization, QR factorization and solving the least squares problem (as in Sections 3.2, 3.3 and 3.4)

How to get Octave to evaluate a definite integral   

MATLAB functions from class:
mysolve.m  (to solve a*x=c);  lissajous.m ;    myeps.m  (to find the machine epsilon)

Links for useful MATLAB functions:
lufactor.m      plufactor.m      forwsub.m      backsub.m         QRfactor.m        modifiedQR.m        householderQR.m

inversepowerit.m    orthogit.m      powerit.m    QRit.m    QRshift.m      rayleigh.m      QRiterr.m     QRshift.m

newton2_sys.m     orthogonal_polynomials.m  (as on page 277)   interp.m   mypolyval.m

Octave installation instructions

Octave tutorials: How to get started  (in pdf format); this consists of extracts from Introduction to Octave (in pdf format)
Note:  To view or print out pdf files, you may need the Adobe Acrobat reader, which you may download for free if you don't have it yet by clicking  here.

Program "Rowop" with prompts to perform elementary row operations on a matrix [A] on TI calculators:
TI 82 binary version (397 bytes);  TI 82 text listing of program
TI 83 binary version (396 bytes);  TI 83 text listing of program;  (Use the TI 83 version if you have a TI 84)
TI 85 binary version (522 bytes);  TI 85 text listing of program   (Use the TI 85 version if you have a TI 86)

Program "Eulertab" to use Euler's method to solve dy/dx=f (x,y) on TI calculators:
TI 84 binary version (203 bytes); TI 84 text listing of program.  (Use the TI 84 version if you have a TI 83).
Note:  If you wanted to solve dy/dx=x3+y5, before starting to run the program, press Y= (on the upper left hand corner of your calculator).  Then, beside  \Y1= , type X^3+Y^5 ENTER.  (If  you want to use a different  f (x,y), type it beside \Y1= ) .

Note:  In the text listings, \->\ represents the STO-> key in the left column.
Note: To use the binary version of the program, you will first need to download it.  To download it, right click the appropriate link and choose
"Save target as..." with Internet Explorer or "Save link as..." with Netscape.   The downloaded file should have the indicated length.  With some versions of Netscape, it may be corrupted and have a different length. In that case, please use Internet Explorer or click here to find another link that might enable you to download this file properly. If you have problems following these instructions, please send e-mail to arosenthal@salemstate.edu).

After being downloaded,  the binary version of the program may be loaded directly into the TI calculator of the corresponding type, IF you have a "TI-GRAPH LINK" cable to connect your PC and the calculator and you use the appropriate "TI-GRAPH LINK" software available for free download at  http://education.ti.com/us/product/apps/latest.html .   There are "TI-GRAPH LINK" cables connected to several of the computers in the Math Lab which you may use in the Math Lab.  The "TI-GRAPH LINK" software is already installed on some of the computers in the Math Lab.  If you have trouble finding it, please ask for help.

If you have a "TI USB connectivity kit" cable and TI-Connect version 1.6 (or later) software installed on your computer, it is even easier to load the binary version of "Rowop" onto your TI calculator.  (TI USB cables and TI-Connect software are already present on many of the computers in the Math Lab.  If you have trouble finding such a computer, please ask for help.  TI-Connect is available for free download at  http://education.ti.com/educationportal/appsdelivery/download/download_select_product.jsp?cid=us  if you click on the link for Free Computer Software and then click on the link for TI-Connect  Software for Windows or Macintosh, whichever is appropriate for your computer).   After TI-Connect version 1.6 or later is installed on your computer, plug the USB part of the USB cable into a USB port on your computer and the pointy part of the USB cable into your TI calculator.  Then, turn on your calculator.  Use the mouse on your computer to right-click on the binary program file you downloaded to your computer.   Select "Send to TI device".  Select the file and choose Destination RAM.  Then, click on "Send to Device" at the bottom of the screen.  The binary file will then be transferred to your TI calculator.

Some notes on how to perform elementary row operations on a graphing calculator and with an Excel spreadsheet   (in pdf format)

A script (rowop.m) which you may use with MATLAB (in the Math Lab) to pivot matrices.  (This may be useful when performing Gaussian elimination or when using the simplex method).  I recommend right-clicking on the above link and saving it to your computer's hard drive.  Then, open MATLAB and click on "File" "Run Script" and navigate to the directory where you saved rowop.m.  Click on rowop.m and then click on "Open" and "OK".  To input your matrix, enclose it in brackets and separate each row with a semicolon.  For example, to input a 3 by 3 identity matrix, type
[1 0 0;0 1 0;0 0 1]

A script (rowop.sci) which you may use with SCILAB to pivot matrices  (This may be useful when performing Gaussian elimination or when using the simplex method).  I recommend right-clicking on the above link and saving it to your computer's hard drive.  To use this, you may need to download and install SCILAB from http://www.scilab.org  .    Then,  open SCILAB and click on "File" "Exec"  and navigate to the directory where you saved rowop.sci.  Click on rowop.sci and then select "Open".   To input your matrix, enclose it in brackets and separate each row with a semicolon.  For example, to input a 3 by 3 identity matrix, type
[1 0 0;0 1 0;0 0 1]
(You could also type eye(3,3) to input a 3 by 3 identity matrix).

A spreadsheet that can be used with Excel to pivot matrices  (in xls format)  (I recommend right-clicking on this link and saving it to your computer's hard drive.  Then, navigate to the directory where you saved it and double click on pivot.xls).

Programs to test floating point arithmetic  

Fortran program to find floating point "solutions" of a^n+b^n=c^n
Try running this program with the following input:  c value to use: 40000.
    n value to use:  3
    number of c values to use:  1000
The value of err2=c^n-a^n-b^n is printed in cases when err2 is small.
What happens if you input these values of a, b and c into a TI 83 calculator?

The spreadsheet euler.xls  (62464 bytes)

The spreadsheet eulerapr19_06.xls  (67584 bytes)
Note: To use this binary file, you will first need to download it.  To download it, right click the appropriate link and choose
"Save target as..." with Internet Explorer or "Save link as..." with Netscape.   The downloaded file should have the indicated length.  With some
versions of Netscape, it may be corrupted and have a different length. In that case, please use Internet Explorer.  If you have problems following these instructions, please send e-mail to arosenthal@salemstate.edu).

**Current and future Master's level Math courses offered at Salem State College

Professor Rosenthal's home page

My favorite Web sites   (including a map of Salem State College and a link to MBTA schedules for routes serving Salem)

Home page for  Mathematics at Salem State College    or    Salem State College   or   ***Graduate Math programs at Salem State College    or  Graduate programs in general at Salem State College

Specific Information on Master of Science (MS) in Mathematics or Master of Arts in Teaching (MAT) Mathematics programs at Salem State College

To send me e-mail, click on arosenthal@salemstate.edu