How Software Gets Done  

(No Login on Secured Page)

Custom Software Buyers
Request new bids
Search Coders
My Account
My Buyer 'To Do' List
My bid requests
  My escrow account
My General Info
Help for Buyers
Articles for Buyers
Latest News

Custom Software Coders

Newest open work
Browse all work
Search all work
My Account
My Coder 'To Do' List
My bids
My General Info
  My credit account
Help for Coders
Articles for Coders
Latest News


My account
My pipeline
My credit account
Help for Affiliates
Latest News
Newest Open Bid Requests.
VB6, Access 2000, NETAPI
By markmayes on Jan 22
Max Bid: $150

java data feed
By pbr_streetgang on Jan 22
Max Bid: Open to fair suggestions

Custom IE Toolbar
By KerryG on Jan 22
Max Bid: $25

Windows 95/98/NT Print Driver UI
By JasonNearStar on Jan 22
Max Bid: Open to fair suggestions

small assignment
By vjanand on Jan 22
Max Bid: $11

Need SMTP Filter
By JTIDev on Jan 22
Max Bid: Open to fair suggestions

Click here to put this ticker on your own site

Open Work Categories.
(137 open)
(49 open)
(83 open)
(9 open)
   SQL Server 
(52 open)
   Other DB 
(20 open)
Documentation / Tech Writing 
(22 open)
Game Development 
(20 open)
Graphics / Art / Music 
(54 open)
(60 open)
     3d Animation 
(12 open)
   Art (Misc.) 
(20 open)
(6 open)
   3d Modeling 
(12 open)
Language Specific 
(92 open)
(65 open)
(36 open)
   C++ / C 
(101 open)
   Cold Fusion 
(4 open)
(35 open)
(60 open)
(27 open)
(86 open)
(31 open)
   Visual Basic 
(158 open)
   Visual Basic .Net 
(55 open)
(42 open)
(36 open)
(8 open)
(24 open)
(36 open)
   Network Design 
(13 open)
   Network Implementation 
(15 open)
(60 open)
(140 open)
     MS Exchange 
(6 open)
     MS Office 
(3 open)
(8 open)
   Internet Browser 
(52 open)
(42 open)
(19 open)
   Hand Held/PDA Programming 
(15 open)
(12 open)
(30 open)
Testing / Quality Assurance 
(10 open)
(135 open)
   Page Design 
(65 open)
(37 open)
   Web Services 
(61 open)
   Web (Other) 
(56 open)
(5 open)
   Computer Based 
(6 open)
Other Sites

Download the free Rent A Coder IE toolbar!
Show Bid Request

Fortrain and C program
Bid Request Id: 8214
Bookmark in my 'To Do' list
Posted by: seatiger74 (25 ratings)
(Software buyer rating 10)
Posted: Jan 31, 2002
12:05:36 AM EDT
Bidding Closes: Feb 14, 2002
12:06:31 AM EDT
Viewed (by coders): 165 times
100% of work was accepted by buyer. Coder account has been credited.
Max Accepted Bid: Bidding is closed
Project Type: Personal Project / Homework Help
Bidding Type: Open Auction
Categories: C++ / C, Other
Enter chat room for this bid request
(0 active users at Jan 22, 2003 7:55:24 PM EDT)

Programming Languages Assignment 1
(Write 2 programs, one in Fortran and one in C, both do the same thing as described below)

In this first assignment, since we have been discussing efficiency and FORTRAN,
let's run a race between FORTRAN and C on the RS-6000 system. I have made a
function to allow you to do CPU timings from FORTRAN (by calling on C), and so
what we will do is a long winded series of floating point computations and CPU
time the thing. You will simply write a FORTRAN module to do numerical integration
and CPU time how long it takes, using 1 million subintervals. I will discuss
FORTRAN in class; here I will simply outline the trapezoidal rule, and how to do
the CPU timing.

For CPU timing, first get the file getclock.o as with

getfile getclock.o

Then in your FORTRAN code, use

implicit real*8(a-h,o-z)
external getclock
start = getclock(0)
elap = (getclock(0) - start) / 1000000.d0

