Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F80717645
compute_pi.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Mon, Sep 2, 06:07
Size
302 B
Mime Type
text/x-c++
Expires
Wed, Sep 4, 06:07 (2 d)
Engine
blob
Format
Raw Data
Handle
20430633
Attached To
R7561 SP4E_HW1
compute_pi.hh
View Options
//Class to compute Pi
#ifndef COMPUTE_PI_HH
#define COMPUTE_PI_HH
#include "series.hh"
class
ComputePi
:
public
Series
{
public
:
ComputePi
();
virtual
~
ComputePi
();
double
compute
(
unsigned
N
);
double
getAnalyticPrediction
();
private
:
double
eval_term
(
unsigned
k
);
};
#endif
Event Timeline
Log In to Comment