diff options
Diffstat (limited to 'lib/dot.f90')
| -rw-r--r-- | lib/dot.f90 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/dot.f90 b/lib/dot.f90 new file mode 100644 index 00000000..a68c5bd1 --- /dev/null +++ b/lib/dot.f90 @@ -0,0 +1,11 @@ +real*8 function dot(x,y)
+
+ real*8 x(3),y(3)
+
+ dot=0.d0
+ do i=1,3
+ dot=dot+x(i)*y(i)
+ enddo
+
+ return
+end function dot
|
