Skip to content

Commit

Permalink
v2 rollback SEQ operator (declaring z inside body yielded wrong resul…
Browse files Browse the repository at this point in the history
…t in test) + add EIS
  • Loading branch information
fargolo committed Oct 7, 2023
1 parent 7d58ba7 commit 312af58
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/operators.jl
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@ Sequence operator (Pólya quasi-inverse operator).
Defined as ``A = SEQ(B) \\implies A(z) = \\frac{1}{1 - B(z)}``.
"""
function SEQ(z)
z = SymPy.symbols("z")
return(1/(1-z))
end
SEQ(z) = 1/(1-z)


"""
Expand All @@ -19,7 +16,6 @@ Multiset operator (Pólya exponential operator).
Defined as ``A = MSET(B) \\implies A(z) = \\frac{1}{1 - B(z)}``.
"""
function MSET(z,max)
z = SymPy.symbols("z")
n = SymPy.symbols("n")
return(exp(summation(1/n * z^n,(n,1,max))))
end
Expand Down

0 comments on commit 312af58

Please sign in to comment.