Today - PowerPoint PPT Presentation

1 / 5
About This Presentation
Title:

Today

Description:

Take a summation, convert to Matlab. Like on the homework. Infix Prefix notation in Matlab. Take a arithmetic or relational expression ... – PowerPoint PPT presentation

Number of Views:17
Avg rating:3.0/5.0
Slides: 6
Provided by: ricks6
Category:
Tags: infix | today

less

Transcript and Presenter's Notes

Title: Today


1
Todays Class
  • Recap
  • Exam Comments
  • Work on Primes

2
Recap
  • Exam Questions
  • Matlab and C Syntax Guide
  • Measuring Execution Time
  • Speeding up Primes
  • Work on Primes

3
Example Questions
  • Take a summation, convert to Matlab
  • Like on the homework
  • Infix ? Prefix notation in Matlab
  • Take a arithmetic or relational expression
  • If its in traditional form, convert to Matlab or
    C
  • If its in C, convert to Matlab, or vice versa
  • Write a complete C program
  • Will do more than Hello maybe a loop, some
    conditionals
  • Construct a main that
  • Does some if statements to some purpose
  • Does a loop
  • Translate loop from one form to another

4
Calculation Example
  • Variables X, Y
  • Some arithmetic with them

Calculation X Value Y Value
X 8
X X 3
Y Y 6
Y - 7
Y Y X
Y X
5
Creative Commons License
  • This work is licensed under the Creative Commons
    Attribution-Share Alike 3.0 United States
    License. To view a copy of this license, visit
    http//creativecommons.org/licenses/by-sa/3.0/us/
    or send a letter to Creative Commons, 171 Second
    Street, Suite 300, San Francisco, California,
    94105, USA.
Write a Comment
User Comments (0)
About PowerShow.com