SLU logo

CSCI 1060: Scientific Programming

Spring 2022

Instructor Alessio Sacco, Homepage
Course Web Site https://alessiosac.gitlab.io/courses/sci-pro/
Course meeting times Monday, Wednesday, & Friday from 09:00 - 09:50, MDD 1066L
Midterm exam
March 4th, April 6th, During Class
Final exam
May 11th, 8:00AM
Office ISE 234F
Office hours See my schedule
Contact You may contact me in person during office hours or during class time, or you may email me at alessio.sacco@slu.edu. I am also available to meet by appointment, see my schedule.

Contents
  1. Course Description
  2. Prerequisites
  3. Textbooks and Other Resources
  4. Assignments
  5. Course Schedule
  6. Grading
  7. Getting MATLAB and Resources
  8. Attendance Policy
  9. Academic Integrity
  10. Title IX Statement
  11. Academic Support
  12. Disability Services
  13. Writing Services
  14. Basic Needs Support

Course Description

Computing allows scientists and engineers to quantify and analyze problems to a terrific degree. The particulars of how computers are used will vary from field to field and problem to problem, but the process of computer programming (or more generally- computer-aided problem solving) is similar for everybody. Computers are machines that are incapable of original thought or imagination. Using one effectively requires a solid understanding of what a computer is and is not capable of, and then the mental plasticity to transform the real-world problem into a computer model that (hopefully) bears some significance to the original problem that must be solved. The goal of this course is to teach students this process of solving real-world scientific and engineering problems via computer programming.

Learning Outcomes- At the end of this course, students should be able to:

Topical Outline- the topics we will cover in this course (not necessarily in this order) are:

Catalog Description: Elementary computer programming concepts with an emphasis on problem solving and applications to scientific and engineering applications. Topics include data acquisition and analysis, simulation and scientific visualization.


Prerequisites

Please see the instructor if you're missing a prerequisite or uncertain about your preparation for this course.


Textbook

Recommended course textbook: MATLAB An Introduction with Applications by Amos Gilat, Published by Wiley

Note: The textbook is recommended as a supplementary resource for those who wish but is not required. Any recent edition of the book is suitable.

