Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F120355721
compute_arithmetic.cc
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
Thu, Jul 3, 17:59
Size
404 B
Mime Type
text/x-c
Expires
Sat, Jul 5, 17:59 (2 d)
Engine
blob
Format
Raw Data
Handle
27176955
Attached To
R7571 SP4E-TB-TL-FR
compute_arithmetic.cc
View Options
#include "compute_arithmetic.hh"
/* -------------------------------------------------------------------------- */
ComputeAlgebraic::ComputeAlgebraic() {
this->func = [](UInt i) { return 1. * i; };
}
/* -------------------------------------------------------------------------- */
double ComputeAlgebraic::getAnalyticPrediction() {
return 1. * this->current_term * (this->current_term + 1) / 2.;
}
Event Timeline
Log In to Comment