Lecture Functions.docx

2 Pages
63 Views
Unlock Document

Department
Computer Science
Course
COMPSCI 10
Professor
Dan Garcia
Semester
Fall

Description
Lecture: Functions ­ Y = Sin (x) • X= input • Sin= function • Y= output ­ Rules • Take in 0+ inputs and return only ONE output • Same inputs must yield same outputs • No state (prior history) • No mutation (no variables get modified) • No side effects (nothing else happens) ­ Terminology • Domain: The “class” of input of function accepts a Examples:   Sqrt of: positive numbers  Length of: sentence, word, number  _ 
More Less

Related notes for COMPSCI 10

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit