📄 numerical_integration.h
字号:
#ifndef NUMERICAL_INTEGRATION_H
#define NUMERICAL_INTEGRATION_H
#ifdef _cplusplus
extern "C" {
#endif
#include "ERRNO.h"
#include "parse_string.h"
#define TRAPEZOIDAL 0x00000400l
#define SIMPSON 0x00000800l
#define COTES 0x00001000l
#define ROMBERG 0x00002000l
typedef struct
{
unsigned long int status;
unsigned long int total_iter;
unsigned long int iter_t;
unsigned long int iter_sim;
unsigned long int iter_cote;
unsigned long int iter_rom;
unsigned long int iter_max;
double *t_value;
double *sim_value;
double *cote_value;
double *rom_value;
double *t_precision;
double *sim_precision;
double *cote_precision;
double *rom_precision;
double final_precision;
double result;
double integration_start;
double integration_end;
} Iter_result;
typedef struct tag_data
{
double t_value;
double sim_value;
double cote_value;
double rom_value;
double precision;
double preci_t;
double preci_sim;
double preci_cote;
double preci_rom;
struct tag_data *next;
} Iter_node;
extern int numerical_integration(char *fun, Var_name_list *name, Iter_result *result);
extern void free_iter_result(Iter_result *result);
#ifdef _cplusplus
}
#endif
#endif /*NUMERICAL_INTEGRATION_H*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -