Skip to content

Commit

Permalink
v1.3.2 - 3
Browse files Browse the repository at this point in the history
  • Loading branch information
fobos123deimos committed Sep 14, 2024
1 parent 13ab2ff commit 6bc155f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
Binary file modified src/fast_wave/C_s_matrix.pickle
Binary file not shown.
13 changes: 13 additions & 0 deletions tests/test_wavefunction.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,19 @@ def initialize_c_s_matrix():
global c_s_matrix
c_s_matrix = create_normalized_hermite_coefficients_matrix(60)

def test_hermite_sympy():
"""
Tests the hermite_sympy function to verify the accuracy of Hermite polynomial computation.
"""
x = symbols("x")
h0 = hermite_sympy(0)
h1 = hermite_sympy(1)
h2 = hermite_sympy(2)

assert h0 == 1
assert h1 == 2 * x
assert h2 == 4 * x**2 - 2

def test_create_hermite_coefficients_table():
"""
Tests the create_normalized_hermite_coefficients_table function to verify if the normalized coefficient matrix is correct.
Expand Down

0 comments on commit 6bc155f

Please sign in to comment.