projects
/
physik
/
posic.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
added acos to angle calc
[physik/posic.git]
/
vasp_tools
/
acos.c
diff --git a/vasp_tools/acos.c
b/vasp_tools/acos.c
new file mode 100644
(file)
index 0000000..
609a6dc
--- /dev/null
+++ b/
vasp_tools/acos.c
@@ -0,0
+1,11
@@
+/* acos */
+
+#include <stdio.h>
+#include <math.h>
+#include <stdlib.h>
+
+int main(int argc,char **argv) {
+ printf("%f\n",180.0/M_PI*acos(atof(argv[1])));
+ return 0;
+}
+