*lar_function([float_expr [,float_expr...]]]]])
Example
$
$ File: gra_examples:gra_scalar_example.com (VXDESY)
$
$ set ver
$ create test_function.for
c..
c.. n number of arguments
c.. a1..a5 arguments
c..
function gra_scalar_function( n, a1, a2, a3, a4, a5)
implicit none
real gra_scalar_function
integer*4 n
real a1, a2, a3, a4, a5
type *,' gra_scalar_function: n= ', n
type *,' waiting 3 seconds...'
call lib$wait(3.)
gra_scalar_function = n
return
end
$
$ fort test_function
$
$ link /shareable=my_dir:test_function test_function,-
sys$input/opt
cluster=dummy,,,gra_library:gra_tscalar
gsmatch=always,0,0
$
$
$ def gra_scalar_function my_dir:test_function
$ set nover
$
SPECTRA> * = scalar_function(1, 2, 3)
-> 3