Computer Science 121 Scientific Computing Winter 2014.

Slides:



Advertisements
Similar presentations
Chocolate Chip Cookies. Ingredients: ½ cup butter (1 stick) 1/3 c. brown sugar (packed) 1/3 c. granulated sugar (white) 1 egg 1/ 2 t. vanilla 1 cup +
Advertisements

Recipes.
Copyright 2008 by Pearson Education Building Java Programs Chapter 3 Lecture 3-1: Parameters reading: 3.1 self-check: #1-6 exercises: #1-3 videos: Ch.
Michelle Koch For other treats around the holidays, visit:
Making Peanut Butter Cookies (Fourth Grade: Math)
Baking Chocolate Chip Cookies Ms. Davis Life Skill Class July 11th, 2004.
Fractions with Mom’s Chocolate Chip Jumbles By Margie MacDonald.
Computer Science 121 Scientific Computing Winter 2012.
White Chocolate Orange Cookies. 1 cup butter softened 1/2 cup white sugar 1/2 cup brown sugar 1 egg 1 tablespoon orange zest 2 1/4 cups all-purpose flour.
PEC Baking Fundraiser Mugg’s Baking with Fractions.
Chocolate-Chip Cookie Recipe 1 cup flour ½ tsp baking soda ½ tsp salt ½ cup butter 3/8 cup sugar 3/8 cup brown sugar ½ tsp vanilla 1 egg 1 cup chocolate.
Cake Recipe. Ingredients Utensils 1 st Step Pre-Heat oven to 180 degrees Celsius.
Baking with Children. Yoghurt Cake - Ingredients 1 yoghurt 3 pots of flour 1 pot of sugar 1 pot of oil 3 eggs Baking powder Mashed banana, chocolate chips,
What we did first First we researched the internet to find a good recipe to make a cake. We decided on chocolate muffins from
Apple pie Photo from: Kotikokki.net. Ingredients 200 g butter 1,5 dl sugar 3 dl flour 1 egg 0,75 dl milk 1 tsp baking powder 1 tsp vanilla sugar 3-4 apples.
Introduction By: Dr. Javad Razjouyan. Programming Languages.
How to Make Chocolate Chip Cookies By Sara Hokkala.
1.02 I Preparation Tasks List 11.02I Listing Preparation Tasks.
Baking Cookies English Club eats chocolate chip cookies!
RECIPE. NAME: Three chocolates cake. INGREDIENTS 3 cups 1 1/2 tsp 3/4 tsp 1 1/2 tsp 2 2/3 cups 1 cup + 2 Tb 1 cup + 2 Tb 1 cup + 2 Tb 5 large or 4 Jumbo.
Made by Doglyad Helen. Mafioso Chocolate Cake with La Famiglia Chocolate Frosting is just as rich as the Don himself. Surrounded by the best ingredients.
Computer Engineering 1 nd Semester Dr. Rabie A. Ramadan 1.
Measurements and Equivalents
Computer Science 102 Into to Computational Modeling Special Topics: Programming in Matlab.
1 Computers Can’t Cook! Programming Methodology Girls Engaged in Math and Science, June 2012 Bri Chapman.
Sugar VS Splenda Which batch of sugar cookies are sweeter.
1.02 C Work Plans 1 The secret for success!. Why use a work plan? Helps meal preparation run smoothly Implement these steps: 1.02CWork Plans2 Steps 1-
Friends for Chip By: Carla Vela.  This is Chip, Hershey C. Chip.
The Algorithmic Model. What is Computer Science What is Programming Algorithms –Definition –Properties of Good Algorithms –Describing Algorithms –Examples.
Algorithms A sequence of instructions 1. Preheat oven to 350 degrees F (175 degrees C). Grease and flour a 9x9 inch pan or line a muffin pan with paper.
Instructional Video Read the Recipe Select Ingredients And Equipment Prepare The Recipe BAKING COOKIES IN THE VIRTUAL WORLD HELP About LO.
 7 yolks  ½ cup of sugar  6 cups of flour  ¾ g. of salt  5 g. of cocoa  vanilla  7 eggs whites  Mousse  A fork  A plate  A spoon  A bowl.
Dominika Lehocká.  2 cups all-purpose flour  1 cup white sugar  3/4 cup chocolate chips  1/2 cup unsweetened cocoa powder  1 teaspoon baking soda.
How-To Make Banana Bread Kindergarten made Banana Bread to share with parents on the Conference Days.
Cookies !. Ingredients: 3/4 cup granulated sugar 3/4 cup packed brown sugar 1 cup butter or margarine, softened 1 teaspoon vanilla 1 egg 2 cups Gold Medal.
What you’ll need 2 ½ cups of all – purpose flour 1 teaspoon baking soda 1/2 teaspoon of salt 1 cup granulated sugar 2 eggs.
Functional Text. What is “functional text?” Instruction manuals Recipes Lists of facts (ex: nutrition facts) Table of contents Index Directions That is.
Are you ready to bake???? Coconut BallsChocolate Chip Cookies.
How to make chocolate chip cookies By Rose Savage.
Measurements and Equivalents. Recipe Basics Recipe Adjustments.
Chocolate Cupcakes. What you need: 4½ dl flour 1 dl cocoa 2ts baking powder ½ teaspoon salt 200 g butter 3 cup sugar 2 eggs 2 dl milk 30 g Coconut 150.
Computer Engineering 2 nd Semester Dr. Rabie A. Ramadan 2.
How to Make Chocolate Chip Cookies Caity Jozwiak Period 6.
Chocolate Chip Cookie Recipe By: Allison Lange quart of butter -> Cups.
+ Chocolate Chip Cookies Diamond Britton. + Recipe (2 dozen) 1 teaspoon baking soda 1 teaspoon vanilla extract 1 large egg 1 cup flour 1 teaspoon salt.
How to Make Chocolate Chip Cookies
REESES PEANUT BUTTER CUP COOKIES By:Darnita Coles.
  400 degrees Preheat your oven   Add 1 cup of water and 1 stick of butter to saucepan  Turn stove on high and allow water to boil Step 1.
