WExam 1 Cheat sheet

WExam 1 Cheat sheet - math.h fstream.h string.h iostream.h...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
math.h  /* setiosflags(ios:: type ) = sets type of output to use= /  resetiosflags  ---ios::scientific = 2 . 7 4 e 0 0 1  ---ios::fixed = 3 . 2 5  setiosflags(ios:: location ) =sets  location  = right or left  ios::internal =puts fill character between the sign and  the #  ios::showpoint = put decminal pt no matter what  ios::showpos = Put a sign before all positive  numbers. */   Y interp =  Y lo +   (X interp  - X lo)  / (X hi  - X lo ) * (Y hi -Y lo )  V=pi*r^2*h  volume calculation  ft^3 --> in^3, multiply by 1728  ft^3 --> yd^3, divide by 27 fstream.h string.h iostream.h iomanip.h = = equal to     ||   or   !   not void secant(double[] ,double[], double, double, double, double, double,  double, double&, int&, int, int, double&, double&); double fx(double[], double[], double, double, double, double, double,  int, int); double&,double&,double&, double&); const double tol=0.0001; // tolerance for convergence const int max_iter=100000;  // Number of maximum iterations allowed
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

WExam 1 Cheat sheet - math.h fstream.h string.h iostream.h...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online