Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F65191485
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
Sat, Jun 1, 17:05
Size
419 B
Mime Type
text/x-c++
Expires
Mon, Jun 3, 17:05 (2 d)
Engine
blob
Format
Raw Data
Handle
18022563
Attached To
R9482 SP4E_Homework_Ashtari_Sieber
compute_pi.hh
View Options
#ifndef COMPUTE_PI_HH
#define COMPUTE_PI_HH
#include "series.hh"
#include <math.h>
#include <iostream>
class compute_pi: public Series
{
public:
double compute(unsigned int N);
double getAnalyticPrediction();
compute_pi()
{
std::cout<<"compute_pi object constructed!"<<std::endl;
}
~compute_pi()
{
std::cout<<"compute_pi object destructed!"<<std::endl;
}
};
#endif
Event Timeline
Log In to Comment