How to Make Chocolate Chip Cookies Fast, Easy, and Yummy Original Author Unknown Modified By: CTAE Resource Network.
How to Make Peanut Blossom Cookies By Aubrey Hillman November English 393.
Kitchen Math and Measuring
OTTW Project Afraa Haque
Recipe Notes.
How To Make Applesauce Cake
Measurements and Equivalents
CHOCOLATE Method Sugar, vanilla sugar and water are put in a cracker to boil: Cool the syrup with butter to work with it and pour over homogenized powdered.
How can we do cookies ?. How can we do cookies ?
Pancake Poppers INGREDIENTS
Measurements and Equivalents
. chocolate chips INGREDIENTS ½ baking soda ½ salt brown sugar
Sequence Adverbs II.
Abbreviations.
Maple Peanut Butter Thumbprint Cookies
Chocolate Chip Cookies
Writing to Inform Mrs. Darrell.
Let’s make Cookies!.
Cookie Chemistry Ms. Chang.
Cinnamon rolls Using the yeast dough.
Algorithms vs. Programming
Algorithms vs. Programming
Presentation transcript:

Computer Science 121 Scientific Computing Winter 2014

Who Are You?

How Will You Do in this Course?

Textbook Based on Matlab Developed over 4 Macalester College Barely in print; order from We'll cover Ch. 1-8 in 1 st 6 weeks, then various remaining chapters based on interest/progress.

Purpose 1.“To teach you to write effective computer programs. 2.To introduce you to some of the main methodological areas of scientific computation and provide you with the tools you need to carry out computational tasks you are likely to encounter in research.” from cs121/policies.pdf

Purpose ● Scientific computing (???) : Computing (programming) for the sciences ● But skills are transferable to general programming work ● Difficulties – Absolute precision in specifying instructions – Considering full range of circumstances of how a program will be used – Considering how your assumptions may not be shared by the user – Systematically tracking down bugs – Breaking down complicated problems into simple(r) sub-problems (continued from Kaplan PDF)

Matlab ● An integrated programming and graphical environment ● Interpreted : interactive; get answer immediately ● Also supports saving and loading large programs ● Student version available for $100 from ● Free, open-source “equivalent” : Octave

Matlab ● Issues 1) Matlab vs. a) higher-level (Excel / SPSS) package b) lower-level (C++ / Java / Python) language 2) Matlab vs. a similar package (Mathematica, Maple) 3) Matlab vs. Python

1) Abstraction ● Recipe analogy: How to make chocolate-chip cookies? ● High-level (Excel / SPSS) version: 1.Make chocolate-chip dough 2.Bake cookies ● Too abstract

1) Abstraction ● Low-level (Java / C++) version: 1.Drive to store 2.Buy: dozen eggs, 1 lb. flour, 1lb. sugar, 1qt. milk, 1 bag chocolate chips, 1 lb. butter, 1 lb. lard 3.Drive home 4.Turn oven dial to 375° F. 5.Take out bowl, measuring cup 6.Measure ½ cup lard, ½ cup butter 7.Put butter, lard into bowl 8.Stir butter, lard, clockwise 20 times, counter-clockwise 20 times 9.Measure 1 cup flour 10. Add flour to bowl 11. Stir clockwise 10 times,... ● Too concrete

1) Abstraction ● Recipe analogy: How to make a cake? ● “Matlab” version: 1. Mix ½ cup lard, ½ cup butter, getting them good and creamy. 2. Mix in 1 cup flour, ¾ cup brown sugar, ¾ cup white sugar, 2 eggs, 1 tsp. vanilla, and ½ tsp. baking soda. 3. Work this over until it is thoroughly mixed, then blend in 1 ¼ cup more flour. 4. Bake at 375 degrees 8-10 minutes. (

2) Matlab vs. Mathematica / Maple ● Features — Matlab: Numerical (linear algebra) — Maple, Mathematica: Symbolic (calculus)... Matlab is excellent for manipulating data, or dealing with any sort of matrix calculations.. From my experience Mathematica is ideal when it comes to symbolics such as differentiation and integration. I've seen a few cases where Mathematica blows Maple out of the water when one compares the types of integrals they can evaluate. Maple and Matlab have the best graphics in my opinion. In both of them you are allowed to rotate 3D graphics and zoom in on the spot (2D) in realtime. In Mathematica things are little more complicated, which often [elicits] frustration. With Mathematica, in order to zoom, you must change the window that you are plotting with. from t45208_Matlab_vs_Maple_vs_Mathematica.html:

3) Matlab vs. Python ● Python: General-purpose language popular in CS ● Interpreted ● Free, open-source ● SciPy (Matplotlib): Matlab-like packages ● Good support for parallel / high-performance computing ● Matlab still dominates in some fields (neuroscience, geology, engineering); Python gaining ground in others (biology) and overseas