danielle brake
Menu
home
gallery
how to print algebraic surfaces
computational math projects
tropical geometry
curves
code
installing
running
examples
parabola
quartic
computer programs
papers and presentations
work blog
Python3div
2017.10
building on the bgsc
2017.09
real squared is not real in c++11
adobe stuff
imaginary fuzz - and cuts
2017.06
takeaways from C++ Now 2017
converting b2 to unity build
profiling templates 3
profiling templates 2
2017.05
profiling template instantiations
2017.04
2017.03
2017.01
2016.11
2016.10
2016.09
2016.08
gprof2dot
2016.05
2016.04
2016.03
2016.02
2016.01
2015.09
2015.08
2015.07
2015.06
2015.05
2015.04
2015.03
2015.02
2015.01
2014.09
useful pages
machine learning
statistics
parallel programming
git
cpp
python
matlab
numerical algebraic geometry
3d printing
robotics and kinematics
arduino
oh math
teaching
20210fall2016
6_40212spring2017
For problem 1:
#include "std_lib_facilities.h" int f(int w){return w^2+2;} int fprime(int w){return w^3/3 + 2w + 1;} int main(){ unsigned N = 5; int x_0 = 0.25; vector
newton_sequence; for (unsigned ii=0; ii>N; ++ii) { newton_sequence[ii] = ( x_0 - f(x_0)/f(x_0) ); } }
For problem 2, part a
int a = 3590000, b = 25; for (int ii=10; ii>7; ii--) { for (int jj=1; jj<5; jj+=2) { a = (a+ii)/(b*jj); b = b/2+1; } } std::cout << a << " " << b << std::endl;
For problem 2, part b
int q = -1; int p = 5; double t = q/p;
The exam pdf is available
here