This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0 | |
1 | |
10 | |
10 | |
0.1 | |
1 | |
10 | |
5 | |
1 | |
1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |