feat[main]: Add main()-Function in main.c
This commit is contained in:
parent
3d94802beb
commit
a09d3e5141
1
.gitignore
vendored
1
.gitignore
vendored
@ -52,3 +52,4 @@ Module.symvers
|
|||||||
Mkfile.old
|
Mkfile.old
|
||||||
dkms.conf
|
dkms.conf
|
||||||
|
|
||||||
|
main
|
||||||
@ -7,11 +7,6 @@
|
|||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifdef _DEBUG_
|
|
||||||
printf("X=%f\n",x);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
double interpolateLine(double x1, double y1,double x2, double y2, double x){
|
double interpolateLine(double x1, double y1,double x2, double y2, double x){
|
||||||
double y = ((y2 - y1) / (x2 - x1)) * x + y1 - ((y2 - y1) / (x2 - x1)) * x1;
|
double y = ((y2 - y1) / (x2 - x1)) * x + y1 - ((y2 - y1) / (x2 - x1)) * x1;
|
||||||
return y;
|
return y;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user