blob: 67af294b5f905081786e8806a2bbc92f90f28251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
from libc.math cimport sin
cdef class Function:
cpdef double evaluate(self, double x) except *:
return 0
cdef class SinOfSquareFunction(Function):
cpdef double evaluate(self, double x) except *:
return sin(x ** 2)
|