

























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


























extern double sqrt(double x); static double temp = 0.0; double quadratic(double a, b, c) { temp = bb – 4.0ac; if (temp >= 0.0) { goto has_roots; } throw Invalid_Argument; has_roots: return (–b + sqrt(temp)) / (2.0a); }**
sqrt Import Table: Replace address used at 0x with final location of sqrt.
extern double sqrt(double x); static double temp = 0.0; double quadratic(double a, b, c) { temp = bb – 4.0ac; if (temp >= 0.0) { goto has_roots; } throw Invalid_Argument; has_roots: return (–b + sqrt(temp)) / (2.0a); } Export Table:** We provide quadratic. If anyone else wants its, they can figure out where 0x0200 is finally relocated to. Call that new location R. They then replace all of their references to locquadratic with R.
Where did these numbers come from?
st
nd