- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have one function to define like that
f(x)=a(x)*b(x)*c(x)*d(x)
which a,b,c,d are independent ones.
For C language
to load the function within another function
it's better to include the definition within the form
just like
long f(x)
integer x;
long a(int);
long b(int);
long c(int);
longt d(int);
.....
i am not quite clear how it can be finished in Fortran.
Would any one tell me in detail?
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are several ways to declare this. The following is but one
Code:
function f(x) ! function return type declaration integer f: ! calling arg declartion integer :: x ! external function type declarations integer :: a,b,c,d ! code f=a(x)*b(x)*c(x)*d(x) end function f
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your quick reply
But i still have some questions.
Can we discuss through email!
my present one :ywangwnlo@163.com

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page