Help converting this formula into C++ format

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Chedda
    New Member
    • Feb 2008
    • 4

    Help converting this formula into C++ format



    can someone please help me writting this formula in C++ format?
  • oler1s
    Recognized Expert Contributor
    • Aug 2007
    • 671

    #2
    Expressing this formula in code requires not much more than knowledge of: basic C++ syntax, how to create a variable, and the appropriate <cmath> functions.

    This information is something you can gather within the first hour of practice with C++. So I assume you will have no problem figuring it out.

    Did you have a question?

    Comment

    • Chedda
      New Member
      • Feb 2008
      • 4

      #3
      Originally posted by oler1s
      Expressing this formula in code requires not much more than knowledge of: basic C++ syntax, how to create a variable, and the appropriate <cmath> functions.

      This information is
      something you can gather within the first hour of practice with C++. So I assume you will have no problem figuring it out.

      Did you have a question?

      thabks for the quick reply, so basically just do the #include <cmath> function?

      Comment

      • sanctus
        New Member
        • Mar 2007
        • 84

        #4
        Originally posted by Chedda
        thabks for the quick reply, so basically just do the #include <cmath> function?
        and the only other thing to know is that the squareroot of x is written as sqrt(x) and the absolute value as abs(x)

        Comment

        Working...