Then, elap is the CPU elapsed time in seconds that ... took to do.

Trapezoidal rule: To integrate a function f(x) over an interval [a,b] with n
subintervals, break up [a,b] into n equal subintervals a = x0 < x1 < x2 < ... < xn = b
and let h = (b - a) / n = width of each subinterval. Then the integral of f
over [a,b] is approximately

h * (f(a)/2 + f(x1) + f(x2) + ... + f(xn-1) + f(b)/2)

Use the following function to integrate :

f(x) = (tan(atan(exp(log(sqrt(x * x)))))) ** 2

To compile your code, use

f77 -O myfile.f getclock.o

which will make executable a.out if it compiles OK.

In the C version, just call clock() to get the start and elapsed time,
and then divide the difference by CLOCKS_PER_SEC as a double to get
the elapsed time in seconds.

Be sure in both cases to print the approximated integral value!
Mathematically you are integrating x^2 over [0,1] so the exact
answer is just 1/3 (0.333333...). However due to floating point
roundoff, the result will likely be a bit off.

Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased.

Special Conditions / Other:
Mon 2/4/02

Remember that contacting the other party outside of the site (by email, phone, etc.) on all business projects < $500 (before the buyer's money is escrowed) is a violation of both the software buyer and seller agreements. We monitor all site activity for such violations and can instantly expel transgressers on the spot, so we thank you in advance for your cooperation. If you notice a violation, you can report it to:
All monetary amounts on the site are in United States dollars.
Rent a Coder is a closed auction, so coders can only see their own bids and comments. Buyers can view every posting made on their bid requests.

See all rejected bids (and all comments)
Name   Bid Amount 
Date   Coder Rating  
This bid was accepted by the buyer!
Paul Belov
(31 ratings)
in Scott, Arkansas
United States
This coder is certified! Click here for transcript
$10 (USD) Feb 1, 2002
12:15:12 AM EDT
Hello Colleague!

Here in Arkansas, I've just finished testing of both F77 and C code for you project!
Precision is good - at least 12 digits are correct. Note that in both cases integration results are equal, that makes me feel that F77 library uses C math libary on my system. Also note that you are not supposed to compute logarithm of zero, so I've ignored zero point and used F(0)=0.

On my PC (Pentuim2/500Mhz) the C program runs a few percent faster than Fortran code. Actually I've excepted F77 code to perform better. I think, it can be caused by math functions you've selected. Last year I've done project involving 2D and 3D computational grids for hyperbolic partial differential equations. Then C code was REALLY slower.

Well, I'm ready to transfer code at any moment. I believe it's unfair to ask for bigger money for this. Expecially if you going to use for educational purpose. You can pay me after you recieve full package or wait and ask me to make any updates to computational part. Note that results can be different when you'll run these tests on your computer.


Quick Search

 Advanced Search
Newest Open Work
Latest News



Rent A Coder upholds the rigorous business practices required to be both a BBB member and Square Trade vendor.
  • All customer issues addressed within 2 days
  • Openly disclosed pricing and return policies
  • Participation in mediation at buyer request
  • Superior selling track record
This site is verified through its parent company, Exhedra Solutions, Inc.

Rent A Coder Top Coders.

Anuj Gakhar
Rated a 9.98 on 76 jobs 
Michael Sharp
Rated a 9.97 on 148 jobs 
Simon Price
Rated a 10 on 6 jobs 
Rated a 9.9 on 26 jobs 
Rated a 9.96 on 52 jobs 
Rated a 10 on 17 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
Rated a 9.93 on 59 jobs 
Rated a 9.96 on 98 jobs 
Rated a 9.8 on 48 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
Rent A Coder is PayPal verified through it's parent company, Exhedra Solutions, Inc.

Created in partnership with:


Affiliate Sites

Latest News | About Us | Kudos | Feedback/Contact    Affiliates | Advertise    Privacy | Legal

Copyright 2001, Exhedra Solutions, Inc. All rights reserved.
By using this site you agree to its Terms and Conditions.
"Rent A Coder" (tm), "Safe Project Escrow" (tm) and "How Software Gets Done" (tm)
are trademarks of Exhedra Solutions, Inc.