aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWojtek Kosior <kwojtus@protonmail.com>2019-06-21 12:42:36 +0200
committerWojtek Kosior <kwojtus@protonmail.com>2019-06-21 12:42:36 +0200
commit63c2faecd587b08b4a481a0da8b821edd58db572 (patch)
treea1d52331001114319d603096d4aea372016cbf8a /src
parentf73f1331f30d330dd10cd0b02ca56c3ab5d31eaa (diff)
downloadfortran-assignment3-63c2faecd587b08b4a481a0da8b821edd58db572.tar.gz
fortran-assignment3-63c2faecd587b08b4a481a0da8b821edd58db572.zip
add module with functions for integrating
Diffstat (limited to 'src')
-rw-r--r--src/functions.f9011
1 files changed, 11 insertions, 0 deletions
diff --git a/src/functions.f90 b/src/functions.f90
new file mode 100644
index 0000000..7216970
--- /dev/null
+++ b/src/functions.f90
@@ -0,0 +1,11 @@
+MODULE functions
+
+CONTAINS
+
+ FUNCTION my_exp(x) result(y)
+ real(kind=8), intent(in) :: x
+ real(kind=8) :: y
+ y = exp(x)
+ END FUNCTION my_exp
+
+END MODULE functions