Skip to content

Commit

Permalink
Fixed parabola
Browse files Browse the repository at this point in the history
  • Loading branch information
jaxankey committed Oct 24, 2023
1 parent 9034d18 commit de9e554
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,11 @@ def piecewise_parabola(x):
Sinusoid-like oscillatory function of x that is constructed from parabolas alternating every 0.5.
"""
# First get the non-integer part of x to find the "phase"
x = (_n.array(x)) % 1
x = (_n.array(x))%1

# Assuming this is an array, we need complementary arrays of 0's and 1's to
# multiply by the two parabolas
a = 0+(x < -0.5)
a = 0+(x < 0.5)
b = 0+(x >= 0.5)

# Now return the functions
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = '1.5.14' # Keep this on the first line
__version__ = '1.5.15' # Keep this on the first line



Expand Down

0 comments on commit de9e554

Please sign in to comment.