Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F84484250
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
Mon, Sep 23, 04:44
Size
404 B
Mime Type
text/x-c
Expires
Wed, Sep 25, 04:44 (2 d)
Engine
blob
Format
Raw Data
Handle
21030664
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