Thanks; have another question

This is a discussion on Thanks; have another question within the C++ Programming forums, part of the General Programming Boards category; delta_theta =- (theta + sin(theta) - constant) / (1.0 + cos(theta)) 1) delta_theta =delta_theta - (theta..... or delta_theta =-1*(theta+sin(.........

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    8

    Thanks; have another question

    delta_theta =- (theta + sin(theta) - constant) / (1.0 + cos(theta))

    1) delta_theta =delta_theta - (theta.....

    or

    delta_theta =-1*(theta+sin(......

  2. #2
    & the hat of GPL slaying Thantos's Avatar
    Join Date
    Sep 2001
    Posts
    5,681
    well you have =- so it would be:

    delta_theta is assigned the value of the negative of ( theta + sin(theta) - constant) / (1.0 + cos(theta) )

    if you had -= then it would be

    delta_theta = delta_theta - (theta + sin(theta) - constant) / (1.0 + cos(theta))

    Your book really should have covered all this

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    8
    I am using msdn and vb6 and msdn does not in any sence of the word make much sence at all

  4. #4
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    MSDN is usually more of a reference. Better to find a good set of tutorials. I find the ones on this site adequate. You also may have made a typo. I don't see =- all the often, so maybe you meant -=, which has just the opposite meaning of +=.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Alice....
    By Lurker in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 06-20-2005, 02:51 PM
  2. Debugging question
    By o_0 in forum C Programming
    Replies: 9
    Last Post: 10-10-2004, 05:51 PM
  3. Question about pointers #2
    By maxhavoc in forum C++ Programming
    Replies: 28
    Last Post: 06-21-2004, 12:52 PM
  4. Question...
    By TechWins in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 07-28-2003, 09:47 PM
  5. Question, question!
    By oskilian in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-24-2001, 12:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21