Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define FLOAT_CMP_RTOL 1e-05
#define FLOAT_CMP_ATOL 1e-08
#define SIM_GRANULARITY 5
double x_L, x_R, x_T, x_w;
int N;
cmake_minimum_required(VERSION 3.6)
project(sop4 C)
enable_language(C)
set(SOURCE_FILES main.c)
set(CMAKE_C_STANDARD 99)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Werror -lm")
add_executable(sop4 ${SOURCE_FILES})
0
1
10
10
0.1
1
10
5
1
1
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define FLOAT_CMP_RTOL 1e-05
#define FLOAT_CMP_ATOL 1e-08
#define SIM_GRANULARITY 5
#define oi printf
#define OI fprintf
#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#define FLOAT_CMP_RTOL 1e-05
#define FLOAT_CMP_ATOL 1e-08
#define SIM_GRANULARITY 5
#define oi printf
#define OI fprintf