(book's website - supplementary videos, example problems, and errata)


Assignments

There will be approximately 10 assignments for this course and a course project. These are a mix of written and programming assignments whose purpose is to apply course concepts.

Assignments submitted on time will be given full credit. Assignments submitted up to 24 hours late will be given a ten percent penalty. Assignments submitted between 24 hours and 48 hours late will be given a twenty percent penalty. Assignments submitted after 48 hours late will not be given credit, except in the case of extenuating circumstances pre-approved by the instructor.


Course Schedule

A tentative course schedule is below. Note that this schedule may change over the course of the semester. When changes occur, students will be given enough advance notice so that readings and other preparation may be accommodated.
Date Day Topic Class Code Readings Notes
Jan 19 Wed Introduction, Course Overview intro.m
Introductive Slides
Syllabus
(this website)
Jan 21 Fri Overview of MATLAB
Scalars, operators, and precedence
scalars.m Gilat Ch. 1 Homework #1 Assigned
GitLab Submission Tutorial
Jan 24 Mon Vectors in MATLAB vectors.m Gilat Ch. 2
Jan 26 Wed Two-Dimensional Arrays in MATLAB matrices.m Homework #1 Due
Jan 28 Fri Vectorized Operations Gilat Ch. 3.1 - 3.6 Homework #2 Assigned
Jan 31 Mon Plotting Data plotting.m Gilat Ch. 5.1 - 5.4
Feb 02 Wed Rolling Pairs of Dice dicepair.m Gilat Ch. 5.8
Feb 04 Fri Control Structures controlflow.m Gilat Ch. 6.1 - 6.6
Feb 07 Mon Animation Case Study
The Motion of a Ball
animateThrow.m Homework #2 Due
Feb 09 Wed Discrete Simulation Case Study
Approximate Motion of a Ball
ball_physics.m Homework #3 Assigned
Feb 11 Fri Mental Health Day - No Class
Feb 14 Mon Control Structures:
Stock Market Analysis
stocks.m
Feb 16 Wed Basic Input and Output Commands input_output.m Gilat Ch. 4 Homework #3 Due
Feb 18 Fri More Stock Market Analysis monthly_gain.m Homework #4 Assigned
Feb 21 Mon Class Cancelled
Feb 23 Wed Functions cylinder.m
peaks.m
Gilat Ch. 7
Feb 25 Fri HW4 Discussion daily_downturn.m
Feb 28 Mon Case Study: Record Rainfall
(Online)
Mar 02 Wed Exam Review
(Online)
Mar 04 Fri First Exam Homework #4 Due
Mar 07 Mon Case Study: Random Processes
The Gambler
gambler.m Homework #5 Assigned
Mar 09 Wed The gambler simulation and random walks
Additional Notes
gambler_analysis.m
Mar 11 Fri Iterative Solvers randSqrt.m
directedRandSqrt.m
newtonSqrt.m
Mar 14 Mon Spring Break - No Class
Mar 16 Wed Spring Break - No Class
Mar 18 Fri Spring Break - No Class
Mar 21 Mon Random Solver Assignment #5 Due
Mar 23 Wed HW #6 Discussion Homework #6 Assigned
Homework #6 Walkthrough
Mar 25 Fri File I/O fileio.m Gilat Ch. 4.3-4.4
Mar 28 Mon Case Study: DNA to RNA Transcription DNA_transcribe.m
Mar 30 Wed Case Study: Caesar Cipher caesar_cipher.m Homework #6 Due
Apr 01 Fri Case Study: Random Shift Stream Cipher encrypt.m
Apr 04 Mon Exam Review argDemo.m
myAverage.m
convertASCII.m
approxPi.m
addLineNumbers.m
Apr 06 Wed Second Exam
Apr 08 Fri Cell Arrays, Structures cells.m
structures.m
MATLAB docs:
Cell Arrays
Structures
Project Proposal Assigned
Apr 11 Mon Sound processing in MATLAB
Apr 13 Wed Sound processing in MATLAB
(Online)
Project Proposal Due
Apr 15 Fri Good Friday - No Class
Apr 18 Mon Easter Monday - No Class
Apr 20 Wed Sound processing in MATLAB Homework #8 Assigned
Apr 22 Fri Sound processing in MATLAB
Apr 25 Mon Traversing Mazes
Apr 27 Wed Traversing Mazes Homework #8 Due
Apr 29 Fri Image Data image_processing.m Homework #9 Assigned
May 02 Mon Digital Watermarking digital_watermarking.m
May 04 Wed Finding components of an image
May 06 Fri An Introduction to C++ Programming Homework #9 Due
May 09 Mon Project Presentations Presentation and Project Submission Guidelines
May 11 Wed
8:00AM
Project Presentations

Grading

Your grade will be determined as follows:

Activity Grade Percentage
Assignments 40%
Project 20%
Midterm Exams 20% each

Grading is done on a straight scale (uncurved). The following scores are guaranteed. The grading scale may be curved upwards (in your favor) at the discretion of the instructor.


Links / Resources

MATLAB

The majority of this course is centered around using MATLAB, a widely used software for scientific and engineering computing. You can access this software in at least the following ways:

Great reads that deal with computing in an engineering context:


Attendance

Successful students attend all or mostly all class sessions. This is true in my experience and has been demonstrated in large scale studies as well. In that study, even students who attended nine out of ten class periods had measurably lower class performance than those who attended all classes. However, there is no attendance requirement for this class, and you do not need to get permission when you do miss class. You are an adult and have the freedom to manage your time in whatever way you feel is most useful. Job interviews, conferences, tests in other courses, etc. are all reasonable cases for being absent.

Note that in-class assignments such as tests or quizes cannot be made up outside of class without prior approval from the instructor. All such activities will be listed course schedule with ample time to prepare (i.e. there are no "pop quizes").

If you do miss class you should refer to the course schedule to see what was missed and arrange to get course notes from another student. I am always happy to answer questions but I do not repeat full class periods in office hours.

2021-2022 Mandatory Syllabus Statement on In-Person Class Attendance and Participation

The health and well-being of SLU’s students, staff, and faculty are critical concerns, as is the quality of our learning environments. Accordingly, the following University policy statements on in-person class attendance are designed to preserve and advance the collective health and well-being of our institutional constituencies and to create the conditions in which all students have the opportunity to learn and successfully complete their courses.

  1. Students who exhibit any potential COVID symptoms (those that cannot be attributed to some other medical condition the students are known to have, such as allergies, asthma, etc.) shall absent themselves from any in-person class attendance or in-person participation in any class-related activity until they have been evaluated by a qualified medical official. Students should contact the University Student Health Center for immediate assistance.
  2. Students (whether exhibiting any of potential COVID-19 symptoms or not, and regardless of how they feel) who are under either an isolation or quarantine directive issued by a qualified health official must absent themselves from all in-person course activities per the stipulations of the isolation or quarantine directive.
  3. Students are responsible for notifying their instructor of an absence as far in advance as possible; when advance notification is not possible, students are responsible for notifying each instructor as soon after the absence as possible. Consistent with the University Attendance Policy, students also are responsible for all material covered in class and must work with the instructor to complete any required work. In situations where students must be absent for an extended period of time due to COVID-19 isolation or quarantine, they also must work with the instructor to determine the best way to maintain progress in the course as they are able based on their health situation.
  4. Consistent with the University Attendance Policy, students may be asked to provide medical documentation when a medical condition impacts a student’s ability to attend and/or participate in class for an extended period of time.
  5. As a temporary amendment to the current University Attendance Policy, all absences due to illness or an isolation/quarantine directive issued by a qualified health official shall be considered “Authorized” absences.

COVID-19 Considerations for Spring 2021

Notification of absences: You do not need to notify the instructor that you are missing a regular class meeting. Notify the instructor as early as possible if you have a conflict with exam times.

Student Absences: It is the responsibility of the student to accommodate their absence. Make arrangements in advance with another student to get a report of synchronous class activities and their notes for the day.

Late work: Severe illness is a reasonable basis to request an extension on lab assignments. However, my experience is that extensions tend to do more harm than good for many as once you get behind on work it can be difficult to catch up. All students would be well-served by starting assignments early especially with the uncertainty due to COVID-19.

Grading policy changes: If circumstances require it, certain graded elements of the course may be eliminated or replaced with a substitute. In the case of substitution the new assignment will have the same point-values as the old assignment: for example if the midterm exam is replaced with a programming project that programming project will be worth 15% of your final grade. In the case of elimination the point-values assigned to the activity group will not change: for example if we eliminate one of the five lab assignments then the remaining four will collectively still be worth 50% of the final grade.


Mandatory Syllabus Statement on Face Masks (2021-2022)

Throughout the COVID-19 pandemic, key safeguards like face masks have allowed SLU to safely maintain in-person learning. If public health conditions and local, state, and federal restrictions demand it, the University may require that all members of our campus community wear face masks indoors.

Therefore, any time a University-level face mask requirement is in effect, face masks will be required in this class. This expectation will apply to all students and instructors, unless a medical condition warrants an exemption from the face mask requirement (see below).

When a University-wide face mask requirement is in effect,the following will apply:

When a University-wide face mask requirement is not in effect, students and instructors may choose to wear a face mask or not, as they prefer for their own individual comfort level.

ADA Accommodations for Face Mask Requirements
Saint Louis University is committed to maintaining an inclusive and accessible environment. Individuals who are unable to wear a face mask due to medical reasons should contact the Office of Disability Services (students) or Human Resources (instructors) to initiate the accommodation process identified in the University’s ADA Policy. Inquiries or concerns may also be directed to the Office of Institutional Equity and Diversity. Notification to instructors of SLU-approved ADA accommodations should be made in writing prior to the first class session in any term (or as soon thereafter as possible).


Academic Integrity

Academic integrity is honest, truthful and responsible conduct in all academic endeavors. The mission of Saint Louis University is "the pursuit of truth for the greater glory of God and for the service of humanity." Accordingly, all acts of falsehood demean and compromise the corporate endeavors of teaching, research, health care, and community service via which SLU embodies its mission. The University strives to prepare students for lives of personal and professional integrity, and therefore regards all breaches of academic integrity as matters of serious concern.

The governing University-level Academic Integrity Policy was adopted in Spring 2015, and can be accessed on the Provost's Office website at: https://www.slu.edu/provost/policies/academic-and-course/policy_academic-integrity_6-26-2015.pdf.

Additionally, each SLU College, School, and Center has adopted its own academic integrity policies, available on their respective websites. All SLU students are expected to know and abide by these policies, which detail definitions of violations, processes for reporting violations, sanctions, and appeals. Please direct questions about any facet of academic integrity to your faculty, the chair of the department of your academic program, or the Dean/Director of the College, School or Center in which your program is housed. Specific College of Arts and Sciences Academic Honesty Policies and Procedures may be found here.


Title IX Statement

Saint Louis University and its faculty are committed to supporting our students and seeking an environment that is free of bias, discrimination, and harassment. If you have encountered any form of sexual harassment, including sexual assault, stalking, domestic or dating violence, we encourage you to report this to the University. If you speak with a faculty member about an incident that involves a Title IX matter, that faculty member must notify SLU’s Title IX Coordinator and share the basic facts of your experience. This is true even if you ask the faculty member not to disclose the incident. The Title IX Coordinator will then be available to assist you in understanding all of your options and in connecting you with all possible resources on and off campus.

Anna Kratky is the Title IX Coordinator at Saint Louis University (DuBourg Hall, room 36; anna.kratky@slu.edu; 314-977-3886). If you wish to speak with a confidential source, you may contact the counselors at the University Counseling Center at 314-977-TALK or make an anonymous report through SLU’s Integrity Hotline by calling 1-877-525-5669 or online at http://www.lighthouse-services.com/slu. To view SLU’s policies, and for resources, please visit the following web addresses: https://www.slu.edu/about/safety/sexual-assault-resources/index.php and https://www.slu.edu/general-counsel.

IMPORTANT UPDATE: SLU’s Title IX Policy (formerly called the Sexual Misconduct Policy) has been significantly revised to adhere to a new federal law governing Title IX that was released on May 6, 2020. Please take a moment to review the new policy and information on the following web address: https://www.slu.edu/about/safety/sexual-assault-resources/index.php. Please contact the Anna Kratky, the Title IX Coordinator, with any questions or concerns.


Supporting Student Success

In recognition that people learn in a variety of ways and that learning is influenced by multiple factors (e.g., prior experience, study skills, learning disability), resources to support student success are available on campus. The Student Success Center, a one-stop shop, which assists students with academic and career related services, is located in the Busch Student Center (Suite 331). Students can visit https://www.slu.edu/life-at-slu/student-success-center/ to learn more about tutoring services, university writing services, disability services, and academic coaching.


Disability Services

Students with a documented disability who wish to request academic accommodations must contact Disability Services to discuss accommodation requests and eligibility requirements. Once successfully registered, the student also must notify the course instructor that they wish to access accommodations in the course.

Please contact Disability Services, located within the Student Success Center, at Disability_services@slu.edu or 314-977-3484 to schedule an appointment. Confidentiality will be observed in all inquiries. Once approved, information about academic accommodations will be shared with course instructors via email from Disability Services and viewed within Banner via the instructor’s course roster.

Note: Students who do not have a documented disability but who think they may have one are encouraged to contact Disability Services.


University Writing Services

Students are encouraged to take advantage of University Writing Services in the Student Success Center; getting feedback benefits writers at all skill levels. Trained writing consultants can help with writing projects, multimedia projects, and oral presentations. University Writing Services offers one-on-one consultations that address everything from brainstorming and developing ideas to crafting strong sentences and documenting sources. For more information, visit https://www.slu.edu/life-at-slu/student-success-center/ or call the Student Success Center at 314-977-3484.


Basic Needs Security

Students in personal or academic distress and/or who may be specifically experiencing challenges such as securing food or difficulty navigating campus resources, and who believe this may affect their performance in the course, are encouraged to contact the Dean of Students Office (deanofstudents@slu.edu or 314-977-9378) for support. Furthermore, please notify the instructor if you are comfortable in doing so, as this will enable them to assist you with finding the resources you may need.