|
|
Power 6/32 Unix version 1.21
parameter(pi=3.14159265)
external xsin
call graf(xsin,0.,2*pi,0.02,-1.,+1.)
end
subroutine graf(f,xmin,xmax,dx,ymin,ymax)
parameter(nline=75)
external f
x = xmin
1 y = f(x)
if(y.lt.ymin.or.y.gt.ymax)then
print 10, ' '
else
j = (y-ymin)/(ymax-ymin)*(nline-1)
print 10,(' ',i=1,j),'*'
endif
x = x+dx
if(x.le.xmax)goto 1
return
10 format(80a1)
end
function xsin(x)
xsin = sin(x*12)*sin(x)
return
end
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.