Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import matplotlib.pyplot as plt | |
from skimage import measure | |
y, x, z = np.mgrid[-2:2:100j, -2:2:100j, -2:2:100j] | |
f = (x**2 + 9/4*y**2 + z**2 - 1)**3 - x**2 * z**3 - 9/80*y**2*z**3 | |
verts, faces, _, _ = measure.marching_cubes(f, 0, spacing=(0.1, 0.1, 0.1)) | |
fig = plt.figure() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
""" | |
Eigenvalues for matrices with random entries with values of 1 or -1 | |
@author: Nicolás Guarín-Zapata | |
@date: November 2022 | |
""" | |
import numpy as np | |
import matplotlib.pyplot as plt |


This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Effect of waves moving. | |
Inspired by Juan Carlos Ponce | |
https://mobile.twitter.com/jcponcemath/status/1447388869033283591?t=UJAyYdVEGm3DYvp-ESCByA&s=09 | |
Alt-text: 5 waves propagating from left to right. They are depicted |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Problem proposed in: | |
https://scicomp.stackexchange.com/a/38968/9667 | |
@author: Nicolás Guarín-Zapata | |
@date: August 2021 | |
""" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
