bsp_Calculus.h stdlib.h varint.h D:/gitt/MicrochipFor32/bsp_Device/bsp_Calculus.cpp bsp_Differential bsp_Integral 离散微积分 /*---------------------------------------------------------------------------------------------------- # #Copyright(c)2022YuankangLiang(XerolySkinner) # #本软件按原样提供,无任何明示或暗示 #在任何情况下,作者都不承担任何损害赔偿责任 # #使用的许可声明: #1.不得歪曲本软件的来源,你不能声称你编写了原始软件. #2.免费授予以任何目的,前提是版权声明出现在所有副本中. #并且版权声明和许可声明同时出现. #3.你有使用,复制,修改,分发,和销售本软件的许可. #4.如果你在产品中使用,产品文档中的声明是赞赏的但不是必须的. #5.本通知不得从任何来源删除或更改. # #YuankangLiang(XerolySkinner) #E-mail:zabbcccbbaz@163.com #QQ:2715099320 #MobilePhone:13005636215 # #Allrightsreserved. */ #pragmaonce #ifdef__cplusplus #include<stdlib.h> #include"varint.h" //---------------------------------------------------------------------------------------------------- //类目 classbsp_Differential{ public: bsp_Differential(floatdt){ bsp_Differential::dt=dt;} public: floatDifferential(floatvar); public: floatdt; }; //---------------------------------------------------------------------------------------------------- classbsp_Integral{ public: bsp_Integral(floatdt){ bsp_Integral::result_list=NULL; bsp_Integral::dt=dt; bsp_Integral::results=0;} ~bsp_Integral(void){ free(result_list); result_list=NULL;} public: floatIntegral(floatvar); voidIntegral_set(floatresults); floatIntegral_list(floatvar); u32Integral_makelist(u32len); voidIntegral_dellist(void); voidIntegral_clslist(void); public: float*result_list; u32result_len; floatresults; floatdt; }; #endif