Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place. Commercial Alternative to JupyterHub.
| Download
Project: My Project
Views: 30Image: ubuntu2204
Kernel: Python 3 (system-wide)
Importing necessary libraries
We'll need numpy
for mathematical functions and matplotlib
for plotting the 3D graph.
In [3]:
Defining the wave equation
The wave equation in 3-dimensions can be represented as:
Where:
is the amplitude
is the wave number
is the angular frequency
is the phase
Define the variables:
In [4]:
Generating the grid
Create a grid for and :
In [5]:
Defining the wave function
Calculate the wave function :
In [6]:
Plotting the wave equation
Create a 3D plot of the wave equation:
In [7]:
In [0]: