norma-r (1158383), страница 9
Текст из файла (страница 9)
name-external-function
domain-of-parameter :
name-unconditional-domain
name-unconditional-domain / index-expression
name-unconditional-domain / ( list-index-expression )
iterated-variable-on-domain :
name-variable-on-domain [ name-iteration-index [-1] ]
name-standard-function :
sqrt
abs
exp
alog
alog10
sin
cos
asin
atan
sign
dsqrt
dabs
dexp
dalog
dalog
dsin
dcos
dasin
datan
dsign
entier
name-m-standard-function :
amax1
amin1
dmax1
dmin1
call-part :
COMPUTE name-part [ ( actual-parameters )]
actual-parameters :
[ list-in-parameter ] [ RESULT list-out-parameter ]
out-parameter :
name-scalar
name-variable-on-domain ON domain-of-parameter
iterated-variable-on-domain ON domain-of-parameter
iteration :
head-of-iteration
[ boundary-value ]
initial-value
body-of-iteration
exit-condition
end-iteration
head-of-iteration :
ITERATION list-iterated-element ON name-iteration-index .
iterated-element :
name-variable [ ( list-name-result ) ]
boundary-value :
BOUNDARY { operator .}+ END BOUNDARY
initial-value :
INITIAL name-iteration-index = 0 : { element-of-initial .}+
END INITIAL
element-of--initial :
operator
declaration-of-input
declaration-of-output
body-of-iteration :
{ element-of-iteration-body . }+
element-of-iteration-body :
operator
iteration
declaration-of-output
exit-condition :
EXIT WHEN log-expression
end-iteration :
END ITERATION name-iteration-index
letter :
{ A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z }
{ a,b,c,d,e,f,g,h,i,j k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}
digit :
{ 0,1,2,3,4,5,6,7,8,9 }
special-symbol :
special-symbol-not-apostrophe
apostrophe
special-symbol-not-apostrophe :
{ space ,=,>,>,+,-,*,/,(,),[,],!,?,,,.,#}
apostrophe :
'
space :
Space has no graphical representation.
identificator :
letter { { digit, letter } }*
constant :
arithm-constant
string
arithm-constant:
int-constant
real-constant
double-constant
int-constant :
{ digit }+
real-constant :
body [ E [ { +,- } ] power ]
double-constant :
body [ D [ { +,- } ] power ]
body :
int-constant . int-constant
power
int-constant
string
‘ { { symbol-not-apostrophe, ‘‘ } }+‘
symbol-not-apostrophe:
letter
digit
special- symbol-not-apostrophe
supplementary-symbol
operation :
{rel-operation, log-operation, arithm-operation }
rel-operation:
{ =,>,<,<=,>=,<>,>< }
rel-except-not-equal-operation :
{ =,>,<,>=,<= }
log-operation :
{ AND, OR, NOT }
arithm-operation :
{ +,-,*,/,** }
name :
identificator
list-name :
name { , name }*
arithm-expression :
[ { +, - } ] term { arithm-operation term }*
term :
arihm-constant
call-function
name-index
name-domain-parameter
name-scalar
variable-on-domain
(arithm-expression)
variable-on-domain :
name-variable-on-domain [ [ list-index-expression ] ]
const-expression :
[ { +,- } ] const-expression-without-sign
const-expression-without-sign :
integer-term { arithm-operation integer-term }*
integer-term :
int-constant
name-domain-parameter
( const-expression )
index-expression :
name-index [ [ { +,- } ] const-expression-without-sign ]
name-index = const-expression-without-sign
name-index = name-index [ [ { +,- } ] const-expression-without-sign ]
log-expression :
[ NOT ] logic-term { log-operation logic-term }*
logic-term :
comparison
( log-expression )
comparison :
arithm-expression comp-operation arithm-expression
condition-on-domain :
log-expression
condition-on-index :
name-index rel-except-not-equal-operation
name-index [ { +,- } const-expression-without-sign ]
name-index rel-except-not-equal-operation const-expression-without-sign
Литература
1. И.Б. Задыхайло. Организация циклического процесса счета по параметрической записи специального вида. Журн. выч. мат. и мат. физ., 3, N 2, 1963, с. 337-357.
2. А.Н. Андрианов. Организация циклических вычислений в языке Норма. Препринт ИПМ им. М.В.Келдыша АН СССР, 1986, N 171, 28 с.
3. А.Н. Андрианов. Синтез параллельных и векторных программ по непроцедурной записи в языке Норма. Дис. канд. физ.-мат. наук, М., 1990. 144 с.
4. Andrianov A.N., Efimkin K.N., Zadykhailo I.B. Nonprocedural language for mathematical physics. Programming and Computer Software, 17, 1992,N2, p.10-22.
5. М.М. Васильев, К.Н. Ефимкин, В.Н. Иванова. О применении метода гидродинамических потенциалов к задаче обтекания тела. Математическое моделирование, 6, 1994, N 10, с.58-65.
54















