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
#= | |
This blog is a “Hello World” example of Julia calling C. | |
We start of by at bit of C code we want to call from Julia. | |
We write the following in calc_mean.c | |
double mean(double a, double b) { | |
return (a+b) / 2; | |
} |