Khangai Robot Play - Naive
01
THe naive play of the Khangai Robot
calculus.h
Go to the documentation of this file.
1
/*
2
* calculus.h
3
*
4
* Created : 23/2/2019
5
* Author : n-is
6
* email : 073bex422.nischal@pcampus.edu.np
7
*/
8
9
#ifndef _CALCULUS_H_
10
#define _CALCULUS_H_
11
12
template
<
size_t
N>
13
void
polyder
(
float
(&der)[N-1],
const
float
(&poly)[N])
14
{
15
for
(
size_t
i = 1; i < N; ++i) {
16
der[i-1] = poly[i]*i;
17
}
18
}
19
20
#endif // !_CALCULUS_H_
polyder
void polyder(float(&der)[N-1], const float(&poly)[N])
Definition:
calculus.h:13
Core
Inc
utils
math
calculus.h
Generated by
1.8.15