Skip to content

Commit

Permalink
fix the warning info bug (#332)
Browse files Browse the repository at this point in the history
Co-authored-by: Dou Du <[email protected]>
  • Loading branch information
dou-du and Dou Du authored May 9, 2024
1 parent 0778e0a commit ce637b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notebook/statistical-mechanics/ising_model.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@
" \n",
" See e.g.: https://en.wikipedia.org/wiki/Square_lattice_Ising_model\n",
" \"\"\"\n",
" temperature = np.linspace(0.01, 4, 500)\n",
" temperature = np.linspace(0.01, 4, 500, dtype=np.float128)\n",
" magnetization = np.zeros(len(temperature))\n",
" Tc = 2 * J / k_B / np.log(1 + np.sqrt(2))\n",
" magnetization[temperature < Tc] = (1-1./(np.sinh(2 * J / k_B / temperature[temperature < Tc])**4))**(1/8)\n",
Expand Down Expand Up @@ -524,7 +524,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.8"
"version": "3.11.5"
},
"voila": {
"authors": "Dou Du and Giovanni Pizzi"
Expand Down

0 comments on commit ce637b5

Please sign in to comment.