ENGR 3 - PowerPoint PPT Presentation

About This Presentation
Title:

ENGR 3

Description:

ENGR 3 rocks How do you want the review session for the final? MATLAB ! It s actually a fancy C program (user friendly) Runs on linux.engr.ucsb.edu Runs on your ... – PowerPoint PPT presentation

Number of Views:76
Avg rating:3.0/5.0
Slides: 6
Provided by: test322
Category:
Tags: engr | windows

less

Transcript and Presenter's Notes

Title: ENGR 3


1
ENGR 3
  • rocks

2
  • How do you want the review session for the final?

3
  • MATLAB !
  • Its actually a fancy C program (user friendly)
  • Runs on linux.engr.ucsb.edu
  • Runs on your windows or mac computer too
  • Costs 1,000s (up to 10s of 1000s) but for
    students its cheap!
  • The help files are AWESOME!
  • Only two disadvantages..

4
  • include ltstdio.hgt
  • include ltmath.hgt
  • int main ()
  • int N, D, maxD, bestN3, bestD1
  • float pi3.1415926
  • scanf(Enter,maxD)
  • for (D1DltmaxDD)
  • if(fabs(pi-(float)bestN/bestD)gtfabs(pi-(float)N
    /D))
  • bestNN
  • bestDD
  • printf(The best N was f,N)

5
  • include ltstdio.hgt
  • include ltmath.hgt
  • int main ()
  • int N, D, maxD, bestN3, bestD1
  • float pi3.1415926
  • scanf(Enter,maxD)
  • for (D1DltmaxDD)
  • if(fabs(pi-(float)bestN/bestD)gtfabs(pi-(float)N
    /D))
  • bestNN
  • bestDD
  • printf(The best N was f,N)
Write a Comment
User Comments (0)
About PowerShow.com