Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65264483
ComputePi.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
Sun, Jun 2, 09:20
Size
266 B
Mime Type
text/x-c++
Expires
Tue, Jun 4, 09:20 (2 d)
Engine
blob
Format
Raw Data
Handle
18039130
Attached To
R7561 SP4E_HW1
ComputePi.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);
private:
double eval_term(unsigned k);
};
#endif
Event Timeline
Log In to Comment