Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Programming C++ Project

  1. Feb 26, 2005 #1
    I have a few probelms...the approximate length isnt working right when i compare my sol'n w/ the samplecalc. Im attaching my updated code along w/ this message
    I have to write a program that compute the arc length : "A segment of the curve can b divided into intervals and a chord to the curve draqn in each interval. The approximate length of the segment is obtained by adding up the lenghts of the chords. The accuracy of the result is a function of the number of intervals used. Increasing the number of the chords increases the accuracy, but only up to a point. The computation is to be terminated when the use of a larger number of intervals produces a negligible change in the result."
    and there is one part I that i have to do...but not sure how:
    Call function approx to compute aplen, the approximate value of the length. Use n=4 intervals for the first approximation. Repeat the computaion up to 10 times, doubling the value of n each time, as long as successive length values are increasing, and differences between successive values are decreasing and are greater than .01 percent(%) of the approximate value.
     

    Attached Files:

    • C++.txt
      C++.txt
      File size:
      4.1 KB
      Views:
      75
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you help with the solution or looking for help too?
Draft saved Draft deleted



Similar Discussions: Programming C++ Project
  1. Project Management (Replies: 12)

  2. Microsoft Project (Replies: 1)

  3. Bridge Project (Replies: 18)

  4. Electromagnet Project (Replies: 5)

Loading...