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
 

Affiliates

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.
Database 
(137 open)
   Access 
(49 open)
   MySQL 
(83 open)
   Oracle 
(9 open)
   SQL Server 
(52 open)
   Other DB 
(20 open)
Documentation / Tech Writing 
(22 open)
Game Development 
(20 open)
Graphics / Art / Music 
(54 open)
   Graphics 
(60 open)
     3d Animation 
(12 open)
   Art (Misc.) 
(20 open)
   Music 
(6 open)
   3d Modeling 
(12 open)
Language Specific 
(92 open)
   ASP 
(65 open)
   C# 
(36 open)
   C++ / C 
(101 open)
   Cold Fusion 
(4 open)
   Delphi 
(35 open)
   Java 
(60 open)
   Perl 
(27 open)
   PHP 
(86 open)
   XML/XSL 
(31 open)
   Visual Basic 
(158 open)
   Visual Basic .Net 
(55 open)
   Other 
(42 open)
Misc 
(36 open)
   CAD 
(8 open)
MultiMedia 
(24 open)
Network 
(36 open)
   Network Design 
(13 open)
   Network Implementation 
(15 open)
Platforms 
(60 open)
   Windows 
(140 open)
     MS Exchange 
(6 open)
     MS Office 
(3 open)
     Other 
(8 open)
   Internet Browser 
(52 open)
   Linux 
(42 open)
   UNIX 
(19 open)
   Hand Held/PDA Programming 
(15 open)
Requirements 
(12 open)
Security 
(30 open)
Testing / Quality Assurance 
(10 open)
Web 
(135 open)
   Page Design 
(65 open)
   Flash 
(37 open)
   Web Services 
(61 open)
   Web (Other) 
(56 open)
Training 
(5 open)
   Computer Based 
(6 open)
 
Other
 
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
Phase:
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)

Description:
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.



Deliverables:
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: abuse@rentacoder.com.
 
Bidding/Comments:
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
 10
(Excellent)
   
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.

Best,
Paul
 




Quick Search
 

 Advanced Search
Newest Open Work
Latest News

 
Credentials


 

 
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 
RNA
Rated a 9.9 on 26 jobs 
Securenext
Rated a 9.96 on 52 jobs 
markesh
Rated a 10 on 17 jobs 
Andrei Remenchuk
Rated a 10 on 9 jobs 
teleCODERS
Rated a 9.93 on 59 jobs 
Codman
Rated a 9.96 on 98 jobs 
Buddies
Rated a 9.8 on 48 jobs 

See all top coders...

(What makes a top coder?)

Top Exam Scorers
 
Other
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.