いろいろなテクニック.Nucleo と DISCO-F746 用.
Dependencies: Array_Matrix mbed
Diff: FunctionObject.hpp
- Revision:
- 1:bbb9f0c3e523
- Parent:
- 0:bb939e0bc6e2
diff -r bb939e0bc6e2 -r bbb9f0c3e523 FunctionObject.hpp --- a/FunctionObject.hpp Sun Oct 15 11:41:48 2017 +0000 +++ b/FunctionObject.hpp Wed Apr 10 06:32:33 2019 +0000 @@ -34,10 +34,10 @@ void MyFunctionObject() { DerivFunc fx1(aFunc1); - float area = Integrate(fx1, 0.0, 1.0); + float area = Integrate(fx1, 0.0, 1.0); // y = x の 区間 [0, 1] の定積分 printf("\r\nArea = %f\r\n", area); DerivFunc fx2(aFunc2); - area = Integrate(fx2, 0.0, 1.0); + area = Integrate(fx2, 0.0, 1.0); // y = x*x の 区間 [0, 1] の定積分 printf("Area = %f\r\n", area); }