Skip to content
Snippets Groups Projects
Commit 244fa3a7 authored by Petter Källström's avatar Petter Källström Committed by Oscar Gustafsson
Browse files

Adding introduction.py

parent 41115f33
Branches
No related tags found
No related merge requests found
"""
===============================
Introduction example for course
===============================
"""
from b_asic.core_operations import Addition, ConstantMultiplication
from b_asic.signal_flow_graph import SFG
from b_asic.special_operations import Delay, Input, Output
i = Input()
d = Delay()
o = Output(d)
c = ConstantMultiplication(0.5, d)
a = Addition(i, c)
d.input(0).connect(a)
sfg = SFG([i], [o])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment