Thread: plz help

  1. #1
    Registered User
    Join Date
    Apr 2011
    Posts
    50

    plz help

    look at the attachment. reply with the program to do it..

  2. #2
    [](){}(); manasij7479's Avatar
    Join Date
    Feb 2011
    Location
    *nullptr
    Posts
    2,657
    try it yourself first..!..

  3. #3
    C++ Witch laserlight's Avatar
    Join Date
    Oct 2003
    Location
    Singapore
    Posts
    28,413
    Indeed, please read and follow the homework policy.
    Quote Originally Posted by Bjarne Stroustrup (2000-10-14)
    I get maybe two dozen requests for help with some sort of programming or design problem every day. Most have more sense than to send me hundreds of lines of code. If they do, I ask them to find the smallest example that exhibits the problem and send me that. Mostly, they then find the error themselves. "Finding the smallest program that demonstrates the error" is a powerful debugging tool.
    Look up a C++ Reference and learn How To Ask Questions The Smart Way

  4. #4
    Registered User
    Join Date
    Sep 2008
    Location
    Toronto, Canada
    Posts
    1,834
    Cool. The only "complication" is converting the angle to horizontal and vertical vectors... which is just reading up on sin and/or cos functions. Depending on whether you took differentiation or not, this may be solvable with straight forward formula. Or is it line intersecting with a parabola? Or the problem may imply that they want you to use iteration - mad looping with minute increments to arrive at a good approximation.

  5. #5
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    i have formed the equation plz look at the attachment enclosed. can any1 help me in solving it for the value of theta.
    (solve for theta)

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Is there a difference between "vo" and "vo" (subscripted) ?

    The usual trap for trig functions is that they take arguments in radians, so
    const double pi = 3.1415926;
    double theta = 45 * pi / 180; // make a degrees_to_radians function
    s = sin(theta);

    Why is there no 'd' variable on the left hand side?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  7. #7
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    no both are same. that was a mistake. moreovr about the presence of d it is how the eqn. resembled after i tried to solve it. if it has error, cn u plz post the correct 1?? n thx for the tips about radian.

    moreover there is a division sign after g^(2)d^(2) in rhs of the equation.

    what is mingw? is it windows compatible? thx in advnc.

  8. #8
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Your butchery of the English language makes it hard to understand what you're talking about, even for a native speaker.
    How To Ask Questions The Smart Way

    Yes, MinGW is a compiler you can run on Windows.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  9. #9
    Registered User
    Join Date
    Apr 2011
    Posts
    50

    Talking

    No both are same. That was a mistake. Moreover about the presence of "d", it is how the equation resembled after i tried to solve it. If it has error, can u plz post the correct one? And thanks for the tips about radian.

    Moreover there is a division sign after g^(2)d^(2) in rhs of the equation.
    Now is it ok, salem?

  10. #10
    Registered User
    Join Date
    Dec 2007
    Posts
    2,675
    Are you seriously expecting one of us to write this program for you? Did you not read the Homework policy linked to above?

  11. #11
    Registered User
    Join Date
    Apr 2011
    Posts
    50
    i am not asking anyone to write it for me but just asking someone to solve this big equation.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. project .... help plz plz plz
    By Hitchhik3R in forum C Programming
    Replies: 13
    Last Post: 10-24-2010, 02:07 PM
  2. can any1 plz make this assignment
    By jean in forum C Programming
    Replies: 17
    Last Post: 05-13-2009, 09:19 PM
  3. [Request] Need Help Plz
    By TylerD in forum Tech Board
    Replies: 4
    Last Post: 01-03-2009, 09:54 AM
  4. Anyone plz help me
    By Rose_Flowers in forum A Brief History of Cprogramming.com
    Replies: 1
    Last Post: 09-17-2003, 12:01 PM
  5. help plz plz
    By nsssn73 in forum C++ Programming
    Replies: 2
    Last Post: 06-03-2002, 08:44 AM