from rsf.proj import *
Flow('sine',None,
'''
math output="0"
d1=.01 n1=1256 o1=0
label1=x unit1="radians"
''')
Plot('sine','graph title="sin(x)"')
Flow('dsine','sine','deriv ')
Plot('dsine','graph title="d sin(x)/dx"')
Result('sine_dsine','sine dsine','SideBySideAniso')
Flow('cosine','sine',
'''
math output="cos(x1)"
''')
Flow('cos2','dsine cosine',
'''
math A=${SOURCES[0]} B=${SOURCES[1]}
output=".0"
''')
Result('cos2','graph label1="cos\^2\_(x)" wanttitle=n')
Flow('int-cos2','cos2','cp | scale dscale=1')
Result('int-cos2','graph title="x/2+sin(2x)/4"')
End() |