Skip to content

Commit

Permalink
Update sinetransform.py (#9)
Browse files Browse the repository at this point in the history
Fixing some symbolic errors in comments for easier readability.
  • Loading branch information
ShazAlvi committed Aug 17, 2020
1 parent c2d8a47 commit dedfec2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/contrib/sinetransform.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

# Range of periodic interval
logtmin = -3
# logxmax = 0.798 #2pi
# logtmax = 0.798 #2pi
# 5(2pi) #Longer range in r gives you a better reconstruction. 10\pi will give
# you a better reconstruction than 2\pi.
logtmax = 1.497
Expand All @@ -54,7 +54,7 @@

ft = 0.016

# Tell fhti to change kr to low-ringing value
# Tell fhti to change ft to low-ringing value
# WARNING: kropt = 3 will fail, as interaction is not supported
ftopt = 1

Expand All @@ -65,7 +65,7 @@
# Computation related to the logarithmic spacing
# ----------------------------------------------

# Central point log10(r_c) of periodic interval
# Central point log10(t_c) of periodic interval
logtc = (logtmin + logtmax)/2

print(f"Central point of periodic interval at log10(t_c) = {logtc}")
Expand Down Expand Up @@ -111,7 +111,7 @@
scipy.integrate.trapz(f, a_f*np.sin(t[i]*f))

# Plotting the input function and the reconstructed input function and also
# the distribution of the a(k) vs k.
# the distribution of the a(f) vs f.
plt.figure()

ax1 = plt.subplot(121)
Expand Down

0 comments on commit dedfec2

Please sign in to comment.