Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion fortran
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
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
glen herrmannsfeldt  
View profile  
 More options Apr 29 2012, 7:10 pm
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

eng_mohamedrama...@yahoo.com <eng_mohamedrama...@yahoo.com> wrote:

(snip)

> I try to do it now as following but I find error, can you
> 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

Without knowing where this is going to be used, it isn't
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.