- [Voiceover] What are Functional Programming Languages? Functional Programming Languages use functions, not objects or procedures. Functions are the fundamental building blocks of a program. It allows the user to take on complex, real world tasks. SML, or Standard Machine Language, is an example of a Functional Programming Language. It is based on the model of evaluating expressions, as opposed to the model of executing sequences of commands, found in Imperative Languages.
SML differs slightly from pure Functional Languages. SML allows the use of constructs such as, variables, assignment, and sequencing of side affecting operations. The use of a Functional Programming Language in this series, is to show the transfer of skills for writing proofs, to writing programs, and vice-versa. So that we can model mathematical concepts on the computer. SML is easy to install and use. To start, go to the website: smlnj.org.
From here, we can click on "Downloads," to get the most recent version. I'm gonna go ahead and click on the 110.79 software links. As you can see, it provides us with downloads for a Unix environment, MAC OSX, and Microsoft Windows. For this series, I'm gonna download the Windows version. Notice, it's an MSI file. Once it's downloaded, you need to make sure you have the Windows Installer on your machine. If not, you can use the WinINSTALL to get it.
OK. Now it's installed. I can go ahead and open it. As you can see, the setup window will install Standard ML of New Jersey. Let's click on: "Next." I'm gonna leave the default file folder. Click "Next." Then I'm gonna click: "Install." It's not a very large file, and the install doesn't take very long. You will need to have admin rights on your computer. So when you get the User Account control message, go ahead and say: "Yes." Well, it completed the install, so I'm gonna click on: "Finish." Now, I can go to my list of applications, and you'll see, it added: SML of New Jersey.
I can click on that, and it'll automatically open up a command window, and put me into the SML programming language. I'm now ready to start programming in my Functional Programming Language, SML.
This course relies on an open-source SML (standard machine language) library to demo the concepts behind discrete math. Peggy Fisher shows you how to manipulate sets of data, write proofs and truth tables, analyze data sequences, and visualize data using graph theory. Challenges at the end of every chapter allow you to test your knowledge. By the end of the course, you should be able to make the leap from theory to using discrete math in practice: saving time and resulting in code that's cleaner and easier to maintain in the long run.
- Real-world discrete math
- Objects as sets
- Set notation and operations
- Standard machine language (SML) setup
- Working with data types, strings, and functions in SML
- Analyzing data sequences
- Writing truth tables
- Identifying and evaluating predicates
- Validating arguments
- Writing proofs: subset, conditional, and biconditional proofs
- Visualizing data with graphs
- Advanced discrete math techniques
Skill Level Intermediate
1. Discrete Math Uses
3. Setting Up SML
4. Analyzing Data Sequences
5. Effective Arguments and Defensible Decisions
6. Proofs Made Easy
7. Advanced Discrete Math Topics
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.