The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Newsgroups: comp.lang.fortran
From: glen herrmannsfeldt <g...@ugcs.caltech.edu>
Date: Sun, 29 Apr 2012 23:10:44 +0000 (UTC)
Local: Sun, Apr 29 2012 7:10 pm
Subject: Re: fortran
(snip)
> I try to do it now as following but I find error, can you Without knowing where this is going to be used, it isn't
> tell me what the wrong step? thank you > SUBROUTINE ADD(Tau,m,k,Sigma,Mu,n) > Tau =m*k*SQRT(1.0-EXP((-Sigma*Mu)/(m*K))**n) > m>0.0.AND.m<1.0 > n>=1.0.AND.n<=3.0 > RETURN > END so easy to say. As it is hard to call a subroutine with an unknown number of arguments, often such a routine is called with an array instead. In that case, you need array elements in place of each of the variables. To be sure that you understand, an assignment like:
> Tau =m*k*SQRT(1.0-EXP((-Sigma*Mu)/(m*K))**n)
computes the value of the expression on the right side of
the equals sign, and assigns it to the variable on the left. That is different from the mathematical meaning of equals.
-- glen
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||