{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

demo-loop-hibbeler-3-37 - needed for degree/radian...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
// Programmer: Doug Hogan // Date: 9/13/08 // Description: This program is a demonstration of using loops to solve // an equation that is otherwise algebraically difficult. // The equation used here applies to problem 3-37 in // Hibbeler's Statics text. // The equation we're trying to solve is // 4(sin t)(cos t) - 4(sin t) + (cos t) = 0 #include <iostream> #include <math.h> using namespace std; const double PI = 3.1415926; // ratio of circum to diameter of any circle
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // needed for degree/radian conversions int main() { double theta; // the angle, in degrees, we're solving for in // 4(sin t)(cos t) - 4(sin t) + (cos t) = 0 // (t here because theta's not on my keyboard!) double theta_rad; // theta converted to radians double lhs; // left hand side of eqn. being solved, i.e. // 4(sin t)(cos t) - 4(sin t) + (cos t) = 0 return 0; }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online